OpenVZ Forum


Home » General » Support » *SOLVED* Sharing /home between vps, nfs/bind mount not working?
*SOLVED* Sharing /home between vps, nfs/bind mount not working? [message #4942] Fri, 04 August 2006 10:14 Go to previous message
xinhes is currently offline  xinhes
Messages: 6
Registered: August 2006
Location: Sundsvall, Sweden
Junior Member
I can't find a working solution to having /home shared between vps servers.

Here is what i have tested:
# mount -o bind /vz/home /vz/private/1002/home
# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/md0 4032000 1372192 2454988 36% /
none 451656 0 451656 0% /dev/shm
/dev/md2 4032000 186900 3640280 5% /var
/dev/md3 1186166788 527048520 598864508 47% /vz
/vz/home 1186166788 527048520 598864508 47% /vz/private/1002/home
# vzctl exec 1002 ls -la /home
total 8
drwxr-xr-x 2 root root 4096 Aug 4 12:00 .
drwxr-xr-x 24 root root 4096 Aug 3 16:10 ..
-- Sad --

As you can se the bind mounted dir does'nt show up in the vserver it's not supposed to be empty.

Well, next thing to try is to bind mount before starting the vps. Then this happens:
# mount -o bind /vz/home /vz/private/1002/home
# vzctl start 1002
Starting VPS ...
vzquota : (error) Quota on syscall for 1002: Device or resource busy
vzquota on failed [3]
-- Crying or Very Sad --
I have also tried to drop vzquota so its gets recalucated at startup but it still refuses to start with "Device or resource busy"

Anyone got a clue why vzquota complains and refuses to start when I have bind mounted into te vps server?

So I could use nfs then?

No, that also fails because rpc.nfsd refuses to start in the ovkernel like this:
]# uname -a
Linux XXX 2.6.16-026test015.2 #1 Fri Jul 14 16:09:51 MSD 2006 i686 athlon i386 GNU/Linux
# service nfs start
Starting NFS services: [ OK ]
Starting NFS quotas: [ OK ]
Starting NFS daemon: [FAILED]
Starting NFS mountd: [ OK ]
-- Confused --

Anyone got a clue on how I should proceed?
One solution would be to move /home to another nfs server. But then I'd have to dedicate one server for that purpose.

I have just started converting this server from vserver to openvz and the bind mounts worked fine with vserver.

[Updated on: Fri, 04 August 2006 11:27] by Moderator

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: running psybnc
Next Topic: firewall into VE and isolating eth's from the host
Goto Forum:
  


Current Time: Mon May 20 18:43:20 GMT 2024

Total time taken to generate the page: 0.00408 seconds