OpenVZ Forum


Home » General » Support » Stale mtab entries following stop
Re: Stale mtab entries following stop [message #37284 is a reply to message #37276] Sun, 30 August 2009 16:15 Go to previous message
laotse is currently offline  laotse
Messages: 35
Registered: December 2008
Member
[quote title=maratrus wrote on Sun, 30 August 2009 15:49]
Quote:
Do you want to say that in both cases the mount point actually is not mounted but "umount" command on the HN clears all entries in /etc/mtab in spite of being failed?


Exactly! See this:
node:~# cat /proc/mounts | grep 1002
/var/lib/vz/private/1002 /var/lib/vz/root/1002 simfs rw 0 0
/dev/mapper/base-proxy /var/lib/vz/root/1002/srv/proxy xfs rw,attr2,nobarrier,noquota 0 0
tmpfs /var/lib/vz/root/1002/lib/init/rw tmpfs rw,nosuid,mode=755 0 0
proc /var/lib/vz/root/1002/proc proc rw,nosuid,nodev,noexec 0 0
sysfs /var/lib/vz/root/1002/sys sysfs rw,nosuid,nodev,noexec 0 0
tmpfs /var/lib/vz/root/1002/dev/shm tmpfs rw,nosuid,nodev 0 0
devpts /var/lib/vz/root/1002/dev/pts devpts rw,nosuid,noexec,gid=5,mode=620 0 0
node:~# vzctl stop 1002
Stopping VE ...
VE was stopped
VE is unmounted
node:~# grep 1002 /etc/mtab
/dev/mapper/base-proxy /var/lib/vz/root/1002/srv/proxy xfs rw 0 0
/dev/mapper/base-proxy /var/lib/vz/root/1002/srv/proxy xfs rw 0 0
node:~# grep 1002 /proc/mounts
node:~# umount /var/lib/vz/root/1002/srv/proxy
umount: /dev/mapper/base-proxy: not mounted
umount: /var/lib/vz/root/1002/srv/proxy: not found
umount: /dev/mapper/base-proxy: not mounted
umount: /var/lib/vz/root/1002/srv/proxy: not found
umount: /dev/mapper/base-proxy: not mounted
umount: /var/lib/vz/root/1002/srv/proxy: not found
node:~# grep 1002 /proc/mounts
node:~# grep 1002 /etc/mtab
node:~# vzctl start 1002
Starting VE ...
VE is mounted
Adding IP address(es): XXX.XXX.XXX.XXX
Setting CPU units: 1000
Configure meminfo: 262144
Set hostname: vename.local
File resolv.conf was modified
VE start in progress...
node:~# 

 
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 06:04:01 GMT 2024

Total time taken to generate the page: 0.03351 seconds