Subject: Re: [vserver] mounting partitions
From: Shams Fantar <sethurf@free.fr>
Date: Sat, 20 Dec 2008 09:46:30 +0100

Gilles Sadowski wrote:
> Hi.
>
>   
>> I've one guest server (gserver1), and the root server.
>>
>> On the root server, there is a partition /backup (/dev/hda2) of 59 Gb. I
>> would like to mount /backup in the guest server gserver1, so, I do :
>>
>> vnamespace --enter gserver1 -- mount -t ext3 /dev/hda2
>> /etc/vservers/gserver1/vdir/backup
>>     
>
> That looks strange...
>
> If you want to access that partition within the vserver, you should probably
> add a line like this
>
>  /dev/hda2  /backup   ext3    defaults   0     0
>
> to the "/etc/vserver/gserver1/fstab" config file (on the host).
> When you start the vserver, the mount will be taken care of automatically.
>
> Best,
> Gilles
>   

This doesn't seem to be a good solution because, apprently, I can't
mount the hda2 partition, gserver1 doesn't see it. So, the best solution
would be to put the line of fstab in the root server, but, anyway, we
still come back to the problem...

Thanks,