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

From: Jean-Christophe Petit (jcpetit_at_syspark.com)
Date: Wed 18 Feb 2004 - 15:43:27 GMT


Many thanks Herbert, you made my day.
Quota is working fine now.

Two little questions:
do I need to mount the lvm partition with quota support ?
=> mount -o rw,usrquota,grpquota /dev/vservers/vs1lv

When I do a "vserver vserver1 stop", I got an error :
Stopping the virtual server mserver1
Server mserver1 is running
ipv4root is now 192.168.100.64
New security context is 49152
Stopping MySQL: [ OK ]
Stopping httpd: [ OK ]
Turning off quotas: [ OK ]
Stopping sshd: [ OK ]
Stopping crond: [ OK ]
Saving random seed: [ OK ]
Shutting down system logger: [ OK ]
Starting killall: Turning off quotas: quotaoff: quotactl on /dev/hdv1 [/]:
No such process
quotaoff: quotactl on /dev/hdv1 [/]: No such process
                                                           [FAILED]
                                                           [FAILED]
sleeping 5 seconds

It seems that the redhat distrib (enterprise 2.1) shut down the quota first
and try to shut it down one more time at the end.
How to resolve this problem ?

have a very good day,
JC

 --
Jean-Christophe Petit
Syspark inc.
----- Original Message -----
From: "Herbert Poetzl" <herbert_at_13thfloor.at>
To: "Jean-Christophe Petit" <jcpetit_at_syspark.com>; "Fritz Kron"
<fritz.kron_at_domaintechnik.at>
Cc: <vserver_at_list.linux-vserver.org>
Sent: Wednesday, February 18, 2004 2:54 AM
Subject: Re: [Vserver] LVM + Secure Quota

