Chuck wrote:
On Tuesday 13 December 2005 07:38 am, Lars Braeuer wrote:

Hi,

I'm not sure where to mount an LVM2 device with vs2.0.
I do not want to mount it on system boot, but when starting the guest

vserver.

The fstab file in the vserver config directory seems to be the right place.


good question. i run lvm2 and i have found on my system, if i want to be able to administer the guest directly from the host, i must mount it on boot or create a special script to start the guest which mounts the lvm2 mountpoint, then calls vserver to start the guest. if i do not do this, then i cannot administer the guest from the host and must enter the guest to do anything at all.

will be interesting to see what the gurus say :)

so you are doing it the same way, via the fstab config file?

it seems like the device is mounted right until after the vserver is up.

I included a "ls -la /vservers/test01/ ; df -a" in the prepre-start script and it actually outputs a listing of the guest system. This might be from a different ctx (i.e. 1)??? Because after the guest system is started, and I return to the normal hostsystem shell, a "ls -la /vservers/test01" outputs an empty directory.




But when including an entry like this in the fstab file, the mount won't

show up in the hostsystem
and will not be accessible via the mount point in the /vservers directory:
/dev/mapper/vg-test01   /       ext3     defaults       1 2
But I'm able to enter the vserver with "vserver test01 enter", weird.

I also tried the prepre-start script, but it seems to be the wrong place,

because it's called after
the generateOptions function.

Any hints?

Best,

Lars
_______________________________________________
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver



_______________________________________________
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver

Reply via email to