OpenVZ Forum


Home » Mailing lists » Users » Set disk quota on arbitary mount point
Set disk quota on arbitary mount point [message #45401] Fri, 02 March 2012 14:23 Go to next message
Dave Lawrence is currently offline  Dave Lawrence
Messages: 4
Registered: March 2012
Junior Member
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello

If I do
mount -n -t simfs /somepath /vz/root/101/mnt/test -o /mnt/test
Then
vzctl exec 101 df

It tells me that the moint /mnt/test has 10GB of data.
How can I set the quotas on this mount point?

Specifically what I am trying to do is allow a container to access the
private area of another container eg
mount -n -t simfs /vz/private/200 /vz/root/101/mnt/test -o /mnt/200

CT200 would not be running in this example. I would like to be able
to set the moint point at /mnt/200 to have the same disk quota limits
as are set for CT200. This allows CT101 to act as a rescue shell for
CT200. Currently my rescue shell works just fine, but only because
none of our users yet have more than 10GB of data.

An alternative approach would be if there was a way of mounting
/vz/root/200 without actually starting CT200, and then use a bind mount:
mount --bind /vz/root/200 /vz/root/101/mnt/200

I don't think mounting a container without starting it is currently
supported, but this would be a relatively straightforward change to
vzctl? I could submit a patch if I get it working and you think it
would be a worthwhile feature.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJPUNfZAAoJEJjHYqrO/1XcQIgIAImpEr+dM59QT5tHY71J 5ErF
a45OtroZj7uKhP7rbUgP8158cuPZJrelm84/9xRmecYXGFD4CSGPCxCa9ro4 AHqJ
1PhbAtsjTTqLMf/CTySH76POgOvQBjTtdAiEPC2ML9P2IZoWPczdVPhaTb0q 2LbT
2hNQZBycU0sbYELWBEH5YH1FjoZ9FiFFc4HoGKsQOR68OPN4L0DGRln9MS0V ZPhp
XfbFur2lo5d6fHpqYOjLLD9urHqGXckNEl43lJ3zal1yoBK5W5/gFnGma5ug +MGU
GdzDw8QwS5LwLGqTep2ZWfhd5Y6c3bbK6wOFULdIKHvQaT1Myws/+2JZ+DjH p9k=
=fI8v
-----END PGP SIGNATURE-----
Re: Set disk quota on arbitary mount point [message #45402 is a reply to message #45401] Fri, 02 March 2012 14:41 Go to previous message
Dave Lawrence is currently offline  Dave Lawrence
Messages: 4
Registered: March 2012
Junior Member
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 02/03/12 14:23, Dave Lawrence wrote:

> I don't think mounting a container without starting it is
> currently supported,

In fact it's totally supported
vzctl mount 200

I'm not sure where I got that idea from.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJPUNwEAAoJEJjHYqrO/1Xc1zsIALz77Q/Izz6GHz+vzoGi kD2u
yWYdzpbK593SkFzzrmuZFyrwR6Xeq/j9qgaD3hzVx8JjMawdbbF9ZeiL/urA jtMF
IUokF7Ze0tYWiMgxxK3uA7+tUrRe36Cl/lmKC//4Ymsqvu7YSYqz0zKmvHtZ Iyw6
BZniA1RrQWFht61IVCqvVNzIOE/ZmZkvbjamYxRvVXU5YDESiLm9+bQJygBr rEIq
k8CaJcuxVtsL9IixcGOaKdIZA29Ompz2btg2gSoFkhwoiVgPkwk+a43rq2KB KGkn
V2sTae+VdcZBQ/mzBYhuYe+QwJP33QTt0L85VOENPpdaQBrpKoXKwJx4nUb9 9Ok=
=DklT
-----END PGP SIGNATURE-----
Previous Topic: venet ip question
Next Topic: CT console feature
Goto Forum:
  


Current Time: Sun Sep 15 23:45:08 GMT 2024

Total time taken to generate the page: 0.03812 seconds