OpenVZ Forum


Home » General » Support » *SOLVED* how to create a mount script
Re: how to create a mount script [message #26921 is a reply to message #26900] Tue, 05 February 2008 12:07 Go to previous messageGo to previous message
piavlo is currently offline  piavlo
Messages: 159
Registered: January 2007
Senior Member
you can have per VE mount/umount scripts /etc/vz/conf/${VEID}.{mount|umount}
or mount/umount scripts which all VEs will run /etc/vz/conf/vps.{mount|umount}
In case of no-zero exit code of mount script the VE won't be started

You would probably want to move /vz/private/200/home/xxx
to /vz/home/xxx (or somewhere else and bind mount it both from
/vz/root/200/home/xxx /vz/root/300/home/xxx
mount --bind /vz/home/xxx /vz/root/200/home/xxx
mount --bind /vz/home/xxx /vz/root/300/home/xxx

In case you don't want the umount scripts then bind mount with -n
option
mount -n --bind /vz/home/xxx /vz/root/200/home/xxx
mount -n --bind /vz/home/xxx /vz/root/300/home/xxx
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: HN and VE IPs on different subnets
Next Topic: DRBD+Heartbeat clustering question!
Goto Forum:
  


Current Time: Sat Aug 02 06:56:01 GMT 2025

Total time taken to generate the page: 0.85904 seconds