single directory without quota in VE [message #32912] |
Mon, 08 September 2008 19:30 |
Alex Prinsier
Messages: 16 Registered: January 2007
|
Junior Member |
|
|
Hello,
I would like to have a separate mount for some directory like /var/, because I need a directory where there are no quota's for users (but I need quota's enabled for the rest of the system). The only way I know of is by using a separate mount for it, so that it has it's own quota files.
Is this possible? Maybe using a second simfs for the same VE or anything alike?
Thanks!
|
|
|
Re: single directory without quota in VE [message #32926 is a reply to message #32912] |
Tue, 09 September 2008 07:29 |
khorenko
Messages: 533 Registered: January 2006 Location: Moscow, Russia
|
Senior Member |
|
|
Hi.
A bindmount for /var inside a Container might help if i understand right.
man vzctl -> bindmount
Hope that helps.
--
Konstantin
If your problem is solved - please, report it!
It's even more important than reporting the problem itself...
|
|
|
|
Re: single directory without quota in VE [message #32951 is a reply to message #32938] |
Wed, 10 September 2008 13:06 |
Alex Prinsier
Messages: 16 Registered: January 2007
|
Junior Member |
|
|
I ended up patching the vzmigrate script, so that it supports a "migrate" script per VE, just like the mount/umount scripts. It's run after syncing the private area of the VE, and in case of online migration, also after the 2nd pass.
This way, I could put an rsync command into the custom /etc/vz/conf/$VEID.migrate script to sync a directory from the source to destination hardware node, the directory that was bind mounted. (in the mount script).
Wouldn't this be a nice addition to openvz?
Edit: little fix in the patch so that it first checks if a migrate script exists before trying to use it.
[Updated on: Wed, 10 September 2008 13:39] Report message to a moderator
|
|
|