[00:40] <_Techie_> is there a group a user has to be in to allow them to listen on the network?
[00:41] <Slyboots> Hmm.. Hello all
[00:41] <Slyboots> Seems my server is.. slightly unwell
[00:41] <Slyboots> "Gave up waiting for root device. " blah blha..
[00:41] <Slyboots> ALERT! /dev/mapper/tank-root does not exist
[00:43] <Slyboots> Whats odd is this is a RAID1 mirrored over 3 disks
[00:46] <twb> Slyboots: nothing wrong with that
[00:47] <RoyK> Slyboots: not playing with zfs, are you?
[00:50] <Slyboots> no?
[00:50] <Slyboots> its been running for months.. powered it down.. powered it back up
[00:50] <Slyboots> AAHGHGHGHGHHGHGHGHGHGHG!!
[00:50] <Slyboots> And so on
[00:52] <JanC> Slyboots: no hardware failure?
[00:54] <Slyboots> I thought a disk was dead but..
[00:54] <Slyboots> SMART shows OK across the board
[01:00] <JanC> Slyboots: is that a "fake" raid controller ?
[01:00] <Slyboots> Linux softraid; MDADM
[01:01] <JanC> with some other layer on top or below then?
[01:01] <Slyboots> LVM
[01:01] <twb> Slyboots: sorry, I mean that a three-way RAID1 is not odd
[01:02] <Slyboots> The BIOS shows the SMART status of each disk.. comes up OK
[01:02] <Slyboots> Im wondering if a kernel update might have hosed the modules or something
[01:03] <JanC> Slyboots: what's the status of the software raid device ?
[01:03] <Slyboots> No idea; trying to create a live bootable disk to go in and check
[01:03] <Slyboots> right now as soon as it hits grub it bombs out witht "Gave up waiting for root device"
[01:03] <JanC> heh?
[01:04] <JanC> so it's grub that complains?
[01:04] <Slyboots> I get a black screen with a flashing "_" under it
[01:04] <Slyboots> Then after about 30 seconds
[01:04] <Slyboots> "Gave up waiting for root device"
[01:04] <Slyboots> ALERT! /dev/mapper/tank-root does not exist
[01:06] <JanC> that's inside the initrd, so you should be able to see if the raid is assembled or not?
[01:06] <Slyboots> Not sure.. basiclylafter that it goes (initrtfs) and ..
[01:06] <Slyboots> Well nothing; tapping keys on the keyboard does nothing
[01:07] <JanC> hm, that's not very useful indeed ☺
[01:07] <JanC> try booting an older kernel?
[01:07] <Slyboots> Dont have any.. least I dont think so
[01:07] <Slyboots> I dont evne really get a grub prompt
[01:07] <Slyboots> (Although i never clearn out /boot.. so it should be there in theory
[01:08] <JanC> you can enter the grub menu with Esc (grub1) or Shift (grub2)
[01:09] <Slyboots> xMm..
[01:09] <Slyboots> "Grub loading.."
[01:09] <Slyboots> Then it just continues on
[01:10] <JanC> just keep Esc or Shift (depending on grub version) pressed down during boot
[01:10] <Slyboots> Tried that...
[01:10] <twb> Does Caps Lock also work, as in extlinux?
[01:10] <twb> That way at you can just push it and leave it down
[01:10] <Slyboots> Its a wireless keyboard..
[01:11] <Slyboots> Doesnt have indicator lights for caps lock
[01:11] <twb> Slyboots: then it probably won't work at all
[01:11] <twb> I doubt that grub has a bluetooth driver
[01:11] <Slyboots> Its wifi through a usb interface
[01:11] <twb> I guess that might work if grub has a USB driver
[01:11] <JanC> I doubt it's WiFi  ;)
[01:12] <Slyboots> OK; got grub using another keybarod :P
[01:13] <JanC> but an USB keyboard might need a BIOS setting
[01:13] <Slyboots> Its RF or something; but thats outside the fact.. grabed another keyboard nad loaded up the last good kernel
[01:13] <Slyboots> Well its doing something; ubuntu Usplash has come up
[01:13] <twb> more likely plymouth
[01:14] <JanC> twb: depends how old the server install is  ;)
[01:15] <Slyboots> Okay; got fed up waiting for usplash to vanish and logged in via the cli
[01:15] <twb> I guess if he sees "grub loading" than it isn't that stupid new "0 wait time" one
[01:15] <Slyboots> Not sure how to continue from here though
[01:15] <Slyboots> Should I.. fsck the disks or..?
[01:16] <twb> Slyboots: what was the problem again?
[01:16] <Slyboots> Well it was going "AGGH! Root not found"
[01:16] <Slyboots> Loading an old kernel fixed that..
[01:17] <Slyboots> But now I got run-parts: /etc/update-motd.d/90-updates-availabel exited with an return code 2
[01:17] <Slyboots> Everal times
[01:19] <Slyboots> Mm.. brb. hold on
[01:22] <Shinything_> Mm..
[01:23] <Slyboots_> Right
[01:23] <Slyboots_> Well back into the server.. not 100% if everything is OK though
[01:24] <Slyboots_> First things first should be to remove that "bad" kernel from grub.lst right?
[01:30] <Slyboots_> not sure where grub.lst is though
[01:33] <twb> Slyboots_: /boot/grub
[01:33] <twb> Slyboots_: just remove that kernel, even
[01:34] <Slyboots_> Mmm.. using apt-get ?
[01:34] <twb> ALthough if it were me, I'd probably try to work out WHY it wasn't working
[01:34] <twb> Slyboots_: yes
[01:35] <Slyboots_> Seems like its not loading LVM or something
[01:35] <Slyboots_> And since its 2am in the morning I just want to fix it and go to bed
[01:35] <Slyboots_> or play Dawn of war.. minions of Chaos to kill and whatnot
[01:39] <Slyboots_> Mm..
[01:39] <Slyboots_> Okay; there is one marked -virtual
[01:39] <Slyboots_> Not sure why that is there
[01:43] <twb> Slyboots_: I don't know what you're looking at.
[01:44] <Slyboots_> Grubs list of kernels
[01:44] <Slyboots_> I've removed one marked "virtual" see if that makes any difference
[01:45] <twb> I believe the "virtual" flavoured kernels have many features removed because they are intended only for use as guest OSes in VMs
[01:45] <Slyboots_> Aye; Thats what Im thinking
[01:45] <Slyboots_> Im not sure what its on my server at all but I've removed it and updated grub; a reboot will tell
[02:04] <kaje> I'm running Ubuntu 10.4 and installed BIND using this howto: https://help.ubuntu.com/community/BIND9ServerHowto
[02:04] <kaje> I keep getting these messages in my log:     Jan  6 18:46:59 jupiter kernel: [1462769.470917] type=1503 audit(1294361219.337:72660):  operation="open" pid=13550 parent=1 profile="/usr/sbin/named" requested_mask="ac::" denied_mask="ac::" fsuid=105 ouid=105 name="/var/log/query.log"
[02:06] <kaje> Any thoughts?
[02:06] <kaje> My home machines all use that machine for DNS and when my wife goes to facebook, BIND is not resolving some of the servers that host facebook's css files and a few other things.
[02:13] <kaje> One of the DNS names that aren't resolving is b.static.ak.fbcdn.net. When I do an nslookup on that address, I get some of those kernel messages in my logs. I'm hoping this is the issue.
[04:15] <qman__> kaje, looks like apparmor is denying it access to that file
[04:16] <kaje> yeah, I got it worked out in the bind channel. Thanks for the help though.
[04:16] <qman__> ah, ok
[06:26] <clayd> what command do i use to see how many cores a vps has available to it.  i am using ubuntu server 10.04
[06:32] <gobbe> cat /proc/cpuinfo
[06:40] <twb> Depending on the virtualization technology, that won't tell you how many your VPS is allowed to use
[07:01] <martinjh99> Is there a way to gete byobu to save the tabs you have open over re-boots?  I have a shell, root shell and media server running and owuld like their tabs to be kept open over re-boot
[07:18] <milligan> In logrotate.conf, is i.e /var/log/myapp/* a valid descriptor, when myapp contains subfolders, that contain the logfiles?
[07:42] <twb> martinjh99: screen cannot save state between reboots.
[07:43] <twb> milligan: you could configure .screenrc to *launch* programs whenever it starts.
[07:43] <martinjh99> i think you mean me - How would you do that then? Point me to some docs?
[07:46] <twb> Sorry, yes
[07:46] <twb> martinjh99: say you wanted to run bash and top and "w3m google.com".
[07:46] <twb> martinjh99: you would put in three lines like "screen"; "screen top" and "screen w3m google.com"
[07:46] <twb> martinjh99: in your .screenrc, I mean
[07:47] <martinjh99> wouldn't that run 3 instances of screen though?
[07:47] <twb> No
[07:47] <twb> .screenrc takes screen commands, not sh commands.
[07:48] <martinjh99> hmm ok
[07:48] <twb> In any case, the sh command "screen foo" will create a new tab if it is run within screen (i.e. if $STY is set)
[07:48] <twb> It is unfortunately an extremely confusing arrangement for newbies
[07:51] <martinjh99> certainly sounds like it  and why when i google "configuring screen" i get a load of windows pages ;)
[07:55] <twb> Your best references are 1) the manpage/infopage; and 2) #screen channel on Freenode
[07:56] <twb> You will have better luck (but still not good) in google by using `"GNU Screen"' rather than `screen'.
[08:01] <lenios> using /bin/screen instead of screen might help too
[08:01] <twb> Interesting idea
[08:04] <martinjh99> ah ok thanks - just searching ubuntu forums to see if they have anything there
[08:04] <twb> Pfft
[08:04] <twb> web fora are just people too stupid to use usenet
[08:05] <twb> Rather, too stupid to configure a newsreader
[08:06] <JanC> or a mail client  ;)
[08:08] <martinjh99> hehe well i found something I can use via Google... Thanks all
[08:10] <twb> JanC: I suppose so, although I prefer newsreaders for reading mailing lists :P
[09:23] <twister004> hi guys... how can i view my raid setup on an ubuntu server
[09:23] <raphink> twister004, hardware or software raid?
[09:23] <twister004> hardware
[09:24] <raphink> that depends on the kind of raid you have then
[09:24] <raphink> what is it?
[09:24] <twister004> it's RAID1
[09:24] <raphink> no I mean the brand
[09:24] <raphink> the controller
[09:24] <raphink> I'm used to array-info for smartarray (hp/compaq) for example
[09:25] <twister004> 82801G(ICH7 Family) IDE Controller
[09:25] <twister004> that's the adapter model
[09:26] <raphink> hmmm, google tells me this is an audio controller
[09:26] <twister004> it is?
[09:26] <raphink> :S
[09:26] <twister004> :D... my bad
[09:26] <twb> twister004: lspci -nn | grep IDE
[09:26] <raphink> or maybe there's two products with the same name
[09:26] <twb> ICH7 is just a southbridge
[09:27] <twb> Probably you've got an ICH7R or so
[09:27] <twister004> sorry... it's the N10/ICH7 Family SATA IDE CTRLLER
[09:27] <raphink> ok
[09:27] <twb> IOW fakeraid
[09:27] <twb> twister004: stick to md RAID
[09:28] <twister004> ill keep that in mind.. right now, in the "Disk Utility"... i see two HDDs under the Adapter.. are these the two RAIDed HDDs?
[09:28] <twb> Who cares?
[09:29] <twister004> or will I be able to see only one of the RAIDed hdd?
[09:29] <twister004> I want to know if there's a third hdd
[09:29] <twb> twister004: why are you using a GUI
[09:29] <twb> twister004: open the case, and count the drives, then
[09:29] <twister004> :D
[09:29] <twister004> im remotely located
[09:29] <twb> Blergh
[09:29] <twb> pastebin the contents of /proc/mdstat and /proc/partitions
[09:30] <twister004> partitions?.. is there a command called partitions?
[09:30] <twister004> i cant find it
[09:30] <raphink> hrmm
[09:30] <raphink> these are files...
[09:31] <raphink> just cat them, or use pastebinit to do it faster ;-)
[09:32] <twister004> oh.. here you go http://pastebin.com/jkR4HyJT
[09:33] <twb> twister004: you have two disks set up with per-partition RAID1 arrays
[09:33] <twister004> sory.. it's software raid
[09:33] <twister004> ok... but what about the third.. i remember it was in there
[09:34] <twb> There's no third disk, as far as linux sees
[09:34] <twb> There are three ARRAYS
[09:34] <twister004> is there something like a "devfsadm" for linux?
[09:34] <twb> I do not know what that is.
[09:34] <twb> The tool to manage md arrays is mdadm.
[09:34] <twister004> it's probing for devices(newly connected)
[09:35] <twister004> under solaris
[09:35] <twb> udev is infrastructure that responds to device events (including them being connected)
[09:36] <twb> e.g. you can tell it "whenever the USB mass-storage device with the serial number XXX is connected, mount it and start backing up /srv to it"
[09:36] <twb> But more generally it creates device files in /dev, and a bunch of desktop wankiness like mounting stuff in /media
[09:36] <twister004> twb.. ok
[09:36] <twister004> thanks
[09:37] <twister004> looks like there is no 3rd disk
[09:37] <twister004> wierd
[09:37] <twister004> i clearly remember there was a 3rd
[09:40] <twb> Maybe it's not cabled properly
[09:59] <twister004> twb.. yeah.. looks like that's the problem.. ill have to go onsite
[09:59] <twister004> thanks for all your help and advice!
[10:06] <twb> Well, I AM a genius
[10:16] <RoyK> http://xkcd.org/844/ :)
[11:10] <gobbe> win 17
[11:10] <gobbe> sorry
[11:28] <Frenk> Hey, I wanted to outsource my web-server so I created a virtual machine. Now I do not want to install Webmin, phpmyadmin again. Is there a software I can use to manage (add domain/add database) the virtual machine from the host?
[11:32] <twb> gobbe: that's not out yet
[11:33] <twb> Frenk: ssh
[12:06] <incorrect> s
[12:42] <Err404NotFound> how do i install http://pastebin.com/7u9AzMEh php extensions? i knew 2 so mentioned their packages, what about rest?
[13:18] <Frenk> I want to otain a SSL certificate but I  read that if it is password protected I need to enter the password each time a service is restarted. I have a monitoring solution (monit) which restarts the services if something happens. Is it very insecure to have a SSL-cert without password or is it easier to configure monit with the SSL-password?
[13:27] <pmatulis> Frenk: i don't think you can decrypt a certificate with a monitoring program
[13:28] <pmatulis> Frenk: it is standard to not encrypt certificates on services that need to come up unattended
[13:30] <Frenk> I mean the watchdog needs to start the service somehow ... even if ssl-cert is password protected... | Okay I try to set it up without password - but "The CSR key must have a length of 2048 bit" has nothing to do with wether its encrypted or not?
[13:31] <pmatulis> Frenk: no
[13:34] <patdk-wk> having a password on the cert is nice, if you think your box will be rooted
[13:35] <patdk-wk> not having a password is fine, as long as your not rooted
[13:35] <patdk-wk> then it can still be *ok* (depending on your definition and level of ok), if you revoke the cert, assuming you know you where rooted
[13:38] <Err404NotFound> how do i install these: http://pastebin.com/7u9AzMEh php extensions on ubuntu karmic? i have listed the two known ones, don't know packages for rest, tried apt-cache search name-here | grep php but no results
[13:40] <Frenk> patdk-wk: pmatulis thx
[13:48] <Error404NotFound> how do i install these: http://pastebin.com/7u9AzMEh php extensions on ubuntu karmic? i have listed the two known ones, don't know packages for rest, tried apt-cache search name-here | grep php but no results
[13:49] <Frenk> I have postfix installed for sending e-mail. Does my reverse dns has to be mail.domain.com or can I just use domain.com?
[13:52] <pmatulis> Frenk: the name that your MTA will expose to the internet should be both forward and reverse resolvable
[13:53] <pmatulis> Frenk: forward is more important but some MTAs may refuse your mail if reverse is missing
[13:55] <pmatulis> Frenk: but of course your actual domain name needs to be (at least forward) resolved as well
[13:55] <Frenk>  Ill check it =)
[13:57] <Error404NotFound> how do i install these: http://pastebin.com/7u9AzMEh php extensions on ubuntu karmic? i have listed the two known ones, don't know packages for rest, tried apt-cache search name-here | grep php but no results
[13:58] <Frenk> And I have a strange thing happening pmatulis, I have cyrus and denyhosts, every time denyhosts bans any ip the permission on /etc/hosts.deny are changed and cyrus cant read the file = refuses all connections. I dindt find any permission settings in deny-hosts config.
[14:02] <patdk-wk> Error404NotFound, they are installed by default in php-common (I think)
[14:02] <Error404NotFound> patdk-wk: pcre is, not sure abour json, couldn't find its config in php.ini
[14:03] <patdk-wk> heh, fail
[14:03] <patdk-wk> check with phpinfo
[14:03] <patdk-wk> there are no config options for json, so it won't be in php.ini
[14:06] <Error404NotFound> patdk-wk: :P
[14:06] <Error404NotFound> thanks :)
[14:10] <Arcitens> Hi. I followed a broken tutorial online for setting up Drupal with a LAMP stack on Ubuntu and I think I made some bad changes to my /etc/apache2/httpd.conf file. I'm wondering how I can either restore it to the original settings or reinstall apache with the original .conf file
[14:13] <zul> Daviey: can you have a look at 697753 its pretty simple
[14:17] <pmatulis> Arcitens: use at your own peril, also, check the path to the deb: 'dpkg --force-confnew -i /var/cache/apt/archive/apache???.deb'
[14:17] <pmatulis> 'archives'
[14:19] <pmatulis> zul: so re nc fix, will users of previous releases be burned in any way?
[14:19] <zul> pmatulis: as in?
[14:20] <pmatulis> zul: well, as i understand it, change to nc was to enable simultaneous connections to a libvirt session, will continue to be like this?
[14:20] <pmatulis> zul: w/o extra hoops?
[14:20] <zul> pmatulis: the "-q" functionality was put back but with a warning message
[14:21] <pmatulis> zul: i guess i don't grok the issue, i thought the 'q' thing was the change we put in
[14:21] <pmatulis> zul: that caused the bug
[14:25] <zul> pmatulis: right it is...but its very tied into libvirt, users can use netcat-traditional if they need regular functionality
[14:28] <pmatulis> zul: but what if they need both libvirt *and* traditional functionality?
[14:28] <zul> pmatulis: good point lemme think about it
[14:28] <mdeslaur> pmatulis: then they use nc.traditional
[14:28] <pmatulis> mdeslaur: o_0
[14:29] <mdeslaur> pmatulis: oh, zul updated the patch to the one debian just changed....so nc-openbsd now behaves like the upstream one
[14:29] <mdeslaur> ie: behaviour is the same if no -q is given
[14:29] <pmatulis> mdeslaur: ok, that makes sense then
[14:30] <mdeslaur> but the default behaviour between nc-traditional and nc-openbsd is different, and that has nothing to do with the -q patch
[14:30] <Arcitens> pmatulis: Sorry, I went afk. And I'm not sure what exactly you're suggesting I do there, sorry.
[14:30] <mdeslaur> fedora uses nc-openbsd by default, and we do too now...so if anything, we'll be consistent
[14:30] <pmatulis> Arcitens: it's a command
[14:31] <Arcitens> pmatulis: and I should replace ??? with apache version?
[14:31] <pmatulis> Arcitens: to the real path of the package that provides the conf file your're talking about
[14:31] <Arcitens> pmatulis: ah, ok. thanks.
[14:31] <soren> pmatulis: It wasn't to enable simultaneous connections to libvirt. It was to enable more than one *ever*. If you had connected to it with nc.traditional once, you could never, ever connect to it again.
[14:32] <pmatulis> Arcitens: to be sure: 'dpkg -S /etc/apache2/httpd.conf'
[14:32] <pmatulis> soren: ah
[14:33] <mdeslaur> hi soren!
[14:33] <Arcitens> pmatulis: says not found when I ran the second command. (Sorry I'm being a total noob here. I appreciate the help.)
[14:33] <pmatulis> Arcitens: so the path you gave is not right
[14:34] <Arcitens> pmatulis: it must be. I'm staring at the file in nautilus and I can open it with 'gedit /etc/apache2/httpd.conf'
[14:35] <pmatulis> Arcitens: symlink?
[14:35] <Arcitens> pmatulis: nope
[14:35] <soren> mdeslaur: dude.
[14:35] <soren> mdeslaur: :)
[14:36] <mdeslaur> :)
[14:36] <Arcitens> pmatulis: I'm fine just starting over completely. is there a way I can uninstall the whole apache-mysql-php stack including the config files and then reinstall and work with a fresh slate?
[14:37] <pmatulis> Arcitens: i'm not sure you can back out completely from a tasksel task
[14:37] <Arcitens> pmatulis: that's unfortunate :(
[14:37] <pmatulis> Arcitens: you'll need to google 'round.  maybe view what the task does and remove individual packages
[14:38] <pmatulis> Arcitens: there's a file that explains the tasks
[14:38] <pmatulis> Arcitens: man tasksel
[14:38] <Arcitens> pmatulis: Hmm ok. what about just the apache part? Can I uninstall apache and purge the config files for that? I have a feeling it's apache I screwed up in.
[14:38] <pmatulis> Arcitens: sure
[14:39] <pmatulis> Arcitens: 'aptitude purge apache' should do it
[14:39] <Arcitens> pmatulis: thanks very much for the help.
[14:39] <soren> Tasks don't "do" anything.
[14:39] <soren> They're just a set of packages.
[14:40] <pmatulis> soren: possible to remove associated packages in one fell swoop?
[14:41] <soren> I suppose "sudo apt-get --purge remove taskname^" should do it.
[14:41] <soren> (Note the ^ at the end)
[14:41] <pmatulis> right, ok
[14:41] <AndyGraybeal> is it best to use the VM image or ubuntu server for vm?
[14:41] <pmatulis> AndyGraybeal: say what?
[14:41] <AndyGraybeal> aaah nevermind
[14:41] <gobbe> AndyGraybeal: there is no more JEOS version available
[14:42] <AndyGraybeal> f4  on install and it pops up for vm install!
[14:42] <AndyGraybeal> i'm a bit behind the times.
[14:42] <gobbe> aah, you mean that
[14:42] <AndyGraybeal> i have ubuntu 10.04 server install and i hit f4 on what type of install i want to do .. and i see the virtual machine choice now, it didnt show up earlier becaues i was doing something wrong.!
[14:43] <AndyGraybeal> thanks gobbe  and pmatulis
[14:43] <gobbe> :)
[14:43] <AndyGraybeal> this is the recommended way to start out with a VM correcT?
[14:44] <pmatulis> AndyGraybeal: you want to create a KVM guest?
[14:45] <AndyGraybeal> pmatulis: yes
[14:45] <pmatulis> AndyGraybeal: use virt-manager is you are just beginning
[14:45] <pmatulis> s/is/if
[14:45] <AndyGraybeal> oh no no, i've made many images with virt-install but i have used the 'normal' install frm ubuntu server disc
[14:46] <AndyGraybeal> i just learned yesterday aboutthe VM install!
[14:46] <AndyGraybeal> i learned kvm about 2 years ago with 8.10
[14:47] <AndyGraybeal> well learned enough to make it from point a to point b... throw a ringer in the mix and i'm confused.. but from point a to b and i'm fine.
[14:47] <pmatulis> AndyGraybeal: i never used a VM install explicitly in the installer.  i assume it just makes a minimal install + the virtual kernel
[14:47] <AndyGraybeal> i wouldn't know how to do that manually, so this is great :)
[14:47] <pmatulis> AndyGraybeal: comparable to what vmbuilder does
[14:48] <AndyGraybeal> i haven''t used vmbuilder since 8.10
[14:48] <pmatulis> AndyGraybeal: so what's your question then?
[14:48] <AndyGraybeal> i was asking about how to get to the virtual install; i hit f4 on the wrong screen, i eventually found it and answered my own question.
[14:49] <Arcitens> pmatulis: Well, google wins in the ned. All I had to do was add 'ServerName localhost:80' to 'httpd.conf' Now it seems to be working fine... Feel like a bit of a fool, but hey, learning experience, right? Thanks again for the help.
[14:49] <AndyGraybeal> pmatulis: sory for keepihng yuo hanging.
[14:51] <pmatulis> good, looks like everybody is happy now
[14:57] <AndyGraybeal> :)
[15:09] <hggdh> zul: I will ping mathiaz when he pops up re. uec-testing-scripts-devs (adding you)
[15:10] <hggdh> (just noted you are pending there)
[15:11] <zul> hggdh: thanks
[15:13] <joe-mac> the preseed value for d-i for partman-md/device_remove_md doesn't actually remove md
[15:13] <joe-mac> the install fails if md devices exist
[15:13] <joe-mac> so i have to mdadm -S /dev/md* && mdadm --zero-superblock /dev/sd* before i start the installer
[15:14] <joe-mac> and that can't be automated via early_command in a nice way, the mdadm udeb isn't loaded yet, and even if it was it can exit non zero eevn if the intended operatuion completes successfully on some of the nodes that * expands to
[15:14] <hallyn> jdstrand: just to be sure - have all your bad kvm tests been using a snapshotted qcow2 guest?
[15:14] <joe-mac> this is 10.04
[15:15] <joe-mac> also it seems the partition priority and sizxing doesn't behave as expected when doing lvm over raid
[15:21] <jdstrand> hallyn: a snapshot was always involved, yes. in the 'upgrade one/install another' test (comment #12), only the upgraded one was snapshotted as the other was still being bootstrapped
[15:21] <joe-mac> may have discovered how to fix the priority weirdness, apparently the order is dependent in this scenario
[15:21] <joe-mac> maybe the device_remove_md is order-dependent? anyone using this preseed value with success?
[15:22] <jdstrand> hallyn: also, I almost always was using a mix of i386 and amd64 installs, but I can't so with certainty I always did (and therefore can't say it is 'ok' with just one or the other)
[15:22] <yann2> hello! Could someone tell me what this means: Jan  7 15:14:32 leibniz kernel: [11819455.470672] type=1505 audit(1294413272.487:208):  operation="profile_load" pid=19195 name="libvirt-4e12e041-2ec2-587c-4655-8c51167c15cb"
[15:22] <jdstrand> hallyn: and by 'installs', I mean 'guest installs'
[15:23] <gobbe> yann2: apparmor is preventing
[15:23] <jdstrand> yann2: libvirt uses apparmor to confine virtual machines
[15:23] <jdstrand> gobbe: no, it isn't
[15:23] <gobbe> ah, sorry
[15:23] <yann2> I just stopped apparmor
[15:23] <gobbe> well, apparmor yes, not preventing :)
[15:23] <jdstrand> yann2, gobbe: that line is just telling you that the profile loaded
[15:23] <gobbe> i didn't read enough good
[15:23] <yann2> damn I stopped whole apparmor before :(
[15:24] <jdstrand> yann2: no reason to stop apparmor for that line-- if apparmor is causing a problem, it will log a denial
[15:24] <gobbe> and then you can tune apparmor
[15:24] <gobbe> infact apparmor is working quite well
[15:25] <yann2> k, is a dev server anyway
[15:25] <jdstrand> profile_load and profile_remove are purely informational, and letting you know that everything is working properly
[15:25] <gobbe> if you compare to selinux which might be pain in the ass
[15:25] <yann2> Jan  7 15:14:32 leibniz kernel: [11819455.470672] type=1505 audit(1294413272.487:208):  operation="profile_load" pid=19195 name="libvirt-4e12e041-2ec2-587c-4655-8c51167c15cb"
[15:25] <yann2> arg
[15:26] <yann2> Jan  7 15:05:14 leibniz kernel: [11818898.104525] type=1503 audit(1294412714.157:188):  operation="open" pid=18580 parent=1603 profile="/usr/lib/libvirt/virt-aa-helper" requested_mask="r::" denied_mask="r::" fsuid=0 ouid=0 name="/var/lib/kvm/oasouth-itadmin/root.qcow2"  thats the one that got me concerned
[15:26] <jdstrand> yann2: virt-aa-helper denials are not necessarily fatal
[15:26] <jdstrand> yann2: look in /etc/apparmor.d/libvirt/libvirt-4e12e041-2ec2-587c-4655-8c51167c15cb.files
[15:27] <jdstrand> yann2: if it has /var/lib/kvm/oasouth-itadmin/root.qcow2, you are ok
[15:27] <jdstrand> yann2: virt-aa-helper is what generates the dynamic profile, tailored for your vm
[15:28] <hallyn> jdstrand: btw i'm trying to use the security team docs examples to vm-clone etc - but when i vm-clone it starts the new machine but doesn't manage to connect t it over ssh to do the updates it wants.  Is this known (.e. some script needs to add '.' to the hostname or something)?
[15:28] <yann2> mmmh could it be that apparmor is making issues if I put my VM in tmpfs?
[15:28] <jdstrand> yann2: it would show denials in the log
[15:28] <joe-mac> i know selinux could
[15:28] <joe-mac> i don't know much about AA but yea it would be in the audit logs
[15:29] <jdstrand> yann2: /var/lib/kvm/oasouth-itadmin/root.qcow2 should be allowed though, because of this line in virt-aa-helper's profile:
[15:29] <jdstrand>   /**.qcow{,2} r,
[15:29] <jdstrand> yann2: is /var/lib/kvm/oasouth-itadmin/root.qcow2 a symlink?
[15:29] <yann2> nope, thats where I put my vms
[15:30] <yann2> the /var/lib/kvm/oasouth-itadmin/ is a tmpfs though
[15:30] <jdstrand> hallyn: I haven't used vm-clone in ages
[15:30] <yann2> when running the vm from disk instead of tmpfs it doesnt freeze anymore though :)
[15:30] <jdstrand> yann2: what are the contents of /etc/apparmor.d/libvirt/libvirt-4e12e041-2ec2-587c-4655-8c51167c15cb*
[15:31] <jdstrand> hallyn: vm-clone doesn't do snapshots
[15:31] <hallyn> jdstrand: oh.  ok.  well, i'll keep trying, and will try a i386 one
[15:31] <jdstrand> hallyn: (which is why I don't use it anymore)
[15:31] <hallyn> what do you use then?
[15:31] <hallyn> just vm-start -s?
[15:31] <jdstrand> hallyn: that page has a section down below for using snapshots
[15:32] <hallyn> kthx
[15:32] <jdstrand> hallyn: you looked at 'Cloned virtual machines'. I use 'Snapshotted virtual machines'
[15:32] <yann2> jdstrand, http://pastealacon.com/26508
[15:33] <jdstrand> hallyn: someone from the team may use vm-clone-- perhaps kees or mdeslaur, I'm not sure. I used to, but don't any more
[15:33] <mdeslaur> hallyn: I'm trying to debug that exact problem as we speak :)
[15:33] <mdeslaur> I tried to use vm-clone this morning, and it's not working
[15:34] <jdstrand> mdeslaur: does vm-clone use nc?
[15:34] <mdeslaur> jdstrand: I looked at that, but that's not the issue
[15:34] <mdeslaur> hallyn: you're on natty, right?
[15:35] <jdstrand> yann2: from an apparmor perspective, it looks ok. I suggest looking in /var/log/libvirt/
[15:35] <mdeslaur> jdstrand: it's not mounting the images successfully I think...anyway, I'm still poking at it
[15:35] <jdstrand> yann2: if you want, you can add:
[15:35] <yann2> thats where I started :)
[15:35] <jdstrand>   /var/lib/kvm/** r,
[15:36] <yann2> jdstrand, do you think that having /var/lib/kvm/oasouth-itadmin mounted as tmpfs changes anything for apparmor, than having it not?
[15:36] <jdstrand> to /etc/apparmor.d/usr.lib.libvirt.virt-aa-helper and reload with 'sudo apaprmor_parser -r  /etc/apparmor.d/usr.lib.libvirt.virt-aa-helper'
[15:36] <yann2> for some reasons it doesnt work when mounted as tmpfs. It does work when not, but it's dog slow :(
[15:37] <jdstrand> yann2: but that won't fix your issue-- you can see the dynamic profile is correctly generated
[15:37] <jdstrand> yann2: having as tmpfs should make no difference
[15:37] <yann2> jdstrand, my real issue is that its a windows vm - and it freezes after a few seconds now
[15:37] <yann2> works fine without tmpfs, but am installing service pack on windows
[15:38] <jdstrand> yann2: what version of ubuntu is the host?
[15:38] <yann2> 10.4
[15:39] <jdstrand> yann2: so, if you really think it is apparmor, you can sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.libvirtd, then stop and start libvirt
[15:40] <yann2> I got no idea if its apparmor, its the only indication I could find in the logs :)
[15:40] <jdstrand> yann2: do you have enough ram? iirc a tmpfs can only take 50% of your ram. so that is half your ram for the disk, and then your vm still needs ram for itself
[15:40] <yann2> oh that would explain yes
[15:40] <yann2> host has 8GB and vm is 3.9GB :) host still had some ram left though
[15:41] <yann2> I ll try again on a host with more ram - thanks a lot for the info, thats probably it
[15:41] <jdstrand> sure
[15:47] <hallyn> jdstrand: btw, as i was reading the securityteam/testenvironment page yesterday I *was* wondering why i'd want to first clone, then create a runtime snapshot :).  oops
[15:49] <jdstrand> heh
[15:49] <jdstrand> hallyn: feel free to clarify the page if it is misleading
[15:51] <hallyn> jdstrand: i suspect i just read it too fast
[16:14] <macno> I'm running vmbuilder to create a VM with a LV as disk but parted gives an error http://paste.ubuntu.com/551525/
[16:18] <yann2> jdstrand, btw, it would be nice if qemu would throw out a small warning to syslog in case it fails to grow a growable qcow2 image - not sure where i should report that too
[16:18] <yann2> -o
[16:19] <jdstrand> yann2: probably against upstream qemu-kvm
[16:23] <mdeslaur> hallyn: bzr update the ubuntu-qa-tools tree
[16:23] <mdeslaur> hallyn: I fixed the problem, but now have hit a second problem
[16:24] <mdeslaur> hallyn: seems unmounting a qcow image now hangs with natty
[16:31] <hallyn> mdeslaur: zounds
[16:31] <hallyn> thanks :)
[16:32] <mdeslaur> hallyn: if you figure out why qemu-nbd is hanging, let me know
[16:33] <hallyn> ok
[16:33] <FunnyLookinHat> Ok you master admins - question for ya - I currently have sendmail installed and running on a box - it
[16:33] <FunnyLookinHat> it's all working fine, but I want to start using an external service.
[16:33] <FunnyLookinHat> Rather than rewrite all of my scripts, is there a way to create a smarthost for a single user with sendmail ?
[16:39] <mrroth> how do I convert my ubuntuserver in to a nas
[16:39] <mrroth> is thie ra hwo to
[16:39] <macno> FunnyLookinHat, do you mean forward to another server all the mails directed to a specific user?
[16:39] <FunnyLookinHat> Yeah - and to do so with a different username/password.
[16:40] <FunnyLookinHat> So take user1 at localhost smtp - and forward to user2/pass2 at external.smtpserver.com
[16:40] <macno> add an alias
[16:40] <FunnyLookinHat> That's all ?  Wow - easy.
[16:41] <macno> that's all. remebert to run newaliases after editing /etc/aliases
[16:41] <FunnyLookinHat> Hmm wait.
[16:41] <FunnyLookinHat> No that will just forward emails.
[16:41] <FunnyLookinHat> I need to forward the SMTP request.
[16:41] <macno> why?
[16:41] <b0gatyr> mrroth: you might want to look into FreeNAS as well
[16:42] <mrroth> yea
[16:42] <mrroth> I am
[16:42] <mrroth> I got freenas on my usb stick
[16:42] <mrroth> but
[16:42] <mrroth> it saying starting starting devd
[16:42] <FunnyLookinHat> macno: Because I'm rolling our services into sendgrid - to improve deliverability, etc. - and rather than change every hard-coded setting for the SMTP stuff in our php scripts, I'd prefer to make just one change so I can roll it back easily if necessary :)
[16:42] <b0gatyr> mrroth: boot it of a VM might be better
[16:42] <FunnyLookinHat> http://c0001374.cdn1.cloudfiles.rackspacecloud.com/dcerb1a17.jpg
[16:42] <FunnyLookinHat> Woops - sorry
[16:43] <FunnyLookinHat> Ignore that please :)
[16:43] <mrroth> so install ubuntu server
[16:43] <mrroth> then install a vm soultion for ubuntu server
[16:43] <b0gatyr> nice pic, now my wallpaper ;)
[16:43] <mrroth> hmm
[16:43] <air^> :D
[16:49] <FunnyLookinHat> b0gatyr: glad you liked it - source: pegshot.com/p/dcerb1a17/
[16:57] <zul> php i sawesome!
[16:57] <FunnyLookinHat> zul: Yes.
[16:57] <FunnyLookinHat> :)
[18:05] <FunnyLookinHat> Question of the day - is there a way to run a find/replace on file contents recursively ?
[18:07] <lau> how can i handle debconf "dialog issue TERM not set using Teletype instead" issue when aptitude -y safe-upgrade fia fabfile.py ?
[18:11] <FunnyLookinHat> Heh - find + sed
[18:12] <DrPoO> Hi, Im getting a "System information disabled due to load higher than 1" message upon reboot. I have no idea what causes this. Any ideas?
[18:15] <shauno> FunnyLookinHat: it's going to be something along those lines, yeah.  I don't know anything that does it out of the box.  but plenty of things that could be duct-taped together to do it
[18:16] <FunnyLookinHat> shauno: I'm trying to do something like this...
[18:16] <FunnyLookinHat> find ./ -type f -exec sed -i 's/"$params['host'] = 'localhost';"/"$params['host'] = 'smtp.sendgrid.com';"/' {} \;
[18:16] <FunnyLookinHat> But it won't find my switch and replace statements it seems
[18:17] <shauno> that does look fun.  you're going to need to escape a lot of that.
[18:17] <FunnyLookinHat> wonderful.
[18:18] <FunnyLookinHat> I thought the " " surrounding would remove the need to escape ?
[18:18] <shauno> $ echo one two three | sed 's/"one"/"1"/'
[18:18] <shauno> one two three
[18:18] <shauno> litmus test doesn't look too hopeful
[18:19] <RoyK> I don't think sed interprets "
[18:19] <FunnyLookinHat> blarg!
[18:19] <zeknox> does ubuntu have a lighter version of server?
[18:19] <RoyK> inside '', the shell won't interpret anything, so " is sent to sed, which sees it as a character without any special means
[18:20] <DrPoO> does anybody know what the  message "System information disabled due to load higher than 1"  means ? It appears upon login
[18:20] <RoyK> zeknox: in the grub menu at the start of the installation, you can choose a miniature installation
[18:20] <zeknox> DrPoO: you're server has too high of a load that it doesn't have extra cpu cycles to handle the 'system info' on login
[18:21] <zeknox> RoyK: thanks!  that might be just what we need
[18:21] <RoyK> zeknox: hah ... it says that on my 24 core machines too, if they are running at load 1.1
[18:21] <zeknox> RoyK: haha....> 1.0 isn't even that large of a load IMO, its a semi decent load but not huge
[18:21] <RoyK> having that limit set load load 1 is quite low imho
[18:22] <RoyK> most systems today have 2 or 4 or more cpus
[18:22] <zeknox> RoyK: I concur
[18:23] <RoyK> roy@tor:~$ uptime  19:23:10 up 55 days, 22:48,  3 users,  load average: 25.08, 25.06, 25.03
[18:23] <DrPoO> zeknox, any suggestions as to how to find what is causing this problem?
[18:24] <DrPoO> zeknox, the machine seems to work fine, except for that message....
[18:24] <zeknox> DrPoO: run top, what is eating cpu cycles?
[18:24] <RoyK> in /etc/update-motd.d/50-landscape-sysinfo, remove the check
[18:25] <DrPoO> zeknox, right now, nothing.... I guess it peaks for some reason when it reboots
[18:26] <RoyK> DrPoO: see that file
[18:27] <FunnyLookinHat> Any idea why this won't run?  It expects more input... http://pastebin.com/zv1Fuk2v
[18:29] <RoyK> FunnyLookinHat: you're running that search and replace on all files in a dir and its subsequent subdirs?
[18:29] <FunnyLookinHat> Yup :)
[18:29] <FunnyLookinHat> Long story.
[18:29]  * RoyK doesn't want to hear it
[18:29] <FunnyLookinHat> Any idea how to fix that statement to work?  I think I'm escaping one thing too many...
[18:33] <RoyK> FunnyLookinHat: how many files?
[18:33] <FunnyLookinHat> ~ 50-75
[18:33] <FunnyLookinHat> And I have to make 6 other changes similar to that one.
[18:33] <RoyK> FunnyLookinHat: consider setting the settings in one file and then just include that
[18:34] <FunnyLookinHat> Right - well I will.. but first I have to replace the hard-coded setting with a global variable first...
[18:34] <FunnyLookinHat> and to do that - I have to figure out sed first :)
[18:34] <FunnyLookinHat> So realistically my statement will be to switch the $params['host'] = localhost; with $params['host'] = $smtp_host;
[18:34] <RoyK> or use perl :P
[18:34] <FunnyLookinHat> And define $smtp_host in my include file.
[18:34] <FunnyLookinHat> >_<
[18:35] <RoyK> yes
[18:36] <FunnyLookinHat> RoyK: you're saying use PERL to run the find/replace instead of bash ?
[18:37] <RoyK> perl regex is a bit simpler or at least far more efficient than sed
[18:37] <RoyK> that is
[18:37] <RoyK> it's not simpler
[18:38] <RoyK> but it's way better
[18:38] <FunnyLookinHat> Then it's not solving my problem. :)
[18:38] <FunnyLookinHat> Because I can't even figure out my escape problem ...
[18:38] <FunnyLookinHat> :)
[18:38] <RoyK> the escape problem is mainly because you're running it inline from the command line
[18:38] <RoyK> which complicates things a bit
[18:38] <RoyK> upload one of the files, please
[18:41] <FunnyLookinHat> http://php.pastebin.com/Gk4b81TE
[18:41] <FunnyLookinHat> That's a test file
[18:42] <RoyK> http://pastebin.com/bUkHECiM
[18:42] <RoyK> save that script, run it as ./fixme.pl file1 file2
[18:43] <RoyK> or find . -type f -exec ./fixme {} \;
[18:43] <FunnyLookinHat> Ok thanks
[18:43] <FunnyLookinHat> !
[18:44] <RoyK> or perhaps
[18:44] <RoyK> http://php.pastebin.com/bS3cdZH4
[18:47] <RoyK> FunnyLookinHat: mind, code not tested :P
[18:47] <FunnyLookinHat> Right
[18:47] <FunnyLookinHat> Definitely going to test, etc.
[18:48] <RoyK> the open statement for NEWF is wrong, btw
[18:48] <RoyK> http://pastebin.com/9hNErGHE
[18:54] <lxcnovice> hi can anyone give me an xorg.conf for a headless server - to use with vnc?
[19:02] <yann2> I wonder if KVM vms support wakeonlan :)
[19:20] <RoyK> yann2: ??
[19:25] <yann2> RoyK, ?
[19:31] <RoyK> yann2: just wonder wtf you would use wake-on-lan with a vm :)
[19:32] <Adog> hi is there any network admins in here that could help me out with a RAS VPN Server
[19:32] <yann2> RoyK, could be useful in my case :)
[19:33] <yann2> plus just interested if it works at all :) I guess I'll give it a try ;)
[19:33] <Adog> are you talking to me or someone else? lol
[19:45] <ventz> I have a system configured to auth agaist ldap. Login/auth works, passwd works, sudo works (after install nscd), but chsh does not
[19:45] <ventz> wondering if anyone else has seen anything like this. I keep getting 'Cannot change ID to root.' when I try 'chsh -s /bin/$someshell $username'
[19:47] <RoyK> ventz: first hit on google http://moduli.net/sysadmin/sarge-ldap-auth-howto.html
[19:48] <ventz> RoyK: saw that, but everything in ldap looks correct
[19:50] <ventz> interesting, so i think lilbpam-ldap is not installed
[19:52] <ventz> hm, it is installed correctly
[19:58] <ventz> RoyK: so I think a system update/upgrade somewhere along the lines replaced the sym links the previous person setup -- I used the divert
[19:58] <ventz> now it's at least using the correct chsh
[20:03] <Arcitens> when using the following: mysql> grant usage on *.* to user@localhost identified by 'password' should the "password" include single quotes in the terminal or just type it as password, no quotes?
[20:03] <Arcitens> I've been looking at a few different tutorials that have confused me on the matter
[20:04] <ventz> Arcitens: I always use single '
[20:05] <ventz> Arcitens: create database a;
[20:05] <ventz> CREATE USER 'a'@'localhost' IDENTIFIED BY 'password';
[20:05] <ventz> GRANT ALL PRIVILEGES ON a.* TO 'a'@'localhost';
[20:05] <ventz> FLUSH PRIVILEGES;
[20:05] <ventz> (for example)
[20:05] <Arcitens> ventz: so does that mean that my actual password will have single quotes. or are the single quotes part of the syntax?
[20:05] <ventz> it will not have single quotes
[20:05] <Arcitens> great. thanks.
[20:06] <ventz> it's just to specify the string
[20:06] <ventz> np
[20:07] <RoyK> or just 'create user something@somewhere.org identified by 'password'
[20:07] <RoyK> erm
[20:08] <RoyK> grant all on something.* to someone@somewhere.org identified by 'asdf';
[20:08] <RoyK> that'll create the user if it doesn't exist
[20:08] <RoyK> the extra apostrophes can be left out
[20:10] <Arcitens> oh. so the apostrophes are irrelevant either way and I was working myself into a tiff over nothing? :p
[20:10] <RoyK> mysql is quite sloppy when it comes to syntax - quotes or no quotes, it just guesses
[20:10] <Arcitens> heh, I see
[20:10] <RoyK> but you need quotes around strings
[20:10] <RoyK> such as you password
[20:11] <RoyK> not the username or host, though
[20:11] <Arcitens> that seems...consistent
[20:11] <RoyK> the extra quotes around user/host was _added_ by mysql developers
[20:11] <RoyK> though not strictly
[20:11] <RoyK> the original SQL syntax doesn't require that
[20:11] <RoyK> SQL93 IIRC
[20:12] <Arcitens> ok
[20:12] <RoyK> also, keep in mind that if you want to build a serious database, perhaps postgresql might be a better choice
[20:13] <RoyK> but again, mysql is neat for small stuff
[20:13] <Arcitens> yeah. i'm just getting started with all this business. so i think i'll stick to what most people say is best for beginners
[20:14] <RoyK> postgresql has a steeper learning curve, but it's way cooler with its object model and caching paragidme
[20:14] <RoyK> the sql syntax is, well, just sql
[20:15] <Arcitens> Well, maybe (hopefully) I'll get there eventually. But I'm struggling along enough with this as it is. So for now I'll settle for the less steep learning curve.
[20:15] <RoyK> not too much of a change whether you use oracle or mysql or sybase or mssql or postgresql or even sqlite
[20:15] <Arcitens> i see
[20:16] <RoyK> on complex joins and stored procedures and again, object models, that's where you start to see the differences
[20:16] <RoyK> your average SELECT * FROM girls WHERE name != 'mom' AND age < mine; will probably run on all platforms
[20:24] <Arcitens> What could be causing me to get a response: "Failed to connect to your database server. The server reports the following message: SQLSTATE[42000] [1049] Unknown database 'drupal7db'." after I just ran 'mysql> create database drupal7db' and did all the grant privileges etc. ?
[20:25] <ventz> RoyK: got the chsh to work
[20:25] <RoyK> ventz: cool
[20:25] <RoyK> Arcitens: connecting from localhost or another box?
[20:25] <ventz> there were partially two problems. One was someone symlinking it, and an update wiped the symlinks, the other was some modifications of the perl script and nscd was/still is a problem (caching)
[20:26] <RoyK> ventz: file a bug :)
[20:26] <Arcitens> Royk: no. trying to set up LAMP for Drupal development on my own desktop.
[20:26] <RoyK> Arcitens: then your average grant all on dbname.* to someuser@localhost identified by 'somepass'; should work well
[20:26] <ventz> I am thinking of adding an /etc/init.d/nscd restart at the bottom of that script and allowing that script to be run
[20:27] <ventz> RoyK: i saw what happened to the 'sudo w/ ldap(s) enabled' bug -- still out there
[20:27] <Arcitens> Royk: But it thinks the db doesn't exist for some reason?
[20:27] <RoyK> Arcitens: pastebin list databases;
[20:28] <Arcitens> Royk: sorry, where should I enter 'list databases'?
[20:28] <RoyK> Arcitens: in the mysql console
[20:29] <RoyK> just run mysql as root
[20:29] <RoyK> or mysql -p if you've set a password
[20:29] <Arcitens> yeah i'm in there
[20:29] <RoyK> ok, list databases
[20:29] <Arcitens> i get no response with 'list databases' and i get a syntax error with 'list databases;'
[20:29] <RoyK> check if the database exists
[20:29] <RoyK> erm
[20:29] <RoyK> show
[20:29] <RoyK> not list
[20:29] <RoyK> my fault
[20:30] <Arcitens> ah, no problem.
[20:30] <RoyK> then show grants should list the grants
[20:30] <Arcitens> hmm. i'm still actually getting no response on 'show databases'
[20:30] <RoyK> add a ;
[20:30] <Arcitens> i did
[20:31] <RoyK> it should be like this http://pastebin.com/D0G74xA2
[20:32] <Arcitens> ok. logged out of mysql and back in and it worked. none of the dbs I *thought* I created are there. So I did something wrong with the create db commands?
[20:33] <RoyK> possibly
[20:33] <Arcitens> I see information_schema, mysql, phpmyadmin
[20:33] <RoyK> ok
[20:33] <RoyK> type 'create database whatsitsname;'
[20:33] <RoyK> without the quotes
[20:33] <Arcitens> done
[20:33] <RoyK> phpmyadmin is worthless if you want to learn :)
[20:33] <RoyK> then
[20:34] <Arcitens> heh. ok.
[20:34] <RoyK> use whatsitsname;
[20:34] <RoyK> then grant all on whatsitsname.* to someuser@somehost identified by 'somepass';
[20:34] <RoyK> it's not really necessary to 'use' the database before the grant, but that makes your selects local to tht db
[20:34] <RoyK> or any sql query, really
[20:36] <Arcitens> oy. I didn't put the closing ; on any of the commands I was running. Didn't realize that was essential. Hopefully this will work well now. show databases; shows the db I just created now.
[20:36] <Arcitens> let's see if I can figure out the rest of this now.
[20:36] <RoyK> if you forget the ;
[20:36] <RoyK> just follow that after pressing enter
[20:36] <RoyK> sql isn't line-based
[20:37] <Arcitens> oh, interesting
[20:38] <RoyK> some commands aren't sql, like 'use', so they don't need the semicolon
[20:38] <Arcitens> awesome. I think my databases are working now. Thanks so much for your help.
[20:39] <RoyK> ;)
[20:39] <Arcitens> anything I can do to thank you? I don't know if people write other people positive feedback or anything...
[20:39] <RoyK> just don't use phpmyadmin or some silly webapp if you want to learn
[20:39] <RoyK> nah - just stay and help others
[20:39] <RoyK> that's the best thanks you can give
[20:40] <Slyboots> Hmm
[20:40] <Slyboots> Is there anthing like htop for network usage?
[20:40] <RoyK> iptraf?
[20:41] <Slyboots> Neat
[20:41] <RoyK> yeah
[20:41] <Slyboots> Thanks.. Dont suppose you know if there is a better version of iotop? ;)
[20:41] <RoyK> 10+YO app
[20:42] <RoyK> not really
[20:42] <RoyK> measuring i/o on linux is a bitch
[20:43]  * Slyboots nods..
[20:43] <Slyboots> Sometimes I can hear the disk spinning and rnning when they should be asleep
[20:44] <RoyK> iirc there's a dtrace replacement for linux, but i don't remember its name
[20:44] <Slyboots> Actually what is the linux power managment called?
[20:44] <Slyboots> ampd ?
[20:44] <Slyboots> apmd..
[20:44] <RoyK> apmd is quite old
[20:45] <Slyboots> Im a little worried about applying power maangment to the disks (They are greens and part of a RAID array)
[20:45] <RoyK> iirc systrap is the one for linux
[20:45] <RoyK> pretty advanced
[20:45] <RoyK> no, perhaps I'm wrong
[20:46] <Slyboots> I've tried dtrace before..bewildering
[20:46] <RoyK> system tap
[20:47] <RoyK> sudo su -
[20:47] <RoyK> ops
[20:47] <RoyK> systemtap can give you a bit of info, perhaps close to dtrace
[20:48] <Slyboots> Mmm
[20:50] <RoyK> Arcitens: IRC is still web 0.0, so no chance to add comments :)
[20:51] <Arcitens> Royk :p sure, but perhaps you want some props on your ubuntu wiki page or something. i dunno. ;)
[20:53] <RoyK> nah
[20:53] <Slyboots> :P
[20:53] <RoyK> no problem
[20:53] <RoyK> but thanks
[20:54] <Arcitens> hey, thank you. :)
[20:54] <RoyK> Arcitens: IRC work by means of people wanting help and wanting to help, and, of course, a few trolls come by every now and then :P
[20:55] <Arcitens> Royk: fair enough. Just new to a lot of this.
[20:55] <RoyK> Arcitens: heh - welcome to the Old World
[20:56] <Arcitens> Royk: ha. Happy to be here.
[20:57] <eightphantomz> hi guys... im very much new in ubuntu and linux/unix as a whole... i decided to use ubuntu for my NAS project. this NAS will be my ftp/torrent machine. my question is, do i need all LAMP?
[20:58] <RoyK> nope
[20:58] <RoyK> eightphantomz: also, how much data will you have on this?
[20:59] <eightphantomz> ok... i've googled and got mixed up with all the ubuntu server thingy...
[20:59] <RoyK> eightphantomz: if it's terabytes, you might want to consider using zfs instead of the standard raid systems
[20:59] <eightphantomz> yes tb
[20:59] <RoyK> eightphantomz: it won't hurt the server if those lamp processes are running
[20:59] <eightphantomz> oh ok... might aswell play around with LAMP for study purpose i guess..
[21:00] <RoyK> the problem with big storage systems is that modern drives have the same fault rate per sector as the old 1GB drives had
[21:00] <RoyK> and with a truckload of terabytes, you get silent errors, not detected by the drive, and thus not by the OS
[21:00] <RoyK> so you want a filesystem with data checksumming
[21:01] <eightphantomz> i need to read up zfs
[21:01] <Slyboots> I thought ZFS didnt work with Ubuntu
[21:01] <eightphantomz> lol
[21:01] <RoyK> eightphantomz: also, if this is just a storage machine for nfs or smb/cifs, I'd recommmend something like openindiana
[21:01] <RoyK> eightphantomz: http://hub.opensolaris.org/bin/download/Community+Group+zfs/docs/zfslast.pdf
[21:02] <eightphantomz> yes it will also my storage machine
[21:02] <RoyK> Slyboots: zfs-fuse works well
[21:02] <RoyK> Slyboots: a bit low on the write speed, but good otherwise
[21:02]  * Slyboots is just using ext4 in a RAID5 configruation with monthly backups
[21:02] <eightphantomz> RoyK: thanks for the link
[21:02] <Slyboots> 3.5tb
[21:02]  * RoyK pats his 100TB boxes
[21:03] <RoyK> remote-pat-by-ssh :P
[21:03] <hallyn> mdeslaur: lol, i don't trust changes to qemu-nbd with body:
[21:03] <hallyn>     Remove NULL checks for bdrv_new return value
[21:03] <hallyn>     
[21:03] <hallyn>     It's an indirect call to qemu_malloc, which never returns an error.
[21:03] <eightphantomz> basically my plan is to do automation ftp process to download media files to the machine...
[21:03] <eightphantomz> and stores it
[21:04] <Slyboots> :D
[21:04] <RoyK> eightphantomz: you can do that from any unix-like system
[21:04] <Slyboots> I was going to just inall FreeNAS on it.. but with ubuntu it does *so* much more
[21:04] <Slyboots> Sabnnzbd/Sickbeard/Couchpotato/ssh/squid/irssi/dnsmasq..
[21:04] <RoyK> Slyboots: that's why I use VMs with ubuntu and openindiana for the storage :P
[21:05] <eightphantomz> Slyboots: I was thinking on trying FreeNAS as well... but I think I'm more comfortable with Ubuntu
[21:05] <RoyK> eightphantomz: the bitch becomes real when your data, which you thought to be safe, corrupts because of so-called 'silent errors'
[21:06] <eightphantomz> RoyK: And the bitch is? LOL.
[21:06] <mdeslaur> hallyn: ouch!
[21:08] <FunnyLookinHat> How would I limit this command to only *.php files ?      find ./ -type f -exec sed -i "s/\$params\['host'\] = 'localhost'/\$params\['host'\] = \$GLOBALS\[smtp_global_host\]/" {} \;
[21:08] <eightphantomz> RoyK: Do u have any recommendation? Not very old Atom pc. Download and storage purposes.
[21:09] <RoyK> eightphantomz: for ubuntu or openindiana?
[21:09] <eightphantomz> RoyK: Ubuntu. I'm checking on OpenIndiana as we speak.
[21:09] <RoyK> solaris-based OSes are a bit picky, they can't address drives > 1TB on 32bit
[21:09] <RoyK> for ubuntu, most things will work
[21:10] <gobbe> i would go with solaris&zfs only with huge storages
[21:10] <RoyK> huge being what?
[21:11] <RoyK> gobbe: I've seen silent errors ruin data in as low as 2-3TB
[21:11] <hallyn> mdeslaur: but syslog shows nbd is stuck in nbd_ioctl waiting on a mutex
[21:11] <gobbe> RoyK: well 2-3TB is huge storage
[21:11] <RoyK> lol
[21:11] <gobbe> in home environment
[21:11] <RoyK> not anymore
[21:12] <RoyK> I'd say over 2ish TB, you want a safe filesystem, since backing up the stuff is hard
[21:12] <RoyK> and then zfs is really the only one
[21:12] <gobbe> yep
[21:12] <gobbe> and zfs supports several nice features
[21:12] <gobbe> like snapshots, deduplication, compression etc
[21:12] <RoyK> forget about dedup
[21:12] <RoyK> it sucks hard
[21:12] <RoyK> I've spent my days testing zfs dedup
[21:13] <RoyK> it's not good
[21:13] <gobbe> i have one customer running sun's openstorage and there deduplication have worked very good
[21:13] <gobbe> but they are mostly using it for vmware
[21:13] <eric_hill> Out of borbid curiosity, why does zfs dedup suck?
[21:13] <eric_hill> s/borbid/morbid...
[21:13] <RoyK> small server, 12TB net storage on raidz2, 140GB L2ARC and some for the SLOG
[21:14] <RoyK> write speed to the zpool was horrible after 2-3TB was stored there
[21:14] <RoyK> gobbe: also, removing a deduped dataset can make the server hang for some days :P
[21:14] <gobbe> 12TB created with what kind of disks?
[21:14] <RoyK> gobbe: it's a good reason dedup didn't go into Solaris 10 update 9
[21:14] <RoyK> gobbe: WD Black
[21:14] <gobbe> sata?
[21:15] <RoyK> 2TB drives
[21:15] <RoyK> yeah
[21:15] <gobbe> well, 2TB sata is slow like a cow
[21:15] <RoyK> and they work very well
[21:15] <RoyK> we have 160 of those
[21:15] <RoyK> not at all
[21:15] <gobbe> if you need performance you go with SAS
[21:15] <RoyK> linear speed about 200GB/s
[21:15] <gobbe> and that's where dedup works ok
[21:15] <RoyK> but then, 7k2 drives sucks at seek speeds
[21:16] <RoyK> SAS/SATA - that's just interfaces
[21:16] <RoyK> doesn't matter
[21:16] <gobbe> no it's not
[21:16] <RoyK> it certainly is
[21:16] <RoyK> 3Gbps SATA is about the same as 3Gbps SAS
[21:16] <eightphantomz> Ok enough data for today. Thanks guys. Cya
[21:17] <RoyK> SAS has better TCQ, right, and SATA has only NCQ, but still, same shit
[21:17] <gobbe> jep
[21:17] <RoyK> bandwidth is the same
[21:17] <gobbe> but disk speed isn't
[21:17] <RoyK> and a single drive can't sustain 3Gbps anyway
[21:17] <gobbe> enterprise-sas disks run at 15k
[21:17] <RoyK> that's the spin time
[21:18] <RoyK> not related to the interface
[21:18] <gobbe> well, you cannot find 15k sata disks
[21:18] <gobbe> that are enterprise-ready
[21:18] <RoyK> there are 10k sata drives
[21:18] <RoyK> same drive, different interface
[21:18] <gobbe> 10k to 15k is still huge step
[21:19] <RoyK> seektime-wise, yes, linear transfer speed, no
[21:19] <RoyK> a 2TB drive has far higher density
[21:19] <gobbe> ofcourse
[21:19] <RoyK> so linear speed is about the same
[21:20] <RoyK> that's why you use l2arc/slog for zfs
[21:20] <hallyn> mdeslaur: I'm tempted to blame the BKL removal patches in drivers/block/nbd.c :(
[21:20] <gobbe> but in the end, you have to write it to disk, the bigger disk slower it is :)
[21:20] <RoyK> gobbe: nope, the bigger, the faster, really, because of higher density
[21:20] <gobbe> RoyK: it's just a cache, it just saves you sometime
[21:21] <gobbe> if you shortstroke yes
[21:21] <RoyK> gobbe: please, I don't mean to contradict you, but I've been working with storage systems for 10+ years and I know very well where the bottleneck is
[21:21] <gobbe> but if you take 500GB enterprise-sas and compare it to 2TB sata disk
[21:21] <gobbe> you see huge performance gain
[21:21] <gobbe> RoyK: me to
[21:21] <gobbe> :)
[21:21] <gobbe> with huge enterprises
[21:21] <gobbe> like ~50 betabytes of storage
[21:22] <RoAkSoAx> zul: ping?
[21:22] <eric_hill> What's a betabyte? :)
[21:22] <RoyK> sure, but for the price of a 500GB enterprise drive, you can get 3-4 2TB drives, and if you compare the speed of thouse 3-4 drives with the one 500GB drive, well.....
[21:22] <gobbe> typo
[21:22] <gobbe> petabyte
[21:22] <RoyK> eric_hill: :D
[21:22] <gobbe> it's slow to type with n900 :-)
[21:22] <eric_hill> I think a bettabyte is mo 'betta than just a plain byte.
[21:23]  * RoyK hands gobbe a floppybyte of pr0n
[21:23] <gobbe> RoyK: yes, like i told that if you do short-stroking :)
[21:23] <RoyK> I did short-stroking back in 2001
[21:23] <RoyK> for video streaming
[21:24] <gobbe> it's still used with modern storages
[21:24] <RoyK> on el-cheapo 120GB drives
[21:24] <gobbe> like IBM SVC supports it :)
[21:24] <RoyK> doesn't surprise me :)
[21:24] <gobbe> and openstorage in fact
[21:24] <gobbe> but the key is storage tiering :-)
[21:25] <gobbe> and automation for that
[21:25] <RoyK> so with your multib^Hpetabyte storage, have you used zfs with any of them?
[21:25] <gobbe> of course, we sell oracle/sun ;)
[21:25] <gobbe> i like zfs
[21:25] <RoyK> ah
[21:25] <gobbe> don't get me wrong :)
[21:25] <zul> RoAkSoAx: yep
[21:25]  * RoyK ended up on openindiana to get the fuck away from oracle
[21:26] <RoAkSoAx> zul: could you please take a look at bug
[21:26] <RoAkSoAx> bug #687986
[21:26] <RoAkSoAx> and sponsor it :)
[21:26] <zul> RoAkSoAx: sure when i get back
[21:26] <RoyK> gobbe: have you looked into btrfs?
[21:26] <RoAkSoAx> zul: awesome, thanks ;)
[21:26] <gobbe> RoyK: not quite much
[21:27] <gobbe> RoyK: i thought that oracle killed it :)
[21:27] <RoyK> I've followed the development a bit
[21:27] <RoyK> nah, oracle gave away the code, so it's somehow alive still
[21:27] <RoyK> raid[56] is on its way there
[21:27] <gobbe> i would be nice to have zfs in linux kernel...maybe in someday
[21:27] <RoyK> so, give it a year or two, perhaps it'll be comparable to zfs
[21:28] <gobbe> yea
[21:28] <RoyK> gobbe: I'm running a little benchmark with iozone on openindiana with native zfs and ubuntu lucid/maverick with zfs-fuse just to see how it performs
[21:29] <RoyK> that is, I was, but then I broke my fucking leg, so I won't be back until a couple of weeks
[21:29] <gobbe> :)
[21:29] <gobbe> i thought to run little test with IBM's XIV and compare it to sun's openstorage
[21:29] <RoyK> http://karlsbakk.net/xray.png <-- not very funny
[21:30] <IdleOne> my bad word script is freaking out
[21:30] <RoyK> lol
[21:30] <gobbe> but...i'll head to bead
[21:31]  * RoyK throws some beads after gobbe 
[21:39] <Rav3nSw0rd> Installing Ubuntu Server 10.10 on an ancient Dell Desktop, removed "quiet" from the installation options and computer stops at "[1.507269] ohci_hcd 0000:02:0a.1: irq 3, io mem 0xff1fd000" with exception of time, this has happened repeatedly. I have tried irqpoll to no avail... help please? (btw, message is from a picture taken using my camera... can't access it directly from the knowledge I have so... yea)
[21:52] <RoyK> Rav3nSw0rd: boot with ahci=off
[21:52] <Rav3nSw0rd> thank you :D I shall go try that right now.
[21:52] <RoyK> Rav3nSw0rd: that is, boot up, remove quiet etc, add ahci=off
[21:52] <RoyK> or was that noahci?
[21:53]  * RoyK isn't sure
[21:53] <RoyK> Rav3nSw0rd: also, have you tried 10.04?
[21:54] <Arcitens> If there's no DocumentRoot specified in apache's httpd.conf file, what does it default to?
[22:00] <Rav3nSw0rd> RoyK, is this in addition to or instead of irqpoll? well, I've tried with no irqpoll both ahci=off and noahci, only ahci=off with irqpoll, and same stopping point with exception of just ahci=off, where it stopped before getting to that point
[22:01] <ventz> RoyK: i modified that chsh a bit more, and now it actually takes care of nscd and it works for TLS :)
[22:02] <RoyK> ventz: nice :)
[22:13]  * RoyK just looked through some old stuff http://karlsbakk.net/hacker/
[22:22] <Arcitens> good night
[22:23] <hallyn> mdeslaur: it's definately the kernel.  on lucid, it works.  chroot into a lucid chroot on natty, it works.
[22:24] <hallyn> (I think the check in nbd_ioctl for lo->magic is not sufficient, but that's a pure guess)
[22:25] <RoyK> Guten Abend
[22:37] <sabgenton> is https://help.ubuntu.com/community/NetworkConnectionBridge still the best way to bridge?
[22:37] <sabgenton> uses pre-up brctl bla bla
[22:39] <sabgenton> too many line have they made somthing simpler to go the networking file?
[22:39] <sabgenton> *lines
[23:00] <hallyn> mdeslaur: (doh, of course i meant, "chroot into a lucid chroot on natty, it fails - qemu-nbd -d locks up")
[23:02] <Slyboots> Hmm..
[23:02] <Slyboots> Using SCreen.. can you split the terminal vertically
[23:07]  * Slyboots hits his head against the screen..
[23:07] <Slyboots> stupid regex
[23:09]  * RoyK points to "man screen"
[23:30] <kieppie> hi guys. I'm in the process of rebuilding a (file)server from scratch. planing on installing 10.4.1 LTS, and has a hardware RAID instaled. could anyone please recommend a filesystem that would be best-suited for optimum thoughput & stability?
[23:36] <hallyn> hm, no.  lucid userspace on natty kernel does behave differently - the qemu-nbd -d worked, but the qemu-nbd kthread becomes defunct
[23:52] <qman__> kieppie, for filesystems < 8TB, I use ext3
[23:52] <qman__> tried and true, never lost any data
[23:52] <RoyK> for anything > 8TB, use zfs :P
[23:53] <RoyK> with a hardware raid controller, zfs won't be of much use except it will find out when data is corrupted
[23:53] <qman__> I've had minor trouble with reiser and JFS, nothing too big
[23:53] <qman__> but I recommend against XFS
[23:53] <qman__> I've lost several complete filesystems
[23:54] <RoyK> qman__: really?
[23:54] <qman__> yeah
[23:54] <qman__> power loss and kernel bugs crashing the system
[23:54] <qman__> resulted in total data loss
[23:54] <RoyK> I haven't, yet, only been using it sparsely for 10 years, though
[23:54] <RoyK> I don't use xfs anymore
[23:55] <RoyK> for spooling it sucks hard
[23:55] <qman__> in theory it's fine
[23:55] <qman__> but the problem is when things do go wrong
[23:55] <RoyK> not for spooling
[23:55] <qman__> in ext3 and reiser, recovery is pretty easy and reliable
[23:55] <RoyK> performance is 20% of ext3
[23:55] <qman__> in XFS, it tends to be total failure
[23:55] <yann2> I recommend also against reiserfs
[23:56] <RoyK> killerfs
[23:56] <yann2> critical bugs in kernel > 2.6.30, non fixed and leading to data loss
[23:56] <binBASH> MurderFS!
[23:56] <RoyK> :)
[23:56] <binBASH> ;)
[23:56] <yann2> https://bugzilla.kernel.org/show_bug.cgi?id=14826  burnt myself really bad 2 days ago on that one
[23:57] <RoyK> anyway - if you want your data safe, use zfs
[23:57] <RoyK> no other filesystem (perhas except btrfs) checksums data
[23:57] <RoyK> and for large data storage that is a must
[23:57] <qman__> zfs is great, the problem is solaris
[23:58] <qman__> zfs in linux or stable btrfs would make my day for sure
[23:58] <RoyK> there is freebsd, and openindiana and zfs-fuse
[23:58] <yann2> I'd be careful with zfs too :) heard of version incompatibilities between zfs versions and hosts
[23:58] <RoyK> yann2: haven't seen it yet, and I follow the zfs ml quite closely
[23:59] <qman__> but as far as traditional filesystems, ext3 is the most stable and easiest to recover in my experience
[23:59] <RoyK> yann2: obviously you can't mount a zpool v28 on a system not supporting > v19, but that's about it
[23:59] <yann2> well I got a nas with ZFS i pray that if my controller crashes I can mount the ZFS partition on an ubuntu :)
[23:59] <yann2> (solaris right now)
[23:59] <RoyK> yann2: what sort of controller?