From: rrolfe_at_genpac.com
Date: Wed 06 Nov 2002 - 20:24:56 GMT
Actually if I do a -v then it shows the user...
But it shows nothing is being taken from the user when it really is.
Its as if I set the quota inside the vserver for the user (where the
user exists) and the quota is being reported by the host server.
Rob.
-----Original Message-----
From: rrolfe_at_genpac.com [mailto:rrolfe_at_genpac.com]
Sent: Wednesday, November 06, 2002 11:53 AM
To: vserver_at_solucorp.qc.ca
Subject: RE: [vserver] User Quota's
Ok...
Lets go over this one more time...
On the host server
I have my LVM mounted to /parts/test
Then I mounted /parts/test/dev/hdv1 to /vservers/test with user quota
turned on..
Then I turn on the vserver and the mtab in it has usrquota turned on
too.
In the vserver I can run /sbin/quotacheck -avugm and it checks the
quota's but when I run repquota -a it doesn't show any of the users in
the vserver.
Also I get the following in the vserver when trying to run these 2
commands.
[root_at_vserver:test /]quotaoff /
quotaoff: quotactl on /dev/hdv1: Operation not permitted
[root_at_vserver:test /]quotaon /
quotaon: using //quota.user on /dev/hdv1: Operation not permitted
did I screw something up here?
Rob.
-----Original Message-----
From: Paul Sladen [mailto:vserver_at_paul.sladen.org]
Sent: Wednesday, November 06, 2002 11:15 AM
To: VServer Patch List
Subject: Re: [vserver] User Quota's
On Wed, 6 Nov 2002 rrolfe_at_genpac.com wrote:
> [root_at_vserver:test /]mknod /dev/hdv1 b 1 1
> mknod: `/dev/hdv1': Operation not permitted
You have to create it from the *host-server*, within the vserver's
chroot
filesystem space--one of the capabilities that vservers drop is the
ability
to create device-nodes.
host-server% cp -a /dev/sda42 /vservers/alpha/dev/hdv1
> So I created in the main server and placed it in the vserver's dev
> directory.. will that work?
Yes.
> ALSO to mention it in the /etc/mtab.. is that in the vserver? Or the
> main server?
You will have to mount it with `usrquota,grpquota' in the host-server.
[Re-]Mount it then copy the line from `host:/etc/mtab' into
`vserver:/etc/mtab' and change the mount-point (`/vservers/alpha/') to
`/'.
You want a line (in `vserver:/etc/mtab') that looks like:
/dev/hdv1 / ext3 rw,usrquota,grpquota 0 0
HTH,
-Paul
-- Nottingham, GB