>
> okay, maybe I can clarify that a little for both of you ...
>
> here some facts:
>
> - quota (per vserver) and disk limits (for each vserver)
> on a 'shared' partition require the quota patch (q0.13)
> - quota (per vserver) with a separate partition for each
> vserver do not require the quota patch
> - if you use the quota patch, the quota system is modified
> that way, that it supports more than one quota hash per
> partition (to allow more than one vserver with different
> quota entries), which requires the user to add those
> hashes before they can be used (with dqhadd from the
> quota tools)
>
>
> On Tue, Feb 17, 2004 at 09:05:49PM -0500, Jean-Christophe Petit wrote:
> > Thanks a lot for your answer.
> > But if I removed the "Per Context Quota/Disk Limits Addon" patch, does
the
> > quota will work inside eache virtual server ?
>
> yes, it will work with and without the quota patches, you
> just need to do the required things (dqhadd, vrsetup, dqhadd)
> but you won't be able to have more than one vserver per disk
> partition using quota (in the one lvm partition per vserver
> this isn't the case, so yes, it will work there)
>
> > thanks again,
> > JC
> >
> > At 07:33 PM 2/17/2004, Fritz Kron wrote:
> > >Hello,
> > >
> > >Had just a similar problem, removing the "Per Context Quota/Disk Limits
> > >Addon" patch from kernel, which you will not need for secure quotas on
> > >separate partition, fixed this problem for me.
>
> probably you also 'forgot' to add the quota hashes to the
> kernel (which is done with the quota tools), Bill is
> currently working with the quota stuff (testing and figuring
> out how the details work) and will add a 'new' howto soon
> for the time being, the following links might be useful:
>
> http://vserver.13thfloor.at/Linux2.6/index.php?page=Per+Context+Quota
>
http://vserver.13thfloor.at/Linux2.6/index.php?page=Per+Context+Disk+Limits
>
> > >... Fritz
> > >
> > >On Tue, 17 Feb 2004 12:56:16 -0500
> > >Jean-Christophe Petit <jcpetit_at_syspark.com> wrote:
> > >
> > >> Hello,
> > >>
> > >> I have a installed and configured secure quota with LVM and the quota
> > >> support does not work.
> > >> I followed: http://www.13thfloor.at/old/VServer/HowTo_LVMQS.shtml
> > >> and http://list.linux-vserver.org/archive/vserver/msg05969.html
> > >>
> > >> when ext3 or ufs is used (in the vserver1) I have the following
errors:
> > >> Turning on quota. quotaon: using //aquota.group on /dev/hdv1 [/]: No
> > >> such device or address
> > >> quotaon: using //aquota.user on /dev/hdv1 [/]: No such device or
address
>
> the following explanations come to mind:
>
> - /dev/hdv1 is no block or vroot device
> - /dev/hdv1 is a vroot device, but it isn't set up
> properly
> - the quota hashes for this particular context
> are not added (according to your startup scripts
> this is the case here)
>
> HTH,
> Herbert
>
> > >> SETUP:
> > >> [ Redhat Enterprise 2.1 ]
> > >> kernel 2.4.24
> > >> patch-2.4.24-vs1.26.diff
> > >> patch-2.4.24-vs1.26-q0.13.diff (I also tried with 0.12)
> > >>
> > >> util-vserver-0.28-1mdk
> > >> quota-3.09-1.21
> > >> vr-tools-0.14
> > >>
> > >> kernel config:
> > >> 'Virtual root device' enabled in 'Block devices --->'
> > >> 'Quota support' enabled in 'File systems --->'
> > >> 'VFS v0 quota format support' enabled in 'File systems --->'
> > >> 'Persistend Context ID for files' at '(UID32/GID32)'
> > >>
> > >> /dev/vservers is the LVM volume group
> > >> /dev/vservers/vs1lv LVM separate partition for the virtual vserver1
> > >> /dev/vroot/0 is the virtual root device used
> > >>
> > >> the mtab of the vserver1 :
> > >> /dev/hdv1 / ufs rw,usrquota,grpquota 0 0
> > >>
> > >> Make node with name for vserver: mknod /dev/vroot/0 b 4 0
> > >>
> > >> ----------------- /etc/vservers/vserver1.sh -----------------
> > >> #!/bin/sh
> > >> case $1 in
> > >> pre-start)
> > >> e2fsck -p /dev/vservers/vs1lv
> > >> mount -o rw,usrquota,grpquota /dev/vservers/vs1lv
> > >/vservers/vserver1
> > >> rm -f /vservers/vserver1/dev/hdv1
> > >> vrsetup /dev/vroot/0 /dev/vservers/vs1lv
> > >> cp -fa /dev/vroot/0 /vservers/vserver1/dev/hdv1
> > >> ;;
> > >> post-start)
> > >> ;;
> > >> pre-stop)
> > >> ;;
> > >> post-stop)
> > >> mount -o remount,ro /vservers/vserver1
> > >> umount /vservers/vserver1
> > >> vrsetup -d /dev/vroot/0
> > >> ;;
> > >> *)
> > >> echo $0 pre-start
> > >> echo $0 pre-stop
> > >> echo $0 post-start
> > >> echo $0 post-stop
> > >> ;;
> > >> esac
> > >> ----------------- /etc/vservers/vserver1.sh -----------------
> > >>
> > >> dans /etc/vservers/vserver1.conf:
> > >> S_FLAGS="lock nproc"
> > >> S_CAPS="CAP_NET_RAW CAP_QUOTACTL"
> > >>
> > >>
> > >> many thanks for your help,
> > >>
> > >> --
> > >> Jean-Christophe Petit
> > >> Syspark inc.
> > >>
> > >_______________________________________________
> > >Vserver mailing list
> > >Vserver_at_list.linux-vserver.org
> > >http://list.linux-vserver.org/mailman/listinfo/vserver
> >
> >
> > _______________________________________________
> > Vserver mailing list
> > Vserver_at_list.linux-vserver.org
> > http://list.linux-vserver.org/mailman/listinfo/vserver
>

_______________________________________________
Vserver mailing list
Vserver_at_list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


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 18 Feb 2004 - 15:43:00 GMT by hypermail 2.1.3