OpenVZ Forum


Home » General » Support » *SOLVED* home dir of vps on an other partition or networkdevice
*SOLVED* home dir of vps on an other partition or networkdevice [message #12985] Wed, 16 May 2007 16:30 Go to next message
kuene is currently offline  kuene
Messages: 4
Registered: May 2007
Junior Member
hello

I want that the home dirs (example: in vz/private/102/home/) of my vps are on an other partition or on a iSCSI device or NFS.
but I want still be able to use quota of openVZ.

how can I do that?
in the example below I have the iSCSI device /dev/sdc1 mounted to /mnt/
and I want the home-folder of the vps 102 to be /mnt/testhome

but when I start the vps quota fails...
se below:

mount --bind /mnt/testhome /vz/private/102/home/ 

------------------------------------------------------------

with "mount --bind", quotas do not work anymore:

virtue:/virtual# vzctl start 102
Starting VPS ...
vzquota : (error) Quota on syscall for 102: Device or resource busy
vzquota on failed [3]

-----------------------------------------------------------
virtue:/virtual# fdisk -l /dev/sdc
   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1               1       30720    31457264   83  Linux

-----------------------------------------------------------
virtue:/virtual# df -h
Filesystem            Size  Used Avail Use% Mounted on
...
/dev/sdc1              30G   11G   18G  37% /mnt

-----------------------------------------------------------

how can I have the home dirs outside of private and still use quota. or is this not possible.
hope somebody can help Confused

regards
kuene

[Updated on: Fri, 18 May 2007 07:31] by Moderator

Report message to a moderator

Re: home dir of vps on an other partition or networkdevice [message #13000 is a reply to message #12985] Thu, 17 May 2007 10:47 Go to previous messageGo to next message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
Hello,

1. You're mounting to private directory, that is not right: in order to see information on external mounted filesystem in VE, you should start VE and then mount to root directory:

mount --bind /mnt/testhome /vz/root/102/home/

2. vzquota doesn't support NFS http://bugzilla.openvz.org/show_bug.cgi?id=219

3. vzqouta only covers one filesystem, but not mounted over it.

So, it is hardly possible to use vzquota in the manner you wish.
Re: *SOLVED* home dir of vps on an other partition or networkdevice [message #13142 is a reply to message #12985] Mon, 21 May 2007 13:54 Go to previous message
kuene is currently offline  kuene
Messages: 4
Registered: May 2007
Junior Member
OK thank you very much...
Previous Topic: Using threads on OpenVZ, and memory allocation versus memory usage
Next Topic: *SOLVED* network problem if I set onboot=yes
Goto Forum:
  


Current Time: Sat Dec 21 17:20:43 GMT 2024

Total time taken to generate the page: 0.05034 seconds