About this list Date view Thread view Subject view Author view Attachment view

From: rrolfe_at_genpac.com
Date: Wed 06 Nov 2002 - 19:52:44 GMT


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

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

[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?


-----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
filesystem space--one of the capabilities that vservers drop is the
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?

> 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


Nottingham, GB

About this list Date view Thread view Subject view Author view Attachment view
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Wed 06 Nov 2002 - 21:24:31 GMT by hypermail 2.1.3