/srv/irclogs.ubuntu.com/2014/02/12/#ubuntu-server.txt

jkitchenquestion: if I set up a 2 partition root, give one partition to /boot, and the other as a pv to an lvm vg... if I want to resize that partition/pv/vg later, can I do that online? (the root block device is a LUN from my san, so I can resize the block device itself)00:07
TJ-jkitchen: Yes, you can use pvresize to expand/shrink the PV underlying a VG00:08
jkitchenright, but what about the partition table00:09
jkitchenthis may actually be moot because it looks like ubuntu (at least 12.04) has no problems booting off of an lvm root with /boot inside the lv00:10
jkitchenbut it does look like partman is still creating a partition tabel00:10
jkitchenrather than just giving the whole block device over to lvm00:10
TJ-jkitchen: pvresize is used in conjunction with the partitioning tools00:12
TJ-jkitchen: With LVM though you could, instead, just add another block device as a PV to the VG00:12
TJ-jkitchen: no need to resize00:12
jkitchenthat still requires manipulating the partition table to add a new partition though, right?00:13
jkitchenor are you saying expose another LUN to the vm just to add space? (ew)00:13
TJ-jkitchen: not if you add a new block device... e.g. sdd2 >PV1 > VG  .... then later +sde > PV2 >vgextend VG /dev/sde00:14
jkitchenyea, I don't want to have to create another lun just to add space. the SAN can grow a lun and we already do that with data volumes and such00:15
TJ-jkitchen: alternatively, if you want to stay in one partition of one block device, make the PV the last paritition, so when you extend the block device, you just redo the sector count of the final partition, then do pvresize on that partition00:15
jkitchenright now our root volumes are just direct partition tables on the disk, I'd like to just hand the block device to lvm and have it go nuts00:15
jkitchenyea00:16
jkitchensince it seems I can actually boot directly from the lvm with no problem, I may try to see if I can get partman to just use lvm raw on the block device without creating a partition table00:16
jkitchenbut something tells me that's not going to be easy :)00:17
jkitchenI'll poke at it a bit00:17
jkitchenright now it seems like it's creating the pv as the only partition, so resizing that one partition and then pvresizing should be fine, but I'd rather remove that one step if I can00:17
TJ-you could do that if you create the base install using deboostrap followed by some config and tasksel00:18
jkitchenI'm preseed installing00:18
jkitchenhttps://gist.github.com/kitchen/ba72af4a48b94fb0f463 that's the relevant section of my preseed file00:19
jkitchenI still need to answer a couple of questions in it, I'm adapting my existing template to lvm, but that does produce a bootable system00:19
jkitchen(it just did, actually)00:20
jkitchenand now I'm reinstalling with the questions answered so hopefully it goes full auto :D00:24
DeltaHeavyCan anybody help me figure out why my PHP file tries to download to the client, rather than execute? https://gist.github.com/anonymous/af31d161f1b96b83fcfb00:44
DeltaHeavyI'm using 12.0400:44
sarnoldteward: ^^^00:46
hitsujiTMODeltaHeavy: did you install libapache2-mod-php5?00:47
DeltaHeavyhitsujiTMO: Why would I need libapache2-mod-php5 if I'm using nginx?00:48
hitsujiTMOahh, nginx not apache :P00:48
DeltaHeavyYar00:48
hitsujiTMODeltaHeavy: have you installed php-fpm?00:49
DeltaHeavyYep00:49
DeltaHeavyHowever I get access denied when trying to read this file with sudo: /var/run/php5-fpm.sock00:49
sarnoldI'm surprised about the access denied; I figured you'd just get nothing until something wrote into the pipe..00:51
DeltaHeavyGot it fixed. Needed to change the default MIME type00:51
hitsujiTMODeltaHeavy: try_files $uri =404 is serving the file. remove that line00:51
sarnoldare you sure it's a pipe?00:51
sarnoldteward: ah, nevermind, he fixed his problem :) thanks00:53
jkitchenseems online partition resizing is not possible :(01:24
DeltaHeavy jkitchen Why not?01:25
DeltaHeavyShould be01:25
jkitchenDeltaHeavy: parted keeps wanting to try to resize the filesystem for me, even though it warns me not to do that (I don't want it to)01:25
jkitchenall of the docs I've found searching for "ubuntu online partition resize" say it can't be done online01:26
DeltaHeavyjkitchen: Extend it or shrink it?01:26
jkitchenextend01:26
jkitchenI increased the lun size. parted sees this free space01:26
DeltaHeavyCan't you do it via SSH X11 tunneling, or fdisk via SSH?01:26
DeltaHeavyI swear I've done it before01:26
jkitchenI'd like to eventually automate this, so X11 ssh tunneling ... hah.01:27
jkitchendidn't think about using just fdisk01:27
jkitchensec01:27
sarnoldI know I've used LVM to resize a filesystem before, back in 2002 or 2003. I was stunned it worked. :)01:28
jkitchenoh for sure01:28
jkitchenI do resize2fs on my bare block devices all the time01:28
jkitchenthis is my root block device, which is a single partition turned into a pv, turned into a vg with 2 lvs on it01:28
jkitchenI just want to grow the partition so I can pvresize01:29
jkitchenreally, I'd prefer it not have partitions at all and just expose the pv directly01:29
TJ-jkitchen: first change the PT with, say, fdisk, then do "partprobe /dev/sdX" to tell the kernel (check "cat /proc/partitions" before and after partprobe to be sure it was done)01:29
jkitchenseems partman-auto-lvm creates a partition though01:30
jkitchenTJ-: yea, but parted is giving me hell.01:30
DeltaHeavyjkitchen: You NEED partitions. Even LVMs need them. EVERYTHING needs partitions.01:31
TJ-DeltaHeavy: no, you don't need them, they're an anachronism01:32
jkitchenDeltaHeavy: I have PLENTY of filesystems on bare block devices01:32
jkitchenmkfs.ext4 /dev/vdb01:32
jkitchenworks fine01:32
DeltaHeavyReally? I thought you needed them. Then again all I know is NTFS, EXT*, ZFS, and BTRFS.01:32
jkitchenpartitions just take a big block device and make them a bunch of smaller ones01:33
sarnoldDeltaHeavy: create a new zvol, then mke2fs on it directly -- no partitions needed :)01:33
DeltaHeavyI know, I thought they were required for most (I thought all) filesytems01:33
jkitchenDeltaHeavy: the filesystem doesn't care, it just sees a block device and writes to it01:33
DeltaHeavyDamn...didn't know that01:33
jkitchen/dev/vda1 is just as much a block device as /dev/vda :)01:34
jkitchenanywho01:34
sarnoldfwiw, BSD systems have 'slices' instead, a separate partitioning mechansim that is different from the MSDOS-style partitions or GPT-style partitions..01:34
jkitchenyea01:34
jkitchenand solaris uses its on thing too (pre-zfs-root days)01:34
TJ-jkitchen: "parted resize" looks like it tries to be clever. Why not instead "parted rm 2" then "parted mkpart primary x y" ?01:34
sarnoldand guess what, nothing checks that slices are entirely within a partition :) hilarity ensues..01:34
DeltaHeavyI thought you needed the MBR pointing to partitions and such for the BIOS to really access that stuff or something of the sorts.01:34
jkitchenTJ-: parted rm sounds scary.01:35
jkitchen:P01:35
jkitchenI'll try that though, sec01:35
TJ-jkitchen: Why? a partition is only 16 bytes in the PT ... that's all rm touches.01:35
sarnoldit does -sound- scary though :)01:35
TJ-I guess I'm getting blasĂȘ about it then, I do it so much01:36
jkitchenDeltaHeavy: bios, perhaps. but GRUB stage 1 fits in MBR, loads stage 2 which has smarts about partition table types01:36
jkitchenyou can sorta think of lvm as "linux native partition table" but it's not.01:36
jkitchenit's so much more01:36
jkitchenMBR != partition table01:37
TJ-lvm came from IBM AIX and the system360 and Z series , I think01:37
jkitchenahh ok01:37
TJ-although the lvm tools on AIX are a poor relation to the Linux tools01:38
jkitchenAIX.01:40
TJ-I go with GPT now, GRUB 2 will install into an EF02 type partition of about 1MB for legacy boot, as well as having the EFI boot-strap in the EFI system partition01:44
jkitchenoof. this is not great.01:50
jkitchenI'm gonna take another approach :)01:50
=== thumper is now known as thumper-afk
MavKenany downside of using 64bit ubuntu server on vps with 1 GB RAM? or should I go with 32?03:09
sarnoldMavKen: even though the 64 bit variant will waste some memory with pointers that are 8 bytes instead of 4 bytes, you'll have far more registers available and an extended instruction set, that should help programs run more quickly03:12
sarnoldMavKen: I'd install the 64 bit version03:12
MavKenok... I have 14 clients, all with small wordpress sites03:12
MavKenI've always heard 64 does not provide any benefit if you have less than 4GB ram03:13
MavKenthanks for the info03:13
=== thumper-afk is now known as thumper
MavKenI am new to having root access... is cron job best way to have "apt-get update && sudo apt-get -y upgrade && sudo apt-get -y dist-upgrade && sudo apt-get -y autoremove" run every day at midnight?03:17
MavKenand is that even a good practice?03:18
sarnoldMavKen: better is to use the unattended-upgrades package03:20
MavKensarnold, ahh..nice03:21
MavKenis there a way to change the from address exim4 uses?  The tutorial I was following listed the last config screen, but my last screen was about splitting config into smaller files.  I want to change it from root@domain.com to webmaster@domain.com04:03
MavKenI tried exim -brw webmaster@domain.com but it hasn't actually changed the from address04:04
sarnoldMavKen: probably better would be to change whatever it is that is sending the email to use the address you want04:18
MavKenok04:19
Lord_SetAnyone here really familiar with MAAS running on 13.10?04:23
Lord_SetOr should I try a different channel for MAAS/Ubuntu Cloud problems?04:25
bigjoolsLord_Set: #maas04:26
Lord_SetThanks04:26
=== Ursinha is now known as Ursinha-afk
=== Ursinha-afk is now known as Ursinha
freakynlhi just installed ubuntu 13.10 on a server here and it doesn't automatically boot (get the grub menu - but no timer counting down and after 5 mins it still stands there - not really desirable for a server :))08:48
freakynlHi,09:47
freakynlThere's a small bug in targetcli. It's just a python file that needs to replaced. This has been affecting ubuntu since 11.10 or 12.04. It's still present in 13.10. Apparently nobody is interested in updating packages between releases. I'm not sure on how to progress... the bug has been open for over a year now09:52
adam007well i setup some script (php) in hosting and it works, but why it not works on ubuntu server ?10:20
adam007i just install apache, php and im following tutorial in net tuts10:20
freakynladam007: it doesn't work... why? what's not working? what does the error log report, etc. Unless you can bestow some serious mental powers on people they can't guess your issue10:28
cfhowlett!details|adam007,10:31
ubottuadam007,: Please give us full details. For example: "I have a problem with ..., I'm running Ubuntu version .... When I try to do ..., I get the following output: ..., but I expected it to do ..."10:31
=== freeflying_away is now known as freeflying
=== frankban_ is now known as frankban
toyotapieHello. I wrote an init configuration file and dropped it in /etc/init/, how can I specify that the service can only start if openvpn is running AND the tunnel is up ?14:57
hitsujiTMO!upstart | toyotapie check out the cook book. you need openvpn to fire events for that15:05
ubottutoyotapie check out the cook book. you need openvpn to fire events for that: Upstart is meant to replace the old Sys V Init system with an event-driven init model.  For more information please see: http://upstart.ubuntu.com/15:05
=== cmagina_ is now known as cmagina
=== markthomas_ is now known as markthomas
=== genii_ is now known as genii
=== freeflying is now known as freeflying_away
joshuHi I need some advice. I have a local ubuntu server and a remote ubuntu server. I want to copy the whole local disk to the remote local disk. I'm thinking of booting the local server with the livecd, using dd to create a drive image and than scp to remote and restoring the image. Alternatively I'm wondering if rsync can do the job of copying directly thus skipping the dd image part.16:31
yeatsjoshu: so is the goal to mirror the same data, or what?16:32
joshuyeats yes correct the whole root volume16:33
=== alex88_ is now known as alex88
rbasakI usually use rsync for this task. You'll need to partition and make filesystems at the other end, and then reinstall the bootloader.16:37
rbasakrsync -aH --numeric-ids, IIRC16:37
joshuis the data encrypted during transport with rsync16:42
joshuhmm gouging it seems as if dd is the way to go if I want exact copy of whole disk16:56
semiosisjamespag`: ping17:03
jamespag`semiosis, hello17:04
semiosishi!17:04
semiosisjust wanted to check in re: glusterfs MIR17:04
semiosisi saw your comment, but didnt know what to make of it17:04
semiosispeople are asking me about gluster/qemu in ubuntu, idk what to tell them :)17:04
ABC-XYZYeah you can use rsync with ssh17:11
ABC-XYZdd is usually pretty inefficient as it's a block level clone17:12
semiosisjoshu: dd if=/dev/foo | ssh user@host "dd of=/dev/bar"17:13
semiosisjoshu: or something like that :)17:14
joshuhey semiosis you stalker :P Yep I found that exact syntax on server fault. thanks17:14
* semiosis everywhere17:14
disposablehas anybody had any luck with the default version of LXC in 12.04? When I take these steps (apt-get install lxc; lxc-create -n test01 -t ubuntu; lxc-start -n test01 -d; lxc-console -n test01), all I end up with is a blank screen that says 'Type <Ctrl+a q> to exit the console'. It's like the container never really starts. What am I missing?17:15
disposablelxc-ls and lxc-info show it is running17:19
jamespag`semiosis, once the mir is complete, we can enable the feature in qemu18:54
jamespag`if we enable it now it just won't build until the mir completes which is not good18:54
semiosisis that happening for trusty?  just a matter of time?  or possible it will miss trusty?18:55
jamespag`semiosis, is being reviewed this dev cycle for trusty19:02
jamespag`that's no guarantee it will actually get to main19:02
=== chuck_ is now known as zul
=== aslaen is now known as aslaen_
makarai don't want to remember any passwords or passphrases beside the system login19:29
joshuI'm having trouble with permissions when doing this dd if=/dev/sda | gzip | ssh -i xxxxx.pem ec2-user@xxxxxxx 'gzip -d | dd of=/dev/xvdb'19:30
joshuI've tried adding sudo but then I get "sudo: sorry, you must have a tty to run sudo"19:30
semiosisjamespag`: ok, thanks for clearing up my confusion!19:30
makarai'm looking for an agent that can manage login keys for my servers19:30
semiosisjamespag`: if there's anything i can do to help it along, you know where to find me19:31
makarassh-agent manages keys, but not passwords19:31
makarajoshu, try `sudo -i`19:34
joshudidn't work :(19:36
makarajoshu, output please19:38
joshumakara I solved it by using another ec2 instance. I think the AWS Linux AMI has some restrictions on sudo19:39
joshuon Ubuntu it worked fine19:39
makarajoshu, did you create ec2-user?19:41
joshuyes that user is crewted automatically19:42
=== wgwinn__ is now known as wgwinn
=== ahs3 is now known as ahs3|dentist
=== SpamapS_ is now known as SpamapS
=== aslaen is now known as aslaen_
=== MalcontentMatt is now known as mjohnson15
bxzis puppet completely broken in 13.10 or is it just me?21:47
Jewsus'ello everybody22:09
JewsusI have a question, does Ubuntu server's installation CD come with Realtek WiFi firmware?22:10
sarnoldJewsus: dpkg -L linux-firmware | grep -i rtl  shows a handful of RTL wifi firmwares; seeded-in-ubuntu linux-firmware  gives me the impression that it is probably on a server CD22:12
Jewsuskthx22:15
=== psivaa is now known as psivaa-afk
miseria"la verdadera felicidad de un ser humano, se logra cuando deja de ser esclavo, de la avaricia y la codicia" bienvenidos: http://castroruben.com *temo_a_un_ser_sin_rival*23:37
=== thumper is now known as thumper-lunch
=== shauno_ is now known as shauno

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