/srv/irclogs.ubuntu.com/2010/12/22/#ubuntu-server.txt

markus27Hi.  I'm running apache2 web server on ubuntu.  I'd like to ring a bell or flash a light or do some other action in the physical world every time a certain page is visited.  I'm sure this has been done before. Are there any existing devices that support this?00:20
tsrkmarkus27: you could install the "beep" package, and run beep every time the page is visisted00:29
markus27tsrk:  Thanks.  Might be a quick first step in that direction00:50
rdw200169markus27: yeah, you just gotta figure out the link between /var/log/apache2/access.log and the beep, and whatnot00:50
rdw200169markus27: there's also this: http://llg.cubic.org/led/00:51
kieppiehi guys. is anyone familiar with link aggregation or bonding?02:20
twb!anyone02:22
ubottuA large amount of the first questions asked in this channel start with "Does anyone/anybody..."  Why not ask your next question (the real one) and find out?02:22
kieppietwb: k. I'm trying to make the best of a server w 2 NIC's & has a pretty hefty net load. basically a NAS. I'm looking for good, current guides on setting it up & what mode to use02:28
Slyboots_HEy; Perhaps someone can throw me a boe here; had to update Samaba to fix a bug (Compiled it outside the repo)02:30
Slyboots_but now I dodnt have a init.d script or that "service" thing that ubuntu likes to use02:30
Slyboots_So.. not sure how to start/stop at boot and whatnot02:30
markus27tsrk:  I'm not seeing a beep package in the list of mods - http://en.wikipedia.org/wiki/List_of_Apache_modules  Which one were you referring to?02:31
tsrkmarkus27: it's an ubuntu package02:31
tsrkmarkus27: you can call "beep" from the command line to make the computer beep, but you could also call it from PHP or somewhere else02:31
markus27Got it.02:32
Slyboots_Anyone any idea?02:34
twbkieppie: last time I looked, trunk like that was pretty trivial, as long as the other end of the trunk runs compatible gear (linux, cisco or sun).02:34
kieppie[02:36
kieppietwb: I'm not too sure re infrastructure @ this point, but it's a 1000 Mb/s connection (& 1 spare) serving about a dozen XP & W7 hosts doing some pretty intense I/O to SMB shared (CAD & Animation)02:37
twbOK, trunking only matters at the two endpoints of the trunked connection02:38
kieppieso I'm trying, at the moment, to figure out the best mode to use02:38
twbe.g. between your NAS host and the switch or router it's plugged into02:38
twbIf your two gigE lines go from the NAS into a dumb switch, you can't have trunking02:39
kieppieI think it would be best to assume that scenario. are you referring only to the trunking, or to link aggregation too?02:40
twb(Unless you trunk further upstream, which is almost certainly useless, unless your inter-switch fabric is at least 2gbps)02:40
twbtrunking = bonding = aggregation02:40
twbthey all mean "combining multiple (link-layer) links into a single logical (link-layer) link"02:41
kieppieok. thanks.02:41
kieppieI'm reading though some of the ubuntu docs, and they seem to indicate that there are modes that do not require anything special02:42
kieppiehttps://help.ubuntu.com/community/LinkAggregation#Bonding%20Modes02:43
kieppie" IEEE 802.3ad Standard Dynamic Link Aggregation (not required if using adaptive load balancing or active/backup). "02:43
kieppieso I'm trying to do the best with the kit I have on hand02:43
twbAh, that rings a bell02:44
twbI admit I'm more familiar with the other way (802.1q) -- multiple logical links over a single physical link02:44
kieppieI'm not familiar with that. do you mean running multiple IP's over a single NIC?02:45
kieppieit looks like mode=6 (balance-alb) is the safest fall-back option if I'm unsure re kit02:47
twbWell, the specific example I have is a one-NIC server providing DHCP for several discrete networks02:52
twbIt was a SFF host, so I couldn't put more NICs in it02:52
Slyboots_Hmm..02:53
Slyboots_This is driving me nuts02:57
Slyboots_Trying to find a deb file or a rep that I can install a newer version of Samba02:57
twbSlyboots_: why?02:57
twbAnd what version do you want?02:58
Slyboots_Because Windows 7 is crapping out on me and breaks Smbclient02:58
Slyboots_Need.. 3.5.602:58
Slyboots_Something to do with Windows sign-in asssist or some crap breaks Samba; which is fixed in 3.5.602:59
Slyboots_OIt exists in Natty Narwall.. but how to I install that on top of my M. Meercat03:01
Slyboots_.. I think Im on meercat..03:01
Slyboots_aye; 10.1003:01
twbhttp://paste.debian.net/102963/03:01
Slyboots_... What?03:02
Slyboots_Im not sure what that link is.. supposed to mean03:03
twbIt means the version you want is available in Ubuntu03:04
twbIt just isn't available in maverick03:04
Slyboots_Yea.. But its in Narwall; but how do I install that into a Mavrick system wihtout you know.; breaking03:05
twbvery very carefully03:05
Slyboots_:P03:06
Slyboots_This is why I hate linux sometimes :P03:06
twbActually what you have to do is find or create a "bbackport"  For a simple package, creating a backport is mostly just recompiling the source package (apt-get --build source foo).  Likely samba is going to be too complicated for that.03:07
twbSlyboots_: if it wasn't linux, you'd be fucked, because all you'd be able to do is call up the vendor ask beg them to create backwards-compatible version.  At least here you have the option of employing someone to do so.03:08
twbe.g. if you wanted to run the latest IE on a really old version of Windows, the ONLY people that can make that happen is microsoft, so they have a monopoly on doing it03:09
Slyboots_Its not really the same thing03:09
Slyboots_i want the *next* revison :P03:09
Slyboots_I can build aind instlal samba from source but it falls to bits as I dont have any init.d or "service" scripts03:09
Slyboots_Headache :P03:13
Slyboots_no idea what to do baout this tbh03:17
Slyboots_sod it' will stick with the default version and think of a way around this..03:17
twbFor something as hairy as samba, that would certainly be my recommendation03:24
twb(Well, I'm *assuming* Samba is hairy.)03:24
carljmHi all. Is there any way I can the Ubuntu exim4-config package to regenerate all the split config files in /etc/exim4/conf.d/ as they would be on a fresh install?03:49
carljmdpkg-reconfigure doesn't do it, reinstalling doesn't do it...03:49
twbI guess you could purge and reinstall it03:49
carljmtried that03:50
twbYou *purged* first?03:50
carljmjust get a conf.d with several empty dirs03:50
twbPurged *all* the exim4 packages?03:50
carljmhmm, i may have just purged exim4-config03:50
carljmi'll try purging all of them.03:50
carljmthanks03:50
twbI don't know much about exim4, but that's what I'd try03:50
twbOr just create a new chroot (e.g. debootstrap) and install exim4 in there, then copy the config files out03:50
=== RudyValencia- is now known as RudyValencia
Psi-JackOkay, so I have some sudden strange problems with ocfs2 under pacemaker. I have 2 nodes trying to use ocfs2, and it was working fine up until suddenly earlier today. Right now, 1 node can take the ocfs2 mount, and the second one fails. When I try to mount manually cause it does seem to load o2cb on the second node. Anyway, the error I get trying to mount:05:13
Psi-Jackmount.ocfs2: Configuration error discovered while trying to join the group05:14
Psi-JackThey're both using 10.04.1 with pacemaker and ocfs2 stuff from the clustering PPA.05:14
Psi-JackAlso the mount that pacemaker's trying to do, stays actively in the process list.05:15
Psi-Jack 1582 ?        D      0:00 /sbin/mount.ocfs2 /dev/vdc1 /home -o rw,acl05:15
Psi-Jack 2022 ?        D      0:00 blockdev --flushbufs /dev/vdc105:16
Psi-JackThat too. Both D status.05:16
twbD means waiting for I/O05:22
twbOr just generally stuck in kernel-space05:23
Psi-JackRight, uninteruptable sleep, I know that. ;)05:23
twbSorry, I'm used to #ubuntu-* querents being duuuuumb05:23
Psi-JackBut that happens right after it tries to mount the ocfs2 mount after loading o2cb. ;)05:23
Psi-JackYeaaaah.. Understood.05:24
Psi-JackThat's why I'm here, not there. This is a server as well, so. ;)05:24
twbThis is an #ubuntu-* channel, dude05:24
twbBut whatever; I don't know OCFS2 so I can only triage.05:24
twbSo I notice the Ubuntu Server Guide only describes NFSv3 for networking /home.05:26
twbThat is SUPER sucky, because NFSv3 basically trusts anyone on the network anyone NET_RAW capabilities (i.e. everyone).05:27
Psi-Jackheh05:29
twbHmm, on further reading it appears to be exporting both NFSv3 and (unauthenticated) NFSv4.05:29
twbAt the client's choice05:29
Psi-JackYeah, and NFS sucks.05:29
Psi-Jackv3 and v4, especially for failover support.05:29
twbPsi-Jack: what do you suggest, CIFS or AFS?05:29
twbI am.... unimpressed by pam_mount05:29
Psi-JackMy /dev/vdc device is a multipath'd iSCSI device provided as a kvm virtio drive to the server.05:30
twb(Recall that this is for mounting users' $HOME.)05:30
Psi-Jacktwb: Out of those? Maybe AFS.05:30
twbI'm open to other suggestions, I just haven't seen anything even THAT production-ready05:30
twb*seen anything else05:30
Psi-JackBut my /home is an ocfs2 shared iSCSI device. :p05:31
Psi-Jacktwb: Well, really depends on what you need, and the overal goals. You can't just "choose" randomly what you want and hope it works for the best.05:31
twbI have a heterogeneous mix of mostly linux workstations, laptops and servers in a single-site LAN running over 100baseT on a good day.  I need users to be able to login (solved with LDAP/SSL) and I need them to be able to access both their home directory and a shared data directory, both stored on a central server.  The access should be subject to at least POSIX DACs, MACs (e.g. apparmor) are optional.  Advisory lock05:35
twbing is sufficient.  Circumventing the DAC should be difficult, preferably non-trivial.  Site policy prevents me from dictating what software the users run, e.g. I cannot prevent users having root on their own machines.05:35
twbWhatever solution I deploy MUST work on 2.6.32, SHOULD work as far back as 2.6.18 (pref. 2.6.8), and if it works on legacy FC3 and SunOS, that's a mild bonus.05:36
Psi-JackHmmmm05:37
Psi-JackNFSv3 then.05:37
twbMy chief objection to NFSv3 is that if you have root on any client box, you have full access to the NFS fileshare05:39
Psi-Jackuse rootsquash.05:40
twbroot squash does not fix it.05:40
twbviz: su - fred, now you can edit all fred's file05:40
twb*files05:40
Psi-JackHmmm.. I see your problem. And there's not much you /can/ actually do about it.05:41
Psi-Jackbesides policy changes.05:41
twbI think nfsv4+kerberos would fix it...05:41
Psi-JackOr isolated mounts.05:41
Psi-JackIn other words, only mount their home directory, period.05:41
twbPsi-Jack: that's how cifs+pam_mount works05:41
Psi-JackYeah, but CIFS != POSIX.05:42
Psi-JackYou can do the same approach with NFS, automounting their home directory by NFS.05:42
twbTHat doesn't stop root on a client running mount whenever they want05:42
Psi-JackCourse, they could still su to the other user and it'd happen the same way, but you can restrict what systems can mount by NFS export rules.05:42
Psi-JackIn other words, isolate the mounts by workstation IPs.05:43
twbHum, that's reasonable05:44
Psi-JackYeah, that would only become a problem IF they need to be able to login from any system, and if that were the case, then you /need/ a policy to prevent full use of root access.05:44
twbTalking to the other sysadmins here, I think I have a viable mix of policy change and locking down the NFSv3 server (per IP) and the root on the clients05:50
Psi-JackYeah. if it's company equipment, locking down root is essential, especially if you want to comply with any kind of security policies, like PCI, SOX, etc.05:52
twbIt's probably a bit different for my organization, which is an ad-hoc bag of rent-a-sysadmins05:59
twbSo they're even worse than the engineering staff, who want root access so they can compile random shit into /usr/local :-)05:59
Doonzengineers should not have access to anything06:02
Psi-Jackheh, exactly.06:02
twbI know06:02
Doonzpen and paper ONLY!06:02
twbAnd an HP-48 of course06:02
Doonzeven then make sure the pen isn't sharp06:02
xampartto what permissions i set my /var/www -directory (og = www-data) if i want another user to be able to create/remove directories/files under it?07:23
xampartshould i add the user to group www-data also07:24
blaenkanyone here running nginx? I'd like to install it cause it's lighter than apache and supports phusion passenger, but I'm wondering how straightforward it would be to use PHP and Rails with it?07:29
joschiblaenk: you'll need to invest a little more time into its initial configuration. other than that, it's just a web server07:31
blaenkjoschi: cool thanks, appreciated07:32
twbHas anybody successfully gotten slapo-ppolicy working in a cn=config-style openldap slapd?09:19
twbI *had* it working in 8.04, but this new-fangled crap is... not obvious.09:19
BlackDexHello there..09:27
BlackDexi just did an upgrade of the packages09:27
BlackDexand now i get the following message09:28
BlackDexdpkg: error processing grub-pc (--configure):09:28
BlackDexsubprocess installed post-installation script returned error exit status 109:28
BlackDexErrors were encountered while processing:09:28
BlackDexgrub-pc09:28
BlackDexE: Sub-process /usr/bin/dpkg returned an error code (1)09:28
BlackDexHow can i fix this?09:29
twbdpkg --configure -a09:30
twbBut the problem is further up than what you pasted09:31
twbIt's probably something like grub-pc running os-prober, which tries and fails to read /dev/cdrom.09:31
BlackDexthat is all i get now when i type "apt-get upgrade"09:31
BlackDexexcept for the message that 1 is not fully installed09:31
BlackDexsudo dpkg --configure -a09:32
BlackDexSetting up grub-pc (1.98-1ubuntu9) ...09:32
BlackDexdpkg: error processing grub-pc (--configure):09:32
BlackDex subprocess installed post-installation script returned error exit status 109:32
BlackDexErrors were encountered while processing:09:32
BlackDex grub-pc09:32
BlackDexthe same again09:32
twb!pastebin > BlackDex09:32
ubottuBlackDex, please see my private message09:33
BlackDexThe output of dpkg --configure -a > http://paste.ubuntu.com/546539/09:36
BlackDexsorry btw09:36
yann2hello - for KVM, what brings the best io performance for disks - qcow, or raw? would my disks maybe be faster if I converted my qcow disks into raw?09:42
twbIt depends on your write profile09:42
yann2write profile?09:43
twbcopy-on-write is a more expensive operation, but I think it'd pay of for non-sequential writes.09:43
twbyann2: like are you writing to /var/log or to a postgres database09:43
yann2I get very bad perfs with qcow2 when the disk needs to grow, which is the only way vmbuilder can create them, which is a bit unfortunate09:43
twbUh, qcow2 size is decided up-front.  Unless by "growing" you're referring to population of what is effectively a sparse file.09:44
twbIf you're doing raw to a *file*, that literally is a sparse file.09:45
yann2by growing I mean when a 50GB qcow2 file takes only a couple of GB in the beginning (the space effectively used) on the host09:45
yann2and yeah I was talking about raw to a file, instead of a qcow2 file09:46
twbyann2: well, they're both growing in the same way09:46
twbcompare ls -hl foo.raw with du -h foo.raw09:46
yann2am using qcow2 right now09:46
twbMy personal preference would be to assign raw LVs to VMs, rather than files09:47
yann2from what I remember you can create qcow2 images that grow, or with space preallocated (man qemu-img)09:47
twbOr entire disks and leverage intel VT-d, but I can't justify that expense09:47
yann2you mean, use LVM more?09:48
twbyann2: having the virtual disk as a file on another filesystem means you're paying the filesystem layer cost TWICE09:48
yann2I wonder if converting my qcow2 to raw and then back to qcow2 would be beneficial, as it'd allow preallocating09:48
twbIf you just say kvm -hda /dev/mapper/foo-bar, then you aren't09:49
yann2LVM has a cost too09:49
twbGranted09:49
yann2I think I'll try converting to raw and back to qcow2 so that the qcow files dont grow anymore... I believe its the growing thats killing my perfs09:51
twbI believe you're silly, but whatever09:52
yann2really?09:54
yann2once I noticed that the qcow2 file was growing by slices of 2-3MB09:54
yann2and that my speed was good while copying a few MB, then suddenly dropping to something ridiculously low09:55
yann2and that just copying a GB file over and over and over, and then removing it (thus increasing the qcow2 file) was significantly improving write speed09:55
yann2but that was with an older version of kvm09:55
dewey_could someone help me with a upstart & path problem?09:57
dewey_I have a upstat script that's trying to start a ruby daemon, but the ruby file can't require some dependencies09:58
masACCHm. Anyone have a feeling for when we can expect postgres 9 turning up? :)09:59
=== masACC is now known as maswan
twbdewey_: fix the $PATH in your script/end script stanza?10:00
dewey_twb: doing that, but it probably has to do with rvm10:03
dewey_+ I could do it wrong of course10:03
twbI guess that's the ruby interpreter?10:03
dewey_yes, it's an easy way to swtich between ruby versions10:04
dewey_twb: http://pastie.org/139745110:05
twb"export HOME=/home/sysadmin".... nnnngh10:05
dewey_just to make sure...10:05
twb[[ is a bashism.  It is not valid in sh (which is what upstart uses... I hope.)10:06
dewey_ok10:06
twbBut congrats, that's the ugliest upstart job I've ever seen10:06
dewey_newb as you can see, but trying :)10:06
dewey_haha10:06
dewey_well, because it isn't working10:06
twb"start on startup" is also very likely wrong; it should at least wait until you have a root filesystem10:06
yann2twb, can't blame the author, upstart documentation non existent as far as I remember10:07
twbTo be honest you're probably safer sticking this shit in /etc/rc.local, which runs at the very end of the boot process10:07
twbyann2: granted, but I'm busy ranting about slapd right now so I don't want to get started on upstart... :P10:07
dewey_well ok, will google again10:08
yann2sysadvent published a nice article on upstart a couple of days ago, I promised myself to take time to read it http://sysadvent.blogspot.com/2010/12/day-19-upstart.html10:10
twbI get the impression that upstart's driving forces have moved to Google and/or switched to developing systemd, so I don't intend to invest any more time in it than I have to10:12
yann2oh? :( too bad, seemed promising10:13
twbyann2: go look at the systemd salespitch10:15
qman__IMO systemd is a FAR better approach10:24
qman__I would be very happy to see it replace upstart in ubuntu10:24
twbIMO *insserv* is a better approach than upstart10:24
qman__I can't disagree there10:25
twbHell, I even prefer minit/cinit.  At least they don't mix two discrete DSLs in a single file like a flipping PHP user10:25
qman__upstart is faster than sysv, but it's just a pile of headaches and work10:25
twbqman__: is it faster than startparized sysvinit?  Because I doubt it's that much faster.10:25
qman__either way, it's not faster enough to justify the mess10:26
twbI mean, my laptop is sid and it boots in under five seconds, compared to the one second or so for my (empty) lucid servers.10:26
twbBut the *BIOS* on the enterprise servers I deal with (which probably includes linux in the ILOM) takes like two minutes, so I don't care about an extra four seconds...10:26
qman__I like the idea of systemd because it's basically eliminating startup scripts10:26
qman__not completely, but it's a lot less involved and a lot more automated10:27
twbqman__: that's like saying computers will eliminate paper in the office10:27
yann2twb, what brand? on many of them you can disable some checks, which is sometimes useful10:30
twbI don't have one in front of me now, but I've had dells, HPs and IBMs do it recently10:31
qman__yeah10:32
qman__especially anything with several RAID controllers10:32
qman__I don't think I HAVE a BIOS that loads in under 5 seconds10:32
qman__except for my laptop, startup time is just not important to me10:33
qman__I would much rather have it work10:33
qman__of course, compared to windows, even 8.04 was fast10:34
yann2hum. using virtio with raw devices under kvm... fail :(10:34
twbqman__: OpenFirmware!10:35
qman__before I finally nuked it for good, my windows install was taking in excess of five minutes to boot, it was pathetic10:36
qman__never had any linux take that long10:36
qman__I think an extra five seconds or so is pretty insignificant10:36
twbI wouldn't know about that.  Last Windows I ran was NT5.010:39
qman__you didn't miss anything10:39
twbWell, I missed out in hard links10:40
qman__I've hard linked on win2k before10:41
qman__php.ini workaround10:41
Slyboots_Hmm..10:43
Slyboots_Anyone any idea on a pratical solution to running steam on a headerless ubuntu server?10:44
qman__steam as in Valve's Steam?10:44
Slyboots_Not intrested in ctually playing games; just using the download manager of the client10:44
Slyboots_mmm10:44
qman__probably not going to happen without X10:44
qman__if it's server data you could use hl2ds/srcds10:45
Slyboots_Nah; want to run a copy on the server to make it simpler to backup games and download the huge ones overnight10:45
Slyboots_Prefer NOT to use X though; since its a waste of disk-space10:45
qman__well, for steam to work, you need wine10:45
qman__and steam doesn't have a command line interface either10:45
qman__it's going to need an X display10:46
Slyboots_heh; so Im crap out of luck10:46
twbXvfb10:46
Slyboots_Could install X with a reall light WM I suppose I just use VNC10:46
twbOr Xvncserver4, if you need to connect to it10:46
twbOr, of course, just run X over the network10:46
twbNor do you need a WM to use X, just start clients with the appropriate -geometry option.  Default behaviour is focus-follows-mouse.10:47
Slyboots_Mmm10:47
twbqman__: does steam even have a native Linux client, or does one just use wine and hope for the best?10:47
Slyboots_Wine only10:49
twbI wish the gaming industry would get a clue...10:49
qman__steam does not have a native linux client10:50
qman__but srcds/hl2ds do10:50
qman__there might be a way to get those to download regular game data10:50
qman__or there might be a separate tool you can use10:50
qman__I'd look into that before attempting to rig up an X just for steam10:51
=== twister004_ is now known as twister004
twbsrcds?10:58
qman__the dedicated server10:59
qman__it downloads the data the same way steam does, and runs on headless linux natively10:59
twbIs it FOSS?11:00
=== dewey__ is now known as dewey_
qman__not sure, I don't think so11:02
qman__it is free to use, but I think you can only get binaries11:02
twbI hear you can't even play single-player games without putting the windows box on the network11:05
twb(And allowing it egress connections to steam's server.)11:06
qman__yeah, it has to phone home at least once before the game will play11:06
qman__once it has, you can go in offline mode11:06
twbOnce per game, or (say) once per game per day?11:06
qman__once per game, ever11:07
twbOK, that's not as bad as I was lead to believe11:07
qman__the only time it has ever really been a problem was at the launch of half-life 2, and their servers couldn't keep up11:07
qman__they learned quick after that one11:08
Slyboots_Aye; Steam is not to shoddy11:08
yann2qman__, starcraft 2's release wasnt too great either :)11:09
qman__YankDownUnder, yes, but that's blizzard, they go down after most of their patches, a game launch it's fully expected11:10
uvirtbotNew bug: #693338 in tomcat6 (main) "package tomcat6 6.0.20-2ubuntu2.2 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1" [Undecided,New] https://launchpad.net/bugs/69333811:26
Slyboots_Hm..11:29
Slyboots_Dont they make a decent rsync client for windows?11:30
twbSlyboots_: cwrsync11:32
twbIt's just the relevant bits of cygwin (libcygwhatever, rsync and ssh)11:33
* RoyK just uses basic cygwin/rsync with windoze11:43
Slyboots_Mm..11:56
Slyboots_Right that doesnt actually seem to give me the rsync program :P11:57
RoyKwhat?12:04
RoyKcygwin comes with rsync12:04
twbcygwin provides a package picker thingy12:05
twbYou might need to run that and say "gimme rsync"12:05
RoyKcygwin's setup.exe12:05
Slyboots_Using cysync12:06
Slyboots_Just keeps saying "rsync.exe not found"12:06
twbSlyboots_: maybe take it to ##windows12:06
Slyboots_aye12:07
RoyKSlyboots_: just install cygwin with rsync and ssh - that works12:07
dewey_does someone know why upstart gives the following error: [21595]: Error: Could not execute su12:22
dewey_it's running as root12:22
twbPresumably because it can't execute su12:29
dewey_I've changed it to /bin/su and now it's working12:33
dewey_sweet12:33
dewey_is there  a way to find a pid file?13:01
joschidewey_: `find`13:02
joschidewey_: PID files are really not standardized in any way13:02
dewey_yeah but the name is not clear13:02
joschidewey_: and basically really only contain the PID of the process in question13:02
dewey_but i need it for monit to monitor13:03
dewey_can't find it anywhere :p13:03
joschidewey_: does the process create one?13:03
dewey_yes13:03
twbI think Debian policy and start-stop-daemon(8) encourage people to put them in /var/run/13:03
joschidewey_: so you know it's there13:03
RoyKdewey_: lsof -p pid-of-whatever-process-having-the-pid-file-open13:07
joschiRoyK: the PID file usually only written on startup of the daemon and then closed13:08
dewey_RoyK: thanks, that worked out13:08
joschihm, is there any use in keeping the PID file open?13:09
RoyKnot really :P13:09
uvirtbotNew bug: #693369 in mysql-dfsg-5.1 (main) "package mysql-server-5.1 5.1.41-3ubuntu12.8 failed to install/upgrade: subprocess new pre-installation script returned error exit status 1" [Undecided,New] https://launchpad.net/bugs/69336913:17
uvirtbotNew bug: #693372 in nagios3 (main) "Error starting nagios3" [Undecided,New] https://launchpad.net/bugs/69337213:21
BlackDexHello..13:29
BlackDexi have a problem with upgrading13:29
BlackDexhere is the error: http://paste.ubuntu.com/546539/13:29
BlackDexhow can i fix this?13:29
riktkinghi i need some help with apache, can only get one page to show, no sub pages from an external pc13:53
rigvedBlackDex: https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/692163 and https://bugs.launchpad.net/bugs/69305914:09
uvirtbotLaunchpad bug 692163 in grub2 "package grub-pc 1.98-1ubuntu9 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1" [Undecided,New]14:09
BlackDexrigved: Thx.. i almost got afraid i did something wrong :)14:26
=== umarmuha_ is now known as umarmuha
hallynzul: don't suppose you had any plans of doing a new samba-daily upload anytime soon?  :)14:33
emrehi can anybody help me with ubuntu server networking settings (two nics)14:37
pmatulis!ask | emre14:37
ubottuemre: Please don't ask to ask a question, simply ask the question (all on ONE line and in the channel, so that others can read and follow it easily). If anyone knows the answer they will most likely reply. :-)14:37
emreI have installed ubuntu server in a vmware machine14:38
emreI have two nics (hostonly and bridged)14:38
emreeth0:192.168.123.12 (static)14:38
emreeth1:192.168.234.40 (dhcp)14:38
emreI can ping everything in lan wihtout issue. I cannot ping outside lan.14:38
emreMy resolv.conf file shows correct dns server14:38
emreIf I disable eth0 than I can ping outside of lan14:38
emrehow can I make this two eths work together14:38
patdk-wkdid you define a gateway for eth0?14:38
emreyes14:39
patdk-wkwell, there is your issue14:39
emreit is 192.168.123.114:39
RoyKemre: pastebin /etc/network/interfaces14:39
RoyK!pastebin14:39
ubottuFor posting multi-line texts into the channel, please use http://paste.ubuntu.com | To post !screenshots use http://tinyurl.com/imagebin | !pastebinit to paste directly from command line | Make sure you give us the URL for your paste - see also the channel topic.14:39
pmatulisemre: you made 2 gateways14:39
emreif remove gateway for eth0 than I cannot ping my host 192.168.123.1 which is the host that is running vmware14:40
pmatulisemre: you made 2 default gateways.  you should create a static route for contacting the host14:41
RoyKthere is no such thing as a gateway for a nice14:41
RoyKthere are routers for networks, default gateway is for network 0.0.0.0/014:41
emreso should I disable eth0 gateway?14:42
patdk-wkhmm, if you have 192.168.123.12 on eth014:42
patdk-wkand you can't access 192.168.123.114:42
patdk-wkI wonder what your netmask is14:42
uvirtbotNew bug: #693189 in mysql-5.1 (main) "package mysql-server-5.1 5.1.41-3ubuntu12 failed to install/upgrade: Pakket is in een ernstige inconsistente status - u moet het opnieuw  installeren alvorens het te verwijderen." [Undecided,New] https://launchpad.net/bugs/69318914:42
RoyKemre: pastebin /etc/network/interfaces14:42
patdk-wkassuming your probably using /24, it should just work, no gateways needed14:42
emrethan how can I ping 192.168.123.1 is host's ip adres and 192.168.123.12 is guest. I have a netmask 255.255.255.014:42
hallynzul: do you know if anyone ever bothered to look at https://bugzilla.samba.org/show_bug.cgi?id=6724 ?14:43
uvirtbotbugzilla.samba.org bug 6724 in File services "smbd panic action with yield_connection name=0x0" [Normal,New]14:43
emreI am on a different network to chat with. I cannot reach vmware now so I cannot get interfaces file contents to paste here.14:44
emreI will gather that or ask for irc access from within company14:45
emrethanks14:45
uvirtbotNew bug: #693422 in php5 (main) "can't install php5-cli" [Undecided,New] https://launchpad.net/bugs/69342215:16
axisysok i am still struggling with this box.. at one point i were able to get to previous linux kernel from grub and then I got fsck status 4 .. I need to run fsck on disk /dev/md1 .. so I booted from live CD and picked Rescue mode.. but I do not see fsck in there.. any idea how can I fsck now ?16:05
=== unreal_ is now known as unreal
bdmurray_bug 581941 might be the same as bug 69040117:13
uvirtbotLaunchpad bug 581941 in nfs-utils "statd does not start automatically when needed nor can be forced to start on boot" [Medium,Triaged] https://launchpad.net/bugs/58194117:13
uvirtbotLaunchpad bug 690401 in nfs-utils "statd startup races with / becoming writable" [High,Confirmed] https://launchpad.net/bugs/69040117:13
=== bdmurray_ is now known as bdmurray
axisysok i booted from live CD .. but I do not see the /dev/md1 .. can anyone help?17:13
bdmurraySpamapS: ^17:14
axisysi need to fsck /dev/md1 from live cd since it is in fsck status 417:22
SpamapSaxisys: cat /proc/mdstat .. nothing?17:24
axisysrebooting it.. will check again as soon as comes back up17:24
SpamapSbdmurray: looking.. I think you're right.17:24
axisysSpamapS: nothing17:25
axisysSpamapS: there is no mdadm installed on live cd17:26
SpamapSaxisys: you don't actually need mdadm if the kernel sees your partitions as raid autodetect.17:26
axisysSpamapS: fdisk -l shows all those sd?1 are linux raid autodetect17:27
axisysbut no md device17:27
SpamapSaxisys: weird17:31
SpamapSaxisys: well install mdadm and ask it to scan17:32
axisysmdadm --scan ?17:33
axisysmdadm --assemble --scan gave me something17:33
axisysnow I see the md devices..17:34
baggar11axisys: just hopped in, did you already have a raid array on your drives?17:34
axisysmd1 (root) and md10 (data)17:34
axisysbaggar11: yes17:34
baggar11axisys: will probably need to tell mdadm to assemble your array with --assemble and list the devices17:34
axisysbaggar11: yep17:35
axisysbaggar11: thanks17:35
baggar11axisys: then mdadm --detail --scan >> /etc/mdadm/mdadm.conf17:35
axisysbaggar11: i am on live cd17:35
axisysi guess i need to mount the md1 and then put it there17:35
baggar11axisys: are you just trying to mount then?17:36
axisysbaggar11: fsck went fine.. now I can mount md1 fine.. so I will just update the mdadm.conf and reboot17:37
axisysi also modified the /a/etc/default/grub .. so I can see the grub menu .. hidden timeout was `0' .. changed it to `5' .. so I can pick a kernel of my choice.. how do I upgrade the grub now that root is mounted on /a ?17:40
axisysdo I chroot and then run upgrade-grub ?17:40
baggar11axisys: you could also just hold down the shift key when you want to pick another kernel17:41
baggar11on boot...17:41
axisysbaggar11: that did not work.. tried so many times.. I guess just for this time i modify the grub.cfg instead17:41
VelmontQuestion; I just can't understand why my new, totally idle server has a load of 1.21  1.16  1.09. It's not doing anything. Nothing is using CPU in htop! I have software mirroring RAID though, but that shouldn't use that much power.17:47
SpamapSbdmurray: agreed, that bug does seem to be the same statd issue17:54
baggar11axisys: did you use the left shift? and hold it down right after the bios leaves the screen?17:54
bdmurraySpamapS: okay, shall I mark one as a duplicate of the other?17:54
SpamapSbdmurray: seems like there is a lot more information in bug 581941 ... I assume the merge proposal from bug 690401 will be moved to it upon marking it as a duplicate?17:55
uvirtbotLaunchpad bug 581941 in nfs-utils "statd does not start automatically when needed nor can be forced to start on boot" [Medium,Triaged] https://launchpad.net/bugs/58194117:55
uvirtbotLaunchpad bug 690401 in nfs-utils "statd startup races with / becoming writable" [High,Confirmed] https://launchpad.net/bugs/69040117:55
bdmurraySpamapS: I would not put money on it17:56
SpamapSbdmurray: well I can reassociate it manually.. I'll mark the duplicate tho17:57
bdmurraySpamapS: okay thanks17:57
axisysany idea why my system is stuck here now?17:59
axisyshttp://pastebin.com/iLjzm5J517:59
axisysit rebooted fine with md1 until there17:59
baggar11axisys: can you pastebin your /proc/mdstat ?18:01
axisysbaggar11: i have not got a prompt yet18:01
axisyssee my last pastebin.. i got stuck18:02
baggar11axisys: is md1 your root partition?18:04
axisysbaggar11: yes18:05
VelmontOK. "top" is clearly better than "htop". It showed me the sinners:  md0_resync and md0_raid1.   However, in a fresh install of Ubuntu Server, why do they use 10% CPU?  I installed RAID right in the installer, so there should be no use resyncing. Anyone have an idea`18:05
baggar11Velmont: which level of raid?18:06
axisysi am guessing it is doing the fsck of /dev/md10 (raid10) .. 200GB .. might be why it is stuck there..18:07
axisysbaggar11: ^18:07
axisysbaggar11: i will go grab a bit real quick and that should probably enough time for that fsck to complete18:07
Velmontbaggar11: RAID1, mirror.18:08
axisyss/bit/bite/18:08
baggar11Velmont: cat /proc/mdstat and it will tell you if it's rebuilding or not18:09
baggar11axisys: ok18:10
baggar11Velmont: or you can mdadm --detail /dev/md018:10
gobbeit takes while to build raid, even that you jsut installed it18:10
Velmontbaggar11: Thank you. It seems to be, yes... But why? Do the Ubuntu install first only use the first disk? And then the real machine has to sync afterwards?   [==============>......]  resync = 74.6% (728215360/975585216) finish=48.1min speed=85665K/sec18:11
gobbeyes18:11
gobbethat's how software-raid works18:12
gobbein fact, even empty disk takes while to sync18:12
gobbeso you can either do the raid and wait until sync is ready, or just install and wait afterwards18:12
RoyKlinux software raid is block-based, so it doesn't matter how much data is stored there, it'll take the same amount of type to sync up the mirror even if the filesystems on it have data or not18:13
baggar11Velmont: the install process starts the syncing process, when you reboot, it finishes it18:13
gobbeRoyK: yes, that's what i tried to say also :)18:14
RoyKbaggar11: the install process makes the md devs, the kernel starts the sync, then, after reboot, the kernel continues to sync. the installer knows nothing about the syncing18:14
Velmontbaggar11: Hmmm. But the drives are both totally clean. I guess it should take only the fraction of a second to "sync" it.18:14
baggar11RoyK: I think you know what I meant ;)18:15
RoyKVelmont: read what I just wrote - it's block based - it doesn't see data18:15
gobbeVelmont: no it doesn't18:15
VelmontRoyK: OK. :-)18:15
gobbeit needs to copy every block18:15
RoyKVelmont: as opposed to zfs, where an empty zpool takes about zero time to 'rebuild' whereas a fuller one takes longer18:15
Velmontgobbe: RoyK: Sorry I didn't read the parts without hilight. :-) Did now. Very nice.18:16
gobbeVelmont: that's ok :) just hold on, it will take while18:16
VelmontGood to know my new, nice server isn't having over 1 in load by just idling as I first thought. :P18:18
axisysi am back.. still at this line18:18
axisysfsck from util-linux-ng 2.17.218:18
axisys/dev/md1: clean, 59312/2523136 files, 479698/10078960 blocks18:19
axisysi am guessing it will take a while for the raid10 to finish ?18:19
axisysthe data device /dev/md10 that is18:19
baggar11axisys: do you have activity on your drive lights?18:19
gobbeaxisys: fsck might take forever with bigger disks18:20
axisysdoes not look like it..18:20
axisysbaggar11: ^18:20
baggar11axisys: what's the scenerio here? is this is fresh raid install, did you add raid to an existing system?18:21
axisysgobbe: raid10 of 6 disk 73GB disks18:21
RoyKI'm quite glad I don't need to fsck this one18:21
RoyKpbpool/tmp             97T   60K   97T   1% /pbpool/tmp18:21
gobbeaxisys: so you are trying to fsck that?18:22
axisysRoyK: zpool scrub is slow too.. you may have to run that sometime ;_018:22
RoyKaxisys: it'll probably take a while to scrub that, yes...18:22
axisysgobbe: i think the system is trying to fsck that before booting18:22
axisysbefore giving me the OS prompt18:22
gobbeaxisys: are the numbers growing or does it look like it's stalled?18:22
RoyKaxisys: but currently we only have a couple of terabytes on it :P18:22
axisysbaggar11: i have data in /dev/md1018:24
axisysbut latest kernel broke md..18:24
axisysfinally i got back to it using the old kernel18:24
baggar11axisys: hmm, is this 10.10 or 10.04?18:25
axisysbaggar11: 10.0418:25
baggar11axisys: I'm running 10.04 with raid1 and raid5 volumes, updated to new kernel with no issues18:25
axisysi have few servers went through this.. no issue.. except this x415018:25
baggar11axisys: does the system run on the old kernel fine still?18:28
axisysbaggar11: yes.. md1 is recognized fine.. except md10 probably holding it up18:29
axisyswill comment it in fstab through live cd and reboot again18:29
baggar11axisys: yeah, I would try re-adding the mirroring portion18:30
pedahzurAny rumors on when the bug-fix packages will be out for Postgresql?  New versions were released recently. Not seeing them yet on 10.0418:31
axisyson livecd .. mdadm --assemble --scan brings up md1 (root) and md10(data) but not md0 (swap) .. any idea why ?18:34
axisysmd0 is raid1 of sda1 and sdb1 .. i see those18:34
axisyscat /proc/mdstat shows only md1 and md10 and both are active18:35
baggar11axisys: assemble your md0(swap) and mkswap on it again18:36
baggar11axisys: what does your mdadm.conf look like?18:37
wizardslovakhello people18:37
axisysbaggar11: so mdadm --assemble /dev/md0, like that ?18:37
wizardslovaki got corsair memory 2g in pc , will anything happen if i add 2gb of kingston, same specs18:38
baggar11axisys: you may need to use --force if that doesn't do it18:39
Ool<wizardslovak> try and mem test with a livecd or something, you will see18:40
wizardslovaknah think is i didnt order kingston yet18:40
wizardslovaki am just curious18:40
axisysok.. after commenting the /dev/md10 .. i got my OS prompt back .. also my md0 is there now18:43
axisysbaggar11: here is the how the /proc/mdstat looks like now18:44
axisyshttp://pastebin.com/ZheX6UwU18:44
axisysmd10 was commented out in fstab18:44
axisysso how do I make md10 active ?18:46
axisysmdadm --assemble --scan says18:47
axisysmdadm: /dev/md10 has been started with 5 drives (out of 6).18:47
baggar11axisys: I think /dev/sdc is doing something funky, you may need to remove that from md10 and re-add it18:48
baggar11axisys: looks like it's trying to be apart of md_d10(?)18:48
RoyKaxisys: one dead drive, then?18:50
baggar11RoyK: it's probably not a dead drive since it's show up on md_d1018:51
RoyKaxisys: I don't understand that output - looks to me md10 is an inactive stripe18:51
RoyKs/$/ /set/18:52
baggar11axisys: try mdadm --stop /dev/md_d10 and then mdadm --manage /dev/md10 --add /dev/sdc118:52
axisysbaggar11: did exactly as you suggested18:54
axisysbaggar11: http://pastebin.com/49bH6TjR18:54
axisysbaggar11: i guess that looks better now18:54
axisysbaggar11: can I mount it while it is rebuilding ?18:54
axisysbaggar11: thank you so much for your help18:55
baggar11axisys: cool, I've had that happen before, for some reason the superblock probably got toast on that drive18:55
baggar11axisys: yes, you can mount while it's rebuilding18:55
baggar11axisys: read/writes will just be slower18:55
axisysbaggar11: ok.. i will wait .. estimated time 10 mins..18:56
axisysbaggar11: so sdc1 is fixed for now ?18:56
baggar11axisys: hopefully18:57
baggar11axisys: you might just check your mdamd.conf with what mdadm --detail --scan produces after the rebuild18:58
axisysbaggar11: does this look kosher?18:59
axisysbaggar11: http://pastebin.com/7gv5xKqR18:59
baggar11axisys: the /dev/md10 will probably remove the "spares=1" once it's done rebuilding, make sure those lines are in your mdadm.conf for reboot18:59
axisysjust the ARRAY lines .. correct?19:00
axisyswhich timeout makes sure the grub menu stays there for 5 secs .. if i had that instead of `0' i could have switch my kernel and call it a day.. instead of trying to fix it for 2 days19:02
axisyshere is my current default grub19:03
axisyshttp://pastebin.com/ABUHtW4V19:03
baggar11axisys: yeah, array lines19:03
axisysi also like the boot process show up on both tty0 and ttyS019:04
axisyswith grub it was easy.. i just put it in kernel line.. how do I do it with grub2?19:04
axisysin other words.. in grub my menu.lst looks like something like this19:07
axisyshttp://pastebin.com/W2bUctfn19:07
axisyshow do I achieve similar setup with grub2 ?19:07
baggar11axisys: don't know19:08
axisysbaggar11: no prob.. asking in the mailing list19:08
axisysbaggar11: http://pastebin.com/dHkBLvQi19:10
axisysbaggar11: mdstat looks complete19:10
axisyswonder what those unknown formats are all about19:10
baggar11axisys: remove the first "0" in 00.9019:13
baggar11axisys: you won't get those unknown messages anymore19:13
axisysheh19:13
baggar11axisys: time to reboot and find out if that worked... :)19:14
hggdhhallyn: want to discuss bug 691590?19:20
uvirtbotLaunchpad bug 691590 in libvirt "libvirt should not take ownership of ISO images" [Undecided,New] https://launchpad.net/bugs/69159019:20
ssureshotanyone know if they have built 389-ds for ubuntu 10+ yet?19:24
hallynhggdh: i'm just trying to tell whether it is blocking you, or whether you are objectint go libvirt's security scheme.  (IF the latter, then we probably need to take it up with them, not with jdstrand)19:25
hggdhhallyn: I can bypass (and will) by running a hack to chown the files back to the correct user under cron, or something like19:27
hggdhhallyn: but I think this will end up upstream...19:27
RoyKI wonder if btrfs will stabilise one day...19:27
=== erichammond_ is now known as erichammond
hallynhggdh: why doesn't setting libvirt user to root work?19:31
hallynhggdh: i thought you commented that it left the files as is?19:31
hallynhggdh: <shrug> maybe we can just add an extra cmdline switch to stop that happening.  Send it to libvirt list and get their comment.19:33
hggdhhallyn: they get chown-ed to root, my correction was re. the permissions19:33
hggdhhallyn: will do19:33
axisysbaggar11: looks like all data in md10 is fine19:33
axisysbaggar11: yep.. time to reboot it19:33
hallynhggdh: you're going to write the patch?19:34
hallynhggdh: (else I'll do it, just may not get to it this week)19:34
hggdhhallyn: no, sorry, never worked with the libvirt source, and I am not sure I want to start with a changethis area19:34
hggdhhallyn: what I will do is search the libvirt ML for any comments re. that -- this is a major change, and most certainly somebody has commented on it19:35
hallynhggdh: ok19:35
baggar11axisys: cool, let me know how it goes19:36
ssureshotquestion on ppa.launchapd.net ... are these fine to use for production use?19:37
axisysbaggar11: this is how my fstab looks like now19:38
axisysbaggar11: http://pastebin.com/vmBkvTSC19:38
axisysmay be I should put the UUID19:38
baggar11axisys: shouldn't matter, but it's probably neater to follow the same method for representing the devices19:39
axisysbaggar11: it got stuck again at here19:46
axisys/dev/md1: clean, 59318/2523136 files, 479816/10078960 blocks19:46
axisysi guess i need to comment the md10 again fron live cd19:46
axisysmay be i need add a switch in fstab ?19:47
baggar11axisys: maybe change 0 0 to 0 1, that's what I have on my server19:48
axisysok19:49
baggar11axisys: ah, remove the quotes around the UUID19:51
baggar11axisys: I also don't have those19:51
baggar11axisys: not sure if that matters though19:51
axisysok19:51
baggar11axisys: both of my raid volumes 1&5 are using errors=remount-ro19:53
baggar11axisys: I see your md10 is using defaults,19:54
axisysyep19:54
hggdhhallyn: https://bugzilla.redhat.com/show_bug.cgi?id=56893519:55
uvirtbotbugzilla.redhat.com bug 568935 in libvirt "RFE: Skip labelling: Ability to skip disk re-labelling step on a per file basis" [Medium,New]19:55
hallynhggdh: heh, so I can post a patch there19:58
axisysi added the errors and 0 1 .. still stuck20:16
=== sam-_-_ is now known as sam-_-
axisysbaggar11: ^20:18
baggar11axisys: do you get to a login?20:19
sparcHmm, I see amd64 arch for Lucid LTS20:19
sparcbut not an x86_6420:19
sparcwill it have intel extensions compiled in there?20:20
axisysbaggar11: no.. it hangs at that line20:20
axisys/dev/md1: clean, 59318/2523136 files, 479816/10078960 blocks20:20
baggar11axisys: the only other thing I can think of is zeroing the superblock on that pesky sdc1 drive20:22
baggar11sparc: amd64 is the 64bit version and will work on amd and intel systems20:23
axisysmdadm --zero-superblock /dev/sdc1 ?20:25
baggar11axisys: might need to preface with --misc20:26
baggar11axisys: mdadm --misc --zero-superblock /dev/sdc120:26
baggar11axisys: make sure it's not apart of a raid volume though20:26
axisysthis time it is sdd[1](S) md_d1020:33
axisyshehe .. russian roullete20:34
baggar11axisys: nice20:34
axisysi am guessing it is not fstab.. for some reason md10 is not stable and because it is inactive .. it does not mount20:37
axisysone final reboot.. with md10 commented..20:38
axisyscrossing my finger20:38
baggar11axisys: pretty weird, I'm sure once you get through all the drives, it'll be fine20:39
axisysbaggar11: you mean run the zero block for each drive ?20:40
baggar11axisys: if that's what it takes, but not all at once...20:40
baggar11axisys: if it keeps coming up with a different drive on reboots20:41
axisysbaggar11: yep.. as long as the drive is outside the array first..20:41
axisysrebooted fine w/ md10 detached20:41
baggar11axisys: check your /proc/mdstat, that will probably tell you if a drive is out of line20:42
baggar11check for those underscored md_** devices20:42
axisysthis time it is for sdh20:42
baggar11axisys: pretty weird, but keep at it20:45
axisysis there a better raid software than md ? just curious .. cant change for this server20:48
axisyswhat is recommended or popular one this days for ubuntu ?20:48
pedahzuraxisys: That's about it. No other software RAID for Linux that I know of.20:49
baggar11axisys: I've been lovin mdadm, much better than the raidtools approach20:50
baggar11no sure that there is anything else though20:50
gobbeaxisys: you mean better in performance?20:50
gobbesoftware-raid is in fact in same cases better performancing than hardware-versions20:51
axisysgobbe: well yes that first.. and may be more stable20:52
gobbewhy md is not stable?20:52
axisysgobbe: well i am having issue mounting a raid10 .. baggar11 is helping me with that20:53
RoyKgobbe: md is stable20:53
RoyKit's been stable for years20:53
axisysi can mount manually but if i have it in fstab it does not mount20:53
gobbeRoyK: i know20:53
axisysis there something like `dm' that can be used instead of `md' ?20:53
RoyKaxisys: are the md modules in /etc/modules? that might help...20:54
gobbeRoyK: i'v been using it several years20:54
RoyKaxisys: lvm, yes20:54
RoyKaxisys: but not for raid[456]20:54
axisysRoyK: i have loop, lp and rtc in /etc/modules20:54
RoyKaxisys: mount the md volumes and pastebin lsmod20:55
RoyK!pastebinit20:55
ubottupastebinit is the command-line equivalent of !pastebin - Command output, or other text can be redirected to pastebinit, which then reports an URL containing the output - To use pastebinit, install the « pastebinit » package from a package manager - Simple usage: command | pastebinit -b http://paste.ubuntu.com20:55
axisysRoyK: http://pastebin.com/wkB7Gczw20:55
RoyKaxisys: probably overkill, but try to add these to /etc/modules http://pastebin.com/r7QDEAXL20:58
RoyKaxisys: pastebin /etc/fstab too20:58
axisysRoyK: added.. let me uncommend the /dev/md10 is see if it gets stuck again20:59
axisysRoyK: http://paste.ubuntu.com/546712/21:00
RoyKk21:00
RoyKaxisys: also, passno should be 2 for the last fs21:01
RoyKnot 121:01
axisysRoyK: oops .. too late.. may be on next reboot21:02
axisysRoyK: whats the diff between pass 1 and pass 2 (learning)21:03
RoyKman fstab :P21:03
axisysor man mount i guess21:03
axisysfstab did not say much21:04
RoyKaxisys: on lucid, it does...21:04
=== erichammond1 is now known as erichammond
axisysi got stuck at same place ..21:05
axisys/dev/md1: clean, 59319/2523136 files, 479989/10078960 blocks21:05
axisysnothing after that..21:05
axisysis there a way to fix the fstab without the live cd ?21:05
gobbeboot it with single user21:05
RoyKgobbe: not sure if that helps on ubuntu21:05
gobbeaxisys: you could also run fsck manually21:06
gobbeaxisys: after you get system up and running21:06
RoyKthe problem is probably fsck order21:06
RoyKset that to 221:06
RoyKnot 121:06
gobbeor you could even take it up with 021:06
axisysRoyK: ok.. but w/o live cd ?21:07
RoyKtry single21:07
axisysgobbe: 0 did not help21:07
axisysit was 0 originally.. then changed it to 1 .. next would be 221:07
RoyKgobbe: 0?? that's shutdown21:08
gobbeaxisys: but anyway you need to run fsck on your filesystem, that has nothing to do with actual raid (or atleast i dont see any reason)21:08
jdstrandhallyn: hey, you around today?21:08
RoyKrun level 1 == single21:08
gobbeRoyK: not there :D21:08
gobbeRoyK: fstab21:08
RoyKah21:08
gobbesingle or just 121:08
axisysit gets stuck at same line with rescue mode21:10
axisys/dev/md1: clean, 59319/2523136 files, 479989/10078960 blocks21:10
gobbesingle user, not rescue21:10
axisysgobbe: i thought rescue runs in single user mode.. hmm21:10
RoyKgobbe: same thing21:10
RoyKaxisys: boot on a cd21:11
axisysRoyK: ok21:11
gobbeuh21:11
gobbeyea, same thing. my bad21:11
gobbeaxisys: you can also trigger ext4 to not run fsck on every now and then with tune2fs21:12
axisysgobbe: ok21:13
hallynjdstrand: yeah, i'm around, but i have no kvm-capable laptops handy.21:21
hallynjdstrand: actually, heading out now for some xmas shopping.  bbl21:21
axisysRoyK: changed pass to 2 .. rebooting ..21:23
* axisys crossing my finger21:24
axisysRoyK: i am glad the server is under my cube and a monitor/kbd plugged into it.. i wonder how would i boot from live cd when the server is at remote location.. i only have remote console access thru cisco console server21:27
axisysbtw .. back to same stuck screen ..21:29
axisys/dev/md1: clean, 59319/2523136 files, 479989/10078960 blocks21:29
axisysi guess boot from cd and comment the md10 again21:29
axisyswish i went with lvm .. hmm21:30
axisyswonder if i can still do it and save the data21:30
RoyKaxisys: mount it, connect an usb drive, copy21:35
axisysRoyK: alright21:36
RoyKaxisys: what sort of data do you have on this one?21:37
axisysRoyK: splunk21:37
RoyK?21:37
RoyKraid10 for log data?21:37
axisysRoyK: mainly compressed files that is used by splunk (splunk.com)21:38
axisysfor search real time indexed data21:38
axisyskind a like database21:38
axisysonce i turn off splunk app .. this md10 is quite21:39
* RoyK thinks of zfs21:39
axisysno transactions21:39
axisyszfs fs is slow if i put splunk on local zone21:39
RoyKhm.. it is?21:39
axisysthat is why moving to ubuntu.. splunk guys can help with linux more21:39
RoyKwhy don't you just run splunk on some system with native zfs?21:40
RoyKI mean, not in a zone21:40
axisysRoyK: yes, if you need to index about 50GB data per day .. constant data coming in from 100s of servers21:40
RoyKthen why run it in a zone?21:41
axisysRoyK: i am.. one of the splunk server.. and it is working lot better.. not sure why local zone behaving like this.. it is the same release of sol 1021:41
RoyKyou don't want to run that sort of machine in a zone21:41
axisysRoyK: i guess not..21:41
RoyKaxisys: give openindiana or s11ex a try21:42
axisysRoyK: so system is back up with md10 commented .. oh well21:42
RoyKinstall on a single drive or mirror21:42
RoyKuse zfs for the rest of the stuff, striped mirrors21:42
RoyKhow many drives? 4? 6?21:42
axisysRoyK: i am running sol11ex .. i have been on opensolaris snv_141 for a while.. now snv_151 i think w/ sol1121:43
axisysRoyK: 6 on raid1021:43
RoyKk21:43
* RoyK uses openindiana21:43
axisysRoyK: i was.. but sol11ex is higher snv .. so i swithced21:43
axisysRoyK: waiting for the 7410 to power up soon21:44
axisysRoyK: then NFS that as my splunk storage to test .. hehe21:44
RoyKhttp://pastebin.com/2XDHTNnX21:45
axisyshttp://paste.ubuntu.com/546726/ <-- keep doing the same thing.. this time sdh21:45
axisysRoyK: yep.. pretty familiar with that.. I have been using sol10 since day 121:46
axisysi even have the opensolaris T shirt21:46
axisysfree :-)21:46
axisysanyways .. any other suggestion with md10 ?21:47
RoyKaxisys: I'd go back to zfs and not try to run splunk in a zone21:52
RoyKaxisys: for such a setup, I'd use something dedicated, meaning _not_ a zone21:52
adachow to install sun (oracle) java?21:55
adacin which repository is it contained?21:55
adacoh it seeems to be in the partner repo21:58
RoyKhttp://gizmodo.com/5715650/googles-cr+48-laptop-totally-revolutionizes-safety-instructions21:58
adaccan enable this without casing problems on ubuntu server?21:58
guntbert!java21:59
ubottuTo install a Java runtime on Ubuntu, see https://help.ubuntu.com/community/Java. For the Sun Java products and browser plugin, search for the sun-java6- packages in the !partner repository on Lucid (which must be enabled), or !multiverse repository on older releases.21:59
adac!partner22:01
ubottuCanonical's partner repositories provide packages a location for software vendors to publish applications. The repo itself can be added by running this in a !terminal: « sudo add-apt-repository "deb http://archive.canonical.com/ $(lsb_release -sc) partner" »22:01
RoyKnite22:02
guntbertg'night22:02
adacguntbert, night22:02
guntbert:)22:02
adacahh22:02
adachehe22:03
=== JFo is now known as JFo-vacation
blaenkhey does anyone know of a guide or advice on how to manage web server users22:57
blaenkin other words, I currently have nginx and it's running as user nginx22:57
blaenkI believe php-fpm is running as user www-data22:57
blaenkI'm just wondering how to organize all of this, like, where to place my websites (/var/www/site.com ?), the permissions on that folder, etc.22:58
Tm0Hey i am new to this sorta, i have a Ubuntu server running, and i need to reenter a proccess i disowned. How do i do it. Or is there a better way i can disown a proccess so i can reenter it?23:23
Tm0Hey i am new to this sorta, i have a Ubuntu server running, and i need to reenter a proccess i disowned. How do i do it. Or is there a better way i can disown a proccess so i can reenter it?23:35
examancermaybe its because *I'm* new too, but I have no idea what you mean by disowning a "process"23:36
examanceri know how to change the owner of a file and change it back23:36
examancerheh23:36
Tm0proccess.sh &disown23:36
examanceroh. i just use screen. haven't tried that23:37
Tm0Well its for a server, i can't have putty open forever23:38
JanCTm0: that's why most people use screen (on Ubuntu often through byobu)23:38
examanceryes, if you use 'screen <command>' or just type 'screen' and then execute whatever commands you want you can "detach" a screen using CTRL+A+D (default) and then reattach it using screen -r <screen number>23:39
JanCTm0: screen is sort of like a terminal server for command shells23:40
examancerso you can detach, close putty, then open another session (on maybe another computer) and reattach the screen to see the output of that screen session23:40
JanCso you can ssh in and connect to screen when you need, disconnect when you want, things keep running on the server23:41
examancerthe commands running in the screen session will of course continue running even when its not attached to anything23:41
Tm0I'm running Minecraft, what i want to do is enter the proccess it gives me so i can do stuff on that program's CLI, but i need to disconnect Putty from it.23:41
examancerscreen "should" handle that just fine Tm023:42
Tm0Great23:42
examancerdisown may handle it fine as well... just not as familiar with that. looks similar to using nohup. not a bad solution, but i still prefer screen23:42
JanCTm0: read up on screen & byobu and experiment with it, once you're used to it, you'll start to use it on all your systems  ;)23:43
examancersweet! i suck at server administration, but i may have actually helped someone (even if they didn't get the answer they wanted)23:43
examancer:-P23:43
PatrickdkI dunno what &disown does, but if you use normal &, generally you can use fg to bring it back23:43
Tm0Well i have FG and screen now. I'll see what works. Just a matter of time now23:44
examancerdisown appears to work similar to nohup in that it attaches the processes being run ot the parent process (init)23:44
examanceri don't know if you can even bring it back to the fg23:44
Tm0Nor do i. Its not my server, i'm just the server guy. Apparently running a home server means that23:45
JanC23:46
examanceri have a theory that most administrators really have no idea what they are doing and just fumble around until things work23:46
examancer... but i'm a developer, so maybe i'm supposed to think that23:46
examancer:-P23:46
blaenkhey, hwere in a daemon/server does one configure what to run it as. for example, I installed nginx and it's running as user nginx, this is fine, but I'd like to change another daemon's (php-fpm)'s user23:50
Tm0The only think i develop is HTML/CSS, (Markup at least xD) So i usually know what i'm doing, though procress wise its who knows.23:50
blaenkI figured it would be in the init.d script but doesn't seem like it23:51
JanCblaenk: it depends23:51
blaenktypically?23:51
blaenkcause I checked the conf/ini files and there's no mention of it, is it seriously hard-coded so I would have to recompile with the configure parameters?23:52
JanCsome daemons do it themselves, and then there is often a setting in the daemon's configuration file somewhere23:52
blaenkcause I installed php-fpm through apt, and it automatically used www-data, I know that if you compile it yourself you can set the configure opts23:52
blaenkok, what do you mean by do it themselves though?23:52
JanCblaenk: daemons that change user themselves, there are also some that you can run as another user yourself with su/sudo of course...23:54
blaenkohhh I see what you mean, so it /would/ be hard-coded at compile time in the case of those former daemons23:55
blaenkI guess I'll just compile php-fpm myself, might be easier, is there a way you recommend of doing this?23:55
JanCit could be hard-coded at compile time or it could be in a configuration file...23:56
blaenkI can do dpkg -l  |grep php to see what packages I installed (i have a rough idea) and then just remove with sudo apt-get remove --purge package right?23:56
blaenkJanC: I've checked the configuration files but I didn't fidn anything, I'll keep looking23:56
JanCblaenk: also read the docs  ;)23:56
blaenkoh, I did23:57
blaenkman php-fpm23:57
JanCthere might be a separate doc for the config files23:57
blaenkJanC: can you comment on my package uninstall method above though?23:57

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