OpenVZ Forum


Home » General » Support » *SOLVED* Umount action script problem
Re: Umount action script problem [message #10813 is a reply to message #10802] Sun, 04 March 2007 08:08 Go to previous messageGo to previous message
seyko2 is currently offline  seyko2
Messages: 188
Registered: February 2007
Location: Moscow
Senior Member

Hi! I'm a user. I meet this problem too. I use GENTOO.
My solution for this problem:

1) do not use symlinks to /proc/mounts in VE0 and VE
Contents of /etc/mtab in VE
 simfs / auto rw,noatime 0 0
 proc /proc proc rw 0 0
 sysfs /sys sysfs rw,nosuid,nodev,noexec 0 0
 tmpfs /dev tmpfs rw,nosuid 0 0
 devpts /dev/pts devpts rw,nosuid,noexec 0 0
 none /dev/shm tmpfs rw 0 0


2) all binds are unmounted automatically when VE stops

Problem is in contents of VE0 /etc/mtab -- openvz do not edit this one when unmounts. Then there is global umount script which do not perform any real unmount. It only removes lines from /etc/mtab

/etc/vz/vps.umount
  #!/bin/bash
  # after stoping VE but before unmounting root area
  #!!! all mounted on /vz/root/${VEID} FS are unmounted automaticaly
  #echo vps.umount begin VEID=${VEID}
  #  umount /vz/root/${VEID}/usr/portage
  #  umount /vz/root/${VEID}/usr/portage-distfiles
  #  umount /vz/root/${VEID}/usr/portage-overlays
  sed -i -e "\|^.* /vz/root/${VEID}/.* .*|d" /etc/mtab
  #echo vps.umount end
  true
  exit ${?}
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: *CLOSED* softirq stats for a VE
Next Topic: Package Group Installation.
Goto Forum:
  


Current Time: Sat Jul 12 09:55:58 GMT 2025

Total time taken to generate the page: 0.01764 seconds