Re: [Vserver] strange ext3 corruption
Hello, this is normal We have a lot of corruption with aacraid card even without any vserver patch. We just get rid of those adaptec cards for megaraid ones.. Jess Gregory (Grisha) Trubetskoy wrote: Just curious - does your card have a battery and does it have write cache enabled? If you have no battery backup and write cache enabled and hard power off the server, you may see some corruption. On the other hand aacraid driver has had all kinds of problems, it was definitely unusable in 2.6.10. Grisha On Wed, 31 Aug 2005, Sebastien Bechet wrote: Hello, Be carful with vanilla kernel 2.6.12.5 and patch-2.6.12.4-vs2.0.diff.bz2 patch apply ok, but i have strange ext3 corruptions with aacraid. I'm looking about it. Bye. ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver -- Jean-Christophe Petit Directeur RD et DSI Syspark inc. T: 1 514 875 8755 F: 1 514 875 8775 ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] util-vserver bug submissions
Hello, I noticed also the #14034 bug behavior. But it may be coming from the character - I use for the vservers ex: /etc/vservers/centos3-test/... /etc/vservers/centos4-test/... because I don't have the problem with : /etc/vservers/mserver1/... /etc/vservers/mserver2/... There is also a bug with the vwait that don't timeout after 30 seconds.. regards, Kevin Pendleton wrote: FYI, I have submitted the following bug reports/feature requests to Savannah on util-vserver: #14034 Vserver shutdown does not remove IP address #14033 vdlimit --all or vdlimit-stat (Feature Request) #14032 vsomething does not work properly #14026 vdlimit performs vc_add_limit() before validation Kevin ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver -- Jean-Christophe Petit Directeur RD et DSI Syspark inc. T: 1 514 875 8755 F: 1 514 875 8775 ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
[Vserver] rerouting or fake command inside vservers ?
Hello, is it possible to implement the possibility for the vserver patch to reroute or fake command like umount, mount, etc.. ?? This way, it will no longer be necessary to modify startup script, shutdown script, etc.. regards, -- Jean-Christophe Petit Directeur RD et DSI Syspark inc. T: 1 514 875 8755 F: 1 514 875 8775 ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
[Vserver] vserver build and no rpm displayed..
Hello everyone, 2.6.12.3-vs2.0-rc9 with util-vserver-0.30.208 under CentOS 4 followed the http://linux-vserver.org/CentOS_HowTo when in the vserver, rpm -qa gives nothing. I have the /.rpmdb/ in place with files inside: bash-3.00# ls -la /.rpmdb/ total 504 drwxr-xr-x 2 root root4096 Aug 3 05:12 . drwxr-xr-x 22 root root4096 Aug 3 05:04 .. -rw-r--r-- 1 root root 16384 Aug 3 05:08 __db.001 -rw-r--r-- 1 root root 1318912 Aug 3 05:08 __db.002 -rw-r--r-- 1 root root 450560 Aug 3 05:08 __db.003 -rw-r--r-- 1 root root 12288 Aug 3 05:12 Group -rw-r--r-- 1 root root8192 Aug 3 05:12 Installtid -rw-r--r-- 1 root root 12288 Aug 3 05:12 Name -rw-r--r-- 1 root root 16384 Aug 3 05:12 Packages -rw-r--r-- 1 root root 12288 Aug 3 05:12 Providename -rw-r--r-- 1 root root8192 Aug 3 05:12 Provideversion -rw-r--r-- 1 root root 12288 Aug 3 05:12 Pubkeys Is there a problem with vyum ?? -- Jean-Christophe Petit Directeur RD et DSI Syspark inc. T: 1 514 875 8755 F: 1 514 875 8775 ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] Problem with shutdown (yes..)
Thanks Herbert and Enrico, I patched util-vserver-0.30-208 and still have the same problem: root 3599 0 MAIN 0.0 0.0 4508 1424 pts/1S+ 08:07 0:00 /bin/bash /usr/sbin/vserver centos4-test stop root 3607 0 MAIN 0.0 0.0 1384 260 pts/1S+ 08:07 0:00 /usr/lib/util-vserver/lockfile /var/lock/vserver.etcvserverscentos4test.startup /tmp/vserver-lock.sZ3604 root 3620 0 MAIN 0.0 0.0 1428 316 pts/1S+ 08:07 0:00 /usr/sbin/vwait --timeout 30 --terminate --status-fd 3 700 root 3640 700 centos4-test 0.0 0.0 1528 372 ?Ss 08:07 0:00 minilogd vwait don't timeout after 30sec.. regards, Herbert Poetzl wrote: On Tue, Aug 02, 2005 at 08:00:12AM +0200, Enrico Scholz wrote: [EMAIL PROTECTED] (Jean-Christophe Petit) writes: is it possible to upload a new version in http://www.13thfloor.at/~ensc/util-vserver/files/ ? I will see; but there were some non-trivial changes in the script part which I have to test first. okay, here are two patches, one to update the kernel headers to vs2.0, and a second one to add the new alternative syscall implementation, which will issue #warnings on untested archs, and #errors on non implemented ones ... http://vserver.13thfloor.at/Experimental/UTIL-VSERVER/ delta-0.30.208-kheaders.diff delta-0.30.208-shiny6.diff please consider them for inclusion in the next version (they also fix an issue with __syscall_return being redefined on some archs, including x86) TIA, Herbert When you need the fix, you can try http://savannah.nongnu.org/cgi-bin/viewcvs/util-vserver/util-vserver/src/vwait.c.diff?r1=1.1r2=1.2 (the green line in the second hunk is the most important part). hmm, isn't vwait --timeout 30 supposed to time out after 30 seconds and go wild on your remaining processes? (this one is for enrico) There was a classical bug in the signal handling Enrico ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver -- Jean-Christophe Petit Directeur RD et DSI Syspark inc. T: 1 514 875 8755 F: 1 514 875 8775 ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
[Vserver] vserver build and CentOS 3 = :(
Hello everyone, I installed 2.6.12.3-vs2.0-rc9 with util-vserver-0.30.208 under CentOS 4 I can install centos a centos4 vserver but I can't figure out how to create a CentOS 3 vserver: vserver centos3-test build -m yum --hostname domain.com --interface domain=eth0:192.168.100.136/24 --context 800 --force -- -d centos3 gives me : http://mirror.centos.org/centos/3/updates/i386/repodata/repomd.xml: [Errno 4] IOError: HTTP Error 404: Not Found and yes, there is no repodata/repomd.xml for CentOS 3, only for CentOS 4 How do I get rid of the error. thanks for your help, -- Jean-Christophe Petit Directeur RD et DSI Syspark inc. T: 1 514 875 8755 F: 1 514 875 8775 ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] libvserver-0.3 is out!
Hello everyone, if I understand correctly from the README, libvserser is a replacement from util-vserser ? What are the differences in terms of stability, compatibility, components, etc between util-vserver-0.30.208 (that I'm using) In fact, do you recommand me to upgrade to libvserser-0.3 ? regards, Benedikt Boehm wrote: Hi folks! I'm pleased to announce libvserver 0.3, the first release considered more or less stable. This release supports the complete API of the Linux-VServer 2.0 kernel patches (libvserver.so) and provides additional helper functions such as capability lists (libvserver-util.so). As of now, the public interface to libvserver.so is not subject of change anymore. An API doc is also available via doxygen, just use the provided Doxyfile or go to http://dev.gentoo.org/~hollow/vserver/libvserver/doc/ for the latest API doc. Have fun! ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver -- Jean-Christophe Petit Directeur RD et DSI Syspark inc. T: 1 514 875 8755 F: 1 514 875 8775 ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] Problem with shutdown (yes..)
Hello Enrico, is it possible to upload a new version in http://www.13thfloor.at/~ensc/util-vserver/files/ ? regards, Enrico Scholz wrote: [EMAIL PROTECTED] (Herbert Poetzl) writes: hmm, isn't vwait --timeout 30 supposed to time out after 30 seconds and go wild on your remaining processes? (this one is for enrico) There was a classical bug in the signal handling (glibc does not interrupt vc_wait_exit() but restarts it by default). I tested the dietlibc version only which does not show this behavior. There was a race also which could cause non-timeouting when the system time was modified in the wait phase. Both issues should be solved in CVS. Enrico ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver -- Jean-Christophe Petit Directeur RD et DSI Syspark inc. T: 1 514 875 8755 F: 1 514 875 8775 ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
[Vserver] vserver-build problem ?
Hello everyone, kernel 2.6.12.3-vs2.0-rc8.1 and util-vserver-0.30.208 I have problem with vserver-build : [EMAIL PROTECTED] /]# vserver min-centos4-2 build -m yum --hostname domain.com --interface domain=eth0:192.168.0.136/24 --initstyle sysv --context 600 --force -- -d centos4 *** rpm-fake-resolver was built with glibc; please do *** *** not report errors before trying a dietlibc version. *** *** rpm-fake-resolver was built with glibc; please do *** *** not report errors before trying a dietlibc version. *** *** rpm-fake-resolver was built with glibc; please do *** *** not report errors before trying a dietlibc version. *** *** rpm-fake-resolver was built with glibc; please do *** *** not report errors before trying a dietlibc version. *** Traceback (most recent call last): File /usr/bin/yum, line 6, in ? import yummain File /usr/share/yum-cli/yummain.py, line 23, in ? import yum File __init__.py, line 31, in ? File updates.py, line 18, in ? File arch.py, line 212, in ? File arch.py, line 202, in getCanonArch File arch.py, line 133, in getCanonX86Arch IOError: [Errno 2] No such file or directory: '/proc/cpuinfo' *** rpm-fake-resolver was built with glibc; please do *** *** not report errors before trying a dietlibc version. *** Traceback (most recent call last): File /usr/bin/yum, line 6, in ? import yummain File /usr/share/yum-cli/yummain.py, line 23, in ? import yum File __init__.py, line 31, in ? File updates.py, line 18, in ? File arch.py, line 212, in ? File arch.py, line 202, in getCanonArch File arch.py, line 133, in getCanonX86Arch IOError: [Errno 2] No such file or directory: '/proc/cpuinfo' rm -rf /etc/vservers/.defaults/vdirbase/min-centos4-2 /etc/vservers/min-centos4-2 /etc/vservers/.defaults/vdirbase/.pkg/min-centos4-2 any clue ? A second question: how do we delete a vserver-build ? Simply by deleting the files created ? regards, -- Jean-Christophe Petit Directeur RD et DSI Syspark inc. T: 1 514 875 8755 F: 1 514 875 8775 ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] vserver-build problem ?
I found the problem Oups, my /dev/ is now almost empty ? But why did that happen ? I rebooted, and everything back to normal Jean-Christophe Petit wrote: Hello everyone, kernel 2.6.12.3-vs2.0-rc8.1 and util-vserver-0.30.208 I have problem with vserver-build : [EMAIL PROTECTED] /]# vserver min-centos4-2 build -m yum --hostname domain.com --interface domain=eth0:192.168.0.136/24 --initstyle sysv --context 600 --force -- -d centos4 *** rpm-fake-resolver was built with glibc; please do *** *** not report errors before trying a dietlibc version. *** *** rpm-fake-resolver was built with glibc; please do *** *** not report errors before trying a dietlibc version. *** *** rpm-fake-resolver was built with glibc; please do *** *** not report errors before trying a dietlibc version. *** *** rpm-fake-resolver was built with glibc; please do *** *** not report errors before trying a dietlibc version. *** Traceback (most recent call last): File /usr/bin/yum, line 6, in ? import yummain File /usr/share/yum-cli/yummain.py, line 23, in ? import yum File __init__.py, line 31, in ? File updates.py, line 18, in ? File arch.py, line 212, in ? File arch.py, line 202, in getCanonArch File arch.py, line 133, in getCanonX86Arch IOError: [Errno 2] No such file or directory: '/proc/cpuinfo' *** rpm-fake-resolver was built with glibc; please do *** *** not report errors before trying a dietlibc version. *** Traceback (most recent call last): File /usr/bin/yum, line 6, in ? import yummain File /usr/share/yum-cli/yummain.py, line 23, in ? import yum File __init__.py, line 31, in ? File updates.py, line 18, in ? File arch.py, line 212, in ? File arch.py, line 202, in getCanonArch File arch.py, line 133, in getCanonX86Arch IOError: [Errno 2] No such file or directory: '/proc/cpuinfo' rm -rf /etc/vservers/.defaults/vdirbase/min-centos4-2 /etc/vservers/min-centos4-2 /etc/vservers/.defaults/vdirbase/.pkg/min-centos4-2 any clue ? A second question: how do we delete a vserver-build ? Simply by deleting the files created ? regards, -- Jean-Christophe Petit Directeur RD et DSI Syspark inc. T: 1 514 875 8755 F: 1 514 875 8775 ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] vserver-build problem ?
By the way, is this warning problematic ? *You are using a version of yum which is insecure and broken in chroot related operations; either apply the patches shipped in the 'contrib/' directory of util-vserver, or ask the author of yum to apply them (preferred). In the meantime, 'vyum' will continue with dirty hacks which might not work when the vserver is running and local DOS attacks are possible. * regards, Jean-Christophe Petit wrote: I found the problem Oups, my /dev/ is now almost empty ? But why did that happen ? I rebooted, and everything back to normal Jean-Christophe Petit wrote: Hello everyone, kernel 2.6.12.3-vs2.0-rc8.1 and util-vserver-0.30.208 I have problem with vserver-build : [EMAIL PROTECTED] /]# vserver min-centos4-2 build -m yum --hostname domain.com --interface domain=eth0:192.168.0.136/24 --initstyle sysv --context 600 --force -- -d centos4 *** rpm-fake-resolver was built with glibc; please do *** *** not report errors before trying a dietlibc version. *** *** rpm-fake-resolver was built with glibc; please do *** *** not report errors before trying a dietlibc version. *** *** rpm-fake-resolver was built with glibc; please do *** *** not report errors before trying a dietlibc version. *** *** rpm-fake-resolver was built with glibc; please do *** *** not report errors before trying a dietlibc version. *** Traceback (most recent call last): File /usr/bin/yum, line 6, in ? import yummain File /usr/share/yum-cli/yummain.py, line 23, in ? import yum File __init__.py, line 31, in ? File updates.py, line 18, in ? File arch.py, line 212, in ? File arch.py, line 202, in getCanonArch File arch.py, line 133, in getCanonX86Arch IOError: [Errno 2] No such file or directory: '/proc/cpuinfo' *** rpm-fake-resolver was built with glibc; please do *** *** not report errors before trying a dietlibc version. *** Traceback (most recent call last): File /usr/bin/yum, line 6, in ? import yummain File /usr/share/yum-cli/yummain.py, line 23, in ? import yum File __init__.py, line 31, in ? File updates.py, line 18, in ? File arch.py, line 212, in ? File arch.py, line 202, in getCanonArch File arch.py, line 133, in getCanonX86Arch IOError: [Errno 2] No such file or directory: '/proc/cpuinfo' rm -rf /etc/vservers/.defaults/vdirbase/min-centos4-2 /etc/vservers/min-centos4-2 /etc/vservers/.defaults/vdirbase/.pkg/min-centos4-2 any clue ? A second question: how do we delete a vserver-build ? Simply by deleting the files created ? regards, -- Jean-Christophe Petit Directeur RD et DSI Syspark inc. T: 1 514 875 8755 F: 1 514 875 8775 ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
[Vserver] Problem with shutdown (yes..)
Hello everyone, I installed the kernel 2.6.12.3-vs2.0-rc8.1 and util-vserver-0.30.208 So far so good ;) As Herbert mentioned in http://www.paul.sladen.org/vserver/archives/200401/0017.html I get rid of /etc/init.d/halt When I stop the vserver (named min-centos4) the process waiting for ever after Starting killall [EMAIL PROTECTED] ~]# vserver min-centos4 stop Stopping system message bus: [ OK ] Stopping atd: [ OK ] Shutting down sendmail:[ OK ] Shutting down sm-client: [ OK ] Stopping xinetd: [ OK ] Stopping crond:[ OK ] Shutting down kernel logger: [FAILED] Shutting down system logger: [ OK ] Starting killall: [ OK ] and I have the following processes running (vps aux) root 7058 500 min-centos40.0 0.0 1532 644 ?SNs 15:21 0:00 anacron -s root 7110 0 MAIN 0.3 0.0 4508 1432 pts/0S+ 15:21 0:00 /bin/bash /usr/sbin/vserver min-centos4 stop root 7118 0 MAIN 0.0 0.0 1388 260 pts/0S+ 15:21 0:00 /usr/lib/util-vserver/lockfile /var/lock/vserver.etcvserversmincentos4.startup /tmp/vserver-lock.no7115 root 7140 0 MAIN 0.0 0.0 1428 316 pts/0S+ 15:21 0:00 /usr/sbin/vwait --timeout 30 --terminate --status-fd 3 500 root 7221 500 min-centos40.0 0.0 1528 368 ?Ss 15:21 0:00 minilogd The only wait to make the server stop is to kill the two last process of the min-centos server: kill -9 7058 7221 thanks for your replies, -- Jean-Christophe Petit Directeur RD et DSI Syspark inc. T: 1 514 875 8755 F: 1 514 875 8775 ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
[Vserver] Vserver kernel 2.6 and distro 2.4
Hello, is it possible to use 2.4 kernel distros inside vservers that use a main 2.6 kernel with patch-2.6.11.11-vs2.0-rc4.diff ? thanks, -- Jean-Christophe Petit Directeur RD et DSI Syspark inc. T: 1 514 875 8755 F: 1 514 875 8775 ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
[Vserver] vserver and /tmp
Hello everyone, how can I restrict the /tmp in a vserver to execute anything ? regards, Jean-Christophe ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] vserver and /tmp
Thanks Herbert, sorry for the lack of infos: 2.4.30-vs1.2.10 with Per Context Quota/Disk Limits Addon q0.14 util-vserver-0.30-1mdk vproc-0.01 vproc-0.01.tar I'm using only one partition for all my 10 vps. /etc/vservers/vps-name/fstab looks like: /dev/hdv1 / ext3 exec,dev,suid,rw,usrquota,grpquota 0 0 What can I do to have a /tmp with a noexec tag ? I tried to add: none/tmpext3 noexec 0 0 with no success: when I restart the vps, nothing changes. I need to do that for security reasons. thanks, JC Herbert Poetzl wrote: On Wed, May 18, 2005 at 03:37:26PM -0400, Jean-Christophe Petit wrote: I tried, but it doesn't seem to work. My kernel is 2.4.30-vs1.2.10 probably mentioning that at the first posting would have helped ... as would the tool version ;) basically the tools 'mount' /tmp for the vserver guest if you know where and when that happens, you can fine tune the options ... best, Herbert I'm using the quota patch: serveral vserver on one partition thanks, JC Christian Heim wrote: On Wednesday 18 May 2005 19:15, Jean-Christophe Petit ( JP )wrote: how can I restrict the /tmp in a vserver to execute anything ? You could try to edit /etc/vservers/vps-name/fstab by adding the option noexec to the /tmp entry. Don't know if it's supported by vserver or could break things. ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] per context disk quota problem
Herbert, Thanks a lot for your answer, you have been very kind and helpfull. So this probably means, that doing a copy of a vserver running to make a new one, is not a good idea at all. regards, At 03:57 PM 4/25/2004, Herbert Poetzl wrote: On Sun, Apr 25, 2004 at 12:25:10PM -0400, Jean-Christophe Petit wrote: Hello, I resolve the problem by doing a tar.gz of the whole vserver. Erase the vserver then Untar And then, It starts without a problem! is this a normal behavior ? yes, it is ;) best, Herbert best regards, JC At 10:57 AM 4/25/2004, Herbert Poetzl wrote: On Sat, Apr 24, 2004 at 07:51:42PM -0400, Jean-Christophe Petit wrote: Hello, I have a problem with per context disk quota I setup 5 vservers, and everything work very well. But, for the 6th and above: impossible to start them. I have the following error : Can't execute /etc/rc.d/rc (Permission denied) this looks like the files in that vserver already have a context tag (xid) which is unequal to the xid of your server, hence permission denied. solutions: change the files in that vserver to the xid of the vserver, or change them back to the 'host' context (which can be done by touching them from the hosts, for example) I have kernel 2.4.25 with vs1.26 / quota 0.13 patch some things where added/fixed in vs1.27 - qh0.14 (probably not related to your issues, though) The kernel was compiled with: Virtual Root device support (UID32/GID32) Persistent Context ID for files hope you are with ext2 or ext3, otherwise this isn't the best choice ... Quota support here is my mserver6 start up script. In the mserver6.conf, I use the context 6000 (for all mserver : [n]000 context for mserver[n]) #!/bin/sh case $1 in pre-start) rm -f /vservers/mserver6/dev/hdv1 vrsetup /dev/vroot/0 /dev/hda4 again, if you ahve more than one vserver, it might not be such a good idea to put the vrsetup here, as a shutdown of vserver N will 'delete' the vroot config, and each 'second' startup will fail at setting up the 'same' vroot device rule: one vroot device for each 'real' partition cp -fa /dev/vroot/0 /vservers/mserver6/dev/hdv1 /usr/src/cq-tools-0.06/cqhadd -v -x 5000 /dev/vroot/0 /usr/src/cq-tools-0.06/cqdlim -x 5000 -S 0,0,`du -skx /vservers/mserver6 |awk '{print $1}'`,4000,10 -v /dev/vroot/0 ;; post-start) ;; pre-stop) ;; post-stop) /usr/src/cq-tools-0.06/cqhrem -x 5000 /dev/vroot/0 vrsetup -d /dev/vroot/0 /dev/hda4 ;; *) echo $0 pre-start echo $0 pre-stop echo $0 post-start echo $0 post-stop ;; esac thanks for your answers, HTH, Herbert best regards, Jesse ___ Vserver mailing list [EMAIL PROTECTED] http://list.linux-vserver.org/mailman/listinfo/vserver ___ Vserver mailing list [EMAIL PROTECTED] http://list.linux-vserver.org/mailman/listinfo/vserver ___ Vserver mailing list [EMAIL PROTECTED] http://list.linux-vserver.org/mailman/listinfo/vserver
[Vserver] per context disk quota problem
Hello, I have a problem with per context disk quota I setup 5 vservers, and everything work very well. But, for the 6th and above: impossible to start them. I have the following error : Can't execute /etc/rc.d/rc (Permission denied) I have kernel 2.4.25 with vs1.26 / quota 0.13 patch The kernel was compiled with: Virtual Root device support (UID32/GID32) Persistent Context ID for files Quota support here is my mserver6 start up script. In the mserver6.conf, I use the context 6000 (for all mserver : [n]000 context for mserver[n]) #!/bin/sh case $1 in pre-start) rm -f /vservers/mserver6/dev/hdv1 vrsetup /dev/vroot/0 /dev/hda4 cp -fa /dev/vroot/0 /vservers/mserver6/dev/hdv1 /usr/src/cq-tools-0.06/cqhadd -v -x 5000 /dev/vroot/0 /usr/src/cq-tools-0.06/cqdlim -x 5000 -S 0,0,`du -skx /vservers/mserver6 |awk '{print $1}'`,4000,10 -v /dev/vroot/0 ;; post-start) ;; pre-stop) ;; post-stop) /usr/src/cq-tools-0.06/cqhrem -x 5000 /dev/vroot/0 vrsetup -d /dev/vroot/0 /dev/hda4 ;; *) echo $0 pre-start echo $0 pre-stop echo $0 post-start echo $0 post-stop ;; esac thanks for your answers, best regards, Jesse ___ Vserver mailing list [EMAIL PROTECTED] http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] LVM + Secure Quota
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 [EMAIL PROTECTED] To: Jean-Christophe Petit [EMAIL PROTECTED]; Fritz Kron [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] 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 [EMAIL PROTECTED] 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
[Vserver] LVM + Secure Quota
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 addressquotaon: using //aquota.user on /dev/hdv1 [/]: No such device or address 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/shcase $1 inpre-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 PetitSyspark inc.
Re: [Vserver] LVM + Secure Quota
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 ? 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. ... Fritz On Tue, 17 Feb 2004 12:56:16 -0500 Jean-Christophe Petit [EMAIL PROTECTED] 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 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 [EMAIL PROTECTED] http://list.linux-vserver.org/mailman/listinfo/vserver ___ Vserver mailing list [EMAIL PROTECTED] http://list.linux-vserver.org/mailman/listinfo/vserver