/srv/irclogs.ubuntu.com/2014/01/16/#ubuntu-server.txt

=== _thumper_ is now known as thumper
xibalbahow do you check mbuf's on ubuntu ?00:45
xibalba`netstat -m` is what would usually show it00:45
=== dcosnet1 is now known as dcosnet
=== peter is now known as Guest19059
KI7MT.02:52
jkitchenKI7MT: sup greg.03:06
jkitchendidn't even need to guess :(03:07
KI7MTHey what's up .. just writing some Ubuntu QA test cases.03:07
KI7MTIn fact, doing Virtual Minimal and Virtual Minimal system installs via, server-iso03:08
KI7MTminimal system && virtual minimal system .. lol .. even confuzzed myself there fer a minute.03:09
=== ws2k3 is now known as yctn
=== psivaa_ is now known as psivaa
yolandamorning jamespage, have a lot of MP ready for you :)10:02
zulhallyn:  ill get on libvirt and libvirt-python today13:57
hallyncool13:57
hallynthanks13:57
=== keee is now known as w0rmie
rbasakstgraber: re: bug 1204902, would a bind mount be similiarly objectionable?14:20
uvirtbotLaunchpad bug 1204902 in lxc "Please add symlink access to a guest's root filesystem" [Wishlist,Won't fix] https://launchpad.net/bugs/120490214:20
=== keee is now known as w0rmie
zulhallyn:  1.2.1 builds fine locally for me (that was too easy)14:42
hallynzul: that's a pleasant change :)14:44
hallynrbasak: what would we bind mount?14:45
YamakasYsomeone using partman schemes ?14:46
hallynrbasak: Task t1 (lxc-start) clones task t2 (which becomes init) in a new mount ns.  any mounting done by t2 is not seen by t1.  To let t1 see t2's mounts we would have to do a scheme with mounts propagation, which would be ok if we know exctly how we are starting, but in the general upstream sense would be very fragile14:49
hallynlook at what we're having to do to account for hosts which either have root in ramfs, or have / mounted ms_shared14:50
zulsmb/hallyn:  should i put these in a ppa for you to test14:50
hallynzul: sure14:51
hallynone day i'll need to build a new test image with acpi enabled for qrt so i can have 100% tests passing again..14:52
smbzul, would be nice. In theory you should have been able to drop two of my recent patches at least14:52
smbzul, And hopefully not have to fiddle with the ones we still need14:53
zulsmb: i did and didnt need to fiddle14:53
smbzul, Makes me feel happy :)14:54
zulsmb: ditto then i can work on other things :)14:54
smbhehe14:54
zulsmb/hallyn: will be in here for trusty https://launchpad.net/~zulcss/+archive/libvirt-testing15:03
ns5what version of erlang does 12.04.03 have?15:03
hallynzul: ok15:04
smbzul, Ok, I'll give it a whack in a bit15:07
zulthanks15:08
=== manjo` is now known as manjo
stgraberrbasak: AFAIK a bind mount is impossible15:20
stgraberrbasak: hmm, apparently it's not anymore, odd, I'm pretty sure this failed on ubuntu-touch when we tried...15:21
ogra_yep15:21
* ogra_ remembers that too15:21
stgraberrbasak: so anyway, the problem you get with the bind-mount then is that it'll only show you the / of the container, not any of the sub mounts15:21
=== keee is now known as w0rmie
phillwHi, I've just done do-release-upgrade -d but I do not have the 3.13 kernel (still 3.8) :(15:53
phillwhttps://help.ubuntu.com/12.04/serverguide/installing-upgrading.html15:53
yctndoes anyone know if this issue still exsist in ubuntu 12.04 https://bugs.launchpad.net/ubuntu/+source/cyrus-sasl2/+bug/87544015:55
uvirtbotLaunchpad bug 875440 in cyrus-sasl2 "Cannot authenticate with saslauthd and mysql" [High,Confirmed]15:55
Piciphillw: so you're on 14.04 now?15:55
phillwPici: that VM was told to upgrade... it ran for  couple of hours and is still on kernel 3.8 ... I'm guessing this may be a bug as my desktop upgrade has pulled in the new kernel series.15:57
phillwpicking up bugs early is always good, especially as we have a lts --> ;ts release :)15:59
Piciphillw: Looks like linux-image-server is still at 3.13 on trusty.16:00
phillwPici: so, how do I tell a server to get it?16:01
Piciphillw: You don't, there is not an updated package available.16:01
phillw(it is a VM and you are welcome to have a wander aroubd)16:02
phillwPici: how do invoke drwxrwxr-x 23 ali ali     4096 Jan 12 10:04 linux-3.13-rc816:03
phillw to be used?16:03
Piciphillw: What do you mean by invoke?16:03
phillwuse,... it's okay. I'll pop back to -kernel as there has been some issues with -rc7 that rc8 may have solved. that particular VM is for trialling 14.04 community bulds, so I do expect breakage as we learn how do them :)16:05
smbzul, Ok, completed a PXE/HVM install through libvirt-1.2.1/Xen/xl and it did not explode. Sounds good enough from that side ;)16:36
zulsmb: awesome just need one more +116:37
phillwzul: do you have the link to the test case?16:38
=== keee is now known as w0rmie
zulphillw:  what test case?16:39
phillw(16:36:37) smb: zul, Ok, completed a PXE/HVM install through libvirt-1.2.1/Xen/xl and it did not explode. Sounds good enough from that side ;)16:40
zulphillw:  no this is testing libvirt16:40
smbphillw, This is me running it16:41
zulphillw:  we never had a formal test case for libvirt16:41
phillwI run KVM, in 14.04 ubuntu and centos 6.4..... what would you like testing (apart from https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1080674 and a couple of others that are no-fix) ? :)16:42
uvirtbotLaunchpad bug 1080674 in cairo "[QEMU] Corrupted desktop screen for raring desktop installation in QEMU guest (Cirrus graphics).  Affects KVM but not VBox." [Medium,Confirmed]16:42
zuluh?16:44
phillwsmb: I connect to the server using kvm (and libvirt) from 14.04 to a 6.4 CentOS system... no bugs :)16:45
phillwvirt-manager is a local GUI that makes life a bit easier :) It was the libvirt devs who told me that I was doing it all wrong when connecting :)16:46
smbIt certainly beats doing most things manually... it has some drawbacks (virt-manager) in the implementation. At least when one is using a lot of lvs16:50
phillwsmb: I don't know what lots are.... I have 9 VM's running. But, I'm not a crappy company like godadday :P16:55
smbphillw, Its not about the number of running VMs. I have 37 LVs defined and virt-manager becomes quite slow displaying them for selection.17:02
phillwsmb: what do you use? i do dabble with virsh for some admin jobs, but am always open to new ideas :)17:04
smbphillw, Partially virsh, or working around that limitation by defining the LVs by hand and type in the path instead of using the search box. For my small scale testing that is good enough17:07
hallynzul: all tests passed, that's a go :)17:13
zulhallyn:  cool thanks17:24
phillwsmb: feel free to ping me if there is ever a requirement for a 2nd kvm to confirm things. I still retain one that is not allocated to any team.17:33
smbphillw, The KVM side usually is covered more. But you are always welcome to check out the early daily images for the next release with your use cases. And report bugs (ask bjf said). They really help not to forget things. And you get feedback independently from when things are done17:39
phillwsmb: I run lubuntu 14.04 on my laptop and centos 6.4 on my server... both machines have kvm running. all any one need do is give me a ping (I also live on #phillw).17:42
StathisAanyone have experience with MSMTP?...i did the symbolic link for sendmail - but apticron reports: send-mail: invalid option -- 'r'18:19
StathisAmsmtp should befully compatible with sendmail switches and exit codes...:-S18:20
sarnoldStathisA: http://www.sendmail.org/~ca/email/man/sendmail.html18:38
sarnoldStathisA: "-rname      An alternate and obsolete form of the -f flag."18:38
sarnoldwow, -rname was listed as obsolete even back in freebsd 1.0 days: http://www.freebsd.org/cgi/man.cgi?query=sendmail&apropos=0&sektion=0&manpath=FreeBSD+1.0-RELEASE&arch=default&format=html18:40
sarnoldwow, 4.2 BSD NET/2 even. it's been obsolete for a very long time indeed :)18:41
StathisAhmmm...how to get around it then...:-S18:47
sarnoldStathisA: ideally, file a bug on apticron, and then if you've got the ability and inclination, download the sources, find the -r, write a patch to fix it, and ask for help to push the fix through the SRU process: https://wiki.ubuntu.com/StableReleaseUpdates18:53
sarnoldStathisA: but be sure to file the bug regardless :) hehe18:54
StathisAok thank you!18:55
blzHello, I'm trying to install GRUB to an installation which currently does not boot (doing this from the rescue option of the Ubuntu server installer).  `grub-install /dev/sda` complains that "embedding is not possible, but this is required for cross-disk install".  What should I be doing differently?19:26
hitsujiTMOblz: did you chroot to the install os?19:27
holsteini always just refer to https://help.ubuntu.com/community/Boot-Repair and use a live CD when i can19:27
blzhitsujiTMO, I believe so.  At some point it asked me what I wanted to use as my root and I selected /dev/md019:27
hitsujiTMOblz: wait soory never mind misread you question19:27
blzhitsujiTMO, no worries =)19:28
hitsujiTMOblz: what partition layout is it?19:28
hitsujiTMOmbr or gpt?19:28
blzhitsujiTMO, gpt19:28
blzhitsujiTMO, they're 3Tb drives (x3)19:28
hitsujiTMOthen its just grub-install19:28
blzhitsujiTMO, haha that simple, huh?19:29
blz=)19:29
blzhitsujiTMO, hmm actually it's printing the help when I just do `grub-install`19:29
hitsujiTMOblz: this is a uefi install right?19:30
blzuefi?19:30
blzI installed this with  ubuntu-server's text installer19:30
blzhitsujiTMO, The thing is, my /  is on a RAID5 partition and my /boot is on /dev/sda119:31
blzSo I suspect this is why I'm having issues19:31
hitsujiTMOwhat type of drive is /dev/sda1 ?19:32
blz3 Tb HDD19:32
blzhitsujiTMO, let me give you the whole layout... might be clearer19:32
hitsujiTMOblz is the a /boot/efi ?19:32
blzhitsujiTMO, `ls /boot` returns only a directory called `grub`19:34
blzin said directory, there is efiemu.mod, efiemu32.o and efiemu.64.o19:34
hitsujiTMOblz ok. then you should have a reserved boot partition.19:34
blzhitsujiTMO, yes, that would be /dev/sda119:35
hitsujiTMOblz: thats not /boot right?19:36
blzhitsujiTMO, aaaah you have me stumped.  how can i check?19:37
hitsujiTMOparted -l19:37
blzhitsujiTMO, all I know is that I defined a 256 mb partition on /dev/sda1 and set it's mountpoint to /boot19:37
blzbut yeah, let me check that19:37
blzhitsujiTMO, I have a line that reads `1   1049kb    256mb    ext2                         boot`19:39
blzboot being under the 'flags' column... I don't see any indication of it being mounted to /boot, though19:41
blzhitsujiTMO, unless I'm missing something obvious19:41
hitsujiTMOblz thats just sda1. hmm.19:42
blzhitsujiTMO, I only copied one line, there.  There's much more19:42
hitsujiTMOblz is there any partition thats only like 1mb in size?19:43
blzhitsujiTMO, no19:43
blzhitsujiTMO, this is a fresh install, so maybe I should just start over.  I'm just scratching my head at where I went wrong =/19:44
hitsujiTMOblz: does the server support uefi at all?19:44
blzhitsujiTMO, how can I check?19:44
hitsujiTMOblz: how old is it?19:45
blzhitsujiTMO, a few years old -- circa 2007, maybe?  It's a socket 775, I believe19:45
hitsujiTMOnah then it wont19:45
blzwell shoot =/19:46
hitsujiTMOhmm.. not sure exactly it would have done. on debian it installs to a reserved bios partition on gpt.19:47
zlatanHi! I'm having some trouble opening ports on my VPS to the outside world, would I be able to ask for some guidance here?19:48
hitsujiTMOblz: does parted -l list any unusual partitions types?19:49
sarnoldzlatan: yes, but it might be worthwhile to shoot a question to your vps provider to find out if they're blocking ports in their network19:49
blzhitsujiTMO, other than raid partitions? no19:50
hitsujiTMOblz: sorry out of ideas then.19:50
blzhitsujiTMO, no worries.  thanks for your help =019:50
blz=)19:50
zlatansarnold: that sounds reasonable. I didn't think it would be a probable explanation for the problem, but I'll check with them just to be sure :-)19:50
hitsujiTMOblz: anything partition that says bios_boot ?19:51
sarnoldzlatan: it happens surprisingly often :) hehe19:52
zlatansarnold: thanks, I wouldn't have guessed that haha19:52
blzhitsujiTMO, nope19:52
zlatansarnold: btw, is it likely that they seem to block basically all ports except 80?19:53
sarnoldzlatan: it would be a bit draconian, but I suspect _someone_ out there does just that :) hehe19:53
hitsujiTMOblz: maybe this might help: http://bootinfoscript.sourceforge.net/19:53
blzhitsujiTMO, great, I'll read through it.  Thanks again!19:54
hitsujiTMOzlatan: whats the output of: sudo iptables --list19:55
zlatanhitsujiTMO: it's currently a very convoluted list, but I used 'ufw allow 8000' to open port 800019:56
zlatanwhich didn't seem to work19:56
hitsujiTMOzlatan: whats output of: sudo ufw status19:57
hitsujiTMOzlatan: there may be a rule that's superseding your rule19:57
zlatanhitsujiTMO: it's a very barebones VPS that I just setup, so I deem it highly unlikely, but I'll paste the output here just to be sure19:58
hitsujiTMOzlatan: sudo apt-get install pastebinit && sudo ufw status | pastebinit20:00
sarnoldpastebinit++  :)20:00
zlatanhitsujiTMO: as a test, could I use 'ufw disable' and try to access the port (via normal http) to see whether it'd work without any firewall? Or would that still leave some barriers intact?20:00
hitsujiTMOzlatan: no that should work if you disable ufw20:01
zlatanhitsujiTMO: let me recheck that first, I recall that I tried to do so and it still didn't work20:02
hitsujiTMOzlatan: if you disable ufw. whats the output of: sudo iptables --list20:02
zlatanhitsujiTMO: it says Status: inactive20:06
zlatanhitsujiTMO: sorry, wrong command20:07
zlatanhitsujiTMO: http://paste.ubuntu.com/6763942/20:07
zlatanhitsujiTMO: I also tried using netcat and tcpdump to listen for incoming packages, but nothing seemed to happen20:08
hitsujiTMOzlatan: and its still blocked now?20:08
hitsujiTMOzlatan: looks like they've some external firewall up if thats the case20:08
zlatanhitsujiTMO: I just ran 'tcpdump port 8000' and tried to access my server ip:8000, but the connection times out and I don't receive any packages...20:09
zlatanhitsujiTMO: that certainly seems likely now, yes20:09
zlatanhitsujiTMO: just a strange idea: could I try logging on to the server on two separate sessions and trying to send a request to the localhost:8000 from one session and listen to it from the other? To see whether it does accept local connections?20:12
hXmhello, I want to create a cloud storage in my server, I know there is openstack but that is a bootable OS no? exists an alternative?20:12
hXmsomething like dropbox could be just perfect20:12
sarnoldhXm: look into owncloud20:13
hXmoh, i'll google that, thanks20:13
holsteinor, share via ssh or whatever, and connect to the share..20:13
sarnoldI'm happy enough with sftp but can see why someone would want more :) hehe20:13
hXmfor me I just use sftp too, but for regular users they just imagine something like \\domain.com\directory and copy,paste,execute from it as a shared folder20:14
hitsujiTMOzlatan: no need to do a second sftp session. background the listening app with ctrl + z, send your request to localhost:8000, then foreground the listener with fg20:14
hXmowncloud is via web only20:15
zlatanah right20:15
zlatanforgot about that20:15
hitsujiTMOzlatan: you should also look into screen of tmu20:15
hitsujiTMOzlatan: you should also look into screen of tmux20:15
hXmah, ah, desktop clients too, nice20:15
zlatanhitsujiTMO: a regular wget should do the trick i guess?20:15
hitsujiTMOzlatan: yup20:16
zlatanhitsujiTMO: this is interesting. Listening on port 8000 doesn't do anyting whatsoever. However, when I let nginx run on port 80, then execute 'tcpdump port 80' and consequently do 'wget localhost:80', it does retrieve index.html and tcpdump shows that packages were received. However, when nginx is not running, running the same wget command merely returns a 'connection refused'20:24
hitsujiTMOzlatan: try: sudo tcpdump -i lo port 800020:25
zlatanhitsujiTMO: sure20:25
zlatanhitsujiTMO: when I run 'tcpdump -i lo port 8000' and consequently run 'netstat -ntlp | grep "LISTEN"', I guess I should see an entry for tcpdump listening to port 8000? Since it doesn't show up...20:30
sarnoldtcpdump won't be listening20:30
sarnoldit throws the NIC into promiscious mode and reads packets raw through a different mechanism20:31
zlatansarnold: sorry, didn't know that. Anyways, now that I've setup nginx to listen on port 8000, it does in fact work when I approach it locally20:32
zlatansarnold hitsujiTMO: however, it still doesn't listen to my connection from the outside20:33
sarnoldzlatan: try changing the tcpdump -i lo port 8000 to just tcpdump port 8000  ?20:33
hitsujiTMOzlatan: or: tcpdump -i eth0 port 8000                      if the external interface is eth0, but without it should work20:34
zlatansarnold: now tcpdump doesn't see any packages arriving, even though nginx does send back index.html20:34
miseria"no estoy de acuerdo con la pena de muerte, al final las leyes sobrenaturales nos tienen condenados a morir" bienvenidos: http://castroruben.com *temo_a_un_ser_sin_rival*20:37
zlatanhitsujiTMO sarnold: only when i use '-i lo', it actually shows the packages coming in. Both of the others stay blank when i do 'wget localhost:8000'20:39
sarnoldzlatan: perhaps when you just run 'tcpdump' it binds to the incorrect network interfae20:40
sarnoldzlatan: check 'ip' output to find out the interfces on the system; you might need to select a different one20:41
zlatansarnold: just 'ip'? It seems to need parameters?20:42
zlatansarnold: 'ifconfig' maybe?20:42
sarnoldzlatan: ifconfig also works20:43
zlatansarnold: http://paste.ubuntu.com/6764105/20:44
sarnoldzlatan: ha, that's easy enough. drat :)20:44
zlatansarnold: just wondering, the things you're seeing so far... does it seem out of the ordinary (meaning that something like an external firewall might actually be in place) or is there still a good possibility that it's just my lack of skills in setting up server systems?20:46
sarnoldzlatan: I'm not sure; packet captures can be funny things. it sounds like you've got your nginz running on 8000 now and it seems to be working, right?20:48
zlatansarnold: only locally... when I try to approach it via a regular browser, the connection merely times out20:49
sarnoldzlatan: times out, eh? that does sound like a firewall, one set to DROP packets rather than REJECT packets20:49
zlatansarnold: connections time out on every port except 80, even when the local firewall is set to deny specific ports20:50
sarnoldzlatan: that sounds very much like the VPS provider to me20:50
zlatansarnold: that's good to know :-)20:50
sarnoldzlatan: is it by chance amazon? if so you may need to configure new security groups20:51
zlatansarnold: my friend says that it is in fact possible to run directadmin on the vps (via a custom installation process) which listens on port 2222... can this invalidate our conclusion, or might that be a side-effect of the custom installation process they offer?20:51
zlatansarnold: no, a minor Dutch provider ;)20:52
sarnoldzlatan: sorry, no idea on the direcadmin thing; if it is a web-based administration tool, please be cautious, those are notortiously insecure20:52
rostamHi I am trying to start  dhcp server: service isc-dhcp-server. However, every time, I get the following message: init: isc-dhcp-server main process(...) killed by TERM signal.       why?20:53
sarnoldrostam: is there anything in the logs that looks related?20:53
rostamsarnold, which log exacly I need to look for?20:54
blzI'm trying to install ubuntu-server to a software RAID volume, but I keep getting an error when installing grub.  The error reads "executing `grub-install /dev/sda/` failed".  What can I do to fix this?20:54
blzThis is RAID5 on 3 gpt-partitioned HDDs20:54
sarnoldrostam: /var/log/syslog -- and if the dhcp server has its own log file, that too..20:54
zlatansarnold: it is indeed a web-based admin tool, but we're not installing that :-)20:56
rostamsarnold,  there is nothing about isc-server ...20:56
sarnoldzlatan: oh, good. :)20:56
sarnoldrostam: it'd probably have dhcp in the name20:57
rostamsarnold,  it seems it worked at some time, because I see DHCPREQUEST and DHCPACK but nothing else...20:58
tc0nnrostam: That's pretty normal. The "renewal" process is just that simple.21:01
sarnoldrostam: hrm, so no messages that look out of the ordinary just before it blows up?21:02
rostamsarnold,  yes not other messages.21:02
rostamtc0nn, renewal process: how can I stop that..21:03
tc0nnThat's normal. If it doesn't renew, it loses the DHCP lease.21:03
tc0nnBasically that's the DHCP client telling the server "hey dude, I'm still here, don't give away my IP address as I'm still using it"21:04
rostamtc0nn,  sarnold  thank you I think I understand now.21:04
sarnoldrostam: if it happens again, I recommend running ubuntu-bug ich-dhcp-server21:05
rostamsarnold, thx21:06
zlatansarnold hitsujiTMO: thanks for helping out, we'll see what our VPS provider can do for us :-) take care!21:09
blzHello, I'm trying to install ubuntu-server to an LVM-on-RAID5 volume.  The installer runs its course and then fails when trying to install the bootloader.  I've tried installing to /dev/sda, /dev/mapper/md-0 and /dev/mapper/md-1, to no avail.  What gives?23:01
blzAlso please note that these are 3 gpt-partitioned drives (>2Tb)23:01
ikoniablz: I assume you have a /boot partition that is a physical partition ?23:04
blzikonia, no, I was under the impression that GRUB2 didn't require one23:04
blzikonia, what's more, I tried it with a seperate /boot earlier and it still failed with the same message (although it was trying to install to /dev/sda, then)23:05
blzikonia, google seems to suggest that using non MSDOS partition tables opens a lot of issues23:05
maxbblz: EFI or BIOS booting? Also, are you able to run 'parted --list' or similar and pastebin it to show us the full details of your partition layout?23:05
blzmaxb, I'm not sure about EFI vs BIOS -- i suspect BIOS as the computer is a few years old.   As for the pastebinning, I'm still in the graphical installer, so cutting&pasting (let alone internetting) is a bit of a challenge23:06
blzmaxb, but if you tell me what to look for, I can relay the information from parted -l23:06
blzOh also, I should mention that I'm still in the installer.  I can drop to a shell via ctrl+shift+F223:07
maxbSo, you have sda, sdb and sdc, each with a GPT? What partitions do they contain? What makes up md-0 and md-1 (cat /proc/mdstat will help for this)23:09
blzmaxb, yes, sd[abc], each GPT, each containing one partition marked as physical volume for raid23:10
blzI built a RAID5 array using the above partitions23:10
blzand an LVM on top of that23:10
blzmaxb, the installer is presently hanging on the final bit where it installs the bootloader23:10
maxbSomething seems a bit wrong if you have *two* md devices in such a setup23:10
blzmaxb, yeah i thought that was rather strange, too23:11
blzlet me copy down the output from ls -l /dev/mapper23:11
blzit'll be a bit quick & dirty...23:11
maxbJump to a shell and have a look at /proc/mdstat - it should tell you which underlying devices make up each md device23:11
blzhttp://paste.ubuntu.com/6764728/23:13
blzmaxb, did I say `md` ?  I meant `dm-0` & `dm-1`23:13
blzI think these are the logical volumes on my LVM23:13
maxbOh, right, that makes all the difference :-)23:14
blzmaxb, my bad =)23:14
blz/proc/mdstat appears empty, btw23:15
blzbut that might be because i'm in the installer's shell ?23:15
maxbIt sounds to me like /dev/sda would be the correct installation device23:15
maxbmdstat will be empty because it turns out you're not using md :-)23:15
blzmaxb, oh right. yes that makes sense23:15
blzmaxb, I'll try /dev/sda again, but that failed in the past23:15
blzlet me try again, though23:16
maxbI'm not all that familiar with where the graphical installer logs to. Do you get any messages about *how* it is failing?23:16
blzyeah it's throwing an error.23:16
maxbwhich is? :-)23:16
blzmaxb, well no -- that's the frustrating thing23:16
blzit says "Executing grub-install /dev/sda failed.  this is a fatal error"23:16
maxbHow 'helpful'23:17
blzmaxb, no kidding23:17
maxbCould you run parted -l and tell me what the "Start" value is for the partitions?23:17
blzsure, one sec23:17
maxbThe partitions on sd[abc], that is, ignore any stuff about the dm devices23:18
blzhmm it's saying parted not found23:18
blzlet me reboot into the rescue option23:18
blzand drop to a shell there23:18
maxbOr try fdisk instead23:18
blzjust plain `fdisk` ?23:19
blzor fdisk -l ?23:19
blzeeh, fdisk not found either23:19
blzi'll bring up the rescue shell23:19
blzmaxb, hmm I have some new information23:25
maxbok23:25
blzmaxb, I ran the 'repair a broken system' option in the ubuntu-server installer and opened a shell in /dev/root/system23:25
blzwhich is my LVM logical volume mapped to /23:26
blzand i tried running grub-install /dev/sda from there23:26
blzmaxb,  I got a more informative error:  "/usr/sbin/grub-setup:  warn:  this GPT partition label has no BIOS Boot Partition; embedding won't be possible!"23:26
blzmaxb, followed by "Embedding is not possible, but this is required when the root device is on a RAID array or LVM volume23:27
blzcertainly more "helpful" than "Error. it didn't work" :D23:27
maxbAh, so it is that problem.23:27
blzI'm all ears =)23:27
maxbGRUB needs space to put the code which actually understands how to boot off LVM - but there is no space available in which to put it23:28
blzmaxb, ah, so how would I go about fixing this?23:28
blzmaxb, I'm willing to reinstall if that's simpler/cleaner23:28
maxbIn a MBR partition table setup, the space is made by leaving unpartitioned space before the first partition. In a GPT setup, it's the same idea, but instead of unpartitioned space, you have to allow a partition of a special type, which GRUB knows belongs to it for this purpose23:30
maxbSo unfortunately, you will need to repartition23:30
blzmaxb, ok that's not a problem23:32
blzso basically I'll need to make a small partition at the begining of every disk and format it as a specific type of partition?23:32
blzhow large and what's the type called?23:33
maxbIf you are creating it using parted, the incantation to mark it as the right type is 'set (number) bios_grub on'23:34
blzmaxb, i was hoping to create it during the partitioning menu of the installer23:34
maxbAs for size, I'm not sure, but GRUB seems happy with only 1MiB on my LVM-without-RAID setup23:34
blzmaxb, ok -- is this something I can do from the installer?23:35
blzor should I run parted first?23:35
maxbI'm unsure whether the graphical installer is going to give you the flexibility you need.23:35
ikoniablz: apologies I had to make a phone call23:35
ikoniablz: what's the current situation ?23:35
blzikonia, no worries! Thanks for checking in =)23:35
maxbikonia: Needing to repartition so that GRUB has room for embedding23:36
ikoniaembedding ?23:36
blzwhat maxb said ^^23:36
ikoniaapologies, I've missed part of the conversation, I'm certainly interested23:36
blzikonia, I'm not sure how well I can explain it seeing as I just found out that this thing existed23:38
blzikonia, but in a nutshell it would seem that GRUB2 expects a small partition at the beginning of each of my drives from which it can load the stuff it needs to boot from GPT23:39
blzand I'm now wondering how to set up such a partition from the installer23:39
maxbembedding is when GRUB needs to write some of its support code somewhere on the disk (in this case, the code that it uses to know how to read stuff from LVM)23:39
ikoniamaxb: are you talking about the stage files ?23:40
maxbstages is what Grub 0.9x called it23:40
ikoniayes, but in essence the same thing23:40
ikoniathat's why it needs a /boot partition23:40
ikonia(or it's better to have one)23:40
maxbIt doesn't *need* a /boot partition23:41
blzikonia, oh so this is /boot we're talking about?23:41
ikoniamaxb: it needs somewhere, so /boot is the logical place.23:41
ikoniablz: yes,23:41
maxbA /boot partition would be solving the same general problem in a different way23:41
blzI tried installing a /boot at one point and I got the same error23:41
ikoniablz: a seperate boot partition or a logical volume /boot23:41
blzikonia, seperate /boot partition23:42
blzinitially I had a 256 mb /boot partiton on sda23:42
ikoniablz: that should be fine23:42
blzand 256 mb swap partitions on sd[bc]23:42
ikonia256mb swap partition ??23:42
blzand then each drive had a (3tb - 256mb) physical volume for raid23:43
blzikonia, two of them23:43
ikoniahardly seems worth it23:43
blzikonia, well it was mostly to do something with the extra space23:43
ikoniablz: how big is your boot disk ?23:43
blzikonia, I'm trying to boot from a 3-disk RAID523:43
ikoniajust put swap on an lv23:43
ikoniahow big is the physical disk ?23:43
blz3x 3TB23:43
ikoniaso they are gpt partitions23:43
sarnold.. and yet, 256M swaps are 16 times larger than the first swap partitions I had..23:44
blzikonia, yes23:44
ikoniais the motherboard using uefi ?23:44
blzsarnold, crazy isn't it?23:44
hushnowquietnowQuick question for you fine ubuntans23:44
sarnoldblz: yeah :)23:44
blzikonia, no, BIOS23:44
ikoniablz: how is your raid setup, mdadm ? fake raid ? hardware raid ?23:44
blzsarnold, my first gen iPod video has more RAM than my mother's PC23:44
hushnowquietnowI've got an Apache process that's eating up loads of cpu and memory.  How can I figure out which of my vhosts is causing the problem?23:44
blzikonia, software23:44
ikoniablz: mdadm ?23:44
sarnoldblz: haha, nice23:44
blzikonia, i assume so?23:45
blzikonia, I just went through the partition manager in the ubuntu server installer23:45
ikoniablz: the ubuntu installer is creating the raid ?23:45
ikoniaok, so mdadm23:45
blzand selected "physical volume for raid" and whatnot23:45
blzikonia, yeah23:45
ikoniablz: so here is my suggestion23:45
blzikonia, I'm all ears =)23:46
sarnoldhushnowquietnow: my first thoght is that the vhost that is causing the problems is likely the most active vhost -- can you check logs to get a feeling for which one is most active?23:46
ikoniablz: make a 300mb partition on each disk, sda1, sdb1, sdc1 - put it in raid 1 + 1 spare create 1 partition on the other disks filling the whole disk sda2, sdb2, sc2 - raid them in raid 5, put that only (not the sda1/b1/c1 mirror) under lvm control23:46
ikoniablz: make the mirror /boot - write the grub to the mbr of your boot disk (probably sda)23:46
ikoniaI suspect you'll be fine23:47
blzikonia, OK,  let me say it all back to you to make sure I get it...23:47
blzikonia, step 1)  create small partition on all drives, RAID1 it (with one spare drive)23:47
ikoniatick23:48
blzikonia, do I make a /boot on top of that raid?23:48
hushnowquietnowsarnold: That's a pretty straightforward way to go23:48
blzor no?23:48
ikoniablz: so the mirror + space = /boot23:48
ikoniablz: yes23:48
ikonia+ spare23:48
ikonianot space23:48
blzok cool23:48
blzright right23:48
hushnowquietnowI was hoping there'd be some sort of command I can feed the pid into and get more info on it though23:48
maxbikonia's method should work, but I still prefer the bios_grub method - it seems less complicated to not have to set up a separate /boot with a different raid level23:48
blzstep 2:  make a partition using the remaining space on all three drives.  RAID5 that.  LVM on top of that.  install as usual23:48
blzstep 3:  GRUB2 to /dev/sda23:48
ikoniamaxb: I don't disagree23:49
sarnoldhushnowquietnow: well now, you say that.. maybe there is a way to read the apache scoreboard23:49
ikoniablz: you got it23:49
blzikonia, cool23:49
blzperfect23:49
blzmaxb, ikonia so i shoudl go with that?  Or should i do the bios_grub approach?23:49
blzikonia, more exactly, why do you recommend this as opposed to maxb's suggestion?23:50
sarnoldhushnowquietnow: ooh, investigate how this works: http://www.apache.org/server-status23:50
sarnoldhushnowquietnow: that might do it :)23:50
ikoniablz: it's hard to be %100 clear on this, I prefer my approach because I use it, maxb's is correct there is nothing wrong with his approach at all23:50
blzikonia, haha ok, except that i'm not sure I understand how to do his23:51
hushnowquietnowsarnold: just might!  Thanks! :)23:51
blzoh well.  I'll just try yours, ikonia.  At least I'm clear on what needs to be done =)23:51
maxbSo I've started the ubuntu server .iso in a VM. Does it even *have* a graphical installer?23:52
ikoniamaxb: all ncurses based I thought23:52
maxbThat's what I thought too, but blz was talking about a graphical partitioner23:53
hushnowquietnowsarnold: `apachectl fullstatus` looks to be what I want!23:53
parallel21maxb: Why do you want a graphical installer?23:54
maxbI don't. But blz was asking if it was possible to create a bios_grub partition in it23:55
sarnoldhushnowquietnow: nice, thanks! :)23:57
ikoniamaxb: that's half the reason I was sceptical, I'm not sure how the installer would deal with it23:57
parallel21maxb: should do it automagically I think. Just curious, is there a difference between a grub partition and a bios_grub partition?23:58
parallel21maxb: sorry... I just caught up to the conversation. Disregard23:59

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