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@vserver:test /]quotaoff / quotaoff: quotactl on /dev/hdv1: Operation not permitted [root@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@;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 [EMAIL PROTECTED] wrote: > [root@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
