OpenVZ Forum


Home » General » Support » Stale mtab entries following stop
Re: Stale mtab entries following stop [message #37274 is a reply to message #37266] Sun, 30 August 2009 13:25 Go to previous messageGo to previous message
laotse is currently offline  laotse
Messages: 35
Registered: December 2008
Member
maratrus wrote on Sun, 30 August 2009 12:37
does information about /dev/mapper/r5-mail is listed in /proc/mounts when VE is running?


Yes, it's listed in both the VE and the node.

To summarize your hypothesis this is what presumably happens:

  1. The mount script running in the node's context mounts the drive and writes the record to the mtab of the node.
  2. When the VE is brought down, the init scripts unmount the drive in VE context, since it appears in /proc/mounts = /etc/mtab of the VE.
  3. When the unmount script in node context is run, the drive is already unmounted and umount fails, so the record stays in the mtab of the node.

What I still do not understand, is why all stale entries in the node's mtab disappear, when I manually unmount the drive while the VE is down. Can anyone imagine, what's the difference in the unmount script context and a root shell with the VE stopped?

Regards,
- lars.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Howto clear beancounters of migrated CTs
Next Topic: Can't checkpoint container
Goto Forum:
  


Current Time: Tue Aug 13 11:13:16 GMT 2024

Total time taken to generate the page: 0.02873 seconds