/srv/irclogs.ubuntu.com/2012/11/15/#ubuntu-server.txt

lvmerI 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:06
xnoxlvmer: what's up. talk it out =)01:07
lvmerI'm trying to make a large stripped lv for a smb share01:09
lvmerno important / backup data will be on it01:09
lvmerxnox: I've got 3hd's  sda, sdb, sdc01:10
lvmerxnox: and right now sda seems to have a sub lv? for the OS [7gb] & swap [2gb]01:10
lvmerxnox: & 100gb free, how do I get the extra free space into a new vg = vg0 with sdb & sdc01:11
=== shantorn__ is now known as shantorn
lvmerxnox: that's pretty much my question.01:12
xnoxlvmer: checkout out output of $ sudo pvs; $ sudo vgs; $ sudo lvs01:12
xnoxyou 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 volumes01:12
xnoxlvmer: read http://tldp.org/HOWTO/LVM-HOWTO/01:13
lvmerxnox: yah01:13
xnoxit's very short and sweet =)01:13
lvmerlol01:13
xnoxand tells you how to do all of this.01:13
lvmeryah I got all that... & it's easy on sdb & sdc, but I can't get sda to join01:13
lvmerthe vg spans the whole sda, while it should only be for lv = root & lv = swap_101:14
lvmerso I've got to like vg reduce, but it's weird xD01:15
lvmerxnox: want me to paste the cut out from pvs, vgs, lvs?01:17
xnoxlvmer: right, it's usually to migrate one volume to a larger one. but if you really really want to resize it.01:17
xnoxlvmer: resize the file-system first, then reduce the logical volume.01:18
xnoxthen migrate to stripped one......01:18
xnoxbut.01:18
lvmerxnox: I think the file system is already resized, I think I installed it that way with a 7GB partition.01:18
xnoxif it's a new install, the easier way is to.01:18
xnox1) connect all drives to a system & use command line from the installer to create a big vg across all of them & create your volumes01:19
xnox2) do the install from d-i and select the pre-created logical volumes as targets01:19
xnoxas a bonus you can use ubuntu 12.10 desktop cd to do the step 1, as it has all the lvm utilities =)01:20
lvmeryah I think I have 12.04 server01:20
xnoxlvmer: 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:20
lvmerxnox: I see what you mean01:21
lvmerxnox: but I'd rather keep the system files separate from my eventual giant shared folder01:21
lvmerxnox: incase I have to purge data & can do it without messing up the shorewall configs etc.01:22
xnoxlvmer: so what's the problem then?01:22
lvmerI'm scared to vgsplit xD01:22
xnoxlvmer: why do you need vgsplit? the stippiness is the property of the logical volume, not the volume group (let me check that)01:23
xnoxyeah. that's correct.01:24
lvmerhttp://paste.kde.org/607022/01:24
xnoxand the way I did vgsplit, is to calculate it a few times & then add a 300 MB margin on top for safety.01:24
=== cpg is now known as cpg|away
lvmerxnox: don't I need to get /dev/sda5 into it's own vg (ie: vg0)?01:25
lvmerxnox: instead of vg = US201:26
xnoxlvmer: $ sudo vgextend US2 /dev/sdb101:26
xnoxlvmer: $ sudo vgextend US2 /dev/sdc101:26
xnoxlvmer: $ sudo vgs01:27
lvmerxnox: but I think another vg would be better?01:27
xnoxlvmer: no.01:27
lvmerxnox: can't I divide the hdd into 2x vg's?01:27
lvmero01:27
xnoxlvmer: a vg group is more or less the devices you expect to travel / be always attached together.01:27
lvmerxnox: OOOOOOOOOOOOOOOOOO01:28
xnoxlvmer: typically you want it as large as possible.01:28
lvmerxnox: lmao... xD wow01:28
lvmerxnox: this whole time I'm trying to split vg's01:28
xnoxlvmer: 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
lvmercan I rename it?01:28
xnoxlvmer: yes.01:29
lvmersudo vgrename US2 vg001:29
xnoxlvmer: don't forget to run $ update-grub & update-initramfs and check the boot menu after you do =))))01:29
lvmerxnox: ooooo boi01:29
lvmerxnox: ah this makes more sense now as vg001:31
lvmerupdating grub01:31
lvmerxnox: so update-initramfs -u01:32
lvmerxnox: how should I check the boot menu?01:32
lvmerfstab?01:32
xnoxlvmer: less /boot/grub/grub.cfg01:32
xnoxlvmer: fstab is a good one as well =)))))01:33
lvmerlol01:33
lvmerwas it a bad idea to do this?01:33
lvmeram I just going to have to re-install again lol. changing the vg of the boot lvm xD01:33
* xnox had a typo in my vg at install. I did have a facepalm over "intarnelhdd" vg name01:34
xnoxand renamed it =)))))01:34
lvmerxnox: and you were ok? ok xD01:34
xnoxlvmer: no, you don't have to reinstall.01:34
xnoxlvmer: yeah, it feels like black magic and pixie dust, but it's really stable device-mapper stuff =)))))01:35
lvmerok01:35
lvmershould I do a test reboot? xD01:35
lvmerxnox: well hopefully it works01:36
lvmerxnox: if not... it's down to the basement01:37
lvmerxnox: k it worked xD01:37
xnoxlvmer: born again ;-)01:38
lvmerxnox: yeeehawww. :)  So now I just need to create a massive lv01:39
xnoxlvmer: well, create it ~50% capacity. Once you fill it up you can increase/decrease it, snapshot it, etc01:40
lvmerxnox: so $ lvcreate -i3 -L 300G -n lv1 vg001:41
lvmerxnox: ?01:41
xnoxlvmer: looks good =)01:42
lvmerwhat is a good stripe size? 4kb? 8kb?01:43
lvmerI think it's -I401:43
sarnoldlvmer: with no data to back me up, I'd assume _much_ larger sizes, something like 128kb01:45
bananapieHi, 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:47
qman__you specify which certificate file to use in your virtualhost configuration; there's nothing to confuse01:49
qman__ensure your virtualhosts specify which port they're on, and which certificate file to use01:50
bananapieYes, that's all setup01:50
bananapie<VirtualHost *:544>01:50
bananapieI have SSLCertificateFile and SSLCertificateKeyFile in each of the 3 hosts.01:50
bananapieI think apache is confused because it has two different certificates for the same private key.01:51
sarnoldbananapie: can you re-create that bug on a VM or something?01:51
sarnoldtwo new keys, three new certs, and a bare-bones apache config?01:51
xnoxlvmer: 4MB ?01:52
bananapieI'll try01:52
qman__yeah, there shouldn't be a problem with that setup, so it's either an apache bug or an error in the config01:52
bananapieok01:52
bananapieI'll check if there are any apache2 updates01:53
qman__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 key01:53
lvmerxnox: I keep getting not enough allocatable extents01:54
lvmerxnox: my command was: $ sudo lvcreate -i3 -I512K -L 350G -n lv1 vg0 /dev/sdb1 /dev/sdc1 /dev/sda501:55
xnoxlvmer: $ sudo vgs ?01:57
lvmerxnox: shows 400GiB free01:57
lvmerxnox: 400.34g01:57
lvmerxnox: vsize = 409.64g  vfree = 400.34g  #pv = 3  #lv = 2 #sn = 001:58
lvmerxnox: perhaps: -I512K   is throwing it off.01:59
xnoxlvmer: for some reason in cannot allocate enough space for that volume. try lower size.01:59
lvmerxnox:  Rounding size (98560 extents) up to stripe boundary size (98562 extents)01:59
lvmer  Insufficient suitable allocatable extents for logical volume lv1: 20043 more required01:59
lvmerdoes that seem weird?01:59
xnoxlvmer: can you try $ sudo lvcreate i3 -I4 -L350G -n lv1 vg002:00
lvmerxnox: each extents is 512kb?02:00
xnoxand see if that uses less extents.02:01
xnoxlvmer: hah =)))02:01
xnoxlvmer: the maximum cap you can have is the maximum free space on a single physical volume02:01
lvmerxnox: NO!02:01
xnoxlvmer: otherwise it will not be real stripes =)02:02
lvmerxnox: idc if it's not real stripes02:02
lvmerxnox: dang..... so it won't do it cause 1 HD is 100gb? while the others are 200gb?02:02
qman__the stripes have to go somewhere02:02
xnoxlvmer: then got for two stripes, they will be spread across 3 drives and then you can have >200GB volume02:03
lvmerxnox: so I just change i3 to i2?02:03
xnoxlvmer: maybe you don't want stripes at all.....02:03
lvmerxD02:03
xnoxlvmer: yeah. and it's better to use 4MB stripe.02:03
lvmerxnox: it's looking like I don't want stripes at all02:03
lvmerxnox: how does 2 stripes work across 3hdds?02:04
xnoxlvmer: just create a volume with name and max size and then the full free space will be "a single filesystem"02:04
lvmerxnox: I guess I'm going to unfortunately give up on stripes.... one day though.. one day I shall stripe lots of 2TB HD's. xD02:05
xnoxlvmer: because it needs two places to store each extend in the vg, and the vg has three physical buckets with free space.02:05
xnoxlvmer: hence there will be spread across them, since they are all "available".02:06
lvmerlv's can definitely be resized right?02:06
lvmerxnox: smaller / larger right? xD02:06
lvmerxnox: nvm stupid question02:07
qman__lvmer, it will keep two copies of each chunk of data, and put them on any two of the available disks02:07
xnoxlvmer: yes. but with reducing you resize the filesystem inside it first, with enlarging you resize the fs after.02:07
qman__I don't know what it does to decide that but I assume it just picks wherever the most space is available02:07
qman__or otherwise does it as evenly as it can02:08
lvmerxnox: oh so is i2 = raid 1 ? cause I was looking for a raid 0 (similar) file system.02:08
lvmerxnox: I thought all the extends would be in 1 place02:09
=== shantorn is now known as kd7jwc
=== gary_poster is now known as gary_poster|away
lvmerxnox: well I got a 400gb lv1 now... so this is awesome. Thank you very much02:12
xnoxlvmer: https://docs.google.com/a/surgut.co.uk/document/preview?id=1bZ4yQIVgGaUGSYu3qiUHnQt3ieBZoqunP_DcleHCr3I#heading=h.8acu9ne05kh902:13
xnoxlvmer: is a table comparing raid levels and performance gains02:13
xnoxlvmer: raid0 theoretically gives you N write speed, but the read speed is still x102:13
xnoxlvmer: while raid1 gives you xN read speed, with ~x1 write speed, at the cost of 1/n space.02:14
lvmerxnox: yah I know about raid's xD02:14
xnoxlvmer: and lvm implements RAID1, 0 & 1-0 raid levels ;-)02:15
xnoxwith 0 level by default.02:15
lvmerxnox: and stripping would be a RAID 0 example? right? the disks just apparently have to be the same size like a regular raid02:15
lvmerxnox: ohhhhh 0 is default?02:16
=== shantorn is now known as kd7jwc
xnoxlvmer: kind-of..... each physical volume is treated equivalent, so if you have /dev/sda1 /dev/sda2 /dev/sda3 and /dev/sdb02:17
xnoxit will not realise that actually there will be little performance gain spreading across /dev/sda*02:17
xnoxlvmer:  but checkout the --type option02:18
xnoxlvmer: for segment type.02:18
lvmerhow do you search a 'man' file?02:21
lvmerman lvcreate02:21
xnox /02:22
lvmerxnox: trying to search for type02:22
xnoxman man02:22
xnoxalso helps02:22
xnoxor 'h'02:22
xnoxfor help while viewing a man page02:22
lvmerxnox: $ mkfs -t ext3 /dev/vg0/lv1     or -t ext4?02:24
sarnoldlvmer: 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 there02:26
lvmerOk I'm trying to auto mount this new lv in $ /etc/fstab   but I have some questions02:36
lvmerthe old files are still /dev/mapper/US2-root   instead of vg0?02:37
lvmershould the new one be /dev/mapper/vg0-lv1   ?02:37
=== cpg|away is now known as cpg
bfortifiedI 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?03:41
=== furian is now known as shantorn
SpamapSbfortified: some apps are stupid and redirect base on Host: without the port.. but owncloud is probably not that stupid.03:45
bfortifiedSpamapS: 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 cloud03:47
bfortifiedfigured it out <ip>:port/owncloud03:48
qman__changing what port you use won't render you invulnerable03:51
qman__it just means you're a little harder to find03:51
qman__and by a little, I mean very little03:54
qman__the average chinese bot won03:54
qman__'t find you, and that's about it03:54
qman__smarter bots and any human will03:54
=== Psi-Jack_ is now known as Psi-Jack
patdk-laphell, google/bing/... will all find you very fast04:00
patdk-lapcause 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 faster04:00
patdk-lapmy friend tried that :)04:00
patdk-lapput 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 installed04:01
uvirtbotNew bug: #1079022 in python-novaclient (main) "nova --version does not function as intended" [Undecided,New] https://launchpad.net/bugs/107902204:25
=== n0ts_off is now known as n0ts
=== fenris is now known as Guest68936
uvirtbotNew bug: #1079032 in socat (universe) "execs children with SIGCHLD ignored" [Undecided,New] https://launchpad.net/bugs/107903205:46
=== 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
DavieyMornin' people! How is everyone is glorious day?09:14
koolhead17hello Daviey !! Its bright & sunny as usual with humidity09:15
koolhead17:p09:15
Davieykoolhead17: I uspect your bright & sunny is in a different league to mine :)09:18
Davieysuspect*09:18
koolhead17Daviey: yes its added with humidity and topical climate :D09:18
Davieytopical you say? :)09:19
koolhead17or equatorial where sun god literally vomits his heat with ultraviolet radiation :D09:20
* smb thinks koolhead17 is missing Daviey pulling his leg...09:21
koolhead17*tropical09:21
koolhead17smb: :D09:21
smb:)09:22
* Daviey must now be very careful he doesn't ever make a typo aguin.09:22
smbDaviey, We don't do typos, that is artistic freedom. :-P09:23
koolhead17smb: heh09:23
Daviey:)09:24
uvirtbotNew bug: #1060632 in glance (main) "precise glance-client --insecure option doesn't work" [Medium,Confirmed] https://launchpad.net/bugs/106063209:45
=== n0ts is now known as n0ts_off
Arne__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?11:06
=== Arne__ is now known as Projektarybte
xranbyProjektarybte: edit /etc/network/interfaces  http://www.fogproject.org/wiki/index.php/Ubuntu_12.04_static_ip_configuration11:08
=== fenris is now known as Guest72765
Projektarybtexranby: this is exactly what I have in my config11:09
xranbyis dhcpd still running?11:09
xranbydhclinet11:09
=== Guest72765 is now known as ejat
xranbydhclient11:09
Projektarybteoh, yes it´s running11:10
Projektarybtebut I declared the network config as static11:11
uvirtbotNew 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/106908311:26
=== chmurifree is now known as chmuri
=== fenris is now known as Guest89250
darthanubisdrush installs fine, but I can't use "You are running the provision script as the root user. Exiting" It does not like sudo12:45
patdk-lapdarthanubis, hmm? isn't that ovious? don't run it as root, so you run it as root with sudo?13:09
=== cpg is now known as cpg|away
dsopSpamapS: ping13:27
uvirtbotNew 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/107921214:36
=== n0ts_off is now known as n0ts
GhostFre_How often does Ubuntu release security updates? Do you have like a patch thursday14:54
TheLordOfTimeGhostFre_, 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:56
LauraAHi.  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
LauraA This is changed behavior.  A week or so ago, it *did* autoboot OK.  Where do I look for the cause/fix of this?14:59
uvirtbotNew bug: #1078922 in lm-sensors (main) "Fan runs unnecessary" [Undecided,Incomplete] https://launchpad.net/bugs/107892215:02
smbLauraA, One reason for not autobooting could be a failed previous boot, but then it should resume autobooting after one successful boot.15:03
uvirtbotNew bug: #1079229 in euca2ools (main) "Error reported to stdout instead of stderr" [Undecided,New] https://launchpad.net/bugs/107922915:05
=== jhulten_ is now known as jhulten
=== n0ts is now known as n0ts_off
LauraAsmb: 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:24
smbLauraA, 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-grub15:27
smbSo the grub env is changed here in /etc/init/grub-common.conf15:29
smbgrub-editenv /boot/grub/grubenv unset recordfail15:29
smb"grub-editenv /boot/grub/grubenv list" should show if recordfail is currently set15:30
samba35my 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 minidlna15:31
LauraAsmb: Ok thanks.  I've got some sleuthing to do.  May be back later.  Cheers!15:32
SpamapSdsop: pong?15:40
=== n0ts_off is now known as n0ts
uvirtbotNew bug: #1077576 in mysql-5.5 (main) "/usr/bin/mysqladmin: connect to server at 'localhost' failed" [Undecided,Invalid] https://launchpad.net/bugs/107757615:56
zulhallyn: ping does this mean what i think it means http://libvirt.org/git/?p=libvirt.git;a=commit;h=2e03b08ead603c38c244aa9a1ecef6d73bb306be16:02
hallynzul: <blink>  pretty sure it does16:04
hallynzul: they have selinux, it has its own mknod denials...  why not use that?  huh16:04
zulhallyn: awesome16:04
hallynzul: yeah, especially at the end of this cycle when we have stacking apparmor policies and user namesapces,16:05
hallynlibvirt-lxc is gonna be a mess to try and keep up with lxc16:05
zul*sigh*16:05
zulDaviey: ^^^16:06
Davieyugh16:07
roaksoaxjamespage: ok so i will get this up and running and test the ha stuff works16:09
roaksoaxthen will start modifying the hacluster charm16:09
jamespageroaksoax, OK - I'm really interested in seeing how the sync's happen between quantum and the hacluster sub16:10
jamespagefor example when I 'add-unit quantum'16:10
jamespagequantum will get installed first, and then the hacluster stuff16:10
jamespage...16:11
jamespageroaksoax, if you just want to test quantum you can run a much more minimal charm set16:11
jamespagekeystone, mysql, rabbitmq-server and quantum should be enough16:12
roaksoaxjamespage: yes yet you need to stuff works at least I have tried it with HAproxy16:13
jamespageroaksoax, I'm still seriously considering a refactor to push the quantum-server into the cloud-controller16:13
roaksoaxerrr the cluster stuff works with add unit16:14
roaksoaxI agree but the server should probably be with the cloud controller16:14
roaksoaxs/but/with16:15
hallynnote to self: make defconfig != make oldconfig !16:17
jamespageroaksoax, gonna talk with adam next week about that - it feels awkward16:26
roaksoaxjamespage: the other option would be to have enough to separate charm then16:28
roaksoaxso that it got me the flood in the cloud controller independently16:29
roaksoaxerr so it can be deployes16:29
roaksoaxfreakibg voice recognition16:29
roaksoaxjamespage: there is going to be a problem if we remove unit and add unit again to reuse the mode though16:32
lvmerHi, I have some netbios, wins, or name resolution issues. Can someone help me troubleshoot them?16:39
lvmerMy samba share folders will not show up on the network, even without a firewall. & pinging from a different server yields closed ports.16:41
lvmer139,44516:41
jamespageroaksoax, I think we should ignore the node reuse issue for the time being16:45
* jamespage burys his head in the sand16:46
jamespageuntil the stop hook works or units are automatically terminated on remove-unit its never going to be pretty16:46
=== fenris is now known as Guest45110
roaksoaxjamespage: indeed. i think its worth pushing for any of those features16:52
MontyMooseHello - 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
MontyMooseIdeally I want to know   PID 5475 = /var/www/thisfile.php17:07
blkperlMontyMoose: lsof17:08
sarnoldMontyMoose: probably lsof or fuser can get you there17:08
MontyMoosethanks - I'll take a look17:08
sarnoldMontyMoose: 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:08
MontyMoosepointing me in the right direction is a good start17:09
sarnoldMontyMoose: 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
MontyMooseI'm complicated and ugly - I'm sure we'll get on like a house on fire...17:09
MontyMoosehmm - lsof seems only to log that php-fpm is running, doesn't show me which script it's running.17:11
MontyMooseI 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 not17:12
MontyMoosethe 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 it17:15
sarnoldMontyMoose: oh man :/ I was afraid of that.17:15
MontyMoosebecause?17:16
sarnoldMontyMoose: you can attach strace to a process with strace -p pid17:16
MontyMooserigiht17:16
sarnoldMontyMoose: .. because debugging it by strace is ugly. :)17:16
MontyMoosehm17:16
sarnoldMontyMoose: 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 instrument17:16
MontyMooseI see17:17
SpamapSMontyMoose: I've had this problem as well.17:17
MontyMooseof course as it's now working perfectly - I can't find a PID which stays long enough to trace!17:18
SpamapSMontyMoose: Logging the pid is the only way I solved it17:18
MontyMoosein php?17:18
SpamapSMontyMoose: yeah, the problem is that php opens the scripts, reads them all, parses them, and closes them, so lsof won't help you17:18
MontyMooseI thought that might be the case17:18
SpamapSMontyMoose: What you need to log is the URL17:19
SpamapSMontyMoose: and potentially the arguments17:19
MontyMooseyeah17:19
MontyMoosewell I suppose once you've put a function together you can pretty much log anything you want/17:19
MontyMooseis it quicker to text or mysql?17:19
SpamapSMontyMoose: logging in mysql seems... overkill. Just log to a file on disk.17:19
MontyMooseok17:20
SpamapSfile_put_contents('/tmp/pid.log', $_GLOBALS['REQUEST_FILENAME'], FILE_APPEND);17:20
MontyMooseif I include other PHP files will they run in the side PID?17:20
SpamapSMontyMoose: yes17:21
MontyMoose*same17:21
SpamapSMontyMoose: include just inserts the code in the spot where the include is17:21
MontyMooseok - so I need this in my global header really17:21
SpamapSMontyMoose: my example forgot to include getpid(), but you get the point :)17:21
MontyMooseyup17:21
SpamapSMontyMoose: you can enforce a global include in php.ini17:21
MontyMoosethat's a good idea17:22
MontyMoosethen every file has to run it17:22
MontyMooseI could wipe the file every night with a cron job, as I only need it if I notice a problem17:22
SpamapSMontyMoose: auto_prepend_file17:22
SpamapSMontyMoose: another option is actually to do an auto_prepend which creates a file per-pid, and then an auto_append that removes it17:23
SpamapSMontyMoose: 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/ log17:24
MontyMooseoh I see, so any processes which are running at that precise moment will have a PID open17:24
SpamapSMontyMoose: and when I say only in /tmp, I mean only in a tmpfs partition17:24
MontyMooseyeah17:24
MontyMoosecould I store it to a session_variable?17:24
MontyMooseoh no - that would only work on the users machine17:25
MontyMoosedaft idea = forget that :-)17:25
MontyMooseand we're not worried that file_put_contents will put a big strain on things?17:26
MontyMooseserver gets about 50,000 hits a day17:26
MontyMoosethanks for all that - think I've got a plan now17:30
SpamapShah, 50,000 / day == 0.58 requests per second17:32
SpamapSI think a rasbperry pi could handle that17:32
sarnoldSpamapS: static, yes, running php and doing mysql, maybe it's pushing it a bit..17:37
SpamapSsarnold: not even17:46
SpamapSsarnold: you have 1.7 seconds to finish every request...17:47
sarnoldSpamapS: somehow I read that as .58 seconds per request...17:47
sarnoldSpamapS: that does make more sense, even with the limited ram on board :)17:48
=== mcclurmc is now known as mcclurmc_away
hallynutlemming: around?17:57
utlemminghallyn: yup17:57
hallynutlemming: is there a bug in cloud-init in oneiric re handlnig of ssh public keys?17:58
hallyn(put another way - i think ther eis :)17:58
utlemminghallyn: not that I am aware of...what are you seeing?17:58
hallynif 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/.ssh17:59
hallynutlemming: but with -r precise, it does17:59
hallynuh, -t ubuntu-cloud, sorry17:59
utlemminghallyn: interesting...okay, that is likely a bug with the lxc-create template18:00
hallynutlemming: the key info IS in /var/lib/cloud/seed/nocloud-net/meta-data in the guest18:01
hallynwhich is why i figured it was a cloud-init bug, not template18:01
submanI 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/daEnLx4B18:29
uvirtbotNew bug: #1079320 in lxc (universe) "ssh key not correctly used in ubuntu-cloud oneiric containers" [Medium,Triaged] https://launchpad.net/bugs/107932018:31
submanHere is my sendmail.mc: http://pastebin.com/VrN1qDcv18:31
=== yofel_ is now known as yofel
roaksoaxjamespage: or better yet, still around?18:47
ScottKsubman: Most people in Ubuntu use postfix.18:49
roaksoaxhggdh: ping18:49
roaksoaxhggdh: do you need sponsorship of cobbler to -proposed?18:49
roaksoaxor has it been uploaded already?18:50
hggdhroaksoax: I certainly do. Can you please check if it is now kosher?18:50
roaksoaxhggdh: is this were the SRU lieS? https://launchpad.net/~hggdh2/+archive/ppa18:50
hggdhroaksoax: no, it is in https://code.launchpad.net/~hggdh2/ubuntu/precise/cobbler/lp-967815/+merge/13217218:51
hggdhand bug 96781518:51
uvirtbotLaunchpad bug 967815 in cobbler "/var/lib/tftpboot directory permissions destroyed" [Undecided,In progress] https://launchpad.net/bugs/96781518:51
roaksoaxhggdh: cool, I'll upload it to precise-proposed for the SRU to be procesed then18:53
hggdhroaksoax: IOU, thanks18:53
hggdhroaksoax: I am still to prepare a merge for Quantal18:53
roaksoaxhggdh: has this been fixed in raring though?18:54
hggdhugh18:54
hggdhroaksoax: IDK, let me check18:54
roaksoaxhggdh: alright, we need to fix it in raring... :)18:54
hggdhif the cobbler version is the same... then we need it there also18:54
hggdhon it18:54
roaksoaxhggdh: yeah, ok, I'll strip the patch from your branch, test it and upload it18:55
hggdhroaksoax: thank you18:55
* hggdh cancels the Raring cobbler branch creation18:55
hggdhyes, we need it on raring18:57
lvmerI'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
roaksoaxhggdh: does this look sane to you then? http://paste.ubuntu.com/1360923/19:01
jamespageroaksoax, yep19:03
roaksoaxjamespage: ok so i was thinking this:19:04
roaksoaxjamespage: the hacluster charm, sets in the config what resource to configure in terms of HA. it tells the name and type/resource to use19:04
roaksoaxjamespage: currently, this is limited to only 1 resource per associated charm19:04
sarnoldlvmer: does smbclient -L -I<IP> show you information from both  servers alright?19:05
roaksoaxjamespage: 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 relation19:05
sarnoldlvmer: (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:05
roaksoaxjamespage: 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 config19:06
roaksoaxjamespage: 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 execute19:06
roaksoaxacoordingly19:06
roaksoaxjamespage: now, this could also allow me to define resources_active_passive and resources_active_active19:06
roaksoaxso there would be a list for each type of resource19:07
roaksoaxjamespage: does that make better sense?19:07
lvmersarnold: not enough '\' characters in service... I ran \\192.168.0.18\share\    it leaves me with a  blank line19:09
hggdhroaksoax: it does sound correct19:09
sarnoldlvmer: how about \\\\192.168.0.18\\share\\ ?19:10
sarnold.. double all the \ to get them through the shell..19:10
JoeVLcekCan someone please help me with a cloud-init issue regarding the default user?19:10
JoeVLcekcloud.cfg now has: users: -default19:10
JoeVLcekhow does one specify the user name? for example how do I specify ec2-user ?19:11
JoeVLcekis the new user functionality documented some place that someone can point me to?19:11
JoeVLceksmoser: ping19:12
lvmersarnold: it asks for root password xD  that should be disabled. So I can't get past it xD19:12
sarnoldlvmer: there's command line options to tell it which user accout to try to use..19:13
lvmersarnold: doh19:13
lvmersarnold: ok it ran19:14
lvmersarnold: 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:15
roaksoaxhggdh: alright, I uploaded to raring, quantal-proposed, precise-propoesd19:17
roaksoaxhggdh: so it is just matter for someone on the SRU team to review, and make it available for verification19:17
hggdhroaksoax: one day I will be as fast as you...19:17
sarnoldlvmer: but both think they're alive? did eithe rknow about the other?19:20
lvmerthey shouldn't know about eachother19:21
lvmersarnold: they shouldn't know about eachother19:21
sarnoldlvmer: 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
lvmersarnold: I think it's a name resolution or net bios problem, because both samba configs are idential & all shorewall ports are accept19:22
lvmersarnold: idk if I have magic nmdb19:22
sarnoldlvmer: ps auxw | grep nm, I bet it's there... :)19:23
hggdhroaksoax: so I can delete the merge request I did for Precise, correct?19:24
roaksoaxhggdh: yes :)19:24
hggdhdone :-)19:24
lvmersarnold: aaahhhh.. it is on the working server nmbd -D,   but on 18..... it just says --color=auto nm19:24
roaksoax/win/win 819:26
roaksoaxerr19:26
sarnoldlvmer: hrm. :) I wonder what kept nmbd from running on 18?19:27
lvmersarnold: no idea... I understand it is part of the samba package.... but how do I install it again?19:28
jamespageroaksoax, I think that makes alot of sense - so the principle charm says to the hacluster subordinate - ha this stuff19:29
sarnoldlvmer: try running 'service nmbd status'19:30
lvmersarnold: 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 closed19:30
sarnoldlvmer: 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
jamespageroaksoax, 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 charm19:30
lvmersarnold: stop/waiting19:30
roaksoaxjamespage: yeah! I'll have the charm modified and test it out19:31
lvmersarnold: /var/log/samba/log.nmbd19:32
lvmersarnold: no network interfaces found19:33
lvmersarnold: lib/interface.c:543(load_interfaces)19:33
sarnoldlvmer: ooh very curious :) I wonder why -- misconfigured?19:34
sarnolddoes it have .17 address in its listen line or something?19:34
lvmersarnold: I bet so!  http://paste.kde.org/607436/19:34
lvmersarnold: where is the network interface file I should be looking at? xD19:35
uvirtbotNew 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/107487619:35
sarnoldlvmer: it might get it out of smbd.conf or whatever..19:36
lvmersarnold: does this seem bad to you? http://paste.kde.org/607442/19:37
sarnoldlvmer: does 'ip addr show' show you the 'em1' interface?19:38
lvmersarnold: no... should it be 'eth0'19:39
sarnoldlvmer: probably; whichever interface the machine should use. :)19:40
lvmersarnold: how come .17 also has that command and no em1 interface?19:40
sarnoldlvmer: no idea :)19:41
lvmersarnold: well the ports on .18 are open now19:42
lvmersarnold: but still no windows explore access19:42
sarnoldlvmer: 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 election19:43
lvmersarnold: can you have 2 masters? I think that might be a problem for me.19:43
sarnoldlvmer: only one master.19:44
lvmerin the smb config right?19:44
lvmerwhat if you have none?19:44
sarnoldlvmer: they elect themselves19:46
sarnoldlvmer: the 'master = yes' just says that that machine will participate in elections19:46
lvmerok rebooting all19:46
lvmersarnold: I put perfered master = no for one of them just incase. But domain master = yes for both19:47
sarnoldlvmer: sounds good.19:47
lvmersarnold: lol .17 doesn't work now lol19:48
sarnoldlvmer: o_O19:49
lvmersarnold: I set both to interfaces = eth0 em119:50
lvmersarnold: rebooting19:50
lvmersarnold: no network interfaces found lol19:52
lvmersarnold: nmbd did not start on either19:52
sarnoldlvmer: ooof. :)19:53
lvmersarnold: 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
lvmerif my network interface is eth0 ? can't I use that for samba? why did it work when it was set to em1?19:57
sarnoldlvmer: no idea there. :/20:01
uvirtbotNew 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/106290220:06
lvmersarnold: 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.20:22
=== 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
ZLoyHello 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?20:54
=== fire_wall is now known as security
ZLoysomthing like translate sound stream to internet from my dj rig..20:56
submanAny idea why my server would suddenly just stop serving web pages?  It was working just awhile ago.21:34
SpamapSsubman: stop serving web pages how?21:35
sarnoldsubman: anything in the logs?21:35
SpamapSsubman: like, 500 errors, or never responds?21:35
submanSpamapS, 507 and 508 codes found21:36
SpamapSnever seen 50x's before21:37
genii-aroundMaybe /var/log/apache2/error.log   might hold some clues.21:37
SpamapSyou're all assuming apache. ;)21:37
SpamapSprobably a good assumption, but still. :p21:38
submanYes, apache, sorry21:38
submanHere is that last line in the access log:21:38
subman173.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.021:38
genii-around507 is Insufficient Storage21:38
submandf21:38
submanoops21:38
submanLast line of error log:21:39
subman[Thu Nov 15 16:37:36 2012] [error] [client 173.206.102.89] script '/var/www/index.php' not found or unable to stat21:39
submanThe index.php file is there21:39
genii-aroundThen likely "unable to stat"  might be due to these WebDAV errors.21:41
submanHow to check?21:53
submanIt was working literally an hour ago21:53
=== cpg|away is now known as cpg
=== n0ts is now known as n0ts_off
=== cpg is now known as cpg|away
submanCould a bad .htaccess be causing this?22:06
genii-aroundsubman: I would more suspect that you're just running out of room on your server.22:09
submangenii-around, On the hard drive?22:10
genii-aroundYes.22:10
submanOn / I have 36 G of which 22 G is free22:10
genii-aroundsubman: What about /var ?22:11
submangenii-around, /var is on /22:13
genii-aroundsubman: Does df -h show any partitions which are getting filled up?22:13
sarnoldsubman: how about ls -ld / /var /var/www /var/www/index.php   ?22:13
submansarnold, http://pastebin.com/RQbTFqEb22:16
sarnoldsubman: ls says that file doesn't exist...22:17
submanThe file is there22:17
sarnoldat least permissions above it look sane enough.22:17
=== cpg|away is now known as cpg
sarnolddon't argue with me, argue with ls -l :)22:17
subman:)22:17
submansarnold, oops22:19
sarnoldsubman: 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:19
submansarnold, http://pastebin.com/xZyfJqS422:20
sarnoldsubman: 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:21
submansarnold, why in the world would any of this have changed?22:22
sarnoldsubman: 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:23
submanI'm wondering if hacked22:24
submanI guess del and reinstall?22:30
ScottKIt's unlikely you're hacked.22:31
ScottKFiguring it out could be a good learning experience.22:31
urthmoverWhen 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:46
sarnoldurthmover: 'apt-cache showpkg postgresql-9.1' or 'apt-cache showsrc postgresql-9.1' will probably output reassuring information.22:47
urthmoverwell said sir.   I just man apt-cache  and found the apt-cache showsrc one   thanks for the quick answer22:48
sarnoldurthmover: 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:51
sarnoldurthmover: "Pin: origin" may be useful.22:52
submanWell I'm stumped here and have no idea where to turn.  Any ideas for me to look?22:54
urthmoverway cool sarnold23:01
sarnoldsubman: 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:02
submanNothing that I can find23:03
lvmerI 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
submanok, now I am getting closer here!23:12
submanIn my browser I type http://site/index.html but firefox returns /index.php was not found.23:13
submanIt is looking for .php23:14
sarnoldsubman: do you have any horrible rewrite games going on to re-write .html requests into .php requests?23:17
submansarnold, I'm looking into that right now23:17
submanIt seems it is my .htaccess is destroyed.23:21
submanCan I just delete .htaccess?23:23
sarnoldsubman: 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 startup23:35
submansarnold, thanks, just reading up now.  Thanks for your help.23:36
phillwhi 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
SpamapSphillw: there's no "standard" for that.. just "providers" like EC2, Rackspace, HP, etc.23:41
phillwSpamapS: is OpenStack making any inroads or should I base my complete newness on a different standard?23:43
SpamapSphillw: 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
SpamapSphillw: there are also millions of dollars flowing into the OpenStack foundation, so yeah, I'd say its making inroads ;)23:45
phillwso, 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?23:47

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