[00:00] so a 24/24 would mean i can only make 256 contexts? [00:00] 255 not including the root one [00:00] nope, 65536 contexts ... [00:01] including host(0) and admin(1) [00:01] hrm [00:01] both bytes (one from uid, one from gid) form the xid ... [00:01] k [00:02] and since every user also has a group.. but how does that work if a uid is in more than 1 group? [00:02] all groups must be of the same xid? [00:02] nope, you don't care ... [00:02] caligula (~junior@adsli217.cofs.net) joined #vserver. [00:02] look at it this way: [00:02] hi caligula! [00:03] Action: Tamama looks towards caligula :D [00:03] Tamama: you need to store an uid, gid and xid per file ... [00:03] the uid/gid are user and group number ... the xid is the context ... [00:04] most available filesystems have supported 16bit uid/gid for a long time ... [00:04] now they changed to 32bit for uid and gid ... [00:04] but do you use uid > 65536 yet? [00:04] so all routines using GID/UID are rewritten to use only the bottom 24 bits? [00:04] 'all' as i have no clue where it all boils down to :) [00:05] yes, but actually those are only two routines ... [00:05] heh [00:05] the one retrieving the uid/gid from an inode ... and the one storing it there ;) [00:05] ok nice and centralised.. :) [00:06] yup, the problem is, if you mount an xid tagged filesystem, without that setting, you get funny uid/gid pairs ;) [00:06] (at least if you use 32bit uid/gid) [00:06] so if i do fstat() in a program, the st_uid and st_gid are actually retreived using get/put gid/uid [00:07] no, they are from the in memory inode representation ... [00:07] which includes the xid? or... [00:07] which contains an xid field, correct ... [00:08] hello, world [00:08] hey cool, your program is working? [00:08] caligula: what programming language? ;) [00:09] hm then the gid/uid would not be reported correctly then right? as it would include the xid... not that i care much about that as long as it works heh [00:09] /bin/bash [00:10] Tamama: yup, that is what I meant with 'funny' ... [00:10] you cant set the gid/uid of files as a user.. right? [00:10] user/vroot [00:11] well, you can set it, but not the xid ... [00:12] well.. how does an inode care that the xid part is changed along with it? extra code to check for that? [00:12] (note: this is not an attack ;) i just like to know how things work heh) [00:13] nope, it just can't happen ... because you can only modify the in memory uid/gid ... the xid can only be changed via chctx (which should be renamed to chxid) and all three values are 'merged' into the on disk representation ... [00:13] ok [00:13] this is the reason for having a choice there, it only changes the way they are merged ... [00:14] so if i make a uid larger than 24 bits, it will just wrap in the end [00:14] and those three formats where agreed upon, with alexey, who does the RH branch of vserver (FreeVPS) [00:15] ok, explains it :) [00:15] yup, if will wrap at 24 bits ... [00:15] s/if/it/ [00:15] i dont see me use more than 65536 though heh [00:16] hm i could read the security context from fstat() then [00:16] hehe [00:16] too good to not try :) *makes small program to test* [00:17] try *G* [00:24] hm [00:24] without the chctx patch.. it should just be 32 bits? [00:25] it's 16/32 bit in any way, just you can not access/read/change the upper 8 bits ;) [00:27] root@powerhouse:~# ./test [00:27] UID = 0 (0) [00:27] GID = 0 (0) [00:27] XID = 0 (0) [00:27] same from vserver as from root [00:27] i'll run that program again when i have that chctx patch applied :D [00:27] okay, so what? [00:28] it will give the same results with that patch, you can't read the xid with fstat ... [00:28] bertl: what partition would you advice when i ask the datacenter to reinstall the system and make new partition tables [00:28] if the data center can do that, they probably can do it simpler ... [00:28] Bertl: it is still nice to verify it myself.. as assumption is the mother of all fuckups :D [00:29] Tamama: go ahead, I welcome _any_ testing ... [00:29] tanjix: best layout would be something like that: [00:30] /dev/hd0/part1 : start= 63, size= 240912, Id=fd [00:30] /dev/hd0/part2 : start= 240975, size= 771120, Id=83 [00:30] /dev/hd0/part3 : start= 1012095, size= 1028160, Id=82 [00:30] /dev/hd0/part4 : start= 2040255, size=154256130, Id= 5 [00:30] /dev/hd0/part5 : start= 2040318, size=40949622, Id=fd [00:30] Bertl: oh i'll be testing a bit more than this ;) count on it hehe [00:30] /dev/hd0/part6 : start= 42990003, size=61448562, Id=fd [00:31] tanjix: which means: [00:31] a small boot partition (you ahve that) [00:31] a root partition (about 200MB) [00:31] or a little more, make it 300MB (for rescue boot) [00:31] a swap partition ... [00:32] and at least two lvm partitions ... one for the system, the other for the vservers ... [00:32] hm i have 1GB root, 2GB /usr, 2GB /var 8GB /swap 142GB /vservers :) [00:32] the system partition, will be split into /usr, /var and /usr/src ... (/tmp is also an option) [00:33] hm i could also let them to upgrade a 2nd hd would that be an option ? [00:33] the vserver partition for each vserver ... [00:33] sure ... [00:33] hm interresting [00:33] i was in a vserver [00:33] but it would be sufficient, if they could 'shrink' the current root partition about 4GB ... [00:33] i crashed a program [00:34] my console went *bork* [00:34] i typed exit, left that context.. and my console was still b0rked [00:34] could happen ... try 'reset' [00:34] hm but those changes were made in a different context [00:34] this is the terminal emulation which gets confused ... [00:35] has nothing to do with vserver or the remote login ... [00:35] k [00:35] still fishy ;) [00:36] jsut try : echo -e '\e[32mGREEN\n' [00:36] still, pkgtool doesnt work [00:36] i tried stracing it but well.. heh.. guess i need to redirect stderr :D [00:38] ioctl(3, SNDCTL_TMR_TIMEBASE, 0xbffff8d0) = -1 ENOTTY (Inappropriate ioctl for device) [00:38] guess that would do it [00:39] open("/dev/null", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = -1 ENOTDIR (Not a directory) [00:39] hmm, what did you say is this tool for? [00:39] adding and removing system packages on slackware [00:39] i'm trying to clean the vserver up [00:39] and this requires to change the timing base of the sound device? [00:39] beats me [00:40] I would say, crapware ;) [00:40] maybe it adds beeps who knows lol [00:40] i dont even have a speaker or soundcard heh [00:40] I'm sure you can work around this ... [00:40] it doesnt seem to 'crash' on that [00:41] what does it do? [00:41] without strace ... [00:41] but it does so much its hard to see where it doenst work... [00:41] it still runs.. it just doesnt see the packages [00:41] what do you mean by 'see'? [00:41] it only sees the packages that were installed locally [00:41] locally means? [00:41] it inventarises the packages that are installed on the system [00:42] i installed 1 package in the vserver.. it sees that one [00:42] bertl: i have the option to implment a 80gb hd [00:42] probably you have to 'add' the packages via that tool ... or rebuild the database somehow ... [00:43] tanjix: that would work, you could use that for the vserver partitions ... [00:43] when we mount that to /vservers then it should be no problem ? [00:43] right ;) [00:43] do they make backups of that disk too? :) [00:44] do they make backups at all? ;) [00:44] QEMU 0.5.1 is out. [00:44] jeah! yeah! [00:45] sweet found it [00:45] its in /var/log/packages [00:45] Action: Tamama copies the dir [00:45] bertl: another question whgen i reboot a vserver that does not work ? [00:45] what doe 'whgen' mean in this particular case? [00:46] when [00:46] [root@tanjix root]# reboot [00:46] Broadcast message from root (pts/1) (Wed Dec 24 17:47:06 2003): [00:46] The system is going down for reboot NOW! [00:46] init: /dev/initctl: No such file or directory [00:46] nice.. [00:46] or can't vservers be rebooted [00:46] ahh, you have to use reboot -f, no init running there ... [00:46] i can pkgtool again :D [00:47] tanjix: and you ahve to configure the userspace helper ... to make it work ;) [00:47] eh what ? :) [00:48] if you do 'reboot -f' now, you'll get a message in the syslog, that this server requested a reboot ... [00:48] and that a program called /sbin/rebootwossname isn't there ... [00:49] Action: Tamama cleans out the vserver packages and copies it as a template [00:49] :D [00:49] http://list.linux-vserver.org/archive/vserver/msg04924.html [00:50] (this is anexplanation of the reboot helper) [00:51] you probably can use the userspace helper from paul, with some modifications ... [00:51] lol [00:51] that only stripped off 6MB [00:52] means building a new kernel again ? [00:52] nope, it's all there, only the userspace part is missing ... [00:52] paul urged me to add this feature, but he didn't care enough to adapt the userspace helper ... [00:53] basically you can write it yourself ... any bash scripting experiences yet? [00:54] not really [00:54] you can also use the rebootmgr from the vserver package, which does it in a different way ... [00:55] you ahve to replace the reboot/halt commands by a special binary, which communicates with the rebootmgr (daemon started in the host context) [00:55] is there a doc on how to use it [00:55] IIRC, there is a manpage or a howto ... [00:56] also Jacques pages should contain some walk through ... [00:58] hm [00:58] clean vserver with compiler tools.. 260MB [00:58] could be worse.. [00:59] yup, 180MB on mandrake ... [00:59] well i have _all_ compiler tools :D [00:59] java, and pascal? wow! [01:00] you would be surpriced who needs em heh [01:00] I guess I would be ... ;) [01:00] also i needed a few libs for image processing.. so its not really clean, but as bare as i can .. bare it :D [01:02] hm.. i seem to have killed vi... [01:02] doh [01:03] hmmm [01:06] and i dont seem to be able to change users in my vserver [01:06] heh [01:07] DOH! [01:07] i think i just screwed myself over [01:08] apperantly ssh now goes to vserver instead of root [01:08] lol [01:08] sounds good ;) [01:08] lets hope the kernel compile ends soon so i have a console again :) [01:08] and can fix that lol [01:08] now you can try to escape ;) [01:08] i dnot need to escape.. i need my vi lol [01:12] i didnt even know it came from elvis heh [01:16] hm this is freaky [01:16] ah its not :D [01:33] nooooooooooooooooooooooooooooooooo [01:33] kernel and modules compiled... [01:33] i left linux video on... and since i had removed all things it depended on... [01:33] modules_install failed [01:34] Action: Tamama rebuilds kernel/modules.. sigh [01:34] well, not a big deal ... just modify/build again, it's quite fast ... [01:34] not on a p2-350 [01:34] heh [01:34] (unless you do a make clean) [01:34] hey, I'm working on a k6-350 ... [01:35] somehow i always clean... [01:35] well, then let's hope that you didn't select version info on all symbols ;) [01:35] hm? [01:36] i probably did.. heh [01:36] because if so, your symbols will not load, when the kernel isn't the same (from the same build) [01:37] and rightfully so :) [02:05] tanjix (ViRu_@pD904A070.dip.t-dialin.net) left irc: Ping timeout: 485 seconds [02:29] tanjix (ViRu_@c-180-204-223.n.dial.de.ignite.net) joined #vserver. [02:30] re [02:30] what does [X] Share disk space do when checked or unchecked (when setting up a new vserver )? [02:36] on an RPM based system, it uses vunify to 'share' the static (binary) files ... [02:36] this is done via hardlinks, protected by immutable flags ... [02:37] usually this allows to have a 'tempalte' server (200MB) and 'clones' taking up about 20-50MB of disk space ... [02:37] doesn't work if you put the vservers on different partitions ... [02:37] s/different/separate/ [02:38] hm wouldnt it be possible to just make a /vservers/all-stuff-that-can-be-shared.. and hardlink that? [02:39] sure, just the immutable flag is needed to protect the shared files ... [02:39] and this doesn't work across partitions either ... [02:39] hm.. this is rather odd.. [02:40] have a 142GB partition... of which 134GB is available.. and all that is in there is a vserver which 'du' tells me is 260MB [02:41] 142GB is shown in size? [02:41] in 'df' [02:42] hmm, and what is surprising about that? [02:42] that i lost a few GB somewhere :) [02:43] no you didn't lose them, they are just not available ;) [02:43] pretty much the same result [02:43] heh [02:43] try tune2fs -m 0 /dev/your/partition [02:43] (if you use ext2/ext3) [02:44] what does that do? [02:44] it sets the 'reserved for root' space to 0% [02:44] reserved blocks percent [02:44] hm [02:44] why does it need that? [02:44] what? [02:44] i mean, reserved blocks :) [02:45] well, if there is some evil user, and he tries to DoS your box from inside ... [02:45] then root is happy to have some space left to work ;) [02:45] hm how can i see how much is reserved then? [02:46] dumpe2fs for ext2/3 [02:47] Bringing up loopback interface: arping: socket: Operation not permitted [02:47] Error, some other host already uses address 127.0.0.1. [02:47] [FAILED] [02:47] when i edited /etc/resolv.conf on a newly created vserver [02:47] looks like a normal server startup script on a vserver ... [02:47] (and typed service network restart) [02:48] you don't have a network to restart, so your scripts fail ... [02:48] i wonder why i even have ext3 and not just ext2 [02:48] how do i then apply my settings [02:48] (nameserver entries) [02:49] for resolv.conf nothing is required, this is reread on every lookup ... [02:49] ping: icmp open socket: Operation not permitted [02:49] on another vserver it works :) [02:49] 'ping' requires raw network access, which is a capability ... [02:50] so vservers can't ping ? [02:50] if you give that capability (CAP_NET_RAW IIRC) it will work ... [02:50] ah ok i've red something [02:50] but this is weakening the security ... [02:50] read [02:50] allowing CAP_NET_RAW regardless of the fact that it's a vserver, will allow to generate arbitrary packets ... [02:51] heh that tune just recovered the lost GB's again [02:51] sweeet.. its the /vservers anyway [02:51] Tamama: usually 5-10% are 'reserved' for root [02:51] whoah [02:51] Action: Tamama tunes the other partitions ;) [02:52] don't do that for /, /var and /tmp ;) [02:52] i was more thinking on /usr :D [02:53] it's safe for that, but root can use the space anyway, that's the whole idea ... [02:54] hm i dont even have a .tmp [02:54] /tmp [02:55] hmm, it's on / ? [02:55] i guess so... [02:55] oh well doesnt matter.. it's not like /tmp will be used for anything [02:55] since each vserver has it's own /tmp [02:55] ahh, I love it ... this allows to hard link suid binaries, and local DoS ... [02:56] you can even have your own root shell ... ;) [02:56] the root server wont run any 'outside' services [02:56] like ssh ... ans such ;) [02:56] console :) [02:57] nah [02:57] but the thing will only be accessable from certain ip's [02:58] bertl: i still haven't figured out how to bring vservers to reboot :) [02:58] did i miss anything ? [02:58] what did you try for now? [02:59] i read the manual for the rebootmgr and did like somw howtos said [02:59] some [02:59] okay, and it doesn't work as expected? [03:00] not really [03:00] what happened? [03:00] nothing [03:00] the vserver does not reboot [03:00] Action: Tamama reboots with new patched kernel with added quota stuff.. *twiddles thumbs* [03:01] you replaced the reboot with vreboot, inside the vserver? [03:01] yes [03:01] connect /dev/reboot (No such file or directory) [03:02] is what i get [03:02] lol after the tune2fs and a reboot ext3 thinkgs it needs to fix things :) [03:02] tanjix: well /dev/reboot is created by the reboot manager on startup ... or somewhere on the vserver start, IIRC ... [03:04] hmm [03:06] but it seems as it does not [03:06] did you start the rebootmgr service? [03:06] caligula (~junior@adsli217.cofs.net) left #vserver (Client exiting). [03:08] it is running, yes [03:09] rebootmgr , right ? [03:09] do you have a /dev/reboot on the host? [03:10] hm now it worked... was my stupid error :) [03:10] the processes "rebootmgr" have to keep running for each vserver [03:11] I guess so, that's why we replaced it by the userspace helper ... [03:11] hm but it did not really reboot? uptime says up 10minutes ? [03:11] or is that ok [03:12] depends on the patch version, you are with vs1.22 stable, right? [03:12] yes [03:12] this doesn't include the fake uptime, as I got no feedback at all, only a dubious error report ;) [03:13] but it is in 1.1.5, 1.1.6, and again in 1.3.0 ... (devel releases) [03:13] 7h10e7h10e ok so it's simply an error on the ourput [03:13] output [03:13] hm.. how can i unmount my swap? heh [03:13] swapoff [03:13] too easy :( [03:15] tanjix: what you see is the host uptime ... [03:15] swapoff -a works better :) [03:16] i'm just writing all the stuff i use regularly in a textfile :D [03:17] or things i dont want to forget heh [03:17] bertl: no reboot was done then ? [03:17] hm adding a partition shuffled my partitions around.. [03:17] I don't know, check with vserver-stat ... [03:18] Tamama: hmm, depends on the tool you use ... [03:18] cfdisk [03:18] well, sfdisk would not do that ;) [03:18] i reduced my swap and added a /tmp :P [03:19] *hopes it reboots* [03:19] lol [03:19] i proably forgot to make a filesystem on it... [03:19] vserver-stat says uptime 12mins [03:19] for that host [03:19] okay, and your 'reboot' isn't that long ago, right? [03:19] i reboot it again and look vserver-stat again to see :L) [03:20] there should also be some log (from rebootmgr) maybe there are some hints ... [03:20] ah shite.. [03:20] /dev/sda4 mounted 24 times without check... forcing check.. [03:20] i thought ext3 didnt have that crap heh [03:20] well, you can disable it ... [03:21] not that I would advise to do so ;) [03:22] oh well [03:22] its only 142GB.. how long could it take.. right [03:23] 49158 16 185MB 20kB m00.57 m00.11 1m09.63 tanjix tanjix [03:23] this is what vserver-stat says [03:23] 20:24:27 up 4:17, 1 user, load average: 0.00, 0.01, 0.04 [03:24] and that "uptime" on the host [03:24] 1m09 uptime, means 1 minute .. so I guess it rebooted ... [03:24] yes but uptime says it would be 4mins up [03:25] hm, Bertl:... i guess you cant let that check run in the background...? :) :) :) [03:25] no, actually it says 4 hours and 17 mins ... [03:25] which should be the same as the hosts uptime ... [03:25] yes :) [03:25] Tamama: sure, as long as you don't mount the partition [03:26] then what good is it? lol [03:26] tanjix: as I said, 1.1.5/1.1.6 and 1.3.0 does contain the uptime fake, there you'll get the right? (wrong faked) results ... [03:26] you can apply that patch to vs 1.22 too (I guess) ... [03:32] hm ok.. [03:32] so i have that /tmp partition now.. it just cant mount it.. since it doesnt have a file system.. lol [03:33] how can i change that? :) [03:33] mke2fs for example? [03:34] hm.. and how can i get the arguments i need from the already existing partitions? [03:35] well, actually for an ext2 fs you dont need any arguments ;) [03:35] mke2fs /dev/your/device will do nicely .. [03:37] ok that worked pretty nicely indeed [03:37] heh [03:37] just snipped off 1 GB from /swap and made it /tmp :) [03:37] ok, more 'advanced' question.. [03:38] how can i change a file system to use 1KB nodes instead of 4KB? :) [03:38] lol [03:38] I hope you did a mkswap on the swap partition too ... [03:38] otherwise it will nicely overlap your new tmp partition ;) [03:38] it was 8GB anyway and unused :D [03:39] mkswap was pretty fast... [03:39] guess it didnt check the disk for a change [03:39] (in setup making a swap takes ages hehe) [03:40] probably because you check the 'verify blocks' ... [03:41] bertl: can a "halt" also be poerformed on vservers ? [03:41] performed [03:42] hm [03:42] tanjix: yup, with rebootmgr, you have to use the vhalt tool ... [03:42] why would you want to reboot/halt from a vserver? [03:43] tamama: i dont want to - just was interested in if it is possible :) [03:43] some folks want to do that ... why not? [03:44] it's like hammering all windows of a house shut.. and leave the door unlocked [03:45] hmm, why do you think so? [03:45] i guess it depends on what your goal is :) [03:46] and what goal would that be, that a vserver 'reboot' would do any harm? [03:46] 100% uptime :) [03:47] hm.. it only reboots the vserver? [03:47] yup, thats the idea ;) [03:47] heh i thought it linked to the root [03:47] that would be bad, I agree ;) [03:48] what name would that q0 patch make of the kernel.. the same as normal? [03:49] if so, how can i check it is in it? lol [03:50] q0 patch? [03:50] http://www.13thfloor.at/vserver/s_addons/quota/patch-2.4.23-vs1.20-q0.12.diff [03:50] doesn't modify the kernel name ... [03:51] doesn't modify the kernel behaviour at all ;) [03:51] ok, so... how can i use it? :D [03:51] hmm, if you aply it, you use it ;) [03:51] s/aply/apply/ [03:52] nuh huh [03:52] care to elaborate? :D [03:53] what are the cqtools for then? [03:53] well, you now can configure the spaceand quota hashes for a context ... [03:53] that is what the cq tools do ... [03:54] let me see, there is a short introduction somehwere ... [03:54] hm.. well since the documentation on it is so.. verbose :) yeah that would be great lol [03:54] http://vserver.13thfloor.at/Linux2.6/index.php?page=Per+Context+Quota [03:55] http://vserver.13thfloor.at/Linux2.6/index.php?page=Per+Context+Disk+Limits [03:55] basically the tool usage is the same for that version ... [03:55] hm i knew i was missing a link.. lol [03:55] guess i was in the 'download and be happy' section :) [03:56] IIRC, the only thing changed is that now it's 1k blocks instead of fs blocks ... [03:56] I got tired of explaining why the fs block size isn't 1k ;) [03:56] hm so many patches in the first link [03:56] i just applied one.. [03:56] heh [03:56] they are in the split package for the 2.4.23-vs1.20-q0.12 ... [03:57] so.. waht is the 'diff' for then? [03:57] people complained that they had to apply so many patches ;) [03:57] ok so the diff is all i need then? :) [03:57] yup [03:57] great :D [03:58] ah see [03:58] i knew i had to mount it with some silly ctx tag somethwere :D [04:00] ahh, that should be tagxid now, but tagctx works too .. compatibility ... [04:01] hm.. [04:01] /dev/sda4 /vservers ext3 tagxidd,usrquota,grpquota 1 2 [04:01] looks of for a /etc/fstab entry? [04:01] -d on xidd [04:01] heh [04:02] s/of/ok [04:03] tagxid no second d ... [04:04] EXT3-fs: Unrecognized mount option tagxid [04:04] it didnt mount [04:04] it likes tagctx better [04:05] hmm, okay, so be it ... [04:05] hm that vroot device [04:05] maybe that's something I wanted to do in the stable addon, but decided to leave for the devel ... [04:05] (the tagxid) [04:06] hm do i need a vroot device for this? [04:06] more like.. 'need' [04:07] well, the vroot device is what makes the quota stuff secure ... [04:07] right now i dont, but i have a /dev/hdv1 in the vservers [04:07] ok.. so i need the vroot patch as well then? [04:07] you don't need it, if you a) don't need security, b) do not do quota, only disk limits ... [04:07] (the vroot device) [04:07] the patch is in vs1.22 included ... [04:08] hm [04:08] ok.. [04:08] so you already have it, maybe not enabled in the kernel config though ... [04:08] goodie.. [04:09] where is it? [04:09] in block devices ... [04:11] Virtual Root device support? [04:11] it's on.. [04:11] well, then you have it, using devfs? [04:13] to delete a vserver i can simply delete /vservers/ or is there an extra program for that ? [04:13] never used devfs :D [04:13] tanjix: you should make sure that the vserver is stopped ... [04:13] tanjix: i guess rm -r works.. if the server is stopped [04:14] and you will have to create the device nodes by hand then ;) [04:15] hrm [04:16] setup one vroot device for all vservers on a shared partition [04:16] commands to activate quota for context N = 100 [04:16] (as described in the INSTALL and on my pages) and use the folowing [04:16] great [04:16] i dont have a INSTALL since i got the .diff's heh [04:17] life is hard, get the vroot tools ;) [04:18] i guess that is an option... :P [04:18] http://www.13thfloor.at/vserver/s_addons/vroot/vr-tools-0.14.tar.bz2 [04:18] you need them to setup the vroot anyway ... [04:20] hm.. [04:20] so each vserver gets its own vroot device? [04:21] nope, each partition (with vservers on it) gets it's own vroot ... [04:21] k [04:21] so i only need 1 mknod [04:21] if you have one partition, yes ;) [04:22] soo.. cp -va /dev/vroot/device /vservers//dev/hdv1 is needed? it already has an hdv1 [04:23] well, actually thats a fake (a file), and yes, you ahve to replace it ... [04:24] how does it know how to link my /vservers partition with the vroot device then? [04:24] or it just does? heh [04:24] because you use the vrsetup tool to tell the kernel which device to use ... [04:25] hm no dont see that in the Quota install page [04:25] http://www.13thfloor.at/old/VServer/HowTo_LVMQS.shtml (very old) [04:26] I'll update all that, when I find some time ... [04:27] vrsetup /dev/vroot/0 /dev/vg/part1 [04:27] that one? [04:28] hm need to make a mke3fs -j too [04:28] huh? [04:28] mke2fs -j [04:28] i guess it goes from 'nothing' not even the partition.. [04:28] to convert to journaled? [04:29] step 2 in the old manual [04:29] well, you already have a fileystem, don't you? [04:29] so all i really need is the vrsetup [04:29] you won't remove your filesystem, just take the parts you need ... [04:30] your partition is? [04:30] and the device node(s) you created are? [04:31] do i need to run vrserver only once.. or each time i boot? [04:31] erm [04:31] vroot [04:31] GAH [04:31] vrsetupo ;) [04:31] its late here hehe [04:31] vrsetup on the host reboot ... [04:31] so i should put that in /etc/rc.d/rc.local [04:31] or something [04:31] and you command is: vrsetup /dev/vroot/0 /dev/your/partition [04:32] yes i was that far :) [04:32] good ;) [04:32] vrsetup /dev/vroot/0 /dev/sda4 [04:33] hm lets see what a reboot does [04:33] (hope i'm not at 24 already!;) [04:38] right.. [04:38] so that seems to do something :) [04:39] repquota works [04:39] although doesnt show much interresting stuff :) [04:40] the question is does quotacheck work ... [04:40] its running [04:40] outside or inside a vserver? [04:40] outside [04:40] quotacheck /vservers :) [04:40] well, there it's no problem ... [04:40] heh [04:42] well i didnt make the link yet.. [04:42] cp -fa /dev/vroot/0 /vservers/LV01/dev/hdv1 [04:45] root@powerhouse:/# quotacheck -maug [04:45] quotacheck: error while loading shared libraries: libext2fs.so.2: cannot open shared object file: No such file or directory [04:45] guess not [04:45] as i said, the vserver is pretty stripped lol [04:49] quotacheck: Cannot remount filesystem mounted on / read-only so counted values might not be right. [04:49] try quotacheck -maug [04:49] quotacheck: error (2133571364) while opening /dev/hdv1 [04:49] ls -la /dev/hdv1 [04:50] brw-r--r-- 1 root root 4, 0 Dec 25 02:25 /dev/hdv1 [04:50] and the vrsetup was done on the host? [04:50] yes [04:50] sure? [04:51] root@powerhouse:/# vrsetup /dev/vroot/0 /dev/sda4 [04:51] ioctl: VROOT_SET_DEV: Device or resource busy [04:51] pretty sure it is already initialised [04:51] okay ... [04:51] what quotatools? [04:51] what version ... [04:51] vr-tools-0.14.tar.bz2 [04:51] quota, not vr ... [04:52] try quotacheck -v [04:52] 0.06 [04:52] or maybe quotacheck -V [04:52] 3.08 [04:52] okay, they should work ... [04:53] what is in /etc/mtab (on the vserver)? [04:53] /dev/hdv1 / ext3 rw,usrquota,grpquota 0 0 [04:53] change the ext3 to ufs ... [04:53] hm.. [04:53] (but that isn't the reason) [04:53] heh [04:53] but change it anyway ... [04:54] otherwise we ran into that later ;) [04:54] ufs why? [04:54] s/ran/run/ [04:54] because Honza uses special ext2/3 access to the block device if ext2/ext3 is specified ... [04:54] and that would violate the security (or better it won't be possible with vroot) [04:55] if you specify ufs, the tools don't have a special optimized access method, and just do the normal quota stuff ;) [04:56] okay, you added the quota hash for that context/vserver? [04:56] ok, but then if someone manages to change the mtab file, it still wont work? [04:56] if somebody changes the file, quota will stop working ;) [04:56] or the quota check will stop working ;) [04:57] quota will still be working without it ... [04:57] root@powerhouse:/usr/src/cq-tools-0.06# ./cqhadd -v -x 100 /dev/vroot/0 [04:57] adding quota hash for /dev/vroot/0 ... succeeded. [04:57] okay, your server uses context 100, right? [04:58] if not, do the same for your context id ;) [04:58] heh [04:58] it uses 1000 [04:58] if i add a new hash, it removes the old? [04:59] okay, so ./cqhadd -v -x 1000 /dev/vroot/0 [04:59] nope, you can add hashes for each context ... [04:59] and remove them with cqhrem ;) [04:59] and i can give each vserver another context :) righto [05:00] you should, otherwise they all share the same context/taskspace/quota/etc ... [05:00] ./cqhrem -x 100 /dev/vroot/0 [05:00] right? [05:00] right ... [05:00] -x isnt documented.. i just stole that from cqhadd :D [05:00] the -h option is really.. short :) [05:01] write a better one, and send me a patch ;) [05:01] hehe [05:01] i might [05:01] but for now i'm adding all the stuff i encounter in a handy.txt :D [05:02] obviously I didn't write the cqhrem/add help yet ;) [05:03] funny ... [05:04] then when i get it all working i will prolly make it more generic and ahnd it over k? :) [05:04] i set it up like a linear FAQ :) [05:05] ahh, I see, that is actually a bug() ;) [05:05] it wasnt me! it was the one armed bandit! [05:05] ok.. quotacheck ran now in the vserver [05:05] ... [05:06] could you try the folowing: in mquota.c (in the cq-tools dir) [05:06] there [05:07] line 176, replace (identity == IDENT_CQDLIM) by (identity >= IDENT_CQHADD) [05:07] ah i see now [05:07] lol [05:09] hmm, not right ... this give the -S option too .. I'll have to fix that ... [05:09] ah [05:09] oh well [05:10] so for every vserver i make, i have to cp -fa /dev/vroot/0 /vservers/LV01/dev/hdv1 ? [05:11] where LV01 is the new name of course [05:12] and it even say V0.05 .. oh my god I must have been very tired ... [05:12] details :) [05:12] yup, and userspace ... ;) [05:17] maybe you could write a short README for the cq-tools? [05:17] I could then include that into the package ... [05:25] well i havent exactly figured them out yet.. i'll go fix up this 'how to get vservers up with ctxquota' first ok? :) [05:25] no problem, take your time ... [05:26] then i'll just send it to you and you can augment it :D [05:26] if needed [05:27] no problem, post it on the ml or put it in the wiki, send me an email that it's there (in the wiki case) and I'll check it .. [05:27] but now, i need to go to bed.. its 3:30am, i need to get up at 8am to go to a baby drowning,,, erm bapthising ;) [05:28] good luck then *G* [05:28] yeah i doubt i'll be awake on time.. ut they are used to it by now :D [05:28] nite [05:28] have a nice one ... [05:28] Nick change: Tamama -> TamSnore [05:32] bertl ? [05:33] yup? [05:33] are you the one who coded the vserver program ? [05:34] which one? [05:34] good question:) everything because i found a bug [05:35] well, I didn't code the 'original' vserver stuff, but the current version is basically a rewrite ... [05:35] what bug have you found? [05:36] it are two bugs now :) the logigng funbctions from vservers [05:36] i started proftpd on a vserver [05:37] and it did not work so i looked at the proftpd.log [05:37] first it always tells me that it could not bind to 0.0.0.0 port 21 (ftp already running). it already runs - on the host system [05:37] okay, that is no bug ... [05:37] and what is the second? [05:38] yes but it grabs information from the host system and not from the vserver ? [05:38] why do you think so? [05:38] when i cnahnged the ftp port in the vserver it showed correct things in the log [05:38] changed [05:38] yup, this was expected too .. I'll explain ... [05:39] the network isn't virtualized yet, (I mentioned that yesterday ;) so the processes ahve to 'arange' somehow ... [05:39] this is done via the chbind tool ... which is used for the vservers ... [05:40] if you want to have services on the host system, you have to use some wrappers (the v_sshd, v_ftpd, v_*) to ensure that the host services do not claim 'all' ip addresses ... only those reserved for the host ... [05:41] this is the result of (linux) handling binds to 0.0.0.0 as bind all ... [05:41] i think i have to study more docs :) [05:42] usually you won't have any services on the host, except for sshd ... [05:42] and for sshd, you would either limit the daemon to one ip (used for the host) or make use of the v_sshd wrapper ... [05:43] the vserver won't interfere with each other, so ftp on two servers is perfectly normal and will work as expected ... [05:45] say, do you speak german ? [05:45] yes, I do ... [05:45] warum sagt das keiner :) [05:46] because the channel language is english ;) [05:46] hm ok but explaining thing in english is little bit strange :) [05:46] things [05:46] you have icq or s.th. ? [07:03] I'm off to bed ... have a nice one, everyone ... [07:04] Nick change: Bertl -> Bertl_zZ [09:52] Doener` (~doener@p5082D4A2.dip.t-dialin.net) joined #vserver. [10:00] Doener (~doener@pD95880E5.dip.t-dialin.net) left irc: Ping timeout: 499 seconds [13:30] xsbyme (xsbyme@D5E0EDEB.kabel.telenet.be) left irc: [16:21] Nick change: Bertl_zZ -> Bertl [16:21] morning everyone! [16:33] LL0rd (~dr@pD9507EC8.dip0.t-ipconnect.de) joined #vserver. [16:33] hi LL0rd! [16:34] Hi, merry X-Max @ll [16:34] a merry vserver xmas ... ;) [16:34] I'll be back in a few ... [16:34] Nick change: Bertl -> Bertl_oO [16:34] k ;) [16:52] fbc (~fbc@ppp-105-136.26-151.libero.it) left irc: Quit: I'm hungry [16:54] Nick change: Bertl_oO -> Bertl [16:54] okay, I'm back ... [16:58] k [16:59] i tried to compile the kernel with the patches, but there is an error during the compilation [16:59] please refresh my memory, what patches? ;) [17:01] http://vserver.13thfloor.at/Experimental/patch-2.4.23-ck1-vs1.3.0.2.diff [17:01] ahh, okay, the ck1 test ... what error? [17:01] and patch-2.4.23-ck1 [17:02] that are the last lines during make bzImage [17:02] make: *** [init/main.o] Error 1 [17:02] a few lines above? [17:03] sorry, the lines started with a "/" , so irc interpret it as a command [17:03] .. /root/software/vserver/linux-2.4.23/include/linux/file.h: In function `fcheck': [17:03] .. /root/software/vserver/linux-2.4.23/include/linux/file.h:49: warning: comparison between signed and unsigned [17:03] .. /root/software/vserver/linux-2.4.23/include/linux/file.h: In function `__put_unused_fd': [17:03] .. /root/software/vserver/linux-2.4.23/include/linux/file.h:61: warning: comparison between signed and unsigned [17:03] .. make: *** [init/main.o] Error 1 [17:04] hmm, okay, but that are only warnings ... there must be an error somewhere ... [17:04] could you send me your .config ? [17:04] of course [17:05] dcc? [17:05] yup, or mail ... [17:08] hmm, you are sure that is a ck1 .config? [17:09] yes [17:09] just because it doesn't know lowlat & friends ... [17:10] ok, mom... i will take a fresh kernel and just apply the patches and compile ist [17:11] hmm, it doesn't even know vroot ... [17:19] ok, i tool the original kernel applied the two patches and want to compile it [17:19] the same error [17:19] after applying the patches, you do? [17:19] (show me the commands) [17:19] make menuconfig [17:19] then exit [17:19] make dep clean bzImage [17:22] just to verify that, try again with the patches from http://vserver.13thfloor.at/Stuff/split-2.4.23-ck1/ instead of the ck1 patch, then apply the /patch-2.4.23-ck1-vs1.3.0.2.diff ... [17:23] In the meantime, I'll try to reproduce here ... [17:25] okay, it seems that I can reproduce ... [17:25] (it ;) [17:26] whats the matter? [17:26] don't know .. patch seems broken somehow.. I'm checking ... [17:53] okay, try to disable SMP in the config ... [17:53] mompl, brb [17:53] Nick change: LL0rd -> LL0rd|akf [17:58] TamSnore (~Tamama@a62-216-20-152.adsl.cistron.nl) left irc: Quit: one little two little three little piggies OINK! OINK! OINK! [20:03] Nick change: Bertl -> Bertl_oO [20:29] Nick change: Bertl_oO -> Bertl [21:11] Nick change: LL0rd|akf -> LL0rd [21:11] re [21:11] -mm is Marcelo? [21:11] I mean kernel branch. [21:11] Hi everyone btw. [21:11] hi ;) [21:12] hi [21:12] -mm is morton ... [21:13] Hm. [21:13] Why double 'm' when? [21:13] :) [21:13] Action: virtuoso . o O ( MegaMorton ) [21:13] serving (~serving@213.186.190.157) left irc: Ping timeout: 485 seconds [21:14] LL0rd: probably mega morton ;) [21:15] virtuoso: probably mega morton ;) [21:15] LL0rd: sorry, was looking into the ck1 stuff, guess I know now ... [21:15] k [21:16] had to change the include system, cause of recursive dependacies ... [21:17] you now get the scheduler as bonus ;) [21:17] ;) [21:17] http://vserver.13thfloor.at/Experimental/patch-2.4.23-ck1-vs1.3.0.6.diff [21:19] only that patch on a clean kernel? [21:19] on a 'clean' ck1 .... [21:19] ... after http://www.plumlocosoft.com/kernel/patches/2.4/2.4.23/2.4.23-ck1/patch-2.4.23-ck1.bz2 ? [21:20] should do, or the split version I mentioned ... [21:20] IIRC, the ck1 patch doesn't include the small fix (08_*) [21:22] ok, patched and compiling [21:23] funny part is, the problem didn't show up with my test config ... [21:23] but it did with the defalt config ... and required a structural change ;) [21:24] now it looks good.... [21:25] what system are you testing/compiling on? [21:25] amd 1GHz, 1 GB RAM [21:29] highmem enabled? [21:31] no, should I? anyway I have to rebuild the kernel. now i have the default configuration but I need raid support [21:31] hehe [21:42] i hope the fallback option works, if i forgot to compile something [21:50] LL0rd: hmm just found a minor bug, fix is here ... http://vserver.13thfloor.at/Experimental/fix-2.4.23-vs1.3.0.6.diff [21:51] apply it over the patched kernel, and redo 'make bzImage' ... [21:55] Linux_Lord (~dr@pD9507EC1.dip0.t-ipconnect.de) joined #vserver. [22:03] LL0rd (~dr@pD9507EC8.dip0.t-ipconnect.de) left irc: Ping timeout: 485 seconds [22:08] Nick change: Linux_Lord -> LL0rd [22:09] noel (~noel@pD9E099F2.dip.t-dialin.net) joined #vserver. [22:10] hi noel! [22:10] merry xmas together.:) [22:10] hello bertl. [22:10] merry xmas noel [22:11] Bertl, i think i have to make a short trip to the data center ;(( [22:11] why's that? [22:12] i think there's a problem with the raid system [22:12] the server seems to be offline [22:12] hmm, unrelated to the kernel? or maybe a wrong option? [22:12] don't know [22:12] what about a serial line? [22:13] should be part of the constitution, every server has to have a serial console ;) [22:30] Tamama (~Tamama@a62-216-20-152.adsl.cistron.nl) joined #vserver. [22:30] hi Tamama! [22:30] holas Bertl [22:35] hi Tamama [22:36] how's christmas so far for you all? :) [22:36] great! [22:38] what do you think, is anybody interested in devel releases vs1.3.x for kernels <= 2.4.22 ? [22:38] doubt it [22:40] not me anyway :) [22:43] Bertl: because < 2.4.23 has security problem I would not support it.;) [22:44] hmm, thought so, just needed another opinion, thanks! [23:05] serving (~serving@213.186.191.213) joined #vserver. [23:34] hrm [23:34] i just found an old .s3m player i made a while back.. heh [23:34] amazing that it kinda works ;) [23:35] Nick change: Doener` -> doener_aw [23:43] hmm, looking for the memory limit stuff but I'm to blind.:( http://vserver.13thfloor.at/Experimental/Obsolete/patch-ml0.01-ml0.02.diff is it included somewhere (because of obsolete)? http://www.linux-vserver.org/index.php?page=Release+FAQ (#3) tells me it should be linked at the Documentation page. but I dont find it. [23:44] http://vserver.13thfloor.at/Experimental/Outdated/patch-2.4.22-ctx17a-ml0.04.diff.bz2 [23:44] http://vserver.13thfloor.at/Experimental/Outdated/patch-2.4.22-c17e-rmap15k-ml0.06.diff.bz2 [23:44] but they are outdated, as the directory name suggests ;) [23:46] thx. does Outdated mean: nobody is really interested in it and because of missing time its not developed anymore? or will it included sometime? [23:48] well, there are some patches, like this one, I delay until there actually _is_ a request, and somebody willing to test ... ;) [00:00] --- Fri Dec 26 2003