/srv/irclogs.ubuntu.com/2010/04/02/#ubuntu-server.txt

lifelessjpds: we can, I think, write a single update process to spit out N sets00:04
uvirtbotNew bug: #409192 in libvirt (main) "could not be installed during automatic synptic update" [High,Invalid] https://launchpad.net/bugs/40919200:07
uvirtbotNew bug: #553676 in samba (main) "nautilus gvfs-smb" [Undecided,New] https://launchpad.net/bugs/55367600:12
=== dendro-afk is now known as dendrobates
yazdI'm having a problem using ssh.  When I simply try to connect to an SSH server, as I've done in the past, I get the error message "Privileged ports can only be forwarded by root." I am not trying to forward.  I tried to run the following: ssh [server]00:23
kirklandmathiaz: ping00:36
mathiazkirkland: o/00:36
kirklandmathiaz: https://bugs.edge.launchpad.net/ubuntu/+source/libvirt/+bug/21924900:36
uvirtbotLaunchpad bug 219249 in libvirt "virsh completion only works at the shell prompt" [Wishlist,Incomplete]00:36
kirklandmathiaz: can you re-test that bug, or close it?00:36
mathiazkirkland: hm - that would require access to a lucid libvirt00:38
mathiazkirkland: which I don't have00:38
kirklandmathiaz: not on your mini10v?00:38
mathiazkirkland: nope00:38
kirklandmathiaz: is the bug just that virsh can't expand ~ ?00:40
kirklandmathiaz: i just tested here on Lucid, works fine00:40
mathiazkirkland: I think what I meant was that when I type the file completion works00:42
mathiazkirkland: but when I hit enter it fails00:42
kirklandmathiaz: virsh # define ~/foo2.xml00:43
kirklanderror: Failed to open file '~/foo2.xml': No such file or directory00:43
kirklandmathiaz: like that?00:43
mathiazkirkland: yes00:43
mathiazkirkland: with you typing only ~/fo and then completed it to ~/foo2.xml00:44
uvirtbotNew bug: #239107 in libvirt "kvm - guest freebsd 7 - reboot problems" [Wishlist,Fix released] https://launchpad.net/bugs/23910700:56
uvirtbotNew bug: #235386 in libvirt (main) "Permissions of files in /etc/libvirt/qemu are too restrictive" [Wishlist,Invalid] https://launchpad.net/bugs/23538601:02
uvirtbotNew bug: #368084 in libvirt (main) "internal error creation of non-raw images is not supported without qemu-img" [Medium,Fix released] https://launchpad.net/bugs/36808401:16
uvirtbotNew bug: #273748 in libvirt (main) "postinst fails with addgroup: The group `libvirtd' already exists as a system group." [High,Confirmed] https://launchpad.net/bugs/27374801:27
uvirtbotNew bug: #351183 in libvirt (main) "libvirtd crashed with SIGSEGV in virStateActive()" [Low,Invalid] https://launchpad.net/bugs/35118302:22
kirklandmathiaz: hey02:28
mathiazkirkland: o/02:28
kirklandmathiaz: what release is your kvm host these days?02:28
kirklandmathiaz: still hardy?02:28
mathiazkirkland: yes02:29
kirklandmathiaz: with the kvm/libvirt backport?02:29
kirklandmathiaz: can you still reproduce https://bugs.edge.launchpad.net/ubuntu/+source/libvirt/+bug/193451 ?02:29
uvirtbotLaunchpad bug 193451 in libvirt "poweroff in the guest doesn't stop the kvm process on the host" [Low,Confirmed]02:29
mathiazkirkland: 1:84+dfsg-0ubuntu12.4~hardy1~ppa102:29
mathiazkirkland: 0.6.1-0ubuntu5.1~rc1ppa102:29
mathiazkirkland: let me try that02:30
kirklandmathiaz: cool, thanks02:30
kirklandjdstrand and I have cut libvirt's open bugs from 78 to 41 \o/02:31
mathiazkirkland: seems like it's working correctly now02:31
kirklandmathiaz: would you mind marking that bug fix-released?  or would you like me to?02:32
mathiazkirkland: I'll update the bug02:32
kirklandmathiaz: thanks dude02:37
keeskirkland: have you had good irc sessions with screenbin?  I'm thinking about using screenbin for a session, but realized that logging it might be uncool02:59
* kees ponders how to tie it to the irc channel...02:59
seyacathi ubuntu server03:06
seyacatwhat is the name of package of text mode ubuntu installer? like ubiquity but in text mode03:06
keesseyacat: "debian-installer"03:07
seyacatkees: ty, isee that03:08
seyacatkees: how can i use debian-installer?03:09
_Techie_!deb03:13
ubottudeb is the Debian package format, also used by Ubuntu. To install .deb files, simply double-click (in Ubuntu) or click (in Kubuntu) on them to start the GDebi utility.03:13
_Techie_!dpkg03:13
ubottudpkg is the Debian package maintenance system, which together with apt forms the basic Ubuntu package management toolkit.03:13
_Techie_someone help me, my minds gone blank03:14
_Techie_syntax from installing from a .deb please03:14
_Techie_for*03:14
=== erichammond1 is now known as erichammond
qman___Techie_, dpkg -i package.deb03:36
qman__see also: dpkg --help; man dpkg03:36
14WAAGF8Zcan anybody help me how to exclude a folder from the rsync command. i have a fodlder called "Search" inside the folder called "charts.windows" that i do not want rsync to copy, the rest of the folders inside the "charts"folder i do want them to be copy: this is what i have: rsync -v -r -d --delete /home/rgotten/charts.windows /home/rgotten/Prueba/Myplasticare/Charts >> /home/rgotten/logs/respaldo-`date +%d%m%Y`.log03:42
erichammond14WAAGF8Z: Try adding an option like: --exclude charts.windows/Search03:47
kobrienahoy, just looking at lucid. it seems lighttpd can't bind to port 80. is anyone looking at this?03:49
14WAAGF8Zerichammond: in waht part of the command i should add that03:50
erichammond14WAAGF8Z: Anywhere before the source directory03:50
ddecator_i have my server setup with my ssh key so i don't need to login when i access it. however, i used my .pub key...since that key is on lp, should i generate a new key to use for accessing my server? or does it still need the private key on my system anyway?04:36
ddecator_oh, when i logged on it asked me to unlock my private key. so i guess that answers my question =)04:38
=== JanC_ is now known as JanC
RoAkSoAxkirkland, what about lp?06:07
RoAkSoAxgetting the release from lp?06:07
billybigriggeri just fired up a test vm i had in vbox, i zipped up the /var/www folder and want to transfer it over my network...last time i ran this vm i remember networking was functioning correctly06:07
billybigriggereth0 will not go up, i've checked my interfaces they are good, the e1000 network module is loaded...06:07
billybigriggersudo ifup eth0 returns and error about no device06:07
billybigriggerSIOSCSIFADDR: No such device06:08
billybigriggereth0: ERROR while getting interfaces flags: No such device06:08
billybigriggerany suggestions?06:08
aetaricsounds like the virtual adapter isn't connected06:08
billybigrigger06:09
billybigriggerNetwork06:09
billybigriggerAdapter 1:06:09
billybigriggerIntel PRO/1000 MT Desktop (Bridged adapter, eth0)06:09
billybigriggerit's connected06:09
aetaricno clue then06:09
billybigriggerhmmm06:09
billybigriggerwhere's j he's usually good at bailing me out :)06:10
SJrXis there a command like time that will give me an idea how much iowait time the process had, I have a problem where the first time I execute commands on a VPS it takes like 300 ms to start executing.06:15
jeffesquivelbillybigrigger, are you sure that the interface exists in the guest? (i.e. does it shows on ifconfig -a ) ?06:18
billybigriggerit shows up as eth306:25
billybigriggersudo ifup eth306:25
billybigriggerignoring unkown interface eth3=eth306:25
billybigriggerjeffesquivel, ?06:25
billybigriggerany ideas06:25
jeffesquivelbillybigrigger, probably your mac address changed, which udev interpreted as you inserting a new inteface, thus giving it a new persistent name (that would almost always have been correct in a physical machine)06:28
billybigriggeryeah, that makes sense06:29
billybigriggeri generated a new mac address in vbox06:29
jeffesquivelbillybigrigger, if that's it... then you can edit /etc/udev/rules.d/70-persistent-net.rules06:29
jeffesquivelbillybigrigger, all you need to do is delete the old entries06:29
jeffesquiveland then replace eth3 for eth006:29
jeffesquivelbillybigrigger, other solution would be to edit /etc/network/interfaces06:30
billybigriggeralready edited my interfaces06:30
jeffesquivelbillybigrigger, and replace eth0 for eth3 and use ifup eth3 just like before06:30
jeffesquivelbillybigrigger, ok, nevermind then06:30
jeffesquivel;)06:30
billybigriggerjeffesquivel, thanks06:30
jeffesquivelbillybigrigger, no problem06:30
billybigriggernow to finish transferring /var/www and exporting my mysql tables...fun stuff06:31
gwynddyllydanyone knows if there is a way to recover an encrypted partition left over from a previous install06:33
gwynddyllydI accidentally borked my system yesterday and upgraded to 10.04 today. My old ~ is still in another partition, but after mounting it I can't access its contents - they were encrypted.06:35
jeffesquivelgwynddyllyd, do you have the key?06:35
gwynddyllydWhile this is a good sign for security, it's bad for my local confs...06:35
gwynddyllydjeffesquivel: I know the pass, but if by key you're referring to a file that serves as key then I'm out of luck.06:35
gwynddyllydAlso, does this means that I should keep backups of .Private at all times?06:36
jeffesquivelgwynddyllyd, you should always keep backups of your important stuff :-)06:37
jeffesquivelgwynddyllyd, but what you really need to have is the info on that file that serves as key06:37
gwynddyllydjeffesquivel: all my documents were archived somewhere as well, it's just the conf files that I have lost06:37
jeffesquivelgwynddyllyd, IIRC, just after installation you're warned about it... but not everything is lost...06:38
jeffesquivelgwynddyllyd, I think kirkland is THE guy to ask about encrypted home though...06:38
gwynddyllydjeffesquivel: any way to get the contents back, or am I out of luck?06:39
gwynddyllyd,seen kirkland06:39
gwynddyllyd(do we have a bot here?)06:39
gwynddyllydjeffesquivel: but even then, thanks a lot.06:40
jeffesquivelgwynddyllyd, ok, lets see if I can help while we wait for his reply06:40
jeffesquivelright now you have a .Private directory on your home with all your encrypted stuff, right?06:41
gwynddyllydalso, lucid beta comes with great defaults. My console is setup for 1280x1024 and I have done zilch for it to happen06:41
gwynddyllydon a folder at /media/local/olduser06:41
gwynddyllydmy current ~ is a different partition06:41
gwynddyllydentirely different from the one I borked06:42
jeffesquivelgwynddyllyd, ok... do you happen to also have your old ~/.ecryptfs ?06:42
gwynddyllydlet me check06:42
maxagazi have some troubles with cups, when trying to modify a printer, I get this error message in the logs: E [02/Apr/2010:13:30:30 +0800] Unable to change permissions of "/etc/cups" - Permission denied06:43
maxagazpermissions are already set to 755, and user:group is root:lp06:43
gwynddyllydyes I do06:43
maxagazcan someone help ?06:43
jeffesquivelgwynddyllyd, do you have a wrapped-passphrase in there?06:43
jeffesquivelgwynddyllyd, if you do... try this: ecryptfs-unwrap-passphrase wrapped-passphrase06:44
gwynddyllydjeffesquivel: yes, there is06:44
jeffesquivelgwynddyllyd, it will ask you for your password (the one you have) and then the output should be a lot of letters and numbers06:44
gwynddyllydjeffesquivel: done.06:45
gwynddyllydjeffesquivel: numbers and letters at the prompt06:46
jeffesquivelgwynddyllyd, now, you need to use mount -t ecryptfs to mount your encrypted directory unto a decrypted one using the key you just got...06:46
jeffesquivelgwynddyllyd, give me a sec to see if I can find a tutorial for that06:46
gwynddyllydjeffesquivel: i'm reading ecryptfs' man page. Seems ok to follow.06:48
jeffesquivelgwynddyllyd, ok... then my work's done :-)06:48
gwynddyllydjeffesquivel: I really appreciate your help. I was about to wipe the partition and buy a new hd to hold my confs on separate media.06:50
gwynddyllyd(which for the latter i might still do)06:50
jeffesquivelgwynddyllyd, you're welcome06:50
gwynddyllydjeffesquivel: to be completely fair I see no point in encrypting configs. As soon as I manage to copy the old files somewhere else I'll wipe the partition.06:55
jeffesquivelgwynddyllyd, I guess it depends on the contents of those configs06:56
jeffesquivelgwynddyllyd, for example, pgadmin3 stores passwords for your database in cleartext somewhere in your home06:56
gwynddyllydjeffesquivel: editors, compilers, git, etc06:57
jeffesquivelgwynddyllyd, or you could have a recently used file named "something deeply personal you don't want to share with others" and that name is in a config file...06:57
jeffesquivelgwynddyllyd, but I see your point :-)06:57
gwynddyllydlol06:57
gwynddyllydyes that could happen, but that's not the case.06:57
jeffesquivelgwynddyllyd, I know... I think I just have my $HOME encrypted to mess with big brother... ha hahaha06:58
gwynddyllydjeffesquivel: hahhahahhahah07:01
* gwynddyllyd thinks about GoDaddy's recent brawl with China07:01
gwynddyllydjeffesquivel: Do you happen to know what kind of cipher Ubuntu uses by default? It's asking me right now.07:02
jeffesquivelgwynddyllyd, hmm... that should be on my fstab07:03
jeffesquivelno, it's not there... but mount does know07:04
jeffesquivelecryptfs_cipher=aes,ecryptfs_key_bytes=1607:04
gwynddyllydjeffesquivel: aes did the trick - it was the default07:05
jeffesquivelgwynddyllyd, ok, great07:05
gwynddyllydbut apparently .Private on that partition is a symbolic link to /home/.ecryptfs/olduser/.Private07:06
gwynddyllydnevermind, it's on media too, I just have to relink it.07:07
jeffesquivelgwynddyllyd, I was just reading about that! http://dustinkirkland.wordpress.com/2009/08/06/moving-your-encrypted-home-meta-data-out-of-varlibecryptfs/07:09
gwynddyllydjeffesquivel: Copying that link will be hard. I'm on the console and I haven't used screen to spawn this emacs instance... :(07:12
gwynddyllydlet me grab a pen... lol07:13
billybigriggerewwwww07:13
billybigriggerhehe07:13
jeffesquivelgwynddyllyd, ha haha... it may help... but basically says what you already know... that some stuff is really located at /home/.ecryptfs/$USER07:14
gwynddyllydjeffesquivel: yes, I have relinked it and managed to mount it... but the contents are not there!07:15
gwynddyllydsomething is amiss07:15
* gwynddyllyd scratches head07:15
jeffesquivelgwynddyllyd, did you check the encrypted files are where they should be?07:17
jeffesquiveljeffesquivel, you see nothing on your mounted directory or you see everything but with scrambled names?07:18
gwynddyllydjeffesquivel: I saw the files at /media/local/.ecryptfs/olduser/.Private07:18
gwynddyllydand they're scrambled07:18
gwynddyllydbut now I've linked them there07:18
gwynddyllydoh, wait07:18
gwynddyllydmaybe I should try mounting at the .ecryptfs directory07:19
gwynddyllydinstead of at the 'old location'07:19
gwynddyllydsince it's not my home anymore07:19
gwynddyllydno point in linking anything07:19
gwynddyllydjeffesquivel: no luck. Everything's scrambled after mounting with my passphrase. That's sad, and a proof that security works. Not even the owner can access his files if he's careless.07:23
jeffesquivelgwynddyllyd, wait07:23
jeffesquivelgwynddyllyd, if you try to open one of the files, is it readable?07:24
jeffesquivelgwynddyllyd, IIRC, the system does two things: 1) encrypt your data 2) change the name of everything so that you can't get info out of the names07:24
jeffesquivelgwynddyllyd, it does that with two different keys07:24
jeffesquivelbut I think you can get the key for the filename stuff from the key you already have...07:25
gwynddyllydjeffesquivel: let me try. The names are definitely hard to read and type.07:26
gwynddyllydjeffesquivel: I complains about not finding a key with description XXXXXXXXXXXX07:29
jeffesquivelgwynddyllyd, hmm... you could try doing ecryptfs-add-passphrase before trying to mount07:29
gwynddyllyds/I/It07:29
gwynddyllydit asks me to when I'm mounting interactively.07:30
gwynddyllydI figured I shouldn't since I don't want to get some global file dirty.07:30
gwynddyllyd(it probably holds info on the current ~ too)07:31
jeffesquivelgwynddyllyd, hmm... what you need is your fnek sig... now I remember07:31
jeffesquivelgwynddyllyd, that is stored on ~/.ecryptfs/Private.sig07:32
jeffesquivelI think that when you are mounting the encrypted dir it asks you if you want to use fnek (file name encryption key) or something like that07:33
gwynddyllydlet me try to remount it07:33
jeffesquivelgwynddyllyd, you have to say yes and use one of the sigs on that file I told you07:33
* jeffesquivel should write about of this process on his blog for when he needs it again in the future07:34
jeffesquivelwait, scratch that...07:34
* jeffesquivel should start a blog07:34
jeffesquivel;)07:34
gwynddyllydjeffesquivel: mounting with the fnek for the passphrase did nothing apparently. It complains that it couldn't find a matching auth token for the damn thing, though it gives me the matching pass as error07:39
gwynddyllydBut I'm assuming it will be impossible to retrieve it.07:39
gwynddyllydjeffesquivel: If I manage to make this work I'll write a script to automate the backup of all keys and restore them.07:40
jeffesquivelgwynddyllyd, I know it is possible... I just can't remember exactly how... he he.07:40
gwynddyllydThis is such a headache... lol07:40
gwynddyllydAnd the worst part is that I'm doing just for the challenge now, since I could've reconfigured everything I needed already.07:41
jeffesquivelgwynddyllyd, yep... that's exactly why I want to see it done... ha haha...07:41
gwynddyllydhahhahahha07:41
gwynddyllydyou sadistic bastard07:42
gwynddyllyd:p07:42
jeffesquivelok, wait... I07:44
jeffesquivel'll try this... but that means logging out07:44
jeffesquivelbrb07:44
jeffesquivelgwynddyllyd, got it!07:54
gwynddyllydjeffesquivel: how??07:55
jeffesquivelgwynddyllyd, this is what I did (everything as root):07:55
jeffesquivelgwynddyllyd, ecryptfs-add-passphrase --fnek07:55
jeffesquivelgwynddyllyd, that should insert two sigs into your kernel or something like that... both of them are the ones that you can find on ~/.ecryptfs/Private.sig07:56
jeffesquivelgwynddyllyd, did that work?07:57
gwynddyllydSort of. They come out differently from what's in Private.sig07:57
gwynddyllydI wonder if I have the passphrase wrong07:58
jeffesquivelgwynddyllyd, hmm...07:58
jeffesquivelgwynddyllyd, well, just in case...07:59
jeffesquivelgwynddyllyd, after that, I did mount -t ecryptfs /encrypted/directory /mnt07:59
jeffesquivelit asked me for the passphrase again07:59
gwynddyllydShould I use as input the long one I got from unwrap-passphrase or as plaintext?07:59
gwynddyllydDid it work?08:00
jeffesquivelgwynddyllyd, the long one you got from unwrap-passphrase08:00
jeffesquivelin both cases... for add-passphrase and for mount -t ecryptfs08:00
gwynddyllydjeffesquivel: that might be it then08:00
jeffesquivelyes, it worked for me logged in as another user (and then sudoing a shell) I got to mount this user's home08:02
gwynddyllydThe key matched now!08:03
jeffesquivelgwynddyllyd, great08:03
jeffesquivelgwynddyllyd, now you do mount -t ecryptfs /encrypted/ /mnt08:04
jeffesquivelgive it the long unwrapped passphrase08:04
jeffesquivelafter that, answer aes, 16, y, y08:04
jeffesquivelthen it will ask you for one of the sigs... in my case I had to use the second one on Private.sig08:05
jeffesquiveland that was it08:05
gwynddyllydjeffesquivel: IT WORKS!08:06
jeffesquivelgwynddyllyd, :-)08:06
gwynddyllydThat's one long passphrase to input by the way08:07
gwynddyllydIt's safe to assume that whoever has access to someone else's password still needs a lot of determination to carry it through.08:07
gwynddyllydjeffesquivel: I can't express my gratitude enough. This has been driving me insane.08:08
jeffesquivelgwynddyllyd, you're welcome08:08
gwynddyllydThe 'entire passphrase' nailed it.08:08
gwynddyllydMan, my old ~ was very messy.08:09
jeffesquivelgwynddyllyd, ha haha... that tends to happen08:09
gwynddyllydjeffesquivel: I'm making a tarball of everything right now. No more crazy ecryptfs in my backups.08:10
jeffesquivelgwynddyllyd, ha ha ha08:11
gwynddyllydjust kidding08:12
gwynddyllydWill you write that blog post, then? It would help a lot of people.08:12
jeffesquivelgwynddyllyd, as soon as I get my blog up again, I'll do it ;-)08:12
gwynddyllydIt's almost 5am here. Maybe I should call it a day.08:15
jeffesquivelgwynddyllyd, where's that?08:15
jeffesquivelgwynddyllyd, well... good night (day?) anyways... he he08:17
gwynddyllydjeffesquivel: ipanema, rio de janeiro08:17
jeffesquivelgwynddyllyd, Brasil! cool!08:18
gwynddyllydjeffesquivel: Where you're at?08:18
jeffesquivelgwynddyllyd, San José, Costa Rica08:19
Pirate_Huntermorning, got my hands on a second machine which I wish to turn into a home web server, however, I am wondering should I just cluster both machines together or just use something like mogilefs to distribute the data between them. I just don't want two separate web servers running at the same time even knowing I have also thought of turning the second into a web proxy or where the database will be held. Anyway what do people here08:19
Pirate_Hunter suggest as I am also googling for information?08:19
gwynddyllydjeffesquivel: Never been to Costa Rica! How is it? The stereotype we have here is even sunnier than Rio.08:20
jeffesquivelgwynddyllyd, well... on summer it is...08:21
jeffesquivelgwynddyllyd, but we have rain about ~8 months of the year08:22
gwynddyllydjeffesquivel: We have only summer here, the entire year. I'm originally not from here, so I tend to be pretty pissed at the temperatures.08:23
gwynddyllyd25-35 C all the time08:23
gwynddyllydOn summer it's 30-4508:23
=== simplexi1 is now known as simplexio
jeffesquivelgwynddyllyd, yeah... I don't like hot climate either... but we have really nice beaches not so far away (~4 hours) ;-)08:24
gwynddyllydOh, San José is on the countryside?08:25
jeffesquivelgwynddyllyd, nop... San José is at the center of the country.... it is the capital city08:25
jeffesquivelgwynddyllyd, but CR is really small08:25
jeffesquivelgwynddyllyd, you can get from here (the center) to south the border in about 7 hours08:26
Pirate_Hunterany suggestions on how I can make better use of the second machine?08:26
jeffesquiveland that's too far by our standards (because CR is "taller" than "wider")08:26
maxagazdoes someone know a good wiki on how to install xen on karmic ?08:26
jeffesquivelPirate_Hunter, how about a HA cluster? (and helping the HA team while at it :-)08:28
jeffesquivelmaxagaz, just wondering... any special reason why to prefer Xen than KVM?08:29
Pirate_Hunterjeffesquivel, not a problem once I look into it, if it does what I need...08:29
jeffesquivelPirate_Hunter, what is that you need?08:30
maxagazjeffesquivel, I'm using kvm too, I'd like to try Xen08:30
gwynddyllydjeffesquivel: I might visit one day. I always wanted to go to Vancouver by car.08:30
jeffesquivelgwynddyllyd, wow! that's a long ride!08:30
gwynddyllydAnyway, I'm off to bed. It's really late here.08:30
gwynddyllydjeffesquivel: a jeep and supplies would be enough :)08:31
Pirate_Hunterahhh can you just read the long post I posted, you just have to scroll up a bit08:31
jeffesquivelgwynddyllyd, well... if you get to come, be sure to visit Guanacaste's beaches... :-)08:31
gwynddyllydjeffesquivel: I might, I might...08:31
jeffesquivelmaxagaz, oh, I see... well, got no idea about Xen (besides that it seems to not be supported on Ubuntu anymore), sorry...08:32
maxagazjeffesquivel, not supported anymore? what about ubuntu cloud computing system provided with karmic server ?08:33
maxagazisn't is using xen ?08:33
jeffesquivelmaxagaz, you mean eucalyptus (or Ubuntu Cloud Environment)?08:33
sherrPirate_Hunter: I don't have an opinion really. Do whatever you feel like it. It all depends on usage etc.08:33
maxagazjeffesquivel, yes08:34
jeffesquivelmaxagaz, I'm not completely sure, but I think it is based on Qemu-KVM... other people on this channel may know more about it08:35
sherrmazagaz: the xen forums, xen site and http://bderzhavets.wordpress.com/08:35
simplexioi think kvm is current hot virtualization system, xen isnt sunc with latest kernel releases (and what i have understood, it has some problems)08:35
sherrUbuntu is not so good for Xen really.08:35
sherrXen seems pretty good, and the only real option for systems without h/w VT i.e. a lot of systems.08:36
sherrTo play with Xen, it might be easier to install Debian Lenny and update to the Debian dom0.08:37
Pirate_Huntersherr, I get what you mean, however, I have no clue what I want to do with the second machine, just wish to good use of the second machine instead of having two web servers running independently, well in the end the I'll figure something out08:37
simplexiobut dosent alla latest systems have it08:37
Montjoiehello i have a problem with an ubuntu hardy under selinux, which channel is the best for this ?08:37
sherrsimplexio: Most - but that still leaves MASSIVE numbers of older systems in the world. Anyway - Xen is good on its own merits as well.08:38
simplexioPirate_Hunter: you could try run db on another.. if you want to learn something, then you could try install www+db to both and then try some HA stuff08:38
Montjoieperhaps there are more specific ubu tu channel tanh this one08:38
sherrMontjoie: if you are running ubuntu server, this is the channel ...08:39
Montjoieok08:39
Montjoiei have a strange selinux problem08:39
Montjoiehttp://pastebin.fr/739808:39
Montjoieafter a fresh install08:39
Montjoiepam_console_t is certainly not the good context for a cron script08:39
Montjoieall system correctly labeled08:40
sherrMontjoie: No idea, sorry (no selinux). If no one else can help, post in the forum/security.08:40
Pirate_Huntersimplexio, yeah I been told to make the second hold database, cache etc that way it will balance the load if I ever decide to run some intensive sites, also again the ha cluster will have to read on that08:43
simplexioPirate_Hunter: it depnds what you need or want to try in home servers08:47
simplexioPirate_Hunter: like i currently play with GIs databses and mapnik + rendering maps08:48
Pirate_Huntersimplexio, don't think I'll be doing that even knowing it does sound interesting, recently been suffering from extreme boredom and need to think of soemthing to do. The server is intended for hosting some personal pages, a few projects made by me or other people. I will definitely not be using much resources out of the server but do have others that may require some resources specially when doing group projects. Altogether abou08:53
Pirate_Huntert 5-10 people max working on the server, doing group or individual projects and hosting a few sites, what I require stability, redundancy and well a working server(s)08:53
Pirate_Huntersorry for the long text08:56
maxagazis it possible to mount a kvm image in order to takes files on the system installed on it ?09:06
alvinmaxagaz: Yes, you can do that. You can mount the images with -o loop, but I forgot the rest, but there's good documentation on the subject.09:13
Montjoieso no people here do selinux on ubuntu ?09:29
RoyKMontjoie: I don't think many uses that, no. ubuntu mostly relies on apparmor instead09:35
=== sebsebseb_ is now known as xylos
facetiousproxyinstalling the server now11:59
facetiousproxyany problems known about 8.0412:00
facetiousproxy?12:04
* RoyK doesn't know any12:05
facetiousproxyworking on installing now12:06
facetiousproxyi found it interesting that even if i choose lamp install i have to install apache212:06
RoyKthat is, being two years old, it uses older software than newer distros, so you might be missing something12:08
facetiousproxyi don't mind i just appreciate the stability12:08
RoyKbut again, for most stuff, you don't really need the latest stuff12:09
RoyKhuh? that should be part of lamp12:09
RoyKjust remember to apt-get update && apt-get dist-upgrade when you're done installing12:09
facetiousproxythanks12:09
RoyKubuntu 8.04 is stable12:09
RoyKimho12:09
facetiousproxythat is exactly what i was going to ask12:09
facetiousproxyrunning it on a vpc for de-bugging then will clone onto server12:09
RoyKok12:10
RoyKlocal VM for development is nice12:10
facetiousproxyso far it works alright12:17
facetiousproxyusing sun virtualbox12:17
facetiousproxydecent training platform12:17
facetiousproxyjust putty myway in or just use the screen itself12:17
=== 20QAALGOK is now known as Rafael
RafaelI have the following comand to backup my ubuntu server into a linksys NAS: rsync -v -r -d --delete /home/rgotten/Prueba/Myplasticare /home/rgotten/mnt/ >> /home/rgotten/logs/respaldo-`date +%d%m%Y`.log12:53
Rafael  my problem is that if i try to add -t (timestamp) or -va, i recerive something like: rsync: failed to set times on "/home/rgotten/mnt/Myplasticare/Charts/charts.windows/R/Ruiz/Ruiz Roberto": Operation not permitted (1)12:53
Rafael please help12:53
RoyKRafael: does the filesystem support that?12:56
RoyKoh12:56
RoyKRafael: try to just use rsync -av12:57
RoyKand wtf is -d?12:57
RoyK'transfer dirs without recursing'??12:57
RafaelRoyK  i tryed -va and did not work..you want me to try instead -va?12:59
Rafaelthe fylesystem i believe is ext312:59
RoyKRafael: if -av doesn't work, we'll try to find the error :)13:00
RoyKI use rsync regularly and I haven't seen those problems13:00
Rafaelsorry i am newby what is diference between va and av?13:00
RoyKsame thing13:00
RoyK-av13:01
RoyK-a -v13:01
RoyK-v -a13:01
RoyK-va13:01
RoyKthe order is irrelevant13:01
Rafaelwhen i try it i get permision denied ..i can try it again..what do you wnat me to show you after i do it?13:01
RoyKdo you own the target directory?13:01
RoyKerm13:02
Sorellrun with sudo?13:02
RoyKyou're backing up to a linksys NAS?13:02
RoyKI guess that nas has another filesystem that doesn't support it all13:02
Rafaellet me run it13:03
Rafaelone sec13:03
RafaelRoyK: very interesting, when i run it thur rsync  -n -va --delete /home/rgotten/Prueba/Myplasticare /home/rgotten/mnt/ |tee -a /home/rgotten/logs/respaldo-`date +%d%m%Y`.log i get sent 174209 bytes  received 18825 bytes  8579.29 bytes/sec13:11
Rafaeltotal size is 1611734614  speedup is 8349.49 (DRY RUN)13:11
RafaelYou have mail in /var/mail/rgotten13:11
Rafael but when i get the permition error is if i do a scrip to execute it?13:11
facetiousproxyoh13:11
RoyKRafael: -n won't try to create the file on your NAS13:12
RoyKso no errors will occur13:12
RoyKI guess the problem is the NAS using some ubscure filesystem internally13:14
Rafaelso when i do it this is what i get: ./respaldo-archivos.sh                                  rsync: failed to set times on "/home/rgotten/mnt/Myplasticare": Operation not permitted (1)13:15
Rafaelrsync: failed to set times on "/home/rgotten/mnt/Myplasticare/Charts": Operation not permitted (1)13:15
Rafaelrsync: failed to set times on "/home/rgotten/mnt/Myplasticare/Charts/charts.windows": Operation not permitted (1)13:15
Rafaelbut if i remove the -a..no problem13:15
RoyKhow do you connect to the nas?13:18
RoyKnfs? smb?13:18
RoyKhttp://en.wikipedia.org/wiki/NAS200 says that one only supports CIFS (aka SMB)13:19
RoyKwith CIFS/SMB, timestamps can be an issue13:19
RoyKjust try rsync -rv13:19
RoyKthat will copy the data, but won't care about times or flags13:20
Rafaelrgotten@myplasticare:~$ df -T /home/rgotten/mnt /home/rgotten/Prueba/Myplasticar                                              e/Charts13:20
RafaelFilesystem    Type   1K-blocks      Used Available Use% Mounted on13:20
Rafael         cifs   976267392 150326416 825940976  16% /home/rgotten/mnt13:20
Rafael<Rafael> /dev/md3      ext3   955253868   3914068 912826224   1% /home13:20
RoyKbingo :)13:21
facetiousproxyon a cell phone internet connection the installation of the ubuntu server takes forever when it comes to configuring apt13:21
RoyKso either get a firmware that supports nfs, or use rsync -r13:21
Rafaelremember i am newby..i am pulling information from here and there13:21
Rafaelwhat is -r13:21
RoyKfacetiousproxy: I really wouldn't recommend installing ubuntu with cell phone connectivity13:22
RoyKRafael: man rsync13:22
RafaelRoyK: thanks..ok i guess i have toleave with this for now until i find a way of doin nfs .. question..i was looking at the logs and they are 2 mb..does this make sence?13:49
Rafaelsorry to live with it13:49
RoyKRafael: impossible for me to say - it depends on how many files you're backing up, and keep in mind that you're appending to the log file, so it'll continue growing13:50
RoyKthat is, today's log file will grow13:50
RoyKbut I wouldn't worry about that, really13:51
* RoyK has moved most data storage over to opensolaris13:51
Rafaelso in the future when is 100 mb..that is some memory that is taking away...is any way to dlete automatically logs older than xxx13:53
RoyKyou're creating new logs each day, so you should be able to remove all logs easily with something like find /path/to/logs -ctime something13:57
RoyKs/all logs/old logs/13:57
RoyKsee man find13:57
=== dendrobates is now known as dendro-afk
RoyKRafael: in essence it's find /path -mtime +10 -exec rm -f {} \;14:02
RoyK+10 means 10 days14:02
RoyKmeaning all files older than 10 days14:02
hggdhttx: thank you for your edits14:33
ttxhggdh: I'm doing an install to validate the steps right now14:33
ttxthere are a few subtile changes :)14:33
hggdhyeah, I saw. I was still working on them, and I copied the original text as a framework14:34
hggdhbut it was far from complete14:34
=== dendro-afk is now known as dendrobates
RafaelRoyK: i have being testing webmin..it will be the same i i go the the log folder and delte them?? i was trying to find a way of automatically delete the ones older than let say a month15:15
RoyKI don't use webmin, but for normal log rotation (removal of old logs), logtotate is the thing. with your new-name-per-log, logrotate won't work, but a script running find with -atime etc will work well, and you can schedule it with cron - see man find / man cron15:17
RoyKfind /path -mtime +30 -exec rm -f {} \;15:17
RoyKwill remove 30 days or more old files15:18
RoyKman 5 crontab is also nice15:18
jdstrandkirkland, smoser: hi!15:33
smoserhi15:33
jdstrandkirkland, smoser: so I investigated the libvirt 0.7.7 hotplug/scsi behavior and discussed it with upstream15:33
jdstrandkirkland, smoser: you can read about it in https://bugzilla.redhat.com/show_bug.cgi?id=57897515:34
uvirtbotbugzilla.redhat.com bug 578975 in libvirt "libvirt device_add does not work for scsi hotplug" [Medium,Closed: notabug]15:34
jdstrandkirkland, smoser: the bottom line is that scsi hot add is not pci hot add15:34
jdstrandkirkland, smoser: as such, with scsi hot add, the guest must rescan the bus15:35
jdstrandkirkland, smoser: one the guest does that, the disk is available15:35
jdstrandkirkland, smoser: in the past, libvirt created a new scsi controller for every new device. this was a pci add which is why it showed up magically15:36
smosersuck15:36
smoserworking around the change in a guest is not acceptable15:37
jdstrandkirkland, smoser: this is incorrect behavior and now libvirt adds disks to an existing bus, like what would happen in the real world15:37
jdstrandyeah15:37
jdstrandso, it is not a bug, but yet it is still a regression15:37
jdstrandlovely really15:37
mdeslaurthose are my favorite kind of bug fixes :)15:37
jdstrandsmoser: euca will break in lucid+1 for sure15:38
jdstrandsmoser: I've not tried, but attaching a virtio disk should still work15:38
* jdstrand goes to try15:38
smoserso we just need to force old behavior, adding a scsi controller15:38
smoserand the comment about "real world"...15:38
jdstrandsmoser: also, aligouri (upstream qemu) reiterated that we should not be using scsi hot add15:39
smoseri'd think that it is hugely more likely to add a scsi device to an existing scsi  controller15:39
smoserbut if your pci has hot plug, it is entirely possible to add a new scsi controller15:39
* jdstrand nods15:39
jdstrandsmoser: you know, we could adjust the xml to add a new controller, but then euca would have to keep track of that state15:40
jdstrandso not ideal15:40
jdstrandlet me see if virtio is shows up in the guest...15:41
smoserit does15:41
smoserwell, it used to15:41
smoser:)15:41
jdstrandwith 0.7.7?15:41
jdstrandah, right15:41
smoser0.7.515:41
jdstrandyeah, all this does not affect 0.7.5, which as the old behavior15:42
smosers/0.7.5/all versions prior to 0.7.7/15:42
smoserjdstrand, have to think about this...15:42
jdstrandwell 0.7.5 and lower, 0.7.6 might be affected too (haven't checked)15:42
smoserit will absolutely break guests if devices don't "just show up" (you're right about 0.7.6, i don't know)15:43
jdstrandagreed15:43
jdstrandso either hack up libvirt or euca to add a controller, or move to virtio (which I am still testing)15:44
RoAkSoAxkirkland, howdy!!15:45
jdstrandsmoser: virtio hot add stills works15:47
jdstrand<disk type='file' device='disk'> <source file='/tmp/dev.dd'/> <target dev='vdb' bus='virtio'/>15:47
jdstrand</disk>15:47
jdstrandsmoser: use that xml ^ and same virsh attach-device syntax and it all works15:48
jdstrandsmoser: of course, kirkland mentioned euco is resistent to vd* devices15:48
jdstrands/euco/euca/15:48
kirklandRoAkSoAx: howdy15:49
smoserjdstrand, its something ewe're going to be forced to deal with (moving away from scsi)15:49
RoAkSoAxkirkland, http://paste.ubuntu.com/408130/15:49
smoserbut not something that we can do now.15:50
smoseragain, its guest breaking15:50
kirklandRoAkSoAx: \o/15:50
smoserbasically either that or scsi hot/add versus pci hot/add is api change15:50
kirklandRoAkSoAx: well done!15:50
smoserfrom the guest's point of view15:50
RoAkSoAxkirkland, i used that before, I just woke up and remembered... lol15:50
kirklandRoAkSoAx: that's awesome, dude15:50
kirklandRoAkSoAx: okay, so let's do this ...15:51
jdstrandsmoser: yes, when 'm' opens euca will break15:51
smoseryeah. and we're going to have to leave scsi15:51
smoser*have to*15:51
smoserunless one of us wants to fix it15:51
kirklandRoAkSoAx: throw that into a testdrive function, something like testdrive.ubuntu.dev()15:51
jdstrandsmoser: well, or do the accounting to keep adding controllers15:51
* smoser doesn't raise hand15:51
jdstrandsmoser: I looked at the patches, they aren't trivial15:52
kirklandRoAkSoAx: oh, better yet ...15:52
smoserwe have to leave scsi because its broken and "wont fix" from upstream15:52
smoserin 'm'15:52
kirklandRoAkSoAx: yeah, well, whatever15:52
jdstrandsmoser: the accounting would have to be within euca, not libvirt15:52
kirklandRoAkSoAx: just make it so that it's a one liner in the config file15:52
jdstrandsmoser: so if they *really* want it, they would need to add it themselves15:53
kirklandRoAkSoAx: and make sure that it handles no-networking gracefully, so that you can still use testdrive against your local cache on the plane15:53
RoAkSoAxkirkland, ok15:53
smoserjdstrand, yeah. so what are you thinking for this ?15:53
jdstrandsmoser: in 0.7.5 libvirt did the accounting on the number of new controllers. that all went away with the new scsi impl15:53
jdstrandsmoser: I'm sure I could code up something to get it to work again, but it is a bit late in the game15:54
jdstrandsmoser: I think 0.7.7 needs to be deferred15:55
RoAkSoAxkirkland, ok will do that for current release, though for modularization I'll handle that differently :)15:55
jdstrandsmoser: I will see if I can backport my blueprint items to 0.7.5-- but I'm pretty sure one needs to be postponed. I might be able to get the other two to work, with some 'cunning cleverness'15:55
jdstrandtoo bad really, the patches were pretty small against 0.7.715:56
jdstrandoh well15:56
smoser:-(15:56
kirklandRoAkSoAx: sure15:57
jdstrandkirkland: ^15:57
kirklandjdstrand: did we hear back from upstream on the bug you filed?15:58
kirklandjdstrand: i didn't get any email about it15:58
jdstrandkirkland: see backscroll15:58
* kirkland reads15:58
kirklandjdstrand: oh, sorry, i missed all of that15:58
kirklandjdstrand: reading now15:58
kirklandjdstrand: smoser: okay, i'm caught up now16:01
kirklandjdstrand: smoser: one other idea ... what about USB?16:01
kirklandjdstrand: smoser: in terms of "real world", usb flash disks are plugged and unplugged all the time16:01
smoserits an idea16:01
kirklandjdstrand: smoser: they show up as sdb, sdc, etc.16:01
kirklandjdstrand: smoser: seems like eucalyptus could be taught to add "usb" disks to guests16:02
jdstrandkirkland: that should work fine. let me try16:02
smoserso, fwiw, the 'sdb' isn't as big of a deal16:02
smoserbecause there is already a change required for that16:02
kirklandi'm not sure about qemu's performance of usb disks, versus scsi versus ide16:02
smoserin ec2, you attach a volume as xdX16:02
kirklandbut i do know that all of those suck compared to virtio16:02
jdstrandsmoser: really? then going virtio would be recommended16:02
smoserin euca, its sdX16:02
smoseryeah... i just realized that.16:03
kirklandjdstrand: smoser: *we* are all in agreement about virtio16:03
jdstrandsmoser: or do I not understand your point?16:03
kirklandjdstrand: smoser: it's nurmi that we have to convince to take that change16:03
smoserjdstrand, you do understand it.16:03
kirklandor we need to roll our own for UEC16:03
jdstrandk16:03
smoserkirkland, well, yes and no.16:03
* kirkland smacks smoser for being cryptic16:03
smoserfor root device, its painful and api breaking between ec216:03
kirklandsmoser: speak your mind dude :-)16:03
smoserthere will be existing fstaba entries that have '/dev/sda1 /'16:04
kirklandah, "root device should be on sda" ... ?16:04
smoserand any image that moves across will break if you change that (by moving to virtio)16:04
smoserfor hot plug (euca-add-volume, euca-detach-volume) there is already a api change.  you cannot specify 'xvdX' as you do in ec2, because xvdX is XEN16:04
jdstrandkirkland, smoser: so the decision comes down to: do we stick with the old 0.7.5, lose the bug fixes but maintain deprecated scsi behavior and not touch euca for an LTS, or move to the new 0.7.7 with its fixes, but new scsi behavior and updating euca16:05
jdstrandkirkland, smoser: I can't answer that question16:05
jdstrandI defer to you guys16:05
kirklandjdstrand: here's my opinion16:05
smosershoot16:05
smoseri'm blowing smoke16:05
smoseryou can do sdX16:05
kirklandjdstrand: there are a bunch of bug fixes in the changelog, as you and i reviewed16:05
smoserin xen16:05
smoser or ec216:06
kirklandjdstrand: but there's about an equivalent number for any libvirt release16:06
smoserhowever, i still do think that , while a PITA, changing this portion is less concerning than root=16:06
kirklandjdstrand: while the "features" section is small, the "improvements" section is *huge* and gives me pause16:06
smoserand would also make data on the EBS volumes safer16:06
smoserwhich is important16:06
kirklandjdstrand: https://bugs.edge.launchpad.net/ubuntu/+source/libvirt/+bugs?field.searchtext=&orderby=-importance&search=Search&field.status%3Alist=NEW&field.status%3Alist=INCOMPLETE_WITH_RESPONSE&field.status%3Alist=INCOMPLETE_WITHOUT_RESPONSE&field.status%3Alist=CONFIRMED&field.status%3Alist=TRIAGED&field.status%3Alist=INPROGRESS&field.status%3Alist=FIXCOMMITTED&assignee_option=any&field.assignee=&field.bug_reporter=&field.bug_16:06
kirklandsupervisor=&field.bug_commenter=&field.subscriber=&field.tag=fixed-in-0.7.7&field.tags_combinator=ANY&field.status_upstream-empty-marker=1&field.has_cve.used=&field.omit_dupes.used=&field.omit_dupes=on&field.affects_me.used=&field.has_patch.used=&field.has_branches.used=&field.has_branches=on&field.has_no_branches.used=&field.has_no_branches=on16:06
kirklandyoicks16:06
jdstrandyikees16:07
kirklandjdstrand: http://tinyurl.com/y9abpkr16:07
* RoyK hands kirkland a link to http://shorturl.com16:07
smoserthe one thing that *does* change from ec2 -> euca is that in ec2, you can say "attach this as /dev/sdi" and, because its xen, the hypervisor can definitively say "yes" or "no"16:07
RoyKor tinyurl, perhaps16:07
smoserin kvm, the hypervisor can't really promise that.16:07
kirklandjdstrand: there are currently two bugs tagged fixed-in-0.7.716:07
jdstrand(from us, yes, but most LTS users aren't probably running lucid yet...)16:08
kirklandjdstrand: one high, one medium, but neither of which milestoned as blockers for release16:08
kirklandjdstrand: fair enough16:08
smoserso, its very late in the game.16:08
jdstrand(meaning we don't know how many of the fixes we'd miss would affect users)16:08
smoserbut if this were even 1 month ago, i would heavily be suggesting moving16:08
smoserto attachment via virtio16:08
kirklandjdstrand: my vote is for 0.7.5, and we cherry pick the fixes we can from git16:08
smoserkirkland, your link is bogus16:09
smoseras 523148 is fixed in our 0.7.516:09
kirklandjdstrand: note that i added a kvm and a libvirt to hardy-backports about a year after hardy's release (ie, jaunty's kvm and libvirt)16:09
kirklandsmoser: the tinyurl one?16:09
smoseryes.16:09
jdstrandkirkland: you won't be able to do a kvm/libvirt backport for lucid without breaking euca (or backporting it too)16:09
smoserwait.16:10
smoseri dont think that is fixed in 0.7.716:10
kirklandjdstrand: ah, good point16:10
smoserjdstrand, that will always possibly be the case16:10
kirklandjdstrand: okay, well, honestly, we can't break euca at this point16:10
smoserthere is no promise from anywhere that there is not massively painful changes in 0.7.8 that would prohibit easy backport either.16:11
smosertheres no reason to make up reasons to hcange16:11
smoserthere are very good reasons16:11
jdstrandkirkland, smoser: if you recall, I had expressed the opinion in backscroll to stay with 0.7.516:11
jdstrandsmoser: true16:11
kirklandjdstrand: right-o16:11
jdstrandwe just *know* it will break now16:11
kirklandjdstrand: i'm coming to that conclusion, too16:11
smoserthe primary one, in my opinion, is that EBS (the functionality exposed by attach/detach) is supposed to promise that your data is SAFE16:11
smoserand as we know, with buggy scsi, that is probably not the case.16:11
jdstrandkirkland: smoser talking about virtio and you usb got me talking again16:12
kirklandjdstrand: just explaining my logic getting there, so that it's a thoroughly considered opinion16:12
kirklandjdstrand: yeah, so USB ...16:12
smoseri say no to usb16:12
smoseri'd suspect performance and other issues.16:12
kirklandsmoser: why's that?16:12
jdstrandI would tend to agree-- it is a hack16:12
smoseryou'd have a hard sell.16:12
kirklandsmoser: jdstrand: alrighty ...  how about this ....16:13
smoseri'm open to a tested virtio solution because it is the "accepted solution" for hotplug16:13
jdstrandeither fix euca to move to the upstream recommended virtio or stay with deprecated scsi16:13
kirklandsmoser: jdstrand: if in Lucid+1, euca insists that they can't do virtio, but libvirt has deprecated the pci_add scsi call, USB will be their only option for adding scsi disks16:13
jdstrandsmoser: I've got packages in my ppa and xml in backscroll for virtio16:13
smosercan we test that?16:14
jdstrandsmoser: I don't have the testing ability to thoroughly test euca16:14
jdstrand(I don't have a cloud, the experience with euca, etc, etc)16:14
kirklandsmoser: just add jdstrand's ppa, and upgrade libvirt-bin and libvirt0 on your NC's16:14
jdstrandI'm betting you will see a performance gain over scsi as well16:15
smoserkirkland, but you have to change euca16:15
smoserright ?16:15
kirklandsmoser: yeah16:15
smoserto make it say "add a virtio device"16:15
smoserthats what we want to test.16:15
smoserand see how bad it is.16:15
kirklandjdstrand: oh, the performance gain is huge16:15
jdstrandbetween performance and stability/integrity, it may be something to consider regardless (I don't know)16:16
kirklandsmoser: one sec, let me pastebin a crude grep16:16
kirklandjdstrand: we've been through this with nurmi several times now16:16
jdstrandkirkland: you have the backscroll xml, right?16:16
kirklandjdstrand: we're going to insist on it for lucid+116:16
* jdstrand nods16:16
Rafaeli am using this comand and get the error: find /home/rgotten/logs/ -mtime +30 -exec rm -f {} \16:16
Rafael    error: find: missing argument to `-exec'16:16
RoyKRafael: terminate with \;16:17
RoyKnot just \16:17
kirklandsmoser: http://pastebin.ubuntu.com/408145/16:18
jdstrandkirkland, smoser: so, I am going to work on my libvirt bp stuff. let me know how to proceed after your testing. I don't have much more to offer atm16:18
kirklandsmoser: jdstrand: a gross grep shows that those are the places that need changing in the euca code16:18
kirklandjdstrand: i do have the xml in backscroll, yes16:18
smoserkirkland, jdstrand i think, for maintainability that this is probably somethign worth testing16:20
jdstrandkirkland: is that a grep on "name='phy'" (I think that might show more, if things were hiding)16:20
kirklandjdstrand: http://pastebin.ubuntu.com/408149/16:21
jdstrand(but it could potentially miss stuff-- I've not looked at the code)16:21
jdstrandkirkland: seems a reasonable place to start16:21
kirklandjdstrand: smoser: i don't mind trying this, but i'm not planning on hacking on it today (today's a swap day for me)16:22
smoseryeah, its monday before i could really test this.16:22
jdstrandkirkland: uhm, they are using 1024 as a hard limit there. please tell me they are checking the lengths of source and target dev16:23
jdstrandotherwise we've got an overflow16:23
jdstrandsorry for slipping on my security hat :)16:23
jdstrands/overflow/potential overflow/16:24
kirklandjdstrand:             char xml [1024];16:26
kirklandjdstrand: don't see any other sanity check :-(16:27
koolhead17kees:16:28
jdstrandheh16:28
kirklandjeebus, yeah, they should be using MAX_PATH all over in here, all of it hardcoded to 1024 :-/16:28
jdstrandkirkland: well, for it to mean something, local_iscsi_dev, localDevReal and/or remoteDev need to be attacker controlled16:30
jdstrand(from a security POV, not coding style)16:30
jdstrandI have no idea how that stuff is fed into euca, but you might want to bring it up to upstream and let them determine that (since they presumably know the code better than us, certainly me)16:31
jdstrandkirkland: ^16:31
kirklandjdstrand: yeah, i'll file a bug upstream16:31
kirklandjdstrand: the path_max thing they should definitely solve16:31
kirklandjdstrand: there's a bunch of 1024 char full paths in there16:32
* jdstrand nods16:32
eagles0513875hey guys im having an interesting issue with vi over ssh16:34
eagles0513875for some reason when im working on vi it seems to drop my connection entierly to the server whiel im sshed into the remote machine.16:34
eagles0513875the problem is16:34
eagles0513875it only occurs when using vi16:35
eagles0513875anyone have any ideas as to the issue16:35
RoyKeagles0513875: using a non-standard terminal and arrow keys?16:35
RoyKeagles0513875: if just using hjkl instead of arrow keys, can you reproduce the problem?16:36
eagles0513875im using windows machine with xshell to ssh into the machine16:36
RoyKalso, try to enable keepalives in ssh - it might help16:36
eagles0513875let me try wiht hjkl and see if it happens16:36
eagles0513875RoAkSoAx: already is enabled16:36
* RoyK guesses that was meant to RoyK 16:36
eagles0513875ya16:37
eagles0513875sry16:37
eagles0513875damn failure to tab complete16:37
* eagles0513875 fires up xshell and connects16:37
eagles0513875RoyK: also it happens when typing up a clean vi file16:46
RoyKeagles0513875: echo $TERM16:47
eagles0513875RoyK: output is xterm16:50
RoyKeagles0513875: wierd  -  working with vim over an ssh link is something I do every day16:53
eagles0513875RoyK: 64bit karmic or 3216:53
RoAkSoAxkirkland, ok I think this is how i'll go: 1. Function on testdrive to check local cache. 2. If no cache, get current dev release from LP. 3. If cache, check if expired. If it is, update it from LP. 4. If cache, not expired. do nothing. 5. Config file will always load the release from the cache16:53
eagles0513875RoAkSoAx: sry for ping before btw16:54
RoAkSoAxeagles0513875, no prob ;)16:54
RoyKeagles0513875: karmic too - 32/64 shouldn't make a difference16:54
kirklandRoAkSoAx: perfect!16:54
kirklandRoAkSoAx: give the cache, say a 1-day expiration16:54
eagles0513875RoyK: will keep working with it and see if it happens16:56
RoAkSoAxkirkland, on every dev cycle, when do they release the first ISO for testing? As soon as they open the dev cycle?16:57
kirklandRoAkSoAx: a few days (or weeks) later16:58
RoAkSoAxkirkland, so we could extend the cache expiration then16:58
kirklandRoAkSoAx: it could be 7 days16:58
kirklandRoAkSoAx: actually, yeah, let's just make it 7 days16:59
RoAkSoAxkirkland,  yeah that's what I was thinking, because either way, it will check for a new release, and if there is a new release, it will update the cache even though it has not expired16:59
RoAkSoAxanyways, I can manage that later17:00
RafaelRoyK: did it with no error message but logs are still there since last year17:01
kirklandRoAkSoAx: cool17:02
RoyKRafael: huh - try without -exec ...17:02
RoyKthat'll list the files matching -atime or -ctime or whatever you were using17:03
eagles0513875RoyK: everythign seems fine now17:05
RoyKeagles0513875: what did you do?17:07
eagles0513875RoyK: nothing17:08
eagles0513875i was doing what i normally do when i encounter the problem17:08
eagles0513875which was type up some c++ examples im doing17:08
eagles0513875it used to freeze while in the middle of typing them but it hasnt17:08
* RoyK is a magick wizzard beaming out magick rayz to fix vim problemz17:08
eagles0513875haha17:09
eagles0513875RoyK:  was just thinking that it was me talking to u that fixed it17:09
RafaelRoyR: look what i am getting now: rgotten@myplasticare:~$ find /home/rgotten/logs/ -mtime +30 rm -f {} \;17:11
Rafaelfind: paths must precede expression: rm17:11
RafaelUsage: find [-H] [-L] [-P] [-Olevel] [-D help|tree|search|stat|rates|opt|exec] [path...] [expression]17:11
_rubenRafael: he meant you should remove anything following -exec as well17:16
_rubenso stop at '+30'17:16
Rafaelthanks17:16
Rafaelgood worked17:18
spowersis 2.6.33 or 2.6.32 possible on karmic server?17:21
spowers(is there a PPA anyone knows about for that, is what i'm really getting at)17:21
_rubenspowers: http://kernel.ubuntu.com/~kernel-ppa/mainline/?C=M;O=D17:22
_rubenthese are vanilla kernels, no ubuntu pathces in 'em17:22
spowersthat will be fine for my purposes17:22
spowersdoes the ubuntu server project patch the kernel for anything important?17:23
_rubenmost patches are backports from newer version afaik, dont know of any -server specific patches17:23
spowersok, neat17:24
_rubenand patches that are expected to end up in later versions17:24
spowersi just want to test btrfs17:24
pmatulisspowers: as a rule of thumb, patches are sent upstream, accepted (hopefully), and come back downstream for packaging17:25
pmatulisspowers: some "quirks" may be added ubuntu-side for weird stuff17:25
_rubenbeen meaning to my hands on some spare ssd drives and play with stuff like btfs and nilfs, wont happen anytime soon though17:25
spowersso vendor patches, at least for ubuntu server, are carefully limited to bugfixes and that sort of thing?17:25
spowersapart from "quirks"17:26
uvirtbotNew bug: #554063 in amavisd-new (main) "Calling dspam from amavisd-new fails" [Undecided,New] https://launchpad.net/bugs/55406317:26
pmatulisspowers: what is a vendor patch?17:26
spowersi'm not sure on the preferred nomenclature17:26
pmatulisspowers: use plain terms then17:27
spowerswhat i meant was to clarify if -server kernels were patched conservatively, and so the patches usually make their way upstream easily17:28
pmatulisspowers: all kernels are patched conservatively, nothing is thrown in just for shits and giggles17:29
RafaelRoyK: i have a script called respaldo-archivos.sh that runs the rsync. and this is executed with cron, for the path: find /path -mtime +10 -exec rm -f {} \; this should go on the .sh file or in the cron directly17:31
RoyKRafael: doesn't really matter so long that cron eats it17:35
RoyKRafael: I usually use a cron job running a script in case I need to add more logic later17:35
RafaelRoyK: so this is what i have rigth now on the script: #!/bin/bash17:37
Rafaelrsync -v -r -d --delete /home/rgotten/Prueba/Myplasticare /home/rgotten/mnt/ >> /home/rgotten/logs/respaldo-`date +%d%m%Y`.log17:37
Rafaelrsync -va --delete --exclude=/charts.windows/Search /home/rgotten/charts.windows /home/rgotten/Prueba/Myplasticare/Charts >> /home/rgotten/logs/respaldo-`date +%d%m%Y`.log17:37
Rafael and i will just add a line with : #!/bin/bash17:37
Rafaelrsync -v -r -d --delete /home/rgotten/Prueba/Myplasticare /home/rgotten/mnt/ >> /home/rgotten/logs/respaldo-`date +%d%m%Y`.log17:37
Rafaelrsync -va --delete --exclude=/charts.windows/Search /home/rgotten/charts.windows /home/rgotten/Prueba/Myplasticare/Charts >> /home/rgotten/logs/respaldo-`date +%d%m%Y`.log17:37
Rafaelsorry17:37
Rafaeli will just add a line with find /path -mtime +10 -exec rm -f {} \;17:38
mathiazkees: hi!17:52
mathiazkees: I'm currently investigating bug 29297117:53
uvirtbotLaunchpad bug 292971 in libnss-ldap "nscd leaking memory using libnss-ldap" [High,Triaged] https://launchpad.net/bugs/29297117:53
mathiazkees: and I currently get the following valgrind log: http://paste.ubuntu.com/408201/17:54
mathiazkees: I'm not sure how to interpret that log17:54
keesmathiaz: hello!18:06
keesmathiaz: reading...18:07
keesmathiaz: valgrind is saying that the ldap_create function is leaking 68 bytes of memory via calls to ber_memcalloc_x18:07
keesmathiaz: I'd install libnss-ldap-dbgsym to get a better traceback, though18:08
mathiazkees: how do I build libnss-ldap-dbgsym18:08
mathiazkees: ?18:08
keesmathiaz: just install it from pitti's ddeb repository.  let me find the docs...18:08
keesmathiaz: https://wiki.ubuntu.com/DebuggingProgramCrash18:10
mathiazkees: thanks18:10
keesmathiaz: does the patch in comment 1 work?18:11
uvirtbotNew bug: #554094 in samba (main) "Windows clients cannot connect unless Samba manually restarted" [Undecided,New] https://launchpad.net/bugs/55409418:11
mathiazkees: well - that's what I'm trying to figure out18:11
mathiazkees: I'm trying to reproduce the issue18:11
mathiazkees: and figure out if the patch fixes the problem18:11
keesah-ha, excellent.18:11
mathiazkees: however my C knowledge/libnss is not strong enough to figure out whether the patch is supposed to work18:12
mathiazkees: so any help in reviewing the patch is welcome18:12
mathiazkees: I think I'll be able to confirm by experimenting that the leak goes away - whether the patch is actually the correct way is out of my area of expertise18:13
keesheh18:14
keesmathiaz: well, a visual inspection of the patch looks good to me.  i.e. the implied logic makes sense, assuming it works.  :)18:14
mathiazkees: so I'll confirm it works and that should be enough to confirm the fix18:17
keesmathiaz: yeah.  if you develop a test, please consider adding it to the qa-regression-testing bzr tree18:18
mathiazkees: hm - I'm not sure how I can develop an automated test for a memory leak18:19
mathiazkees: the actual test is: look at the valgrind log18:19
mathiazkees: it shouldn't have the libber leak18:19
keesmathiaz: sounds easy enough: run valgrind, check for "bad" text in output.  :)18:20
mathiazkees: :)18:21
mathiazkees: http://people.canonical.com/~mathiaz/valgrind.nscd.exit.1567418:42
mathiazkees: ^^ this is with the current version of libnss-ldap with the memory leak18:42
mathiazkees: http://people.canonical.com/~mathiaz/valgrind.nscd.exit.1594918:42
mathiazkees: ^^ this is with the patch applied18:42
mathiazkees: http://people.canonical.com/~mathiaz/valgrind.nscd.exit.1623719:03
mathiazkees: ^^ this is the correct valgrind log for the patched version of libnss-ldap19:04
mathiazkees: it seems that the library so numbers were bumped for the new patched version19:04
addisonjhi there, I am having problems with samba and DHCP, it keeps reloading the samba.conf file on every DHCP renew, thing is, my DHCP just uses mac addresses to assign a static IP19:05
alvinaddisonj: are your clients also losing connection to the samba server?19:17
addisonjserver isn;t in production yet, so I can't really say yet19:19
addisonjbut if samba is reloaded won't it kill everything?19:20
alvinThen how do you know? The messages on the console? They are irritating, but harmless.19:20
addisonjhm? so you are saying a samba reload every 5 minutes is not going to cause problems?19:21
alvinReloading is not restarting, so no.19:21
alvinI think there is a bug somewhere about the messages. If you are also losing connection, go here: bug 43506119:22
uvirtbotLaunchpad bug 435061 in dhcpcd "smbd loses connection on DHCP lease" [Medium,In progress] https://launchpad.net/bugs/43506119:22
keesmathiaz: why was it bumped?19:22
keesit shouldn't change the ABI19:23
mathiazkees: that's a very good question19:23
mathiazkees: shouldn't the ABI be bumped manually?19:23
mathiazkees: I've just applied the patch and that's all19:23
keesmathiaz: usually -- I guess it depends on the build system19:26
keeswell, it seems like a lot of the memory leaks are gone, but I see this added: +==PID== Warning: invalid file descriptor -1 in syscall close()19:27
kees+==PID==    at 0x587F99D: ??? (syscall-template.S:82)19:27
kees+==PID==    by 0x627EC6A: ??? (in /usr/lib/liblber-2.4.so.2.5.4)19:27
kees+==PID==    by 0x627EB3A: ber_int_sb_close (in /usr/lib/liblber-2.4.so.2.5.4)19:27
kees+==PID==    by 0x627F783: ber_sockbuf_free (in /usr/lib/liblber-2.4.so.2.5.4)19:27
kees+==PID==    by 0x6046747: ldap_ld_free (in /usr/lib/libldap_r-2.4.so.2.5.4)19:27
keeslooks like the atexit handler needs to be more careful?19:27
keesmathiaz: btw, my comparison was:  diff -u <(perl -pe 's/^(==|--)[0-9]+(==|--)/${1}PID${2}/' valgrind.nscd.exit.15674) <(perl -pe 's/^(==|--)[0-9]+(==|--)/${1}PID${2}/' valgrind.nscd.exit.16237)19:27
* mathiaz 's brain just exploded19:28
keesthe good news from the valgrind is:19:28
kees ==PID== LEAK SUMMARY:19:28
kees-==PID==    definitely lost: 632 bytes in 1 blocks19:28
kees-==PID==    indirectly lost: 32,904 bytes in 6 blocks19:28
kees+==PID==    definitely lost: 0 bytes in 0 blocks19:28
kees+==PID==    indirectly lost: 0 bytes in 0 blocks19:28
mathiazkees: yeah - that's the key part IMO19:28
keesmathiaz: has upstream commented on the patch at all?19:29
mathiazkees: not yet :/19:29
keesmathiaz: perhaps ask the patch submitter about the atexit do_close issue, but other than that, ship it!  ;)19:32
moldyhi19:41
moldyi am trying to setup kvm with bridged networking. br0 on the host is working. i pass --bridge br0 to vm-builder. yet, the guest still seems to use nat. what am i missing?19:44
RafaelRoyK: how can i get an emal notification/email when a log has an error so i do not have to be checking them...everything else is working beatifull19:57
_rubenRafael: tons of tools for that: logcheck, sec, ....19:58
DrDethhi - could someone help me with a quick postfix config issue?20:04
ScottK!ask | DrDeth20:05
ubottuDrDeth: Please don't ask to ask a question, simply ask the question (all on ONE line and in the channel, so that others can read and follow it easily). If anyone knows the answer they will most likely reply. :-)20:05
DrDethI've set up postfix with virtual domains, and dovecot for IMAP - I can recieve mail on the virtual domains, but cant send mail out20:06
DrDethI get the dreaded Relay access denied20:06
ScottKWhat's the exact error?20:08
ScottKAlso please pastebin the output of postconf -n20:09
DrDeth NOQUEUE: reject: RCPT from deth-serv[85.10.192.78]: 554 5.7.1 <user@valid.email.com>: Relay access denied;20:09
DrDethhttp://pastebin.com/SmDx16VZ20:10
ScottKDrDeth: I don't see where you've authorized any clients to relay in your configuration?20:12
ScottKJust mynetworks = 127.0.0.0/820:12
ScottKI don't see any smtp auth.20:13
DrDethok - if the clients use authentication to their virtual domain, how would I set that up ?20:13
ScottKI'm pretty sure the server guide covers this reasonably well.20:14
DrDethOk, I'll go have a look. I was following this community guide: https://help.ubuntu.com/community/PostfixVirtualMailBoxClamSmtpHowto20:15
ScottKA lot of the community docs are really out of date.20:15
DrDethi noticed :(20:15
ScottKI'd recommend https://help.ubuntu.com/9.10/serverguide/C/postfix.html#postfix-smtp-authentication (or the appropriate one for the release you're running)20:16
ScottKThe bits in that about integrating clamsmtp are probably OK as that hasn't really changed.20:16
DrDethexcellent - thanks ScottK20:16
=== kklimonda is now known as kklimonda|G1
kindjalI'm having problems with libvirt 0.7.7 on Lucid that very much match this bug that is claimed closed: http://www.mail-archive.com/kvm@vger.kernel.org/msg21669.html20:23
kindjalThe upshot is that suspend/resume looks like it's working from libvirt's perspective, but the guest VM is hung.20:24
kindjalAnyone seen this?20:24
ScottKkindjal: We're going to stay with 0.7.5 for Lucid.20:24
kindjalI just updated from 0.7.5 two seconds ago to just see if this happens to have been fixed...20:24
kindjalit exists on 0.7.5 too.20:24
kindjalPerhaps it's a guest kernel thing?  What kernels should dom0 and domU be using?20:25
kindjalmy dom0 is just a default Lucid install, and the guest was built from ubuntu-vm-builder20:25
ScottKYou've exhausted my knowledge on the topic20:26
kindjald'oh20:26
kindjalI can't figure out why I'd be special here, I'm just trying to get started with libvirt20:26
alvinWill we be able to use virsh reboot in Lucid with 0.7.5? And shutdown the host?20:35
kindjalalvin: That's this bug? https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/36896220:37
uvirtbotLaunchpad bug 368962 in libvirt "Can't reboot kvm virtual machines using virsh" [High,Confirmed]20:37
alvinYes20:37
kindjalI'm hoping for that one too.  I see recent traffic on it, but don't know the status.20:38
kindjalDoes anyone have suspend/resume working?20:38
facetiousproxylo everyone20:44
ScottKThere was mail today to (IIRC) ubuntu-devel on it.20:46
lunaphyte_i've got a computer with two network interfaces connected to unique networks, both with a default gateway, and therefore have a handful of "ip route ..." commands that need to be run at boot so things behave as desired.  where do these commands belong so this happens automatically at boot?21:03
alvinin /etc/network/interfaces21:03
lunaphyte_oh?  i'll have another look at the man page.  i didn't know ip route commands were appropriate in that file.21:03
alvinLike this : up route add -net x.x.x.x netmask x.x.x.x gw x.x.x.x dev $IFACE21:04
alvinyou put that under: iface ethx inet static21:04
alvinand to beautify: down route del -net x.x.x.x netmask x.x.x.x gw x.x.x.x dev $IFACE21:05
lunaphyte_oh - it's other commands too though - like ip route add default via 10.3.60.1 table vlan-3; p rule add from 10.3.3.1 table vlan-3; so on.21:05
alvinI have no experience with those, but I suspect they can go in the same fle. After all, you don't want them at boot, but at ifup.21:06
alvinIt's better than putting stuff in rc.local, in case you need those routes earlier21:07
alvinMight I suggest the excellent Debian documentation on the matter?21:08
lunaphyte_yeah, i'm not a big fan of rc.local.  :)21:08
lunaphyte_ah, good idea.  thanks, i'll have a look.21:08
lunaphyte_right, i shouldn't have said boot.  that's a bit ambiguous.  at interface up/down.21:09
moldyhm, kvm insists on configuring the network as 10.0.2.15 -- why`21:18
moldy?21:18
walrushi everyone, anyone here using nfs4 in karmic? I have some weird problems with it21:23
alvin!anyone21:23
ubottuA large amount of the first questions asked in this channel start with "Does anyone/anybody..."  Why not ask your next question (the real one) and find out?21:23
alvinWell, me :-)21:23
walrusok, the problem is: I can mount the exported directory, but when I try ls /exported-dir in client, this takes more than 1 minute to show anything21:25
walrusI tried to do a strace ls /exported-dir and everything worked fine, without any delay21:26
walruswhen I tried to mount the same directory in a notebook with an arch linux install, the problem disappears.21:27
alvinwhoa21:30
alvinIs df also completing slower?21:30
walrusnope21:31
walrusjust ls or any direct access to any file/directory in the exported directory21:31
alvinHmm, weird. I'm not seeing this behaviour. Have you tried (wild guess) disabling apparmor?21:32
alvinand checked your domain?21:32
alvinYou're not using autofs, right? Just mount -t nfs4 jadajada...21:33
walrusyes, nos using autofs21:33
walruschecked my domain?21:33
walrushow can I disable apparmor?21:35
walrusI'm making the tests in terminal mode (becausa is impossible to use gnome in this way. the system hangs for 1 minute few seconds)21:36
walrusmaybe is better to abandon nfs. it just gave my headaches. first was the sqlite not working with nfs3,, now this problem.21:38
walrusthe sad thing is: in this network (a lan in a non profit in a brazilian favela), the same exported directory via samba works completely fine in windows clients.21:40
jeffesquivelwalrus, IIRC, why not use smb to mount the directory on linux too?21:41
walrusjeffesquivel: because I don't know how to gave write permission to the users in the nis domain.21:42
jeffesquivelwalrus, I see...21:43
walrusI can create a file with a normal user in his home directory, but the file has root ownership, and than I can't edit the file anymore.21:43
jeffesquivelwalrus, I guess you're exporting /home and then mounting it somewhere else, right ?21:44
walrusjeffesquivel, yes, exactly21:45
jeffesquivelwalrus, IIRC, what we did (but we were't using NIS, we were with LDAP) was to use pam_mount21:46
jeffesquivelwalrus, do you have several users logged in at the same time on your linux machines? or just one?21:46
walrusjeffesquivel: in the moment just one.21:46
=== dendrobates is now known as dendro-afk
fooI'm trying to mount an nfs share between 2 nfs systems. I used to do mount 192.168.0.2:/public public/ - but this doesn't appear to be working. any tips ?21:47
walrusjeffesquivel: you are using pam_mount to mount the samba share automatically when a I user logon?21:47
jeffesquivelwalrus, well, that was some time ago (several years, actually)... but at the time yes, that's what we did21:47
walrusfoo: Why is not working? what are the error messages?21:47
jeffesquivelwalrus, it was more secure also, because we wouldn't have the whole /home mounted all of the time21:48
foowalrus: wrong fs type, bad option, bad superblock on 192.168.0.2 , might be something else going on21:48
walrusfoo: maybe you are using the wronf nfs version, try mount -t nfs4 ou mount -t nfs21:48
foowalrus: hm, negative21:49
lunaphyte_alvin: thanks for the help.  that seems to be working well, by way of the up/down statements in the interfaces file.21:49
alvinlunaphyte_: You're welcome21:50
walrusjeffesquivel: yes, maybe this is a good idea. I started to configure an openldap  server but never finished to configure the clients. maybe this is a good reason21:50
walrusjeffesquivel: and thanks for the ideas21:50
jeffesquivelwalrus, it may be... I really have never used NIS (it seemed outdated even at that time, but mostly because I needed to have windows clients too)21:51
alvinDon't use samba for sharing between Linux clients. NFS is meant for that. Let's go over the details21:51
alvinNFS4 is just different. (but needed these days for all those blasted desktop applications that need their databases)21:52
walrusalvin: yes, this is the reason that I'm trying to solve the problem for a long time21:52
walrusbut I'm really stucked in the moment21:52
alvinWhat is your /etc/exports on the server?21:53
alvinDid you put a domain in /etc/idmapd.conf? And activated it in /etc/default/nfs-common ? (NEED_IDMAPD=yes)21:54
walrusnope21:54
alvinWell, those are the first things you need to do. Do it on both machines. (same domain, idmapd)21:55
jeffesquivelalvin, may I know what is the problem with using samba for sharing between Linux clients? :-)21:55
alvinjeffesquivel: It's Windows file sharing. No need to install if you don't use Windows21:55
alvinAlso, POSIX rights...21:56
alvinNFS is also faster21:57
jeffesquivelalvin, oh, I thought I read that walrus also used that same share on windows clients...21:57
jeffesquivelalvin, I see your point... thanks21:57
alvinThere's another thing. Suppose your 'client' is also a Linux server. You can reboot your server. When the server is back, your shares will not have reached a timeout and will still be mounted21:58
walruswell, I changed the idmap domain and nfs-commom, restarted nfs, remounted the shared directory21:58
alvin(although you may have troubles doing stuff on that client)21:58
walrusnothing has changed21:58
alvinStill, post your /etc/exports NFS4 needs a filesystem with fsid=021:59
walrus90 seconds for output the ls results21:59
alvinI'll give an example:21:59
alvin/srv/archive    192.168.1.0/24(rw,async,no_subtree_check)21:59
walrus"/export 192.168.0.0/24(rw,root_squash,insecure,no_subtree_check,async,fsid=root)"22:00
jeffesquivelalvin, I see... I recall reading that nfs has some problems with security (for example, here: http://www.hiit.fi/it/tech/config/pam_mount.html)... do you think that is true or is it may be that they don't understand the protocol well enough?22:00
alvinHmm, it's not coming through22:00
jeffesquivelalvin, just curious... as I've never used NFS before22:00
walrus"/export/home 192.168.0.0/24(rw,root_squash,insecure,nohide,no_subtree_check,async)"22:01
alvinNFS3 is very simple. There's little security, but it's easy to set up if you don't need the security and locking. NFS4 can be secured in different ways22:01
alvinwalrus, good. What's the value for your /export export?22:01
alvinah, I didn't saw it there22:01
jeffesquivelalvin, ok... I'll read more about it... thank you :-)22:02
alvindoesn't look wrong. Try adding crossmnt to the options of /export22:03
RoyKnfs4 on linux doesn't work too well22:03
alvinand change fsid=root to fsid=022:03
alvinI agree that Solaris does a better job22:04
RoyKlast I tried using nfs4 with linux against solaris, it worked, but uid mapping was out of the question22:05
walrusalvin: tried, same problem :/22:05
alvinFor that reason, I share ZFS with sharenfs=anon (root=... should also work, but for a strange reason it doesn't on Linux)22:05
alvinHmm, I really wonder what your problem is there22:06
alvinWas it equally slow with NFS3?22:06
walrusno, but I needed to stop using nfs3 because of a problem with sqlite, that made impossible to use any programa that used it22:07
alvinI know, just wanted to know if the issue was NFS4 related22:07
alvinDoes no_root_squash make a difference?22:08
alvinOh, and after altering /etc/exports, don't forget exportfs -av22:08
walrustested, didn't made any difference22:09
walruswhy the hell strace ls /home is not slow??? this is completely crazy to me22:10
alvinHome on your server is /export/home ?22:10
walrusno, is ;home22:10
alvinoh, yes, you said that22:10
walrus/export/home is a mount --bind22:11
alvinand that's faster? Hmm, I wonder if apparmor is discriminating against certain mountpoints22:11
walrusand the problem is ubuntu related, because this doesn't happens with arch linux. maybe Is a good idea to try a new ubuntu fresh installation.22:12
sherrwalrus: could this be firewall filtering on client or server?22:12
sherrsomething maybe taking time to timeout, or auth trouble.22:13
sherrNothing in syslog on server or client?22:13
alvinsmells like auth trouble to me, but I'm really not sure.22:13
sherrTry wiping firewall on both22:13
walrusno firewall here22:13
walrusjust ip masquarade22:14
sherrI'm still on NFS3, works fine.22:14
alvinYes, but not for databases :-(22:14
walrusbut are you using /home?22:14
sbeattiewalrus: is anything showing up in the logs on your nfs server?22:14
sherrwalrus: anything in logs? tail -f on both. Maybe /var/log/auth.log as well22:15
walrusjust the message:22:15
walrussvc: failed to register lockdv 1 RPC service (errno 97).22:15
sherrlockd? or lockdv?22:16
walrusNFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory22:16
walruslockdv22:16
walrusNFSD: starting 90-second grace period22:16
alvinwalrus: What versions of Ubuntu are you using?22:17
walruskarmic22:17
walrus9.1022:18
sherrOK - lockdv lots of google hits .... work a look22:18
alvintry $ sudo service portmap start22:18
walrusjob already running22:19
walruswell guys, thanks for the ideas. I will try a Ubuntu fresh install on client, I tried again to use the exported dir in my arch linux notebook and everything went fine again.22:24
alvinweird, but good luck22:25
sherrwalrus: good luck anyway. Please come back and let us know.22:25
walrusthanks, I will.22:25
kindjalDoes anyone have experience with kvm restore from suspend resulting in a hung guest OS?  dom0 and domU both ubuntu Lucid with default installs.  I can't get restore to work.22:26
kindjalkvm at 100% cpu, vnc session unresponsive, yet virsh shows "running" state and no errors in logs.  Symptom looks a lot like this: http://www.mail-archive.com/kvm@vger.kernel.org/msg21669.html22:26
alvinI have seen those symptoms before, but in diffferent situations22:27
kindjalalvin: you mean not after a resume?22:28
alvinMaybe. Those issues are fixed. I'm looking now22:28
alvinThere is bug 45771622:29
uvirtbotLaunchpad bug 457716 in libvirt "apparmor denies save and restore" [High,In progress] https://launchpad.net/bugs/45771622:29
=== dendro-afk is now known as dendrobates
kindjalYes I found that one too...22:29
kindjalI had that problem yesterday and updated apparmor config, now save and restore works, but suspend and resume does not...22:30
kindjalI think I'll disable apparmor and see what that does.22:30
alvinI remember trying this a long time ago. Never tried it after that. (it didn't work)22:30
alvinPlease do and tell us22:30
kindjal no change22:32
kindjal stopping apparmor had no effect.22:32
jeffesquivelalvin, nfsv4 seems nice... I thought nfs was a dead protocol... it seems I was wrong.. I'll have to try it out, thanks for the info!22:32
kindjalre: nfs4, nfs4.1 is supposed to have pnfs clustering22:32
kindjalalvin: so have you not seen working suspend/resume with kvm?22:33
alvinWell... I didn't ever try it, but I have seen it working by accident22:33
alvinWhen you do a live migration, your guest will be suspended22:34
alvinah, no, paused. It's probably not the same. (It's getting late)22:34
alvinkindjal: I have never heard of NFS4.1 :-) cool22:35
kindjalmy plan is to set up some kind of shared file space for live migration, but I'm still just trying a basic suspend/resume, and failing... maybe I'll move on to migration.22:35
alvinGood luck. It should work (except for the pause thing)22:38
* alvin goes to sleep22:39
jdstrandkindjal: yeah, apparmor doesn't need to do anything with suspend/resume of guessts-- that would be a libvirt issue22:41
kindjaljdstrand: I just tried your 0.7.7 packages too22:41
jdstrandkindjal: is it broken there too?22:42
kindjal0.7.7-4ubuntu1~jdstrand222:42
kindjalyes22:42
jdstrandhmm, sounds like an upsteram issue then :(22:42
kindjalI haven not yet seen working restore from suspend... is it supposed to work?22:42
jdstrandupstream22:42
kindjalqemu-kvm 0.12.3+noroms-0ubuntu422:42
jdstrandtbh, I don't use that feature22:42
jdstrandistr that it was problematic22:43
jdstrandand it didn't do what one would expect22:43
kindjalIt would make me feel better to know that I'm not special, and nobody uses it, or it's broken for everyone.22:43
kindjalWhat I really want is migration, which I haven't gotten to try since I'm not yet using shared storage.22:43
jdstrandkindjal: I'm pretty sure you're special wrt this issue22:43
jdstranderr22:44
jdstrands/special/not special/22:44
jdstrandit would help if I could type22:44
kindjal:)22:44
kindjalhave you seen this? http://www.mail-archive.com/kvm@vger.kernel.org/msg21669.html22:44
jdstrandwell, I was just passing through-- if feel free to file a bug and if you can link it to the upstream bug22:44
kindjalok22:45
kindjalthanks22:45
jdstrandno-- made a note of it. gotta go!22:45
=== dendrobates is now known as dendro-afk
JamesHarrisonSeem to be running into this regression (issue with installer/grub2 not coping with hardware raid1 in 9.10 and later): https://bugs.launchpad.net/ubuntu/+source/grub-installer/+bug/48560423:32
uvirtbotLaunchpad bug 485604 in grub-installer "karmic server 64 bit installer fails at GRUB when installing with RAID1" [Undecided,New]23:32
JamesHarrisonAny solution other than to revert to 9.04 like I had on this box before? Failure prompted a fresh install.23:33

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!