[00:07] question: 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:08] jkitchen: Yes, you can use pvresize to expand/shrink the PV underlying a VG [00:09] right, but what about the partition table [00:10] this 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 lv [00:10] but it does look like partman is still creating a partition tabel [00:10] rather than just giving the whole block device over to lvm [00:12] jkitchen: pvresize is used in conjunction with the partitioning tools [00:12] jkitchen: With LVM though you could, instead, just add another block device as a PV to the VG [00:12] jkitchen: no need to resize [00:13] that still requires manipulating the partition table to add a new partition though, right? [00:13] or are you saying expose another LUN to the vm just to add space? (ew) [00:14] jkitchen: not if you add a new block device... e.g. sdd2 >PV1 > VG .... then later +sde > PV2 >vgextend VG /dev/sde [00:15] yea, 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 such [00:15] 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 partition [00:15] right 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 nuts [00:16] yea [00:16] since 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 table [00:17] but something tells me that's not going to be easy :) [00:17] I'll poke at it a bit [00:17] right 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 can [00:18] you could do that if you create the base install using deboostrap followed by some config and tasksel [00:18] I'm preseed installing [00:19] https://gist.github.com/kitchen/ba72af4a48b94fb0f463 that's the relevant section of my preseed file [00:19] I still need to answer a couple of questions in it, I'm adapting my existing template to lvm, but that does produce a bootable system [00:20] (it just did, actually) [00:24] and now I'm reinstalling with the questions answered so hopefully it goes full auto :D [00:44] Can anybody help me figure out why my PHP file tries to download to the client, rather than execute? https://gist.github.com/anonymous/af31d161f1b96b83fcfb [00:44] I'm using 12.04 [00:46] teward: ^^^ [00:47] DeltaHeavy: did you install libapache2-mod-php5? [00:48] hitsujiTMO: Why would I need libapache2-mod-php5 if I'm using nginx? [00:48] ahh, nginx not apache :P [00:48] Yar [00:49] DeltaHeavy: have you installed php-fpm? [00:49] Yep [00:49] However I get access denied when trying to read this file with sudo: /var/run/php5-fpm.sock [00:51] I'm surprised about the access denied; I figured you'd just get nothing until something wrote into the pipe.. [00:51] Got it fixed. Needed to change the default MIME type [00:51] DeltaHeavy: try_files $uri =404 is serving the file. remove that line [00:51] are you sure it's a pipe? [00:53] teward: ah, nevermind, he fixed his problem :) thanks [01:24] seems online partition resizing is not possible :( [01:25] jkitchen Why not? [01:25] Should be [01:25] DeltaHeavy: 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:26] all of the docs I've found searching for "ubuntu online partition resize" say it can't be done online [01:26] jkitchen: Extend it or shrink it? [01:26] extend [01:26] I increased the lun size. parted sees this free space [01:26] Can't you do it via SSH X11 tunneling, or fdisk via SSH? [01:26] I swear I've done it before [01:27] I'd like to eventually automate this, so X11 ssh tunneling ... hah. [01:27] didn't think about using just fdisk [01:27] sec [01:28] I know I've used LVM to resize a filesystem before, back in 2002 or 2003. I was stunned it worked. :) [01:28] oh for sure [01:28] I do resize2fs on my bare block devices all the time [01:28] this is my root block device, which is a single partition turned into a pv, turned into a vg with 2 lvs on it [01:29] I just want to grow the partition so I can pvresize [01:29] really, I'd prefer it not have partitions at all and just expose the pv directly [01:29] 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:30] seems partman-auto-lvm creates a partition though [01:30] TJ-: yea, but parted is giving me hell. [01:31] jkitchen: You NEED partitions. Even LVMs need them. EVERYTHING needs partitions. [01:32] DeltaHeavy: no, you don't need them, they're an anachronism [01:32] DeltaHeavy: I have PLENTY of filesystems on bare block devices [01:32] mkfs.ext4 /dev/vdb [01:32] works fine [01:32] Really? I thought you needed them. Then again all I know is NTFS, EXT*, ZFS, and BTRFS. [01:33] partitions just take a big block device and make them a bunch of smaller ones [01:33] DeltaHeavy: create a new zvol, then mke2fs on it directly -- no partitions needed :) [01:33] I know, I thought they were required for most (I thought all) filesytems [01:33] DeltaHeavy: the filesystem doesn't care, it just sees a block device and writes to it [01:33] Damn...didn't know that [01:34] /dev/vda1 is just as much a block device as /dev/vda :) [01:34] anywho [01:34] fwiw, BSD systems have 'slices' instead, a separate partitioning mechansim that is different from the MSDOS-style partitions or GPT-style partitions.. [01:34] yea [01:34] and solaris uses its on thing too (pre-zfs-root days) [01:34] jkitchen: "parted resize" looks like it tries to be clever. Why not instead "parted rm 2" then "parted mkpart primary x y" ? [01:34] and guess what, nothing checks that slices are entirely within a partition :) hilarity ensues.. [01:34] I thought you needed the MBR pointing to partitions and such for the BIOS to really access that stuff or something of the sorts. [01:35] TJ-: parted rm sounds scary. [01:35] :P [01:35] I'll try that though, sec [01:35] jkitchen: Why? a partition is only 16 bytes in the PT ... that's all rm touches. [01:35] it does -sound- scary though :) [01:36] I guess I'm getting blasĂȘ about it then, I do it so much [01:36] DeltaHeavy: bios, perhaps. but GRUB stage 1 fits in MBR, loads stage 2 which has smarts about partition table types [01:36] you can sorta think of lvm as "linux native partition table" but it's not. [01:36] it's so much more [01:37] MBR != partition table [01:37] lvm came from IBM AIX and the system360 and Z series , I think [01:37] ahh ok [01:38] although the lvm tools on AIX are a poor relation to the Linux tools [01:40] AIX. [01:44] 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 partition [01:50] oof. this is not great. [01:50] I'm gonna take another approach :) === thumper is now known as thumper-afk [03:09] any downside of using 64bit ubuntu server on vps with 1 GB RAM? or should I go with 32? [03:12] MavKen: 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 quickly [03:12] MavKen: I'd install the 64 bit version [03:12] ok... I have 14 clients, all with small wordpress sites [03:13] I've always heard 64 does not provide any benefit if you have less than 4GB ram [03:13] thanks for the info === thumper-afk is now known as thumper [03:17] I 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:18] and is that even a good practice? [03:20] MavKen: better is to use the unattended-upgrades package [03:21] sarnold, ahh..nice [04:03] is 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.com [04:04] I tried exim -brw webmaster@domain.com but it hasn't actually changed the from address [04:18] MavKen: probably better would be to change whatever it is that is sending the email to use the address you want [04:19] ok [04:23] Anyone here really familiar with MAAS running on 13.10? [04:25] Or should I try a different channel for MAAS/Ubuntu Cloud problems? [04:26] Lord_Set: #maas [04:26] Thanks === Ursinha is now known as Ursinha-afk === Ursinha-afk is now known as Ursinha [08:48] hi 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 :)) [09:47] Hi, [09:52] There'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 now [10:20] well i setup some script (php) in hosting and it works, but why it not works on ubuntu server ? [10:20] i just install apache, php and im following tutorial in net tuts [10:28] adam007: 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 issue [10:31] !details|adam007, [10:31] adam007,: 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 ..." === freeflying_away is now known as freeflying === frankban_ is now known as frankban [14:57] Hello. 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 ? [15:05] !upstart | toyotapie check out the cook book. you need openvpn to fire events for that [15:05] toyotapie 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/ === 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 [16:31] Hi 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:32] joshu: so is the goal to mirror the same data, or what? [16:33] yeats yes correct the whole root volume === alex88_ is now known as alex88 [16:37] I 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] rsync -aH --numeric-ids, IIRC [16:42] is the data encrypted during transport with rsync [16:56] hmm gouging it seems as if dd is the way to go if I want exact copy of whole disk [17:03] jamespag`: ping [17:04] semiosis, hello [17:04] hi! [17:04] just wanted to check in re: glusterfs MIR [17:04] i saw your comment, but didnt know what to make of it [17:04] people are asking me about gluster/qemu in ubuntu, idk what to tell them :) [17:11] Yeah you can use rsync with ssh [17:12] dd is usually pretty inefficient as it's a block level clone [17:13] joshu: dd if=/dev/foo | ssh user@host "dd of=/dev/bar" [17:14] joshu: or something like that :) [17:14] hey semiosis you stalker :P Yep I found that exact syntax on server fault. thanks [17:14] * semiosis everywhere [17:15] has 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 to exit the console'. It's like the container never really starts. What am I missing? [17:19] lxc-ls and lxc-info show it is running [18:54] semiosis, once the mir is complete, we can enable the feature in qemu [18:54] if we enable it now it just won't build until the mir completes which is not good [18:55] is that happening for trusty? just a matter of time? or possible it will miss trusty? [19:02] semiosis, is being reviewed this dev cycle for trusty [19:02] that's no guarantee it will actually get to main === chuck_ is now known as zul === aslaen is now known as aslaen_ [19:29] i don't want to remember any passwords or passphrases beside the system login [19:30] I'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] I've tried adding sudo but then I get "sudo: sorry, you must have a tty to run sudo" [19:30] jamespag`: ok, thanks for clearing up my confusion! [19:30] i'm looking for an agent that can manage login keys for my servers [19:31] jamespag`: if there's anything i can do to help it along, you know where to find me [19:31] ssh-agent manages keys, but not passwords [19:34] joshu, try `sudo -i` [19:36] didn't work :( [19:38] joshu, output please [19:39] makara I solved it by using another ec2 instance. I think the AWS Linux AMI has some restrictions on sudo [19:39] on Ubuntu it worked fine [19:41] joshu, did you create ec2-user? [19:42] yes that user is crewted automatically === 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 [21:47] is puppet completely broken in 13.10 or is it just me? [22:09] 'ello everybody [22:10] I have a question, does Ubuntu server's installation CD come with Realtek WiFi firmware? [22:12] Jewsus: 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 CD [22:15] kthx === psivaa is now known as psivaa-afk [23:37] "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* === thumper is now known as thumper-lunch === shauno_ is now known as shauno