[01:06] I could use some help with an lvm setup. I keep doing it wrong. I just did a fresh install of 12.04. So setup should be straight forward, but I could use some help. [01:07] lvmer: what's up. talk it out =) [01:09] I'm trying to make a large stripped lv for a smb share [01:09] no important / backup data will be on it [01:10] xnox: I've got 3hd's sda, sdb, sdc [01:10] xnox: and right now sda seems to have a sub lv? for the OS [7gb] & swap [2gb] [01:11] xnox: & 100gb free, how do I get the extra free space into a new vg = vg0 with sdb & sdc === shantorn__ is now known as shantorn [01:12] xnox: that's pretty much my question. [01:12] lvmer: checkout out output of $ sudo pvs; $ sudo vgs; $ sudo lvs [01:12] you probably want to make physical volumes out of your physical drives, then add those physical volumes into the volume group and then you can create big logical volumes [01:13] lvmer: read http://tldp.org/HOWTO/LVM-HOWTO/ [01:13] xnox: yah [01:13] it's very short and sweet =) [01:13] lol [01:13] and tells you how to do all of this. [01:13] yah I got all that... & it's easy on sdb & sdc, but I can't get sda to join [01:14] the vg spans the whole sda, while it should only be for lv = root & lv = swap_1 [01:15] so I've got to like vg reduce, but it's weird xD [01:17] xnox: want me to paste the cut out from pvs, vgs, lvs? [01:17] lvmer: right, it's usually to migrate one volume to a larger one. but if you really really want to resize it. [01:18] lvmer: resize the file-system first, then reduce the logical volume. [01:18] then migrate to stripped one...... [01:18] but. [01:18] xnox: I think the file system is already resized, I think I installed it that way with a 7GB partition. [01:18] if it's a new install, the easier way is to. [01:19] 1) connect all drives to a system & use command line from the installer to create a big vg across all of them & create your volumes [01:19] 2) do the install from d-i and select the pre-created logical volumes as targets [01:20] as a bonus you can use ubuntu 12.10 desktop cd to do the step 1, as it has all the lvm utilities =) [01:20] yah I think I have 12.04 server [01:20] lvmer: sure, then you can create a big stripped partition. move your install from the 7GB logical volume to a big one. Then delete the small 7GB volume, enlarge the striped one. [01:21] xnox: I see what you mean [01:21] xnox: but I'd rather keep the system files separate from my eventual giant shared folder [01:22] xnox: incase I have to purge data & can do it without messing up the shorewall configs etc. [01:22] lvmer: so what's the problem then? [01:22] I'm scared to vgsplit xD [01:23] lvmer: why do you need vgsplit? the stippiness is the property of the logical volume, not the volume group (let me check that) [01:24] yeah. that's correct. [01:24] http://paste.kde.org/607022/ [01:24] and the way I did vgsplit, is to calculate it a few times & then add a 300 MB margin on top for safety. === cpg is now known as cpg|away [01:25] xnox: don't I need to get /dev/sda5 into it's own vg (ie: vg0)? [01:26] xnox: instead of vg = US2 [01:26] lvmer: $ sudo vgextend US2 /dev/sdb1 [01:26] lvmer: $ sudo vgextend US2 /dev/sdc1 [01:27] lvmer: $ sudo vgs [01:27] xnox: but I think another vg would be better? [01:27] lvmer: no. [01:27] xnox: can't I divide the hdd into 2x vg's? [01:27] o [01:27] lvmer: a vg group is more or less the devices you expect to travel / be always attached together. [01:28] xnox: OOOOOOOOOOOOOOOOOO [01:28] lvmer: typically you want it as large as possible. [01:28] xnox: lmao... xD wow [01:28] xnox: this whole time I'm trying to split vg's [01:28] lvmer: the strippiness/mirroring/snapshoting is all property of logical volumes that sit within the volume group and really have no clue what is backing the vg. [01:28] can I rename it? [01:29] lvmer: yes. [01:29] sudo vgrename US2 vg0 [01:29] lvmer: don't forget to run $ update-grub & update-initramfs and check the boot menu after you do =)))) [01:29] xnox: ooooo boi [01:31] xnox: ah this makes more sense now as vg0 [01:31] updating grub [01:32] xnox: so update-initramfs -u [01:32] xnox: how should I check the boot menu? [01:32] fstab? [01:32] lvmer: less /boot/grub/grub.cfg [01:33] lvmer: fstab is a good one as well =))))) [01:33] lol [01:33] was it a bad idea to do this? [01:33] am I just going to have to re-install again lol. changing the vg of the boot lvm xD [01:34] * xnox had a typo in my vg at install. I did have a facepalm over "intarnelhdd" vg name [01:34] and renamed it =))))) [01:34] xnox: and you were ok? ok xD [01:34] lvmer: no, you don't have to reinstall. [01:35] lvmer: yeah, it feels like black magic and pixie dust, but it's really stable device-mapper stuff =))))) [01:35] ok [01:35] should I do a test reboot? xD [01:36] xnox: well hopefully it works [01:37] xnox: if not... it's down to the basement [01:37] xnox: k it worked xD [01:38] lvmer: born again ;-) [01:39] xnox: yeeehawww. :) So now I just need to create a massive lv [01:40] lvmer: well, create it ~50% capacity. Once you fill it up you can increase/decrease it, snapshot it, etc [01:41] xnox: so $ lvcreate -i3 -L 300G -n lv1 vg0 [01:41] xnox: ? [01:42] lvmer: looks good =) [01:43] what is a good stripe size? 4kb? 8kb? [01:43] I think it's -I4 [01:45] lvmer: with no data to back me up, I'd assume _much_ larger sizes, something like 128kb [01:47] Hi, I have three https servers running on the same IP. ports 443, 543 and 544. 443 has a private key and signed certificate. 543 and 544 both have the same private key, but each port has a different signed certificate. This is confusing apache, and apache is announce the certificate from 544 on 543. any ideas? [01:49] you specify which certificate file to use in your virtualhost configuration; there's nothing to confuse [01:50] ensure your virtualhosts specify which port they're on, and which certificate file to use [01:50] Yes, that's all setup [01:50] [01:50] I have SSLCertificateFile and SSLCertificateKeyFile in each of the 3 hosts. [01:51] I think apache is confused because it has two different certificates for the same private key. [01:51] bananapie: can you re-create that bug on a VM or something? [01:51] two new keys, three new certs, and a bare-bones apache config? [01:52] lvmer: 4MB ? [01:52] I'll try [01:52] yeah, there shouldn't be a problem with that setup, so it's either an apache bug or an error in the config [01:52] ok [01:53] I'll check if there are any apache2 updates [01:53] one possible workaround attempt in case of an apache bug would be to make a copy or hard link of the key by a different name, so there's three files according to the config but it's really the same key [01:54] xnox: I keep getting not enough allocatable extents [01:55] xnox: my command was: $ sudo lvcreate -i3 -I512K -L 350G -n lv1 vg0 /dev/sdb1 /dev/sdc1 /dev/sda5 [01:57] lvmer: $ sudo vgs ? [01:57] xnox: shows 400GiB free [01:57] xnox: 400.34g [01:58] xnox: vsize = 409.64g vfree = 400.34g #pv = 3 #lv = 2 #sn = 0 [01:59] xnox: perhaps: -I512K is throwing it off. [01:59] lvmer: for some reason in cannot allocate enough space for that volume. try lower size. [01:59] xnox: Rounding size (98560 extents) up to stripe boundary size (98562 extents) [01:59] Insufficient suitable allocatable extents for logical volume lv1: 20043 more required [01:59] does that seem weird? [02:00] lvmer: can you try $ sudo lvcreate i3 -I4 -L350G -n lv1 vg0 [02:00] xnox: each extents is 512kb? [02:01] and see if that uses less extents. [02:01] lvmer: hah =))) [02:01] lvmer: the maximum cap you can have is the maximum free space on a single physical volume [02:01] xnox: NO! [02:02] lvmer: otherwise it will not be real stripes =) [02:02] xnox: idc if it's not real stripes [02:02] xnox: dang..... so it won't do it cause 1 HD is 100gb? while the others are 200gb? [02:02] the stripes have to go somewhere [02:03] lvmer: then got for two stripes, they will be spread across 3 drives and then you can have >200GB volume [02:03] xnox: so I just change i3 to i2? [02:03] lvmer: maybe you don't want stripes at all..... [02:03] xD [02:03] lvmer: yeah. and it's better to use 4MB stripe. [02:03] xnox: it's looking like I don't want stripes at all [02:04] xnox: how does 2 stripes work across 3hdds? [02:04] lvmer: just create a volume with name and max size and then the full free space will be "a single filesystem" [02:05] xnox: I guess I'm going to unfortunately give up on stripes.... one day though.. one day I shall stripe lots of 2TB HD's. xD [02:05] lvmer: because it needs two places to store each extend in the vg, and the vg has three physical buckets with free space. [02:06] lvmer: hence there will be spread across them, since they are all "available". [02:06] lv's can definitely be resized right? [02:06] xnox: smaller / larger right? xD [02:07] xnox: nvm stupid question [02:07] lvmer, it will keep two copies of each chunk of data, and put them on any two of the available disks [02:07] lvmer: yes. but with reducing you resize the filesystem inside it first, with enlarging you resize the fs after. [02:07] I don't know what it does to decide that but I assume it just picks wherever the most space is available [02:08] or otherwise does it as evenly as it can [02:08] xnox: oh so is i2 = raid 1 ? cause I was looking for a raid 0 (similar) file system. [02:09] xnox: I thought all the extends would be in 1 place === shantorn is now known as kd7jwc === gary_poster is now known as gary_poster|away [02:12] xnox: well I got a 400gb lv1 now... so this is awesome. Thank you very much [02:13] lvmer: https://docs.google.com/a/surgut.co.uk/document/preview?id=1bZ4yQIVgGaUGSYu3qiUHnQt3ieBZoqunP_DcleHCr3I#heading=h.8acu9ne05kh9 [02:13] lvmer: is a table comparing raid levels and performance gains [02:13] lvmer: raid0 theoretically gives you N write speed, but the read speed is still x1 [02:14] lvmer: while raid1 gives you xN read speed, with ~x1 write speed, at the cost of 1/n space. [02:14] xnox: yah I know about raid's xD [02:15] lvmer: and lvm implements RAID1, 0 & 1-0 raid levels ;-) [02:15] with 0 level by default. [02:15] xnox: and stripping would be a RAID 0 example? right? the disks just apparently have to be the same size like a regular raid [02:16] xnox: ohhhhh 0 is default? === shantorn is now known as kd7jwc [02:17] lvmer: kind-of..... each physical volume is treated equivalent, so if you have /dev/sda1 /dev/sda2 /dev/sda3 and /dev/sdb [02:17] it will not realise that actually there will be little performance gain spreading across /dev/sda* [02:18] lvmer: but checkout the --type option [02:18] lvmer: for segment type. [02:21] how do you search a 'man' file? [02:21] man lvcreate [02:22] / [02:22] xnox: trying to search for type [02:22] man man [02:22] also helps [02:22] or 'h' [02:22] for help while viewing a man page [02:24] xnox: $ mkfs -t ext3 /dev/vg0/lv1 or -t ext4? [02:26] lvmer: I sometimes do MANPAGER=cat man foo | grep or that sort of thing; 'less' is a very nice pager, but some tasks are easier done with other tools, and MANPAGER is a great way to get there [02:36] Ok I'm trying to auto mount this new lv in $ /etc/fstab but I have some questions [02:37] the old files are still /dev/mapper/US2-root instead of vg0? [02:37] should the new one be /dev/mapper/vg0-lv1 ? === cpg|away is now known as cpg [03:41] I installed owncloud if i forward port 80 from the wan will i be vulnerable to attack can I change the port to somthing uncommon like i do with ssh? === furian is now known as shantorn [03:45] bfortified: some apps are stupid and redirect base on Host: without the port.. but owncloud is probably not that stupid. [03:47] SpamapS: i dont think I understand what you meen I have tried a dif port on apache and that appears to have worked, I navigate to that port and get the congrats your server is running but i caint seem to acces own cloud [03:48] figured it out :port/owncloud [03:51] changing what port you use won't render you invulnerable [03:51] it just means you're a little harder to find [03:54] and by a little, I mean very little [03:54] the average chinese bot won [03:54] 't find you, and that's about it [03:54] smarter bots and any human will === Psi-Jack_ is now known as Psi-Jack [04:00] hell, google/bing/... will all find you very fast [04:00] cause the first time you use a browser with their toolbar installed, it reports back to them, and you will get scanned in a few min, if not faster [04:00] my friend tried that :) [04:01] put up a new website, on a non-standard port, and noticed google search had already indexed it and it was searchable within 2min, and he realized he had google toolbar installed [04:25] New bug: #1079022 in python-novaclient (main) "nova --version does not function as intended" [Undecided,New] https://launchpad.net/bugs/1079022 === n0ts_off is now known as n0ts === fenris is now known as Guest68936 [05:46] New bug: #1079032 in socat (universe) "execs children with SIGCHLD ignored" [Undecided,New] https://launchpad.net/bugs/1079032 === aarcane__ is now known as aarcane === mcclurmc is now known as mcclurmc_away === smb` is now known as smb === kInOzAwA is now known as Guest33407 === fenris is now known as Guest62485 === mcclurmc_away is now known as mcclurmc === fhd_ is now known as fhd [09:14] Mornin' people! How is everyone is glorious day? [09:15] hello Daviey !! Its bright & sunny as usual with humidity [09:15] :p [09:18] koolhead17: I uspect your bright & sunny is in a different league to mine :) [09:18] suspect* [09:18] Daviey: yes its added with humidity and topical climate :D [09:19] topical you say? :) [09:20] or equatorial where sun god literally vomits his heat with ultraviolet radiation :D [09:21] * smb thinks koolhead17 is missing Daviey pulling his leg... [09:21] *tropical [09:21] smb: :D [09:22] :) [09:22] * Daviey must now be very careful he doesn't ever make a typo aguin. [09:23] Daviey, We don't do typos, that is artistic freedom. :-P [09:23] smb: heh [09:24] :) [09:45] New bug: #1060632 in glance (main) "precise glance-client --insecure option doesn't work" [Medium,Confirmed] https://launchpad.net/bugs/1060632 === n0ts is now known as n0ts_off [11:06] hello, I have a litte problem with my ubuntu server, I assigned a static IP to eth0, but ubuntu changes this ip sporadic to another .. someone who can tell me how I can change this and where? === Arne__ is now known as Projektarybte [11:08] Projektarybte: edit /etc/network/interfaces http://www.fogproject.org/wiki/index.php/Ubuntu_12.04_static_ip_configuration === fenris is now known as Guest72765 [11:09] xranby: this is exactly what I have in my config [11:09] is dhcpd still running? [11:09] dhclinet === Guest72765 is now known as ejat [11:09] dhclient [11:10] oh, yes it´s running [11:11] but I declared the network config as static [11:26] New bug: #1069083 in libaio (main) "package libaio-dev 0.3.109-2ubuntu1 failed to install/upgrade: trying to overwrite '/usr/include/libaio.h', which is also in package libaio:i386 0.3.104-1" [Undecided,Invalid] https://launchpad.net/bugs/1069083 === chmurifree is now known as chmuri === fenris is now known as Guest89250 [12:45] drush installs fine, but I can't use "You are running the provision script as the root user. Exiting" It does not like sudo [13:09] darthanubis, hmm? isn't that ovious? don't run it as root, so you run it as root with sudo? === cpg is now known as cpg|away [13:27] SpamapS: ping [14:36] New bug: #1079212 in qemu-kvm (main) "network slow when 2 VMs using virtio net bridged to same pyhs. network device on kvm host " [Undecided,New] https://launchpad.net/bugs/1079212 === n0ts_off is now known as n0ts [14:54] How often does Ubuntu release security updates? Do you have like a patch thursday [14:56] GhostFre_, security updates are controlled by the security team, if i remember things right, they're in #ubuntu-hardened. They get released as they're processed, I think, though... [14:59] Hi. I just installed a new Ubuntu 12LTS Server (switching from Centos). Everything's humming along except on boot, it just sits at the grub2 selection menu -- it doesn't auto-select the 1st entry. If I hit 'Enter', everything continues on as normal. [14:59] This is changed behavior. A week or so ago, it *did* autoboot OK. Where do I look for the cause/fix of this? [15:02] New bug: #1078922 in lm-sensors (main) "Fan runs unnecessary" [Undecided,Incomplete] https://launchpad.net/bugs/1078922 [15:03] LauraA, One reason for not autobooting could be a failed previous boot, but then it should resume autobooting after one successful boot. [15:05] New bug: #1079229 in euca2ools (main) "Error reported to stdout instead of stderr" [Undecided,New] https://launchpad.net/bugs/1079229 === jhulten_ is now known as jhulten === n0ts is now known as n0ts_off [15:24] smb: Hi. I didn't know a prior failed boot 'gets in the way'. I don't remember there being any failed boot, though. Is there some way to verify/validate that that happened? In the logs I guess .. but what to look for? [15:27] LauraA, It would be some file that grub looks at (though I don't know from the top of my head which one). And that actually should be removed when the server boots to the prompt once, so the next boot would be normal again. Otherwise all the timeout values are normally set in /etc/default/grub and then configured when you run update-grub [15:29] So the grub env is changed here in /etc/init/grub-common.conf [15:29] grub-editenv /boot/grub/grubenv unset recordfail [15:30] "grub-editenv /boot/grub/grubenv list" should show if recordfail is currently set [15:31] my ubuntu server (12.04.1 ) is on vmware and ubuntu is a dmz (192.168.3.100/24)in my network (using utm on vmware also ) i have wireless tv (192.168.200.117 ) how do connect wireless tv to ubuntu to use minidlna [15:32] smb: Ok thanks. I've got some sleuthing to do. May be back later. Cheers! [15:40] dsop: pong? === n0ts_off is now known as n0ts [15:56] New bug: #1077576 in mysql-5.5 (main) "/usr/bin/mysqladmin: connect to server at 'localhost' failed" [Undecided,Invalid] https://launchpad.net/bugs/1077576 [16:02] hallyn: ping does this mean what i think it means http://libvirt.org/git/?p=libvirt.git;a=commit;h=2e03b08ead603c38c244aa9a1ecef6d73bb306be [16:04] zul: pretty sure it does [16:04] zul: they have selinux, it has its own mknod denials... why not use that? huh [16:04] hallyn: awesome [16:05] zul: yeah, especially at the end of this cycle when we have stacking apparmor policies and user namesapces, [16:05] libvirt-lxc is gonna be a mess to try and keep up with lxc [16:05] *sigh* [16:06] Daviey: ^^^ [16:07] ugh [16:09] jamespage: ok so i will get this up and running and test the ha stuff works [16:09] then will start modifying the hacluster charm [16:10] roaksoax, OK - I'm really interested in seeing how the sync's happen between quantum and the hacluster sub [16:10] for example when I 'add-unit quantum' [16:10] quantum will get installed first, and then the hacluster stuff [16:11] ... [16:11] roaksoax, if you just want to test quantum you can run a much more minimal charm set [16:12] keystone, mysql, rabbitmq-server and quantum should be enough [16:13] jamespage: yes yet you need to stuff works at least I have tried it with HAproxy [16:13] roaksoax, I'm still seriously considering a refactor to push the quantum-server into the cloud-controller [16:14] errr the cluster stuff works with add unit [16:14] I agree but the server should probably be with the cloud controller [16:15] s/but/with [16:17] note to self: make defconfig != make oldconfig ! [16:26] roaksoax, gonna talk with adam next week about that - it feels awkward [16:28] jamespage: the other option would be to have enough to separate charm then [16:29] so that it got me the flood in the cloud controller independently [16:29] err so it can be deployes [16:29] freakibg voice recognition [16:32] jamespage: there is going to be a problem if we remove unit and add unit again to reuse the mode though [16:39] Hi, I have some netbios, wins, or name resolution issues. Can someone help me troubleshoot them? [16:41] My samba share folders will not show up on the network, even without a firewall. & pinging from a different server yields closed ports. [16:41] 139,445 [16:45] roaksoax, I think we should ignore the node reuse issue for the time being [16:46] * jamespage burys his head in the sand [16:46] until the stop hook works or units are automatically terminated on remove-unit its never going to be pretty === fenris is now known as Guest45110 [16:52] jamespage: indeed. i think its worth pushing for any of those features [17:07] Hello - quick bit of help if anyone's free. Running LTS 12.4. I have a rogue PHP script which runs from time to time and bogs the php-fpm process until I kill it. Problem is I have about 1000 php scripts running on the server and about 40,000 hits a day. I can find the PID from TOP, but can I find out which script is running on that PID? Which php process or which file etc? [17:07] Ideally I want to know PID 5475 = /var/www/thisfile.php [17:08] MontyMoose: lsof [17:08] MontyMoose: probably lsof or fuser can get you there [17:08] thanks - I'll take a look [17:08] MontyMoose: you do run the risk that the php interpreter you're using may have byte-code compiled it all once at first use, and might not be able to blame the right script, but it's a good starting point. [17:09] pointing me in the right direction is a good start [17:09] MontyMoose: if that doesn't work, ask about strace when you return. it's complicated and ugly :) but it's a good tool. hehe. [17:09] I'm complicated and ugly - I'm sure we'll get on like a house on fire... [17:11] hmm - lsof seems only to log that php-fpm is running, doesn't show me which script it's running. [17:12] I think there might be a solution in PHP itself - there's a getpid() function which I could potentially log to mysql each time a script runs, but I'd rather not [17:15] the other thing that's odd is that I tell PHP to timeout after 20 seconds, and this process will go on for ever until I kill -9 it [17:15] MontyMoose: oh man :/ I was afraid of that. [17:16] because? [17:16] MontyMoose: you can attach strace to a process with strace -p pid [17:16] rigiht [17:16] MontyMoose: .. because debugging it by strace is ugly. :) [17:16] hm [17:16] MontyMoose: the horrible part comes from watching what it does and trying to figure out which of your scripts does those things. if you can catch sql being sent to mysql, you can grep for those, maybe narrow it down to a handful to instrument [17:17] I see [17:17] MontyMoose: I've had this problem as well. [17:18] of course as it's now working perfectly - I can't find a PID which stays long enough to trace! [17:18] MontyMoose: Logging the pid is the only way I solved it [17:18] in php? [17:18] MontyMoose: yeah, the problem is that php opens the scripts, reads them all, parses them, and closes them, so lsof won't help you [17:18] I thought that might be the case [17:19] MontyMoose: What you need to log is the URL [17:19] MontyMoose: and potentially the arguments [17:19] yeah [17:19] well I suppose once you've put a function together you can pretty much log anything you want/ [17:19] is it quicker to text or mysql? [17:19] MontyMoose: logging in mysql seems... overkill. Just log to a file on disk. [17:20] ok [17:20] file_put_contents('/tmp/pid.log', $_GLOBALS['REQUEST_FILENAME'], FILE_APPEND); [17:20] if I include other PHP files will they run in the side PID? [17:21] MontyMoose: yes [17:21] *same [17:21] MontyMoose: include just inserts the code in the spot where the include is [17:21] ok - so I need this in my global header really [17:21] MontyMoose: my example forgot to include getpid(), but you get the point :) [17:21] yup [17:21] MontyMoose: you can enforce a global include in php.ini [17:22] that's a good idea [17:22] then every file has to run it [17:22] I could wipe the file every night with a cron job, as I only need it if I notice a problem [17:22] MontyMoose: auto_prepend_file [17:23] MontyMoose: another option is actually to do an auto_prepend which creates a file per-pid, and then an auto_append that removes it [17:24] MontyMoose: this would be fairly awful on disk, so make sure its only in /tmp, but that would let you see it for the pid that goes haywire without filling up disk w/ log [17:24] oh I see, so any processes which are running at that precise moment will have a PID open [17:24] MontyMoose: and when I say only in /tmp, I mean only in a tmpfs partition [17:24] yeah [17:24] could I store it to a session_variable? [17:25] oh no - that would only work on the users machine [17:25] daft idea = forget that :-) [17:26] and we're not worried that file_put_contents will put a big strain on things? [17:26] server gets about 50,000 hits a day [17:30] thanks for all that - think I've got a plan now [17:32] hah, 50,000 / day == 0.58 requests per second [17:32] I think a rasbperry pi could handle that [17:37] SpamapS: static, yes, running php and doing mysql, maybe it's pushing it a bit.. [17:46] sarnold: not even [17:47] sarnold: you have 1.7 seconds to finish every request... [17:47] SpamapS: somehow I read that as .58 seconds per request... [17:48] SpamapS: that does make more sense, even with the limited ram on board :) === mcclurmc is now known as mcclurmc_away [17:57] utlemming: around? [17:57] hallyn: yup [17:58] utlemming: is there a bug in cloud-init in oneiric re handlnig of ssh public keys? [17:58] (put another way - i think ther eis :) [17:58] hallyn: not that I am aware of...what are you seeing? [17:59] if i lxc-create -t ubuntu -n o1 -- -S ~/.ssh/id_rsa.pub -r oneiric, the resulting container does not have my ssh key in ~/ubuntu/.ssh [17:59] utlemming: but with -r precise, it does [17:59] uh, -t ubuntu-cloud, sorry [18:00] hallyn: interesting...okay, that is likely a bug with the lxc-create template [18:01] utlemming: the key info IS in /var/lib/cloud/seed/nocloud-net/meta-data in the guest [18:01] which is why i figured it was a cloud-init bug, not template [18:29] I don't seem to be able to get my sendmail to work. I keep getting the following error in my returned email: http://pastebin.com/daEnLx4B [18:31] New bug: #1079320 in lxc (universe) "ssh key not correctly used in ubuntu-cloud oneiric containers" [Medium,Triaged] https://launchpad.net/bugs/1079320 [18:31] Here is my sendmail.mc: http://pastebin.com/VrN1qDcv === yofel_ is now known as yofel [18:47] jamespage: or better yet, still around? [18:49] subman: Most people in Ubuntu use postfix. [18:49] hggdh: ping [18:49] hggdh: do you need sponsorship of cobbler to -proposed? [18:50] or has it been uploaded already? [18:50] roaksoax: I certainly do. Can you please check if it is now kosher? [18:50] hggdh: is this were the SRU lieS? https://launchpad.net/~hggdh2/+archive/ppa [18:51] roaksoax: no, it is in https://code.launchpad.net/~hggdh2/ubuntu/precise/cobbler/lp-967815/+merge/132172 [18:51] and bug 967815 [18:51] Launchpad bug 967815 in cobbler "/var/lib/tftpboot directory permissions destroyed" [Undecided,In progress] https://launchpad.net/bugs/967815 [18:53] hggdh: cool, I'll upload it to precise-proposed for the SRU to be procesed then [18:53] roaksoax: IOU, thanks [18:53] roaksoax: I am still to prepare a merge for Quantal [18:54] hggdh: has this been fixed in raring though? [18:54] ugh [18:54] roaksoax: IDK, let me check [18:54] hggdh: alright, we need to fix it in raring... :) [18:54] if the cobbler version is the same... then we need it there also [18:54] on it [18:55] hggdh: yeah, ok, I'll strip the patch from your branch, test it and upload it [18:55] roaksoax: thank you [18:55] * hggdh cancels the Raring cobbler branch creation [18:57] yes, we need it on raring [19:01] I've got a samba problem. I can't see 1 of my servers on the network. It should be identical to my 2nd one. I think there is a name resolution or netbios or wins conflict? [19:01] hggdh: does this look sane to you then? http://paste.ubuntu.com/1360923/ [19:03] roaksoax, yep [19:04] jamespage: ok so i was thinking this: [19:04] jamespage: the hacluster charm, sets in the config what resource to configure in terms of HA. it tells the name and type/resource to use [19:04] jamespage: currently, this is limited to only 1 resource per associated charm [19:05] lvmer: does smbclient -L -I show you information from both servers alright? [19:05] jamespage: so, to make things better, i was thinking on removing the definition of the resource to HA in the config for the charm (say HAProxy), and simply do that in the relation [19:05] lvmer: (forgive me, it's been a decade since I've had to debug smbd, my commands are liable to be wrong, but I hope the ideas are there...) [19:06] jamespage: so, each charm to integrate HA, can simply send a list of resource to HA, with parameters, that will be set (an unchangeable) for the relation, rather than declaring them in the config [19:06] jamespage: this way, if a charm needs various resources in HA, then it can simply send the list with its options, that the hacluster will interpret and execute [19:06] acoordingly [19:06] jamespage: now, this could also allow me to define resources_active_passive and resources_active_active [19:07] so there would be a list for each type of resource [19:07] jamespage: does that make better sense? [19:09] sarnold: not enough '\' characters in service... I ran \\192.168.0.18\share\ it leaves me with a blank line [19:09] roaksoax: it does sound correct [19:10] lvmer: how about \\\\192.168.0.18\\share\\ ? [19:10] .. double all the \ to get them through the shell.. [19:10] Can someone please help me with a cloud-init issue regarding the default user? [19:10] cloud.cfg now has: users: -default [19:11] how does one specify the user name? for example how do I specify ec2-user ? [19:11] is the new user functionality documented some place that someone can point me to? [19:12] smoser: ping [19:12] sarnold: it asks for root password xD that should be disabled. So I can't get past it xD [19:13] lvmer: there's command line options to tell it which user accout to try to use.. [19:13] sarnold: doh [19:14] sarnold: ok it ran [19:15] sarnold: command seems to execute, but no list back on either 17 or 18. ip 17 still shows up in windows explore on LAN computers though. [19:17] hggdh: alright, I uploaded to raring, quantal-proposed, precise-propoesd [19:17] hggdh: so it is just matter for someone on the SRU team to review, and make it available for verification [19:17] roaksoax: one day I will be as fast as you... [19:20] lvmer: but both think they're alive? did eithe rknow about the other? [19:21] they shouldn't know about eachother [19:21] sarnold: they shouldn't know about eachother [19:22] lvmer: no? I thought the whole point of magic nmbd things was that everyone knew about each other so they could elect leaders and the like? [19:22] sarnold: I think it's a name resolution or net bios problem, because both samba configs are idential & all shorewall ports are accept [19:22] sarnold: idk if I have magic nmdb [19:23] lvmer: ps auxw | grep nm, I bet it's there... :) [19:24] roaksoax: so I can delete the merge request I did for Precise, correct? [19:24] hggdh: yes :) [19:24] done :-) [19:24] sarnold: aaahhhh.. it is on the working server nmbd -D, but on 18..... it just says --color=auto nm [19:26] /win/win 8 [19:26] err [19:27] lvmer: hrm. :) I wonder what kept nmbd from running on 18? [19:28] sarnold: no idea... I understand it is part of the samba package.... but how do I install it again? [19:29] roaksoax, I think that makes alot of sense - so the principle charm says to the hacluster subordinate - ha this stuff [19:30] lvmer: try running 'service nmbd status' [19:30] sarnold: you think this is an easy fix? or should I just reinstall and then restore the configs? Because I started nmbd but samba still doesn't show and nmap on another computer shows 18's 139 & 445 ports still closed [19:30] lvmer: and 'service nmbd restart' is probably a reasonable idea too; check /var/log/ to see if you can find the nmbd logs, they may be stuffed in a samba directory or something. [19:30] roaksoax, if you do that through the container relation then it can also use that relation presence to determine what todo with restarts of services etc... and coor with the hacluster charm [19:30] sarnold: stop/waiting [19:31] jamespage: yeah! I'll have the charm modified and test it out [19:32] sarnold: /var/log/samba/log.nmbd [19:33] sarnold: no network interfaces found [19:33] sarnold: lib/interface.c:543(load_interfaces) [19:34] lvmer: ooh very curious :) I wonder why -- misconfigured? [19:34] does it have .17 address in its listen line or something? [19:34] sarnold: I bet so! http://paste.kde.org/607436/ [19:35] sarnold: where is the network interface file I should be looking at? xD [19:35] New bug: #1074876 in mysql-5.5 (main) "package mysql-server-5.5 5.5.28-0ubuntu0.12.04.2 failed to install/upgrade: subproces installed post-installation script gaf een foutwaarde 1 terug" [Medium,Invalid] https://launchpad.net/bugs/1074876 [19:36] lvmer: it might get it out of smbd.conf or whatever.. [19:37] sarnold: does this seem bad to you? http://paste.kde.org/607442/ [19:38] lvmer: does 'ip addr show' show you the 'em1' interface? [19:39] sarnold: no... should it be 'eth0' [19:40] lvmer: probably; whichever interface the machine should use. :) [19:40] sarnold: how come .17 also has that command and no em1 interface? [19:41] lvmer: no idea :) [19:42] sarnold: well the ports on .18 are open now [19:42] sarnold: but still no windows explore access [19:43] lvmer: mmhm, that may take a while, i found sometimes the easiest way to force windows clients to see new systems was reboot them or maybe reboot the old master, force a new election [19:43] sarnold: can you have 2 masters? I think that might be a problem for me. [19:44] lvmer: only one master. [19:44] in the smb config right? [19:44] what if you have none? [19:46] lvmer: they elect themselves [19:46] lvmer: the 'master = yes' just says that that machine will participate in elections [19:46] ok rebooting all [19:47] sarnold: I put perfered master = no for one of them just incase. But domain master = yes for both [19:47] lvmer: sounds good. [19:48] sarnold: lol .17 doesn't work now lol [19:49] lvmer: o_O [19:50] sarnold: I set both to interfaces = eth0 em1 [19:50] sarnold: rebooting [19:52] sarnold: no network interfaces found lol [19:52] sarnold: nmbd did not start on either [19:53] lvmer: ooof. :) [19:57] sarnold: well the both have the same open ports from nmap. It's got to be an interface problem or something. .17 & .18 not accessible... but from the logs .17 thinks it is the master & has no errors. [19:57] if my network interface is eth0 ? can't I use that for samba? why did it work when it was set to em1? [20:01] lvmer: no idea there. :/ [20:06] New bug: #1062902 in mysql-5.5 (main) "package mysql-server-5.5 (not installed) failed to install/upgrade: el subproceso instalado el script post-installation return the error code 1" [Medium,Invalid] https://launchpad.net/bugs/1062902 [20:22] sarnold: I got it! I redid the entire smb.conf & both servers work now. Thanks a ton for the trouble shooting help. There were definitely some network name & bind errors. === fire_ is now known as fire_wall === fire_wall is now known as security === security is now known as fire_wall === kInOzAwA is now known as Guest48077 [20:54] Hello one little question - i have server with ubuntu and want translate stream from my laptop with Traktor to that server. What software for streaming is better? === fire_wall is now known as security [20:56] somthing like translate sound stream to internet from my dj rig.. [21:34] Any idea why my server would suddenly just stop serving web pages? It was working just awhile ago. [21:35] subman: stop serving web pages how? [21:35] subman: anything in the logs? [21:35] subman: like, 500 errors, or never responds? [21:36] SpamapS, 507 and 508 codes found [21:37] never seen 50x's before [21:37] Maybe /var/log/apache2/error.log might hold some clues. [21:37] you're all assuming apache. ;) [21:38] probably a good assumption, but still. :p [21:38] Yes, apache, sorry [21:38] Here is that last line in the access log: [21:38] 173.206.102.89 - - [15/Nov/2012:16:37:36 -0500] "GET / HTTP/1.1" 404 508 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:16.0) Gecko/20100101 Firefox/16.0 [21:38] 507 is Insufficient Storage [21:38] df [21:38] oops [21:39] Last line of error log: [21:39] [Thu Nov 15 16:37:36 2012] [error] [client 173.206.102.89] script '/var/www/index.php' not found or unable to stat [21:39] The index.php file is there [21:41] Then likely "unable to stat" might be due to these WebDAV errors. [21:53] How to check? [21:53] It was working literally an hour ago === cpg|away is now known as cpg === n0ts is now known as n0ts_off === cpg is now known as cpg|away [22:06] Could a bad .htaccess be causing this? [22:09] subman: I would more suspect that you're just running out of room on your server. [22:10] genii-around, On the hard drive? [22:10] Yes. [22:10] On / I have 36 G of which 22 G is free [22:11] subman: What about /var ? [22:13] genii-around, /var is on / [22:13] subman: Does df -h show any partitions which are getting filled up? [22:13] subman: how about ls -ld / /var /var/www /var/www/index.php ? [22:16] sarnold, http://pastebin.com/RQbTFqEb [22:17] subman: ls says that file doesn't exist... [22:17] The file is there [22:17] at least permissions above it look sane enough. === cpg|away is now known as cpg [22:17] don't argue with me, argue with ls -l :) [22:17] :) [22:19] sarnold, oops [22:19] subman: the + does mean that there are extended access controls on the directory; perhaps your user account and the apache user account have been forbidden to read or execute that directory? [22:20] sarnold, http://pastebin.com/xZyfJqS4 [22:21] subman: okay; how about the directory access control lists? I _think_ that's something like getfacl /var/www -- but it's been ages since I've done that. [22:22] sarnold, why in the world would any of this have changed? [22:23] subman: half the time people notice unexpected changes, it's because a buddy was doing things and forgot to tell people / forgot to finish. a large part of what's left is folks noticing they've been in-elegantly hacked... the remainder are harder to explain. :) [22:24] I'm wondering if hacked [22:30] I guess del and reinstall? [22:31] It's unlikely you're hacked. [22:31] Figuring it out could be a good learning experience. [22:46] When I add a ppa for postgres....how do I know that running apt-get install postgesql-9.1 is actually coming from the newly added ppa? [22:47] urthmover: 'apt-cache showpkg postgresql-9.1' or 'apt-cache showsrc postgresql-9.1' will probably output reassuring information. [22:48] well said sir. I just man apt-cache and found the apt-cache showsrc one thanks for the quick answer [22:51] urthmover: there may be another mechanism, via 'pinning', to ensure you always get from the ppa version, but apt was more designed for distributions than for ppas.. check out the apt_preferences(5) manpage's section on "APT's Default Priority Assignments" and see if that looks amenable. [22:52] urthmover: "Pin: origin" may be useful. [22:54] Well I'm stumped here and have no idea where to turn. Any ideas for me to look? [23:01] way cool sarnold [23:02] subman: when all else fails you can attach strace to your apache and try to catch it in the act of failing; but that's a miserable way to spend an afternoon. You're sure there's nothing else instructive in the logs? [23:03] Nothing that I can find [23:12] I could use some minor help with samba. When I set one of my folders to $ security = user && valid users = @group1 greg john ..... I can't log into the file... with either greg john or anyone in group1. [23:12] ok, now I am getting closer here! [23:13] In my browser I type http://site/index.html but firefox returns /index.php was not found. [23:14] It is looking for .php [23:17] subman: do you have any horrible rewrite games going on to re-write .html requests into .php requests? [23:17] sarnold, I'm looking into that right now [23:21] It seems it is my .htaccess is destroyed. [23:23] Can I just delete .htaccess? [23:35] subman: depends what it is supposed to do. :) most sites don't use .htaccess files since they're read and re-read on every incoming request, compared with the standard apache config which is read once at startup [23:36] sarnold, thanks, just reading up now. Thanks for your help. [23:41] hi guys, a very quick one for you. Based on the quote "I love standards, anyone can create one", which standard for Cloud servers is becoming more prevalent? I ask not for your 'favourite', but what you good people see in the fight between "BetaMax & VHS", etc. ? [23:41] phillw: there's no "standard" for that.. just "providers" like EC2, Rackspace, HP, etc. [23:43] SpamapS: is OpenStack making any inroads or should I base my complete newness on a different standard? [23:45] phillw: There are currently 3 public openstack clouds you can get access to right now (HP, Rackspace, and Dreamhost, though that one is still limited I think) [23:45] phillw: there are also millions of dollars flowing into the OpenStack foundation, so yeah, I'd say its making inroads ;) [23:47] so, just like I had to make a leap over to gain 'Red Hat' certification for to be considered 'approved' in the commercial market, is using OpenStack similarly accepted?