/srv/irclogs.ubuntu.com/2011/01/07/#ubuntu-server.txt

_Techie_is there a group a user has to be in to allow them to listen on the network?00:40
SlybootsHmm.. Hello all00:41
SlybootsSeems my server is.. slightly unwell00:41
Slyboots"Gave up waiting for root device. " blah blha..00:41
SlybootsALERT! /dev/mapper/tank-root does not exist00:41
SlybootsWhats odd is this is a RAID1 mirrored over 3 disks00:43
twbSlyboots: nothing wrong with that00:46
RoyKSlyboots: not playing with zfs, are you?00:47
Slybootsno?00:50
Slybootsits been running for months.. powered it down.. powered it back up00:50
SlybootsAAHGHGHGHGHHGHGHGHGHGHG!!00:50
SlybootsAnd so on00:50
JanCSlyboots: no hardware failure?00:52
SlybootsI thought a disk was dead but..00:54
SlybootsSMART shows OK across the board00:54
uvirtbotNew bug: #699665 in openssh (main) "sshd crashed during a rsync" [Undecided,New] https://launchpad.net/bugs/69966500:56
JanCSlyboots: is that a "fake" raid controller ?01:00
SlybootsLinux softraid; MDADM01:00
JanCwith some other layer on top or below then?01:01
SlybootsLVM01:01
twbSlyboots: sorry, I mean that a three-way RAID1 is not odd01:01
SlybootsThe BIOS shows the SMART status of each disk.. comes up OK01:02
SlybootsIm wondering if a kernel update might have hosed the modules or something01:02
JanCSlyboots: what's the status of the software raid device ?01:03
SlybootsNo idea; trying to create a live bootable disk to go in and check01:03
Slybootsright now as soon as it hits grub it bombs out witht "Gave up waiting for root device"01:03
JanCheh?01:03
JanCso it's grub that complains?01:04
SlybootsI get a black screen with a flashing "_" under it01:04
SlybootsThen after about 30 seconds01:04
Slyboots"Gave up waiting for root device"01:04
SlybootsALERT! /dev/mapper/tank-root does not exist01:04
JanCthat's inside the initrd, so you should be able to see if the raid is assembled or not?01:06
SlybootsNot sure.. basiclylafter that it goes (initrtfs) and ..01:06
SlybootsWell nothing; tapping keys on the keyboard does nothing01:06
JanChm, that's not very useful indeed ☺01:07
JanCtry booting an older kernel?01:07
=== Tankenator_afk is now known as Tankenator
SlybootsDont have any.. least I dont think so01:07
SlybootsI dont evne really get a grub prompt01:07
Slyboots(Although i never clearn out /boot.. so it should be there in theory01:07
JanCyou can enter the grub menu with Esc (grub1) or Shift (grub2)01:08
SlybootsxMm..01:09
Slyboots"Grub loading.."01:09
SlybootsThen it just continues on01:09
JanCjust keep Esc or Shift (depending on grub version) pressed down during boot01:10
SlybootsTried that...01:10
twbDoes Caps Lock also work, as in extlinux?01:10
twbThat way at you can just push it and leave it down01:10
SlybootsIts a wireless keyboard..01:10
SlybootsDoesnt have indicator lights for caps lock01:11
twbSlyboots: then it probably won't work at all01:11
twbI doubt that grub has a bluetooth driver01:11
SlybootsIts wifi through a usb interface01:11
twbI guess that might work if grub has a USB driver01:11
JanCI doubt it's WiFi  ;)01:11
SlybootsOK; got grub using another keybarod :P01:12
JanCbut an USB keyboard might need a BIOS setting01:13
SlybootsIts RF or something; but thats outside the fact.. grabed another keyboard nad loaded up the last good kernel01:13
SlybootsWell its doing something; ubuntu Usplash has come up01:13
twbmore likely plymouth01:13
JanCtwb: depends how old the server install is  ;)01:14
SlybootsOkay; got fed up waiting for usplash to vanish and logged in via the cli01:15
twbI guess if he sees "grub loading" than it isn't that stupid new "0 wait time" one01:15
SlybootsNot sure how to continue from here though01:15
SlybootsShould I.. fsck the disks or..?01:15
twbSlyboots: what was the problem again?01:16
SlybootsWell it was going "AGGH! Root not found"01:16
SlybootsLoading an old kernel fixed that..01:16
SlybootsBut now I got run-parts: /etc/update-motd.d/90-updates-availabel exited with an return code 201:17
SlybootsEveral times01:17
SlybootsMm.. brb. hold on01:19
Shinything_Mm..01:22
Slyboots_Right01:23
Slyboots_Well back into the server.. not 100% if everything is OK though01:23
Slyboots_First things first should be to remove that "bad" kernel from grub.lst right?01:24
Slyboots_not sure where grub.lst is though01:30
twbSlyboots_: /boot/grub01:33
twbSlyboots_: just remove that kernel, even01:33
Slyboots_Mmm.. using apt-get ?01:34
twbALthough if it were me, I'd probably try to work out WHY it wasn't working01:34
twbSlyboots_: yes01:34
Slyboots_Seems like its not loading LVM or something01:35
Slyboots_And since its 2am in the morning I just want to fix it and go to bed01:35
Slyboots_or play Dawn of war.. minions of Chaos to kill and whatnot01:35
Slyboots_Mm..01:39
Slyboots_Okay; there is one marked -virtual01:39
Slyboots_Not sure why that is there01:39
twbSlyboots_: I don't know what you're looking at.01:43
Slyboots_Grubs list of kernels01:44
Slyboots_I've removed one marked "virtual" see if that makes any difference01:44
twbI believe the "virtual" flavoured kernels have many features removed because they are intended only for use as guest OSes in VMs01:45
Slyboots_Aye; Thats what Im thinking01:45
Slyboots_Im not sure what its on my server at all but I've removed it and updated grub; a reboot will tell01:45
kajeI'm running Ubuntu 10.4 and installed BIND using this howto: https://help.ubuntu.com/community/BIND9ServerHowto02:04
kajeI 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:04
kajeAny thoughts?02:06
kajeMy 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:06
kajeOne 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.02:13
=== loadedwithwyrms is now known as loadedwith|work
qman__kaje, looks like apparmor is denying it access to that file04:15
kajeyeah, I got it worked out in the bind channel. Thanks for the help though.04:16
qman__ah, ok04:16
=== hikeonpast_ is now known as hikeonpast
claydwhat command do i use to see how many cores a vps has available to it.  i am using ubuntu server 10.0406:26
gobbecat /proc/cpuinfo06:32
twbDepending on the virtualization technology, that won't tell you how many your VPS is allowed to use06:40
uvirtbotNew bug: #695985 in mysql-5.1 (main) "/etc/mysql/debian-start exposes debian-sys-maint users password to any users on the box via ps(1)" [Medium,Confirmed] https://launchpad.net/bugs/69598506:57
=== guampa is now known as guampabed
martinjh99Is 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-boot07:01
milliganIn logrotate.conf, is i.e /var/log/myapp/* a valid descriptor, when myapp contains subfolders, that contain the logfiles?07:18
twbmartinjh99: screen cannot save state between reboots.07:42
twbmilligan: you could configure .screenrc to *launch* programs whenever it starts.07:43
martinjh99i think you mean me - How would you do that then? Point me to some docs?07:43
twbSorry, yes07:46
twbmartinjh99: say you wanted to run bash and top and "w3m google.com".07:46
twbmartinjh99: you would put in three lines like "screen"; "screen top" and "screen w3m google.com"07:46
twbmartinjh99: in your .screenrc, I mean07:46
martinjh99wouldn't that run 3 instances of screen though?07:47
twbNo07:47
twb.screenrc takes screen commands, not sh commands.07:47
martinjh99hmm ok07:48
twbIn 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
twbIt is unfortunately an extremely confusing arrangement for newbies07:48
martinjh99certainly sounds like it  and why when i google "configuring screen" i get a load of windows pages ;)07:51
twbYour best references are 1) the manpage/infopage; and 2) #screen channel on Freenode07:55
twbYou will have better luck (but still not good) in google by using `"GNU Screen"' rather than `screen'.07:56
=== RudyValencia- is now known as RudyValencia
leniosusing /bin/screen instead of screen might help too08:01
twbInteresting idea08:01
martinjh99ah ok thanks - just searching ubuntu forums to see if they have anything there08:04
twbPfft08:04
twbweb fora are just people too stupid to use usenet08:04
twbRather, too stupid to configure a newsreader08:05
JanCor a mail client  ;)08:06
martinjh99hehe well i found something I can use via Google... Thanks all08:08
twbJanC: I suppose so, although I prefer newsreaders for reading mailing lists :P08:10
uvirtbotNew bug: #699737 in autofs5 (main) "automount[1275]: syntax error in nsswitch config near [ syntax error ]" [Undecided,New] https://launchpad.net/bugs/69973708:25
twister004hi guys... how can i view my raid setup on an ubuntu server09:23
raphinktwister004, hardware or software raid?09:23
twister004hardware09:23
raphinkthat depends on the kind of raid you have then09:24
raphinkwhat is it?09:24
twister004it's RAID109:24
raphinkno I mean the brand09:24
raphinkthe controller09:24
raphinkI'm used to array-info for smartarray (hp/compaq) for example09:24
twister00482801G(ICH7 Family) IDE Controller09:25
twister004that's the adapter model09:25
raphinkhmmm, google tells me this is an audio controller09:26
twister004it is?09:26
raphink:S09:26
twister004:D... my bad09:26
twbtwister004: lspci -nn | grep IDE09:26
raphinkor maybe there's two products with the same name09:26
twbICH7 is just a southbridge09:26
twbProbably you've got an ICH7R or so09:27
twister004sorry... it's the N10/ICH7 Family SATA IDE CTRLLER09:27
raphinkok09:27
twbIOW fakeraid09:27
twbtwister004: stick to md RAID09:27
twister004ill 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
twbWho cares?09:28
twister004or will I be able to see only one of the RAIDed hdd?09:29
twister004I want to know if there's a third hdd09:29
twbtwister004: why are you using a GUI09:29
twbtwister004: open the case, and count the drives, then09:29
twister004:D09:29
twister004im remotely located09:29
twbBlergh09:29
twbpastebin the contents of /proc/mdstat and /proc/partitions09:29
twister004partitions?.. is there a command called partitions?09:30
twister004i cant find it09:30
raphinkhrmm09:30
raphinkthese are files...09:30
raphinkjust cat them, or use pastebinit to do it faster ;-)09:31
twister004oh.. here you go http://pastebin.com/jkR4HyJT09:32
twbtwister004: you have two disks set up with per-partition RAID1 arrays09:33
twister004sory.. it's software raid09:33
twister004ok... but what about the third.. i remember it was in there09:33
twbThere's no third disk, as far as linux sees09:34
twbThere are three ARRAYS09:34
twister004is there something like a "devfsadm" for linux?09:34
twbI do not know what that is.09:34
twbThe tool to manage md arrays is mdadm.09:34
twister004it's probing for devices(newly connected)09:34
twister004under solaris09:35
twbudev is infrastructure that responds to device events (including them being connected)09:35
twbe.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
twbBut more generally it creates device files in /dev, and a bunch of desktop wankiness like mounting stuff in /media09:36
twister004twb.. ok09:36
twister004thanks09:36
twister004looks like there is no 3rd disk09:37
twister004wierd09:37
twister004i clearly remember there was a 3rd09:37
twbMaybe it's not cabled properly09:40
=== eremyja___ is now known as eremyja
twister004twb.. yeah.. looks like that's the problem.. ill have to go onsite09:59
twister004thanks for all your help and advice!09:59
twbWell, I AM a genius10:06
RoyKhttp://xkcd.org/844/ :)10:16
gobbewin 1711:10
gobbesorry11:10
FrenkHey, 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:28
twbgobbe: that's not out yet11:32
twbFrenk: ssh11:33
incorrects12:06
=== guampabed is now known as guampa
=== doko_ is now known as doko
Err404NotFoundhow do i install http://pastebin.com/7u9AzMEh php extensions? i knew 2 so mentioned their packages, what about rest?12:42
FrenkI 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:18
pmatulisFrenk: i don't think you can decrypt a certificate with a monitoring program13:27
pmatulisFrenk: it is standard to not encrypt certificates on services that need to come up unattended13:28
FrenkI 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:30
pmatulisFrenk: no13:31
patdk-wkhaving a password on the cert is nice, if you think your box will be rooted13:34
patdk-wknot having a password is fine, as long as your not rooted13:35
patdk-wkthen it can still be *ok* (depending on your definition and level of ok), if you revoke the cert, assuming you know you where rooted13:35
Err404NotFoundhow 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 results13:38
=== oubiwann is now known as oubiwann_
Frenkpatdk-wk: pmatulis thx13:40
Error404NotFoundhow 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 results13:48
FrenkI 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:49
pmatulisFrenk: the name that your MTA will expose to the internet should be both forward and reverse resolvable13:52
pmatulisFrenk: forward is more important but some MTAs may refuse your mail if reverse is missing13:53
pmatulisFrenk: but of course your actual domain name needs to be (at least forward) resolved as well13:55
Frenk Ill check it =)13:55
Error404NotFoundhow 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 results13:57
FrenkAnd 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.13:58
=== Tankenator is now known as Tankenator_walk
patdk-wkError404NotFound, they are installed by default in php-common (I think)14:02
Error404NotFoundpatdk-wk: pcre is, not sure abour json, couldn't find its config in php.ini14:02
patdk-wkheh, fail14:03
patdk-wkcheck with phpinfo14:03
patdk-wkthere are no config options for json, so it won't be in php.ini14:03
Error404NotFoundpatdk-wk: :P14:06
Error404NotFoundthanks :)14:06
ArcitensHi. 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 file14:10
zulDaviey: can you have a look at 697753 its pretty simple14:13
pmatulisArcitens: 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:17
pmatuliszul: so re nc fix, will users of previous releases be burned in any way?14:19
zulpmatulis: as in?14:19
pmatuliszul: 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
pmatuliszul: w/o extra hoops?14:20
zulpmatulis: the "-q" functionality was put back but with a warning message14:20
pmatuliszul: i guess i don't grok the issue, i thought the 'q' thing was the change we put in14:21
pmatuliszul: that caused the bug14:21
uvirtbotNew bug: #699845 in php5 (main) "php5 affected by http://bugs.php.net/53632" [Undecided,New] https://launchpad.net/bugs/69984514:21
zulpmatulis: right it is...but its very tied into libvirt, users can use netcat-traditional if they need regular functionality14:25
pmatuliszul: but what if they need both libvirt *and* traditional functionality?14:28
zulpmatulis: good point lemme think about it14:28
mdeslaurpmatulis: then they use nc.traditional14:28
pmatulismdeslaur: o_014:28
mdeslaurpmatulis: oh, zul updated the patch to the one debian just changed....so nc-openbsd now behaves like the upstream one14:29
mdeslaurie: behaviour is the same if no -q is given14:29
pmatulismdeslaur: ok, that makes sense then14:29
mdeslaurbut the default behaviour between nc-traditional and nc-openbsd is different, and that has nothing to do with the -q patch14:30
Arcitenspmatulis: Sorry, I went afk. And I'm not sure what exactly you're suggesting I do there, sorry.14:30
mdeslaurfedora uses nc-openbsd by default, and we do too now...so if anything, we'll be consistent14:30
pmatulisArcitens: it's a command14:30
Arcitenspmatulis: and I should replace ??? with apache version?14:31
pmatulisArcitens: to the real path of the package that provides the conf file your're talking about14:31
Arcitenspmatulis: ah, ok. thanks.14:31
sorenpmatulis: 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:31
pmatulisArcitens: to be sure: 'dpkg -S /etc/apache2/httpd.conf'14:32
pmatulissoren: ah14:32
mdeslaurhi soren!14:33
Arcitenspmatulis: says not found when I ran the second command. (Sorry I'm being a total noob here. I appreciate the help.)14:33
pmatulisArcitens: so the path you gave is not right14:33
Arcitenspmatulis: it must be. I'm staring at the file in nautilus and I can open it with 'gedit /etc/apache2/httpd.conf'14:34
pmatulisArcitens: symlink?14:35
Arcitenspmatulis: nope14:35
sorenmdeslaur: dude.14:35
sorenmdeslaur: :)14:35
mdeslaur:)14:36
Arcitenspmatulis: 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:36
pmatulisArcitens: i'm not sure you can back out completely from a tasksel task14:37
Arcitenspmatulis: that's unfortunate :(14:37
pmatulisArcitens: you'll need to google 'round.  maybe view what the task does and remove individual packages14:37
pmatulisArcitens: there's a file that explains the tasks14:38
pmatulisArcitens: man tasksel14:38
Arcitenspmatulis: 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
pmatulisArcitens: sure14:38
pmatulisArcitens: 'aptitude purge apache' should do it14:39
Arcitenspmatulis: thanks very much for the help.14:39
sorenTasks don't "do" anything.14:39
sorenThey're just a set of packages.14:39
pmatulissoren: possible to remove associated packages in one fell swoop?14:40
sorenI suppose "sudo apt-get --purge remove taskname^" should do it.14:41
soren(Note the ^ at the end)14:41
pmatulisright, ok14:41
AndyGraybealis it best to use the VM image or ubuntu server for vm?14:41
pmatulisAndyGraybeal: say what?14:41
AndyGraybealaaah nevermind14:41
gobbeAndyGraybeal: there is no more JEOS version available14:41
AndyGraybealf4  on install and it pops up for vm install!14:42
AndyGraybeali'm a bit behind the times.14:42
gobbeaah, you mean that14:42
AndyGraybeali 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:42
AndyGraybealthanks gobbe  and pmatulis14:43
gobbe:)14:43
AndyGraybealthis is the recommended way to start out with a VM correcT?14:43
pmatulisAndyGraybeal: you want to create a KVM guest?14:44
AndyGraybealpmatulis: yes14:45
pmatulisAndyGraybeal: use virt-manager is you are just beginning14:45
pmatuliss/is/if14:45
AndyGraybealoh no no, i've made many images with virt-install but i have used the 'normal' install frm ubuntu server disc14:45
AndyGraybeali just learned yesterday aboutthe VM install!14:46
AndyGraybeali learned kvm about 2 years ago with 8.1014:46
AndyGraybealwell 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
pmatulisAndyGraybeal: i never used a VM install explicitly in the installer.  i assume it just makes a minimal install + the virtual kernel14:47
AndyGraybeali wouldn't know how to do that manually, so this is great :)14:47
pmatulisAndyGraybeal: comparable to what vmbuilder does14:47
AndyGraybeali haven''t used vmbuilder since 8.1014:48
pmatulisAndyGraybeal: so what's your question then?14:48
AndyGraybeali 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:48
Arcitenspmatulis: 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
AndyGraybealpmatulis: sory for keepihng yuo hanging.14:49
pmatulisgood, looks like everybody is happy now14:51
=== Tankenator_walk is now known as Tankenator
AndyGraybeal:)14:57
uvirtbotNew bug: #699855 in autofs5 (main) "autofs.schema in wrong location" [Undecided,New] https://launchpad.net/bugs/69985515:01
hggdhzul: I will ping mathiaz when he pops up re. uec-testing-scripts-devs (adding you)15:09
hggdh(just noted you are pending there)15:10
zulhggdh: thanks15:11
joe-macthe preseed value for d-i for partman-md/device_remove_md doesn't actually remove md15:13
joe-macthe install fails if md devices exist15:13
joe-macso i have to mdadm -S /dev/md* && mdadm --zero-superblock /dev/sd* before i start the installer15:13
joe-macand 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 to15:14
hallynjdstrand: just to be sure - have all your bad kvm tests been using a snapshotted qcow2 guest?15:14
joe-macthis is 10.0415:14
joe-macalso it seems the partition priority and sizxing doesn't behave as expected when doing lvm over raid15:15
jdstrandhallyn: 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 bootstrapped15:21
joe-macmay have discovered how to fix the priority weirdness, apparently the order is dependent in this scenario15:21
joe-macmaybe the device_remove_md is order-dependent? anyone using this preseed value with success?15:21
jdstrandhallyn: 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
yann2hello! 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
jdstrandhallyn: and by 'installs', I mean 'guest installs'15:22
gobbeyann2: apparmor is preventing15:23
jdstrandyann2: libvirt uses apparmor to confine virtual machines15:23
jdstrandgobbe: no, it isn't15:23
gobbeah, sorry15:23
yann2I just stopped apparmor15:23
gobbewell, apparmor yes, not preventing :)15:23
jdstrandyann2, gobbe: that line is just telling you that the profile loaded15:23
gobbei didn't read enough good15:23
yann2damn I stopped whole apparmor before :(15:23
jdstrandyann2: no reason to stop apparmor for that line-- if apparmor is causing a problem, it will log a denial15:24
gobbeand then you can tune apparmor15:24
gobbeinfact apparmor is working quite well15:24
yann2k, is a dev server anyway15:25
jdstrandprofile_load and profile_remove are purely informational, and letting you know that everything is working properly15:25
gobbeif you compare to selinux which might be pain in the ass15:25
yann2Jan  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
yann2arg15:25
yann2Jan  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 concerned15:26
jdstrandyann2: virt-aa-helper denials are not necessarily fatal15:26
jdstrandyann2: look in /etc/apparmor.d/libvirt/libvirt-4e12e041-2ec2-587c-4655-8c51167c15cb.files15:26
jdstrandyann2: if it has /var/lib/kvm/oasouth-itadmin/root.qcow2, you are ok15:27
jdstrandyann2: virt-aa-helper is what generates the dynamic profile, tailored for your vm15:27
hallynjdstrand: 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
yann2mmmh could it be that apparmor is making issues if I put my VM in tmpfs?15:28
jdstrandyann2: it would show denials in the log15:28
joe-maci know selinux could15:28
joe-maci don't know much about AA but yea it would be in the audit logs15:28
jdstrandyann2: /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
jdstrandyann2: is /var/lib/kvm/oasouth-itadmin/root.qcow2 a symlink?15:29
yann2nope, thats where I put my vms15:29
yann2the /var/lib/kvm/oasouth-itadmin/ is a tmpfs though15:30
jdstrandhallyn: I haven't used vm-clone in ages15:30
yann2when running the vm from disk instead of tmpfs it doesnt freeze anymore though :)15:30
jdstrandyann2: what are the contents of /etc/apparmor.d/libvirt/libvirt-4e12e041-2ec2-587c-4655-8c51167c15cb*15:30
jdstrandhallyn: vm-clone doesn't do snapshots15:31
hallynjdstrand: oh.  ok.  well, i'll keep trying, and will try a i386 one15:31
jdstrandhallyn: (which is why I don't use it anymore)15:31
hallynwhat do you use then?15:31
hallynjust vm-start -s?15:31
jdstrandhallyn: that page has a section down below for using snapshots15:31
hallynkthx15:32
jdstrandhallyn: you looked at 'Cloned virtual machines'. I use 'Snapshotted virtual machines'15:32
yann2jdstrand, http://pastealacon.com/2650815:32
jdstrandhallyn: someone from the team may use vm-clone-- perhaps kees or mdeslaur, I'm not sure. I used to, but don't any more15:33
mdeslaurhallyn: I'm trying to debug that exact problem as we speak :)15:33
mdeslaurI tried to use vm-clone this morning, and it's not working15:33
jdstrandmdeslaur: does vm-clone use nc?15:34
mdeslaurjdstrand: I looked at that, but that's not the issue15:34
mdeslaurhallyn: you're on natty, right?15:34
jdstrandyann2: from an apparmor perspective, it looks ok. I suggest looking in /var/log/libvirt/15:35
mdeslaurjdstrand: it's not mounting the images successfully I think...anyway, I'm still poking at it15:35
jdstrandyann2: if you want, you can add:15:35
yann2thats where I started :)15:35
jdstrand  /var/lib/kvm/** r,15:35
yann2jdstrand, do you think that having /var/lib/kvm/oasouth-itadmin mounted as tmpfs changes anything for apparmor, than having it not?15:36
jdstrandto /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
yann2for some reasons it doesnt work when mounted as tmpfs. It does work when not, but it's dog slow :(15:36
jdstrandyann2: but that won't fix your issue-- you can see the dynamic profile is correctly generated15:37
jdstrandyann2: having as tmpfs should make no difference15:37
yann2jdstrand, my real issue is that its a windows vm - and it freezes after a few seconds now15:37
yann2works fine without tmpfs, but am installing service pack on windows15:37
jdstrandyann2: what version of ubuntu is the host?15:38
yann210.415:38
jdstrandyann2: so, if you really think it is apparmor, you can sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.libvirtd, then stop and start libvirt15:39
yann2I got no idea if its apparmor, its the only indication I could find in the logs :)15:40
jdstrandyann2: 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 itself15:40
yann2oh that would explain yes15:40
yann2host has 8GB and vm is 3.9GB :) host still had some ram left though15:40
yann2I ll try again on a host with more ram - thanks a lot for the info, thats probably it15:41
jdstrandsure15:41
hallynjdstrand: 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 :).  oops15:47
jdstrandheh15:49
jdstrandhallyn: feel free to clarify the page if it is misleading15:49
hallynjdstrand: i suspect i just read it too fast15:51
macnoI'm running vmbuilder to create a VM with a LV as disk but parted gives an error http://paste.ubuntu.com/551525/16:14
yann2jdstrand, 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 too16:18
yann2-o16:18
jdstrandyann2: probably against upstream qemu-kvm16:19
mdeslaurhallyn: bzr update the ubuntu-qa-tools tree16:23
mdeslaurhallyn: I fixed the problem, but now have hit a second problem16:23
mdeslaurhallyn: seems unmounting a qcow image now hangs with natty16:24
hallynmdeslaur: zounds16:31
hallynthanks :)16:31
mdeslaurhallyn: if you figure out why qemu-nbd is hanging, let me know16:32
hallynok16:33
FunnyLookinHatOk you master admins - question for ya - I currently have sendmail installed and running on a box - it16:33
FunnyLookinHatit's all working fine, but I want to start using an external service.16:33
FunnyLookinHatRather than rewrite all of my scripts, is there a way to create a smarthost for a single user with sendmail ?16:33
mrrothhow do I convert my ubuntuserver in to a nas16:39
mrrothis thie ra hwo to16:39
macnoFunnyLookinHat, do you mean forward to another server all the mails directed to a specific user?16:39
FunnyLookinHatYeah - and to do so with a different username/password.16:39
FunnyLookinHatSo take user1 at localhost smtp - and forward to user2/pass2 at external.smtpserver.com16:40
macnoadd an alias16:40
FunnyLookinHatThat's all ?  Wow - easy.16:40
macnothat's all. remebert to run newaliases after editing /etc/aliases16:41
FunnyLookinHatHmm wait.16:41
FunnyLookinHatNo that will just forward emails.16:41
FunnyLookinHatI need to forward the SMTP request.16:41
macnowhy?16:41
b0gatyrmrroth: you might want to look into FreeNAS as well16:41
mrrothyea16:42
mrrothI am16:42
mrrothI got freenas on my usb stick16:42
mrrothbut16:42
mrrothit saying starting starting devd16:42
FunnyLookinHatmacno: 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
b0gatyrmrroth: boot it of a VM might be better16:42
FunnyLookinHathttp://c0001374.cdn1.cloudfiles.rackspacecloud.com/dcerb1a17.jpg16:42
FunnyLookinHatWoops - sorry16:42
FunnyLookinHatIgnore that please :)16:43
mrrothso install ubuntu server16:43
mrroththen install a vm soultion for ubuntu server16:43
b0gatyrnice pic, now my wallpaper ;)16:43
mrrothhmm16:43
air^:D16:43
FunnyLookinHatb0gatyr: glad you liked it - source: pegshot.com/p/dcerb1a17/16:49
zulphp i sawesome!16:57
FunnyLookinHatzul: Yes.16:57
FunnyLookinHat:)16:57
=== cmagina is now known as cmagina-lunch
=== squishy is now known as SquishyNotHere
=== cmagina-lunch is now known as cmagina
=== SquishyNotHere is now known as squishy
FunnyLookinHatQuestion of the day - is there a way to run a find/replace on file contents recursively ?18:05
lauhow can i handle debconf "dialog issue TERM not set using Teletype instead" issue when aptitude -y safe-upgrade fia fabfile.py ?18:07
FunnyLookinHatHeh - find + sed18:11
DrPoOHi, 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:12
shaunoFunnyLookinHat: 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 it18:15
FunnyLookinHatshauno: I'm trying to do something like this...18:16
FunnyLookinHatfind ./ -type f -exec sed -i 's/"$params['host'] = 'localhost';"/"$params['host'] = 'smtp.sendgrid.com';"/' {} \;18:16
FunnyLookinHatBut it won't find my switch and replace statements it seems18:16
shaunothat does look fun.  you're going to need to escape a lot of that.18:17
FunnyLookinHatwonderful.18:17
FunnyLookinHatI thought the " " surrounding would remove the need to escape ?18:18
shauno$ echo one two three | sed 's/"one"/"1"/'18:18
shaunoone two three18:18
shaunolitmus test doesn't look too hopeful18:18
RoyKI don't think sed interprets "18:19
FunnyLookinHatblarg!18:19
zeknoxdoes ubuntu have a lighter version of server?18:19
RoyKinside '', the shell won't interpret anything, so " is sent to sed, which sees it as a character without any special means18:19
DrPoOdoes anybody know what the  message "System information disabled due to load higher than 1"  means ? It appears upon login18:20
RoyKzeknox: in the grub menu at the start of the installation, you can choose a miniature installation18:20
zeknoxDrPoO: you're server has too high of a load that it doesn't have extra cpu cycles to handle the 'system info' on login18:20
zeknoxRoyK: thanks!  that might be just what we need18:21
RoyKzeknox: hah ... it says that on my 24 core machines too, if they are running at load 1.118:21
zeknoxRoyK: haha....> 1.0 isn't even that large of a load IMO, its a semi decent load but not huge18:21
RoyKhaving that limit set load load 1 is quite low imho18:21
RoyKmost systems today have 2 or 4 or more cpus18:22
zeknoxRoyK: I concur18:22
RoyKroy@tor:~$ uptime  19:23:10 up 55 days, 22:48,  3 users,  load average: 25.08, 25.06, 25.0318:23
DrPoOzeknox, any suggestions as to how to find what is causing this problem?18:23
DrPoOzeknox, the machine seems to work fine, except for that message....18:24
zeknoxDrPoO: run top, what is eating cpu cycles?18:24
RoyKin /etc/update-motd.d/50-landscape-sysinfo, remove the check18:24
DrPoOzeknox, right now, nothing.... I guess it peaks for some reason when it reboots18:25
RoyKDrPoO: see that file18:26
FunnyLookinHatAny idea why this won't run?  It expects more input... http://pastebin.com/zv1Fuk2v18:27
RoyKFunnyLookinHat: you're running that search and replace on all files in a dir and its subsequent subdirs?18:29
FunnyLookinHatYup :)18:29
FunnyLookinHatLong story.18:29
* RoyK doesn't want to hear it18:29
FunnyLookinHatAny idea how to fix that statement to work?  I think I'm escaping one thing too many...18:29
RoyKFunnyLookinHat: how many files?18:33
FunnyLookinHat~ 50-7518:33
FunnyLookinHatAnd I have to make 6 other changes similar to that one.18:33
RoyKFunnyLookinHat: consider setting the settings in one file and then just include that18:33
FunnyLookinHatRight - well I will.. but first I have to replace the hard-coded setting with a global variable first...18:34
FunnyLookinHatand to do that - I have to figure out sed first :)18:34
FunnyLookinHatSo realistically my statement will be to switch the $params['host'] = localhost; with $params['host'] = $smtp_host;18:34
RoyKor use perl :P18:34
FunnyLookinHatAnd define $smtp_host in my include file.18:34
FunnyLookinHat>_<18:34
=== squishy is now known as SquishyNotHere
RoyKyes18:35
FunnyLookinHatRoyK: you're saying use PERL to run the find/replace instead of bash ?18:36
RoyKperl regex is a bit simpler or at least far more efficient than sed18:37
RoyKthat is18:37
RoyKit's not simpler18:37
RoyKbut it's way better18:38
FunnyLookinHatThen it's not solving my problem. :)18:38
FunnyLookinHatBecause I can't even figure out my escape problem ...18:38
FunnyLookinHat:)18:38
RoyKthe escape problem is mainly because you're running it inline from the command line18:38
RoyKwhich complicates things a bit18:38
RoyKupload one of the files, please18:38
FunnyLookinHathttp://php.pastebin.com/Gk4b81TE18:41
FunnyLookinHatThat's a test file18:41
RoyKhttp://pastebin.com/bUkHECiM18:42
RoyKsave that script, run it as ./fixme.pl file1 file218:42
RoyKor find . -type f -exec ./fixme {} \;18:43
FunnyLookinHatOk thanks18:43
FunnyLookinHat!18:43
RoyKor perhaps18:44
RoyKhttp://php.pastebin.com/bS3cdZH418:44
RoyKFunnyLookinHat: mind, code not tested :P18:47
FunnyLookinHatRight18:47
FunnyLookinHatDefinitely going to test, etc.18:47
RoyKthe open statement for NEWF is wrong, btw18:48
RoyKhttp://pastebin.com/9hNErGHE18:48
lxcnovicehi can anyone give me an xorg.conf for a headless server - to use with vnc?18:54
uvirtbotNew bug: #699967 in munin "Empty list of plugins/services with hostname containing uppercase letters" [Medium,Triaged] https://launchpad.net/bugs/69996718:56
yann2I wonder if KVM vms support wakeonlan :)19:02
RoyKyann2: ??19:20
yann2RoyK, ?19:25
RoyKyann2: just wonder wtf you would use wake-on-lan with a vm :)19:31
Adoghi is there any network admins in here that could help me out with a RAS VPN Server19:32
yann2RoyK, could be useful in my case :)19:32
yann2plus just interested if it works at all :) I guess I'll give it a try ;)19:33
Adogare you talking to me or someone else? lol19:33
ventzI have a system configured to auth agaist ldap. Login/auth works, passwd works, sudo works (after install nscd), but chsh does not19:45
ventzwondering 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:45
RoyKventz: first hit on google http://moduli.net/sysadmin/sarge-ldap-auth-howto.html19:47
ventzRoyK: saw that, but everything in ldap looks correct19:48
ventzinteresting, so i think lilbpam-ldap is not installed19:50
ventzhm, it is installed correctly19:52
ventzRoyK: so I think a system update/upgrade somewhere along the lines replaced the sym links the previous person setup -- I used the divert19:58
ventznow it's at least using the correct chsh19:58
Arcitenswhen 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
ArcitensI've been looking at a few different tutorials that have confused me on the matter20:03
ventzArcitens: I always use single '20:04
ventzArcitens: create database a;20:05
ventzCREATE USER 'a'@'localhost' IDENTIFIED BY 'password';20:05
ventzGRANT ALL PRIVILEGES ON a.* TO 'a'@'localhost';20:05
ventzFLUSH PRIVILEGES;20:05
ventz(for example)20:05
Arcitensventz: so does that mean that my actual password will have single quotes. or are the single quotes part of the syntax?20:05
ventzit will not have single quotes20:05
Arcitensgreat. thanks.20:05
ventzit's just to specify the string20:06
ventznp20:06
RoyKor just 'create user something@somewhere.org identified by 'password'20:07
RoyKerm20:07
RoyKgrant all on something.* to someone@somewhere.org identified by 'asdf';20:08
RoyKthat'll create the user if it doesn't exist20:08
RoyKthe extra apostrophes can be left out20:08
Arcitensoh. so the apostrophes are irrelevant either way and I was working myself into a tiff over nothing? :p20:10
RoyKmysql is quite sloppy when it comes to syntax - quotes or no quotes, it just guesses20:10
Arcitensheh, I see20:10
RoyKbut you need quotes around strings20:10
RoyKsuch as you password20:10
RoyKnot the username or host, though20:11
Arcitensthat seems...consistent20:11
RoyKthe extra quotes around user/host was _added_ by mysql developers20:11
RoyKthough not strictly20:11
RoyKthe original SQL syntax doesn't require that20:11
RoyKSQL93 IIRC20:11
Arcitensok20:12
RoyKalso, keep in mind that if you want to build a serious database, perhaps postgresql might be a better choice20:12
RoyKbut again, mysql is neat for small stuff20:13
Arcitensyeah. i'm just getting started with all this business. so i think i'll stick to what most people say is best for beginners20:13
RoyKpostgresql has a steeper learning curve, but it's way cooler with its object model and caching paragidme20:14
RoyKthe sql syntax is, well, just sql20:14
ArcitensWell, 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
RoyKnot too much of a change whether you use oracle or mysql or sybase or mssql or postgresql or even sqlite20:15
Arcitensi see20:15
RoyKon complex joins and stored procedures and again, object models, that's where you start to see the differences20:16
RoyKyour average SELECT * FROM girls WHERE name != 'mom' AND age < mine; will probably run on all platforms20:16
ArcitensWhat 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:24
ventzRoyK: got the chsh to work20:25
RoyKventz: cool20:25
RoyKArcitens: connecting from localhost or another box?20:25
ventzthere 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:25
RoyKventz: file a bug :)20:26
ArcitensRoyk: no. trying to set up LAMP for Drupal development on my own desktop.20:26
RoyKArcitens: then your average grant all on dbname.* to someuser@localhost identified by 'somepass'; should work well20:26
ventzI am thinking of adding an /etc/init.d/nscd restart at the bottom of that script and allowing that script to be run20:26
ventzRoyK: i saw what happened to the 'sudo w/ ldap(s) enabled' bug -- still out there20:27
ArcitensRoyk: But it thinks the db doesn't exist for some reason?20:27
RoyKArcitens: pastebin list databases;20:27
ArcitensRoyk: sorry, where should I enter 'list databases'?20:28
RoyKArcitens: in the mysql console20:28
RoyKjust run mysql as root20:29
RoyKor mysql -p if you've set a password20:29
Arcitensyeah i'm in there20:29
RoyKok, list databases20:29
Arcitensi get no response with 'list databases' and i get a syntax error with 'list databases;'20:29
RoyKcheck if the database exists20:29
RoyKerm20:29
RoyKshow20:29
RoyKnot list20:29
RoyKmy fault20:29
Arcitensah, no problem.20:30
RoyKthen show grants should list the grants20:30
Arcitenshmm. i'm still actually getting no response on 'show databases'20:30
RoyKadd a ;20:30
Arcitensi did20:30
RoyKit should be like this http://pastebin.com/D0G74xA220:31
Arcitensok. 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:32
RoyKpossibly20:33
ArcitensI see information_schema, mysql, phpmyadmin20:33
RoyKok20:33
RoyKtype 'create database whatsitsname;'20:33
RoyKwithout the quotes20:33
Arcitensdone20:33
RoyKphpmyadmin is worthless if you want to learn :)20:33
RoyKthen20:33
Arcitensheh. ok.20:34
RoyKuse whatsitsname;20:34
RoyKthen grant all on whatsitsname.* to someuser@somehost identified by 'somepass';20:34
RoyKit's not really necessary to 'use' the database before the grant, but that makes your selects local to tht db20:34
RoyKor any sql query, really20:34
Arcitensoy. 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
Arcitenslet's see if I can figure out the rest of this now.20:36
RoyKif you forget the ;20:36
RoyKjust follow that after pressing enter20:36
RoyKsql isn't line-based20:36
Arcitensoh, interesting20:37
RoyKsome commands aren't sql, like 'use', so they don't need the semicolon20:38
Arcitensawesome. I think my databases are working now. Thanks so much for your help.20:38
RoyK;)20:39
Arcitensanything I can do to thank you? I don't know if people write other people positive feedback or anything...20:39
RoyKjust don't use phpmyadmin or some silly webapp if you want to learn20:39
RoyKnah - just stay and help others20:39
RoyKthat's the best thanks you can give20:39
SlybootsHmm20:40
SlybootsIs there anthing like htop for network usage?20:40
RoyKiptraf?20:40
SlybootsNeat20:41
RoyKyeah20:41
SlybootsThanks.. Dont suppose you know if there is a better version of iotop? ;)20:41
RoyK10+YO app20:41
RoyKnot really20:42
RoyKmeasuring i/o on linux is a bitch20:42
* Slyboots nods..20:43
SlybootsSometimes I can hear the disk spinning and rnning when they should be asleep20:43
RoyKiirc there's a dtrace replacement for linux, but i don't remember its name20:44
SlybootsActually what is the linux power managment called?20:44
Slybootsampd ?20:44
Slybootsapmd..20:44
RoyKapmd is quite old20:44
SlybootsIm a little worried about applying power maangment to the disks (They are greens and part of a RAID array)20:45
RoyKiirc systrap is the one for linux20:45
RoyKpretty advanced20:45
RoyKno, perhaps I'm wrong20:45
SlybootsI've tried dtrace before..bewildering20:46
RoyKsystem tap20:46
RoyKsudo su -20:47
RoyKops20:47
RoyKsystemtap can give you a bit of info, perhaps close to dtrace20:47
SlybootsMmm20:48
RoyKArcitens: IRC is still web 0.0, so no chance to add comments :)20:50
ArcitensRoyk :p sure, but perhaps you want some props on your ubuntu wiki page or something. i dunno. ;)20:51
RoyKnah20:53
Slyboots:P20:53
RoyKno problem20:53
RoyKbut thanks20:53
Arcitenshey, thank you. :)20:54
RoyKArcitens: IRC work by means of people wanting help and wanting to help, and, of course, a few trolls come by every now and then :P20:54
ArcitensRoyk: fair enough. Just new to a lot of this.20:55
RoyKArcitens: heh - welcome to the Old World20:55
ArcitensRoyk: ha. Happy to be here.20:56
eightphantomzhi 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:57
RoyKnope20:58
RoyKeightphantomz: also, how much data will you have on this?20:58
eightphantomzok... i've googled and got mixed up with all the ubuntu server thingy...20:59
RoyKeightphantomz: if it's terabytes, you might want to consider using zfs instead of the standard raid systems20:59
eightphantomzyes tb20:59
RoyKeightphantomz: it won't hurt the server if those lamp processes are running20:59
eightphantomzoh ok... might aswell play around with LAMP for study purpose i guess..20:59
RoyKthe problem with big storage systems is that modern drives have the same fault rate per sector as the old 1GB drives had21:00
=== loadedwithwyrms is now known as loadedwith|gym
RoyKand with a truckload of terabytes, you get silent errors, not detected by the drive, and thus not by the OS21:00
RoyKso you want a filesystem with data checksumming21:00
eightphantomzi need to read up zfs21:01
SlybootsI thought ZFS didnt work with Ubuntu21:01
eightphantomzlol21:01
RoyKeightphantomz: also, if this is just a storage machine for nfs or smb/cifs, I'd recommmend something like openindiana21:01
RoyKeightphantomz: http://hub.opensolaris.org/bin/download/Community+Group+zfs/docs/zfslast.pdf21:01
eightphantomzyes it will also my storage machine21:02
RoyKSlyboots: zfs-fuse works well21:02
RoyKSlyboots: a bit low on the write speed, but good otherwise21:02
* Slyboots is just using ext4 in a RAID5 configruation with monthly backups21:02
eightphantomzRoyK: thanks for the link21:02
Slyboots3.5tb21:02
* RoyK pats his 100TB boxes21:02
RoyKremote-pat-by-ssh :P21:03
hallynmdeslaur: lol, i don't trust changes to qemu-nbd with body:21:03
hallyn    Remove NULL checks for bdrv_new return value21:03
hallyn    21:03
hallyn    It's an indirect call to qemu_malloc, which never returns an error.21:03
eightphantomzbasically my plan is to do automation ftp process to download media files to the machine...21:03
eightphantomzand stores it21:03
Slyboots:D21:04
RoyKeightphantomz: you can do that from any unix-like system21:04
SlybootsI was going to just inall FreeNAS on it.. but with ubuntu it does *so* much more21:04
SlybootsSabnnzbd/Sickbeard/Couchpotato/ssh/squid/irssi/dnsmasq..21:04
RoyKSlyboots: that's why I use VMs with ubuntu and openindiana for the storage :P21:04
eightphantomzSlyboots: I was thinking on trying FreeNAS as well... but I think I'm more comfortable with Ubuntu21:05
RoyKeightphantomz: the bitch becomes real when your data, which you thought to be safe, corrupts because of so-called 'silent errors'21:05
eightphantomzRoyK: And the bitch is? LOL.21:06
mdeslaurhallyn: ouch!21:06
FunnyLookinHatHow 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
eightphantomzRoyK: Do u have any recommendation? Not very old Atom pc. Download and storage purposes.21:08
RoyKeightphantomz: for ubuntu or openindiana?21:09
eightphantomzRoyK: Ubuntu. I'm checking on OpenIndiana as we speak.21:09
RoyKsolaris-based OSes are a bit picky, they can't address drives > 1TB on 32bit21:09
RoyKfor ubuntu, most things will work21:09
gobbei would go with solaris&zfs only with huge storages21:10
RoyKhuge being what?21:10
RoyKgobbe: I've seen silent errors ruin data in as low as 2-3TB21:11
hallynmdeslaur: but syslog shows nbd is stuck in nbd_ioctl waiting on a mutex21:11
gobbeRoyK: well 2-3TB is huge storage21:11
RoyKlol21:11
gobbein home environment21:11
RoyKnot anymore21:11
RoyKI'd say over 2ish TB, you want a safe filesystem, since backing up the stuff is hard21:12
RoyKand then zfs is really the only one21:12
gobbeyep21:12
gobbeand zfs supports several nice features21:12
gobbelike snapshots, deduplication, compression etc21:12
RoyKforget about dedup21:12
RoyKit sucks hard21:12
RoyKI've spent my days testing zfs dedup21:12
RoyKit's not good21:13
gobbei have one customer running sun's openstorage and there deduplication have worked very good21:13
gobbebut they are mostly using it for vmware21:13
eric_hillOut of borbid curiosity, why does zfs dedup suck?21:13
eric_hills/borbid/morbid...21:13
RoyKsmall server, 12TB net storage on raidz2, 140GB L2ARC and some for the SLOG21:13
RoyKwrite speed to the zpool was horrible after 2-3TB was stored there21:14
RoyKgobbe: also, removing a deduped dataset can make the server hang for some days :P21:14
gobbe12TB created with what kind of disks?21:14
RoyKgobbe: it's a good reason dedup didn't go into Solaris 10 update 921:14
RoyKgobbe: WD Black21:14
gobbesata?21:14
RoyK2TB drives21:15
RoyKyeah21:15
gobbewell, 2TB sata is slow like a cow21:15
RoyKand they work very well21:15
RoyKwe have 160 of those21:15
RoyKnot at all21:15
gobbeif you need performance you go with SAS21:15
RoyKlinear speed about 200GB/s21:15
gobbeand that's where dedup works ok21:15
RoyKbut then, 7k2 drives sucks at seek speeds21:15
RoyKSAS/SATA - that's just interfaces21:16
RoyKdoesn't matter21:16
gobbeno it's not21:16
RoyKit certainly is21:16
RoyK3Gbps SATA is about the same as 3Gbps SAS21:16
eightphantomzOk enough data for today. Thanks guys. Cya21:16
RoyKSAS has better TCQ, right, and SATA has only NCQ, but still, same shit21:17
gobbejep21:17
RoyKbandwidth is the same21:17
gobbebut disk speed isn't21:17
RoyKand a single drive can't sustain 3Gbps anyway21:17
gobbeenterprise-sas disks run at 15k21:17
RoyKthat's the spin time21:17
RoyKnot related to the interface21:18
gobbewell, you cannot find 15k sata disks21:18
gobbethat are enterprise-ready21:18
RoyKthere are 10k sata drives21:18
RoyKsame drive, different interface21:18
gobbe10k to 15k is still huge step21:18
RoyKseektime-wise, yes, linear transfer speed, no21:19
RoyKa 2TB drive has far higher density21:19
gobbeofcourse21:19
RoyKso linear speed is about the same21:19
RoyKthat's why you use l2arc/slog for zfs21:20
hallynmdeslaur: I'm tempted to blame the BKL removal patches in drivers/block/nbd.c :(21:20
gobbebut in the end, you have to write it to disk, the bigger disk slower it is :)21:20
RoyKgobbe: nope, the bigger, the faster, really, because of higher density21:20
gobbeRoyK: it's just a cache, it just saves you sometime21:20
gobbeif you shortstroke yes21:21
RoyKgobbe: 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 is21:21
gobbebut if you take 500GB enterprise-sas and compare it to 2TB sata disk21:21
gobbeyou see huge performance gain21:21
gobbeRoyK: me to21:21
gobbe:)21:21
gobbewith huge enterprises21:21
gobbelike ~50 betabytes of storage21:21
RoAkSoAxzul: ping?21:22
eric_hillWhat's a betabyte? :)21:22
RoyKsure, 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
gobbetypo21:22
gobbepetabyte21:22
RoyKeric_hill: :D21:22
gobbeit's slow to type with n900 :-)21:22
eric_hillI think a bettabyte is mo 'betta than just a plain byte.21:22
* RoyK hands gobbe a floppybyte of pr0n21:23
gobbeRoyK: yes, like i told that if you do short-stroking :)21:23
RoyKI did short-stroking back in 200121:23
RoyKfor video streaming21:23
gobbeit's still used with modern storages21:24
RoyKon el-cheapo 120GB drives21:24
gobbelike IBM SVC supports it :)21:24
RoyKdoesn't surprise me :)21:24
gobbeand openstorage in fact21:24
gobbebut the key is storage tiering :-)21:24
gobbeand automation for that21:25
RoyKso with your multib^Hpetabyte storage, have you used zfs with any of them?21:25
gobbeof course, we sell oracle/sun ;)21:25
gobbei like zfs21:25
RoyKah21:25
gobbedon't get me wrong :)21:25
zulRoAkSoAx: yep21:25
* RoyK ended up on openindiana to get the fuck away from oracle21:25
RoAkSoAxzul: could you please take a look at bug21:26
RoAkSoAxbug #68798621:26
uvirtbotLaunchpad bug 687986 in openhpi "[FTBFS] package 'openhpi' (2.14.1-1) failed to build on natty" [Low,Fix committed] https://launchpad.net/bugs/68798621:26
RoAkSoAxand sponsor it :)21:26
zulRoAkSoAx: sure when i get back21:26
RoyKgobbe: have you looked into btrfs?21:26
RoAkSoAxzul: awesome, thanks ;)21:26
gobbeRoyK: not quite much21:26
gobbeRoyK: i thought that oracle killed it :)21:27
RoyKI've followed the development a bit21:27
RoyKnah, oracle gave away the code, so it's somehow alive still21:27
RoyKraid[56] is on its way there21:27
gobbei would be nice to have zfs in linux kernel...maybe in someday21:27
RoyKso, give it a year or two, perhaps it'll be comparable to zfs21:27
gobbeyea21:28
RoyKgobbe: 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 performs21:28
RoyKthat is, I was, but then I broke my fucking leg, so I won't be back until a couple of weeks21:29
gobbe:)21:29
gobbei thought to run little test with IBM's XIV and compare it to sun's openstorage21:29
RoyKhttp://karlsbakk.net/xray.png <-- not very funny21:29
IdleOnemy bad word script is freaking out21:30
RoyKlol21:30
gobbebut...i'll head to bead21:30
* RoyK throws some beads after gobbe 21:31
Rav3nSw0rdInstalling 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:39
=== DrNick__ is now known as DrNick_
RoyKRav3nSw0rd: boot with ahci=off21:52
Rav3nSw0rdthank you :D I shall go try that right now.21:52
RoyKRav3nSw0rd: that is, boot up, remove quiet etc, add ahci=off21:52
RoyKor was that noahci?21:52
* RoyK isn't sure21:53
RoyKRav3nSw0rd: also, have you tried 10.04?21:53
ArcitensIf there's no DocumentRoot specified in apache's httpd.conf file, what does it default to?21:54
Rav3nSw0rdRoyK, 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 point22:00
ventzRoyK: i modified that chsh a bit more, and now it actually takes care of nscd and it works for TLS :)22:01
RoyKventz: nice :)22:02
=== loadedwith|gym is now known as loadedwithwyrms
* RoyK just looked through some old stuff http://karlsbakk.net/hacker/22:13
Arcitensgood night22:22
hallynmdeslaur: it's definately the kernel.  on lucid, it works.  chroot into a lucid chroot on natty, it works.22:23
hallyn(I think the check in nbd_ioctl for lo->magic is not sufficient, but that's a pure guess)22:24
RoyKGuten Abend22:25
sabgentonis https://help.ubuntu.com/community/NetworkConnectionBridge still the best way to bridge?22:37
sabgentonuses pre-up brctl bla bla22:37
sabgentontoo many line have they made somthing simpler to go the networking file?22:39
sabgenton*lines22:39
hallynmdeslaur: (doh, of course i meant, "chroot into a lucid chroot on natty, it fails - qemu-nbd -d locks up")23:00
SlybootsHmm..23:02
SlybootsUsing SCreen.. can you split the terminal vertically23:02
* Slyboots hits his head against the screen..23:07
Slybootsstupid regex23:07
* RoyK points to "man screen"23:09
kieppiehi 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:30
hallynhm, no.  lucid userspace on natty kernel does behave differently - the qemu-nbd -d worked, but the qemu-nbd kthread becomes defunct23:36
=== Tankenator is now known as Tankenator_afk
qman__kieppie, for filesystems < 8TB, I use ext323:52
qman__tried and true, never lost any data23:52
RoyKfor anything > 8TB, use zfs :P23:52
RoyKwith a hardware raid controller, zfs won't be of much use except it will find out when data is corrupted23:53
qman__I've had minor trouble with reiser and JFS, nothing too big23:53
qman__but I recommend against XFS23:53
qman__I've lost several complete filesystems23:53
RoyKqman__: really?23:54
qman__yeah23:54
qman__power loss and kernel bugs crashing the system23:54
qman__resulted in total data loss23:54
RoyKI haven't, yet, only been using it sparsely for 10 years, though23:54
RoyKI don't use xfs anymore23:54
RoyKfor spooling it sucks hard23:55
qman__in theory it's fine23:55
qman__but the problem is when things do go wrong23:55
RoyKnot for spooling23:55
qman__in ext3 and reiser, recovery is pretty easy and reliable23:55
RoyKperformance is 20% of ext323:55
qman__in XFS, it tends to be total failure23:55
yann2I recommend also against reiserfs23:55
RoyKkillerfs23:56
yann2critical bugs in kernel > 2.6.30, non fixed and leading to data loss23:56
binBASHMurderFS!23:56
RoyK:)23:56
binBASH;)23:56
yann2https://bugzilla.kernel.org/show_bug.cgi?id=14826  burnt myself really bad 2 days ago on that one23:56
uvirtbotbugzilla.kernel.org bug 14826 in ReiserFS "jdm-20002 reiserfs_xattr_get: Invalid hash for xattr" [Normal,New]23:56
RoyKanyway - if you want your data safe, use zfs23:57
RoyKno other filesystem (perhas except btrfs) checksums data23:57
RoyKand for large data storage that is a must23:57
qman__zfs is great, the problem is solaris23:57
qman__zfs in linux or stable btrfs would make my day for sure23:58
RoyKthere is freebsd, and openindiana and zfs-fuse23:58
yann2I'd be careful with zfs too :) heard of version incompatibilities between zfs versions and hosts23:58
RoyKyann2: haven't seen it yet, and I follow the zfs ml quite closely23:58
qman__but as far as traditional filesystems, ext3 is the most stable and easiest to recover in my experience23:59
RoyKyann2: obviously you can't mount a zpool v28 on a system not supporting > v19, but that's about it23:59
yann2well 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
RoyKyann2: what sort of controller?23:59

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