1377129905 J * SteeleNivenson ~SteeleNiv@pool-96-224-241-140.nycmny.fios.verizon.net 1377131597 M * Bertl off to bed now ... have a good one everyone! 1377131612 N * Bertl Bertl_zZ 1377133010 Q * Dragon Remote host closed the connection 1377133475 Q * SteeleNivenson Quit: Leaving 1377134353 J * Dragon ~Kabaka@28IAABIG6.tor-irc.dnsbl.oftc.net 1377140131 Q * nkukard Ping timeout: 480 seconds 1377150651 J * nkukard ~nkukard@41-133-202-42.dsl.mweb.co.za 1377151313 J * Ghislain ~aqueos@adsl1.aqueos.com 1377154045 Q * hijacker Quit: Leaving 1377155450 N * l0kit Guest4144 1377155455 J * l0kit ~1oxT@0001b54e.user.oftc.net 1377155854 Q * Guest4144 Ping timeout: 480 seconds 1377162414 N * Bertl_zZ Bertl 1377162421 M * Bertl morning folks! 1377162622 J * hijacker ~hijacker@213.91.163.5 1377166683 M * Bertl off for now ... bbl 1377166690 N * Bertl Bertl_oO 1377168506 J * click_ click@ice.vcon.no 1377168513 Q * click Read error: Connection reset by peer 1377169167 Q * ircuser-1 Ping timeout: 480 seconds 1377171495 Q * Hunger Remote host closed the connection 1377171702 J * ircuser-1 ~ircuser-1@35.222-62-69.ftth.swbr.surewest.net 1377171760 J * Hunger hunger@proactivesec.com 1377174455 Q * nkukard Remote host closed the connection 1377174488 J * nkukard ~nkukard@41-133-202-42.dsl.mweb.co.za 1377178627 M * Bertl_oO off for a nap ... bbl 1377178633 N * Bertl_oO Bertl_zZ 1377179702 J * nlm ~pablo@190.246.130.191 1377186120 J * bonbons ~bonbons@2001:a18:20e:8101:286e:ccd7:eb31:e343 1377187042 N * Bertl_zZ Bertl_oO 1377188430 M * nlm hi Bertl_oO: is there any plans of porting vserver to 3.10.x? 1377189225 M * Bertl_oO yep, work in progress ... feel free to speed it up by donating 1377189757 Q * wmp Ping timeout: 480 seconds 1377189846 J * wmp ~wmp@2001:41d0:1:8616::1 1377190592 M * nlm alright. I'll talk with my boss 1377190594 M * nlm thanks! 1377191103 M * Bertl_oO np 1377191404 Q * hparker Quit: I've fallen off the 'net and can't get up 1377191416 J * hparker ~hparker@2001:470:1f0f:32c:beae:c5ff:fe01:b600 1377191742 J * druschka ~druschka@82.192.23.118 1377192557 Q * hparker Quit: I've fallen off the 'net and can't get up 1377193782 N * Bertl_oO Bertl 1377193787 M * Bertl back now .. 1377194166 Q * mikeez Read error: Connection reset by peer 1377194583 Q * druschka Quit: druschka 1377194942 J * druschka ~druschka@82.192.23.118 1377195040 J * hparker ~hparker@0000fb24.user.oftc.net 1377200202 J * mikeez ~mike@ks367289.kimsufi.com 1377200203 Q * druschka Quit: druschka 1377200224 M * mikeez hello 1377200255 M * mikeez Bertl: what might be a problem with guest/host configuration with cron error Error with setrlimit: Operation not permitted 1377200284 J * druschka ~druschka@82.192.23.118 1377200290 Q * druschka 1377200742 J * druschka ~druschka@82.192.23.118 1377200841 M * Bertl mikeez: most likely your init(scripts) or pam wants to raise or set resource limits for cron (or cron itself wants to get a certain limit raised) 1377200855 M * Bertl (which by default is not allowed inside a guest) 1377200868 M * mikeez how i can sort this out? 1377200889 M * Bertl first, check out who is raising the limit and what limit is affected 1377200919 M * Bertl then remove that or set the proper upper bound in the guest config (if you really want the guest to have higher limits) 1377200966 M * mikeez where in guest config? 1377200993 M * Bertl in the rlimit/ulimit config for the guest 1377201014 M * Bertl http://www.nongnu.org/util-vserver/doc/conf/configuration.html 1377201202 M * mikeez by default there should not be any limits correct? 1377201225 M * Bertl by default, the host limits are propagated into the guest 1377201306 M * mikeez so why i getting this error? 1377201328 M * Bertl because something in the guest tries to go beyond the host limit 1377201504 M * mikeez i found entry /usr/local/directadmin/dataskq 1377201508 M * mikeez if i hash it 1377201513 M * mikeez there is no error 1377201524 M * Bertl so, what's the entry? 1377201559 M * mikeez * * * * * root /usr/local/directadmin/dataskq 1377201588 M * Bertl ah, so that's a crontab entry, yes? 1377201601 M * mikeez yes 1377201627 M * Bertl running every minute, very nice 1377201664 M * Bertl well, personally I'd get rid of that anyway, but I presume it does some adjustments to the limits inside the binary/script 1377201735 M * mikeez m'kay 1377201738 M * mikeez thanks 1377201739 M * Bertl so, to figure out what it tries to adjust, you could run strace -fF on it 1377201754 M * Bertl and look for the EPERM 1377201794 Q * druschka Quit: druschka 1377201854 J * hijacker_ ~hijacker@cable-84-43-134-121.mnet.bg 1377202104 M * mikeez -o does not working 1377202132 M * Bertl hmm? 1377202184 M * mikeez i cannot log output to log file ;p 1377202196 M * Bertl show me your command line 1377202256 M * mikeez i was writting -o after binary 1377202262 M * mikeez i put it before and i got it ;) 1377202320 M * mikeez but there is no anything with EPERM 1377202339 M * Bertl upload the log somewhere 1377202345 M * Bertl (pastebin) 1377202484 M * daniel_hozac and make sure you strace a process run from cron, not one from your shell 1377202490 M * daniel_hozac otherwise it will not have the same settings. 1377202617 M * mikeez ahh 1377202642 M * mikeez i did it like i shpuld not 1377202706 M * mikeez how i can do it then? nothing comes into my head 1377202733 M * Bertl just prepend the strace in the crontab 1377202748 M * Bertl (and wait a minute) 1377202796 M * mikeez ahh like /usr/sbin/strace -fF -o out /usr/local/directadmin/dataskq 1377202801 M * mikeez is this ok? 1377202820 M * Bertl I'd use an absolute path for out, but yes 1377202828 M * mikeez ok will do 1377202829 M * daniel_hozac are you sure strace is in sbin? 1377202845 M * mikeez sorry danie you are right 1377202847 M * mikeez bin 1377203130 Q * hparker Quit: I've fallen off the 'net and can't get up 1377203143 J * hparker ~hparker@0000fb24.user.oftc.net 1377203356 M * mikeez i am not sure but i must doing something wrong 1377203371 M * mikeez cause there is no error and/or output log 1377203373 M * mikeez * * * * * root /usr/sbin/strace -fF -o out /root/test22 /usr/local/directadmin/dataskq 1377203376 M * mikeez ah 1377203377 M * mikeez omg 1377203379 M * mikeez sorry 1377203385 M * Bertl :) 1377203903 M * mikeez http://pastebin.com/mnWxpfAg 1377203954 Q * hijacker_ Quit: Leaving 1377204025 M * Bertl so it is trying to set/raise the file count 1377204086 M * Bertl (after it has been reduced by cron) 1377204158 Q * bonbons Quit: Leaving 1377204202 M * mikeez honestly Bertl this not telling me a lot 1377204208 M * mikeez :) 1377204225 M * Bertl well, think of it like this: 1377204239 M * Bertl host says, limit is A 1377204254 M * Bertl cron in guest says, limit is B (lower than A) 1377204270 M * Bertl directadmin says, but I want a limit of C, higher than B 1377204275 M * Bertl (which gets denied) 1377204279 M * mikeez ahh 1377204286 M * mikeez this is well clear now 1377204399 M * mikeez how i can deal with it then? 1377204410 M * Bertl well, you have several options: 1377204421 M * Bertl 1) remove the limit raise from directadmin 1377204439 M * Bertl 2) raise the limit cron applies above C 1377204449 M * Bertl (or at least to C) 1377204698 M * Bertl 3) you can adjust or modify the kernel to allow the change 1377204938 J * druschka ~druschka@82.192.23.118 1377204946 M * mikeez where i can raise cron limit in guest? 1377204965 M * Bertl wherever cron is started from I'd say 1377205128 M * mikeez like /etc/defaul/cron ? 1377205403 M * mikeez I have no clue how i could raise the limit, i think the best way would bemodify the kernel if you would like to say what do i have to modify ;p 1377205548 M * Bertl so because you 'have no clue' you want to empower the guest to overcome any limits to allow for a strange tool to raise a limit to a really huge value? 1377205636 M * Bertl I'd first start with asking the directadmin folks why they want that limit raised in the first place 1377205687 M * mikeez they told me it is my vps fault 1377205730 M * mikeez well i do not need it at all i will move it to run it once a day then cause you are right atm 1377205780 M * Bertl so they don't know why they rase the limit? 1377205785 M * Bertl *raise even 1377205924 M * Bertl for cron, I presume it is started from your init, which probably reduces the limits to a sane value 1377205953 M * mikeez what they said was like this is not working in your vps but on thousend it does 1377206018 M * Bertl that's a good sign of competence and on-topic knowledge :) 1377206070 M * mikeez to be honest i never used it before because it/was useless for me 1377206101 M * mikeez but one from my folks wants to backup his database every day 1377206125 M * Bertl and that is what directadmin does? 1377206157 M * Bertl sounds more like a control panel to me 1377206189 M * mikeez yeah like cpanel and others 1377206221 M * Bertl so for database backup, wouldn't be a simple backup script, run by cron be much more efficient 1377206233 M * Bertl (than starting a panel app every minute!!) 1377206286 M * mikeez well hard to say but me and my folks are using it for a few websites and small email server ;p 1377206311 M * mikeez Bertl: i was thinking about one case 1377206365 M * mikeez cause i can sync vserver from host to host 1377206391 M * Bertl via rsync? 1377206393 M * mikeez is there any way to sync only files which are new in guest? 1377206398 M * mikeez yes over rsync 1377206414 M * Bertl well, rsync should only sync those parts which have changed 1377206415 M * mikeez it is working pretty well 1377206426 M * Bertl what options do you use? 1377206430 M * mikeez lemme check 1377206570 M * mikeez vserver box build -m rsync --context 1111 --hostname hostname --interface eth0:ip/24 -- --source root@host:/vdir-home 1377206593 M * mikeez and this has rsynced my old guest from old host to my new host 1377206595 M * Bertl ah, you are building a new guest every time? 1377206599 M * mikeez no 1377206603 M * mikeez that was first time 1377206606 M * mikeez when i moved it 1377206607 M * Bertl okay 1377206625 M * mikeez now is there anyway way that i could rsync only new files? 1377206639 M * mikeez from old guest to new one? 1377206645 M * Bertl when building a new guest or to update the copy? 1377206650 M * mikeez update a copy 1377206677 M * Bertl yes, just use rsync -axHPSD --numeric-ids 1377206697 M * Bertl where is a resource locator for the data dir 1377206725 M * Bertl e.g. new-host> rsync -axHPSD --numeric-ids old-host:/vservers/guest27 /vserver/guest27 1377206743 M * mikeez thats it? :D? 1377206762 M * Bertl yes, that will sync up the guest files 1377206780 M * mikeez this wont break anything if i will sync it online? 1377206791 M * Bertl that depends on the guest processes 1377206803 M * Bertl so I usually suggest to do it like this: 1377206836 M * Bertl stop copy, run rsync, stop original, re-run rsync, start both (or only one) 1377206874 M * mikeez my copy is awlays off i use it incase old box get broken 1377206874 M * Bertl this ensures minimal downtime and a proper state/sync 1377206885 M * mikeez then i switch only failover to new host and guest 1377206917 M * Bertl well, that reduces the steps to: 1377206932 M * Bertl run rsync, stop original, re-run rsync, start original :) 1377206985 M * mikeez what is the point to run rsync online then if i will have to rsync it after stoping it? hum? 1377207053 M * mikeez i could just stop orginal, rsync, start orginal 1377207196 M * Bertl yes, but the point of running it while online is to reduce the downtime 1377207233 M * Bertl first, it will sync files that have changed some time ago, then it will basically pull in all the inodes while it checks the files for changes 1377207239 M * mikeez you are right i did not think about it 1377207257 M * mikeez can you please tell me more about 23:32 < Bertl> that depends on the guest processes 1377207260 M * Bertl this all reduces the downtime, but if downtime is not critical, you can skip the first rsync as well 1377207313 M * Bertl for example if a process keeps a status in the file, the online sync might be wrong 1377207317 M * mikeez you mean what services are running and when i.e in what hours are users loging? 1377207377 M * mikeez so if mysql is running but no one is working on db everthing should be ok? 1377207501 M * mikeez is this what you mean in general? 1377207595 M * Bertl for example, but really depends on the process 1377207611 M * Bertl some have files open and data basically only in memory 1377207627 M * Bertl other write log-style updates, etc 1377207653 M * mikeez but anyway i cannot hurt orginal guest syncing it to copy? 1377207658 M * Bertl so if you want to ensure a consistant state, the only way is to shut the guest down 1377207673 M * Bertl no, worst case is that the copy doesn't work as expected 1377207686 M * mikeez i will try now and let you know 1377207724 M * mikeez i builded vserver 1 week ago usuing rsync and no i am gonna rsync it 1377207889 Q * Ghislain Quit: Leaving. 1377208376 M * mikeez Bertl: if after syncing offline aftere syncing online nothing is rsycned then i could say it has been verified and should be working 1377208379 M * mikeez correct? 1377208417 M * Bertl yes, but I doubt that the second sync will be empty 1377208429 M * Bertl (process shutdown will at least change some log files) 1377208460 M * mikeez yeah 1377208517 M * mikeez Bertl: can you have a qucik look ? http://pastebin.com/A2gJfydv 1377208546 M * mikeez this is after online syncing after offline 1377208568 M * Bertl yeah, looks as expected 1377208608 M * mikeez Bertl: your tool is awesome 1377208628 M * Bertl my tool being Linux-VServer? 1377208675 M * mikeez yes 1377208767 M * Bertl yes, Linux-VServer is quite cool for the fact that it has been around for more than a decade, thanks to all the folks working on it over time 1377210063 Q * druschka Quit: druschka 1377212572 J * Ghislain ~aqueos@adsl1.aqueos.com 1377213120 Q * Ghislain Quit: Leaving. 1377215150 Q * ensc|w Remote host closed the connection 1377215158 J * ensc|w ~ensc@www.sigma-chemnitz.de