OpenVZ Forum


Home » General » Support » vps.mount not mounting
vps.mount not mounting [message #33270] Thu, 02 October 2008 22:56 Go to next message
UnderpantsGnome is currently offline  UnderpantsGnome
Messages: 2
Registered: October 2008
Junior Member
I'm trying to use vps.mount to setup some shared storage and using vps.mount doesn't mount the file systems.

If I run the commands _after_ the VPS is up they mount fine.

I am seeing some conflicting info on using bind mounts. The wiki says "The container must be started and the destination directory must exist." and according to the Users Guide on page 89 the mount scripts run before a VPS has started.

I've seen many posts here saying that they are using mount scripts just fine, so I hope I'm just missing something.

Thanks,
Michael

cat vps.mount 
#!/bin/bash

mount -n --bind /bigdisk/vars/${VEID} /vz/root/${VEID}/var
mount -n --bind /bigdisk/yum_cache /vz/root/${VEID}/var/cache/yum
mount -n --bind /bigdisk/homes/${VEID} /vz/root/${VEID}/home
Re: vps.mount not mounting [message #33271 is a reply to message #33270] Thu, 02 October 2008 23:15 Go to previous message
UnderpantsGnome is currently offline  UnderpantsGnome
Messages: 2
Registered: October 2008
Junior Member
Ok, so I was just missing something...

cat vps.mount 
#!/bin/bash

. /etc/sysconfig/vz 
. $VE_CONFFILE 

mount -n --bind /bigdisk/vars/${VEID} /vz/root/${VEID}/var
mount -n --bind /bigdisk/yum_cache /vz/root/${VEID}/var/cache/yum
mount -n --bind /bigdisk/homes/${VEID} /vz/root/${VEID}/home


Sorry for the wasted bits.
Previous Topic: CentOS 5 - Network creates venet0:0
Next Topic: NFS in VE == hang?
Goto Forum:
  


Current Time: Mon Aug 12 09:02:12 GMT 2024

Total time taken to generate the page: 0.02896 seconds