[01:22] <gregcoit> how can I force /etc/rc4.d/S99* to wait for S98 scripts to finish before firing off on boot?
[01:25] <gregcoit> would there be a better place to ask an upstart-related question?
[01:26] <gregcoit> nm, there is an #upstart channel....
[02:13] <therian1> hey guys, anyone know a command to probe your local network?
[02:13] <therian1> thanks
[02:14] <qman__> you'll have to be more specific
[02:14] <therian1> for command line
[02:14] <therian1> i want to ssh into my box at work
[02:14] <therian1> then into another box
[02:14] <therian1> but i dont know its ip
[02:14] <qman__> nmap is the best port scanner I know of
[02:15] <qman__> it isn't included by default, you will have to install it
[02:15] <therian1> thanks qman__ ill try it
[02:16] <qman__> the command you'll want to use should look like
[02:16] <qman__> sudo nmap -sS -p 20 192.168.1.0/24
[02:16] <qman__> err, -p 22
[02:16] <qman__> and obviously use your network range
[02:17] <therian1> thank you qman_
[02:18] <therian1> Error #487: Your port specifications are illegal.
[02:19] <qman__> that exact command works here
[02:19] <therian1> hmm
[02:19] <therian1> oh my bad
[02:19] <therian1> i forgot the -p 22
[02:19] <therian1> i changed the /24 lol
[02:20] <qman__> heh, yeah, that's CIDR notation
[02:21] <therian1> thanks qman__ worked great
[02:21] <therian1> now i just have to figure out which ones mine lol
[02:22] <therian1> is there a way to resolve host names?
[02:22] <qman__> well, you could reverse dig each one
[02:23] <qman__> there might be an option for that in nmap, but there's a lot of them
[02:23] <qman__> prepare to read the manual for a while
[02:24] <therian1> could you briefly explain reverse dig please?
[02:24] <resno> just did a fresh install and my nic isnt working, at all. i cant get it in ifconfig
[02:25] <qman__> dig -x 1.2.3.4
[02:25] <therian1> thanks qman__ :0
[02:25] <therian1> :)*
[02:38] <nerdy_kid> so i am a total newb at this, i have a basicly non configured apache server running on one pc and thats all i can handle.  I am curious as how i would go about getting more then one server serving data, sort of like dual core only with servers.
[02:39] <resno> dual core with servers?
[02:40] <nerdy_kid> i mean like so when i request a file from an IP, that multiple servers serve the data back to the requester
[02:41] <nerdy_kid> resno ^^
[02:42] <resno> nerdy_kid: im not sure what you are trying to do. so im hoping someone smarter will respond
[02:42] <resno> are you saying multiple phyisical servers?
[02:43] <nerdy_kid> resno yeah serving the same IP
[02:44] <resno> you mean like doing load balancing?
[02:44] <nerdy_kid> resno yesss
[02:44] <nerdy_kid> exactly :)
[02:44] <resno> oh, i havent done anything with that. ive been meaning to try it out, but havent yet
[02:45] <nerdy_kid> is it a largly complex thing to do?
[02:45] <resno> i havent done anything with it, so you are asking the wrong person. google or #apache2 would be a good place to start
[02:46] <nerdy_kid> resno ok thanks :) at least now i know what it is called :)
[02:46] <resno> sure, thatll give you something to search for
[02:46] <nerdy_kid> resno yeah thanks :D
[03:00] <fried_pe1guin> ah, much better
[03:00] <therian1> anyone know how to output to file with wget?
[03:02] <fried_pe1guin> what are you looking to output?
[03:03] <therian1> im wgetting a page, then comparing it to another file
[03:03] <therian1> i want wget to output to a file
[03:03] <therian1> i tried wget -o file
[03:03] <therian1> but no workie
[03:04] <fried_pe1guin> just tried wget sitename >> file and (|) file with no success either
[03:05] <fried_pe1guin> what about wget file && diff?
[03:06] <therian1> fried_pe1guin: i did try that
[03:06] <fried_pe1guin> kvm question: do I want VT support enabled in the bios for kvm?
[03:06] <therian1> ah got it to work
[03:06] <therian1> silly me
[03:06] <therian1> big O not little o
[03:18] <therian1> ok i found the problem, there is a & in the url
[03:18] <therian1> so when ever i try to run wget it tries to run everything after the & as another command
[03:18] <therian1> anyway to get it to stop that?
[03:19] <ziesemer_> Put it in quotes.
[03:19] <ziesemer_> The whole URL.
[03:20] <therian1> thanks ziesemer_
[03:20] <ziesemer_> Single will work best.
[03:21] <therian1> awesome thanks ziesemer_
[03:23] <therian1> worked like a charm ;p
[03:23] <therian1> still dont see how charms work tho...
[03:29] <therian1> anyone use google reader?
[04:19] <qman__> fried_penguin, yes
[04:31] <dominicdinada> need a hand with fstab
[06:46] <enav> qman__ my SFTP apparently is working good
[06:48] <enav> i need a little orientation  this article http://is.gd/c9lXs  have several times this "chroot()"   what is that is a function???
[06:53] <hink> Is it possible to have primary and backup ubuntu repos? i.e. update from the local mirror .... if the local mirror fails to respond, try ubuntus mirror
[08:13] <enav> the good of filezilla is that its shows you with messages what is exactlyy happening woth your connection
[08:14] <enav> ouch!!! wrong chat
[09:15] <joschi> I installed the package
[09:15] <joschi> I installed the package 'postgresql', purged it, an reinstalled it
[09:15] <joschi> now the configuration files in /etc/postgresql are missing
[09:15] <joschi> how can I regenerate them?
[09:16] <joschi> or how can I make aptitude install them again?
[09:28] <RoyK> should be there when you reinstalled
[09:33] <joschi> RoyK: the truth is much, much uglier >(
[09:34] <joschi> I had to purge the postgresql packages (and its dependencies), the needed to manually delete /etc/postgresql, /etc/postgresql-common, delete the user and the group 'postgresql' and run 'dpkg -P' on all the postgresql packages
[09:34] <joschi> then, and only then, a new installation of postgresql-8.4 would create the files in /etc/postgresql
[09:47] <RoyK> what about postgresql-common or whatever it's named?
[09:48] <RoyK> http://karlsbakk.net/top-16.png <-- nice
[09:55] <joschi> RoyK: /etc/postgresql-common or the package postgresql-common? anyway the directory /etc/postgresql-common was recreated as it should be without the "purging stunt". just /etc/postgresql was the problem
[09:57] <RoyK> joschi: which distro version is this?
[09:59] <joschi> karmic
[09:59] <joschi> RoyK: https://bugs.launchpad.net/ubuntu/+source/postgresql-8.2/+bug/108296 suggests that this problem exists for a long time now...
[10:01] <RoyK> joschi: I can upload the default /etc/postgresql* files somewhere, for lucid, but I don't have access to any Karmic boxes from here
[10:01] <joschi> RoyK: thank you but that's not necessary
[10:01] <RoyK> k
[10:02] <joschi> RoyK: after purging everything related to postgresql (e. g. manually removing the user and the group "postgres"), aptitude recreated the directory
[10:02] <RoyK> ok
[10:02] <joschi> RoyK: but I find it quite disturbing that this bug (?) survived since april 2007
[10:03] <RoyK> it's flagged invalid
[10:03] <joschi> yes, I know. even more disturbing IMHO
[10:05] <joschi> just tried it on a lucid test machine. problem still occurs. :(
[10:12] <RoyK> that's a bitch
[10:12] <RoyK> try reopening the bug
[10:16] <joschi> RoyK: yep, just reopened it/expanded it to cover postgresql-8.4
[10:30] <elnur> A question about BIND9. Is using wildcard (*) for all subdomains a bad idea? Should I define a line for every subdomain I have?
[10:31] <imjustmatthew> elnur: I explicitly define each subdomain
[10:31] <imjustmatthew> elnur: though I don't know why wildcard would be bad
[10:32] <elnur> imjustmatthew, then why do you define them explicitly? what is your reasoning?
[10:34] <imjustmatthew> I define them each explicitly to make it easier for me to maintain my config files
[10:34] <imjustmatthew> some of them are shared accross servers since some are fron-facing DNS and some are LAN facing
[10:34] <imjustmatthew> that sentence had to many somes...
[10:35] <imjustmatthew> some of the subdomain configs are shared accross servers since some of the servers are front-facing DNS and some are LAN facing
[10:35] <elnur> imjustmatthew, and how does that affect to your choice? I don't get it
[10:36] <elnur> The only problem I know with explicitly defining every subdomain is that you have to wait while global DNS records update for every subdomain you add.
[10:39] <imjustmatthew> I've never had a problem with that, but yes, you are right that could be a downside if you change the records frequently
[10:41] <elnur> imjustmatthew, ok. thanks for your help
[10:43] <JanC> putting them in explicitly (and removing them when not used anymore) might be useful to remember what you actually use  ;)
[11:44] <RoyK> how many cpu cores does ubuntu server support?
[11:44] <RoyK> as in out of the box
[11:53] <Tweeda> RoyK, that's likely limited to the 2.6.32 kernel which is likely significantly higher than you'll find available via Intel and AMD processors and related mainboards.
[11:53] <RoyK> what is that? 64? 256?
[12:01] <Tweeda> the out of the box ubuntu 10.04 server kernel looks like CONFIG_NR_CPUS=64
[12:15] <RoyK> should suffice even for a quad 12-core
[12:19] <penguin42> should only be a problem for those lucky guys with an 8 socket system
[12:37] <resno> i am trying to setup a virtual server and am looking for suggestions on what to use.
[12:37] <resno> xen, kvm or vmware
[12:42] <andol> resno: Well, unless you have any specific preferenses or reasons, go with KVM. If nothing else because that's what has been closest integrated into Ubuntu.
[12:42] <RoyK> penguin42: those opterons are only made for quad usage anyway - not enough hypertransport links for more
[12:43] <resno> andol: ive heard that it doesnt work on every platform. how can i check to see if itll work?
[12:43] <resno> im not running a desktop as a server
[12:44] <resno> im running a desktop as a server
[12:45] <Tweeda> resno: egrep '(vmx|svm)' --color=always /proc/cpuinfo
[12:45] <Tweeda> if you get output, your cpu supports kvm
[12:45]  * resno crosses fingers
[12:46] <resno> no such luck
[12:46] <resno> so whats the next best option?
[12:46] <Tweeda> you're stuck with xen
[12:47] <andol> resno: Are we talking about always-availible servers, or just something to use for testing and/or development?
[12:47] <resno> andol: it will be always on. running services for my home network
[12:48] <resno> Tweeda: and xen is hacky setup from what ive tried on the ubuntu docs
[12:48] <resno> s/docs/wiki/
[12:48] <Tweeda> resno: agreed.  I run centos5 for my last remaining Xen host
[12:49] <resno> Tweeda: is it easier to setup in centos?
[12:50] <Tweeda> A Xen host?  Yes, it's available as an optional kernel and from the same codebase redhat supports commercially.  It works.
[12:51] <Tweeda> Setting up a Xen host (Dom0) in Ubuntu is a bit of work as resno related
[12:52] <andol> resno: Also note that Debian has a pretty good Xen integration.
[12:53] <andol> resno: http://wiki.debian.org/Xen
[12:53] <Tweeda> might also look at a cpu upgrade :)
[12:53]  * Tweeda hasn't tried debian Dom0
[12:54] <resno> Tweeda: maybe, i doubt ill need a better cpu. ill only need more hard drive space :)
[12:54] <Tweeda> resno, oh, before you take the xen plunge, you might want to check settings in your bios.  Often, the factory settings disable virtualization support on the cpu.
[12:55] <resno> debian has its own version naming conventions, ):
[12:55] <andol> Tweeda: We run our fair share of that at work.
[12:56] <Tweeda> andol, then debian would probably be closer to home than centos.
[12:56] <andol> Tweeda: My thought exactly :)
[12:57] <andol> resno: But as Tweeda say, first take a peak at your BIOS settings, and see if there's an option to enable hardware virtualization, or so.
[12:57] <Tweeda> I'd still rather pick up a cpu that supports virt and run kvm
[12:57] <resno> Tweeda: what cpus support it?
[12:58] <Tweeda> most new cpus.  it's usually listed in the tech specs.  well, tech specs worth their salt.
[12:58] <Tweeda> I run kvm on really cheap amd cpus with little fuss
[12:58] <resno> what do you consider "new cpus"?
[12:59] <Tweeda> last few years
[12:59] <andol> resno: As a very general rule of thumb, if the cpu is 64-bit, it likely also has hardware virtuzliation support.
[12:59] <penguin42> RoyK: Oh didn't know the 12 cores were limited to 4 sockets; still you can do 8 socket on Nehalem-Ex and I think thats hyperthread, so you cang et 8x8x2->128 threads
[12:59] <penguin42> andol: Except the bottom end ones - like this lapto
[12:59] <penguin42> p
[13:01] <RoyK> penguin42: I guess 48 cores will suffice for most use :þ
[13:02] <Tweeda> resno, what CPU are you running?
[13:02] <RoyK> any suggestions for which benchmark suite I should use to benchmark a 16-core system?
[13:02] <RoyK> I'm curious about memory bandwidth - it's an amd system, so it should be good, but it'd be nice to see the actual numbers
[13:02] <resno> Tweeda: p4
[13:05] <penguin42> RoyK: It really depends what you want to do with it; I'm always a slave for compile times - make -j  is always fun :-)   But are you a databasey person or a supercomputery maths person?
[13:05] <RoyK> this system is meant for doing modelling
[13:05] <penguin42> well then give it one hell of a model
[13:05] <RoyK> volcanic ash chewing :þ
[13:06] <penguin42> RoyK: You might better fan filters for that :-)
[13:06] <RoyK> hehe
[13:06] <RoyK> after Eyjafjallajökull started farting, we've had a lot to do at work
[13:14] <mcas> RoyK: what do you work ;-)
[13:14] <RoyK> nilu.no
[13:17] <mcas> ah ok :-)
[13:18] <RoyK> that new 16-core machine has something like the same cpu power as the other eight boxes they've using for models so far :)
[13:28] <RoyK> 64 gigs of ram should probably suffice even for this :þ
[15:04] <RoyK> how do I disable samba on lucid?
[15:04] <RoyK> doesn't seem to be anything under /etc/rc2.d
[15:05] <NativeAngels> hello has anyone here used a sunfire v100
[15:06] <RoyK> not with ubuntu....
[15:06] <NativeAngels> but you have used one
[15:06] <Tweeda> RoyK: /etc/init.d/samba4?
[15:06] <RoyK> I think we have a few running s10
[15:07] <RoyK> Tweeda: samba4?
[15:07] <RoyK> Tweeda: anyway, the init.d script isn't run directly, mostly from /etc/rc2.d
[15:07] <NativeAngels> ive  been given 3 and i need to know how to set them up
[15:08] <ivoks> NativeAngels: i have couple of sunfires, why?
[15:08] <Tweeda> RoyK, I use rcconf, so if /etc/init.d/samba4 exists: rcconf --off samba4
[15:08] <ivoks> NativeAngels: that's sparc, right?
[15:08] <NativeAngels> ive never used rackmounts before
[15:09] <NativeAngels> but always wanted a rackmount
[15:09] <RoyK> NativeAngels: the problem isn't that they're rackmounted, but iirc they don't have a graphics card
[15:09] <NativeAngels> and someone was giving them away
[15:09] <RoyK> you may have to add a graphics card or install using a serial console
[15:10] <ivoks> serial console, of course
[15:10] <NativeAngels> ok
[15:10] <NativeAngels> and how do i do this
[15:10] <ivoks> but, if it's a sparc, lucid won't work at all
[15:10] <ivoks> sparc is being removed even from ports archives
[15:10] <RoyK> it's sparc
[15:11] <NativeAngels> i also go given a sun ultra 5
[15:11] <RoyK> oh
[15:11] <RoyK> throw that away
[15:11] <RoyK> ATA3 controller and not very fast cpu
[15:12] <NativeAngels> ive been reading a few sites on the v100 it was saying about a console cable
[15:13] <ivoks> yeah... if no one steps up to mainatain sparc arch in lucid, it will die by feature freeze
[15:13] <ivoks> NativeAngels: yes, you need console cable
[15:13] <NativeAngels> where can i get these from
[15:13] <knutmithut> hello.. i'm having problems with the kerberos authentication.. i dont know how to access home folders using kerberos and nfsv4
[15:14] <NativeAngels> would the likes of pc world have one ?
[15:14] <knutmithut> i've already added the user to the kerberos principals and received a ticket, but can't cd to ~
[15:14] <ivoks> iirc, sun machines have special version :)
[15:14] <ivoks> but i might be wrong
[15:14]  * incorrect goes to his garage and returns with a hand full of cables for NativeAngels 
[15:16] <incorrect> pc world won't but most geeks will have a garage full of them
[15:16] <RoyK> NativeAngels: I guess you can find the pinout somewhere on the web - get a serial cable, clip it, fasten the correct cables to an RJ45 plug
[15:17] <RoyK> NativeAngels: or you might want to call Sun^WOracle and buy one from them, it probably won't cost more than $200 or so
[15:17] <NativeAngels> eeks
[15:17] <Jeniczek> Hi there
[15:18] <Jeniczek> DId anyone solved the kjournald2 ext4 problem or is there a known fix for this?
[15:18] <NativeAngels> are you in the uk incorrect
[15:18] <RoyK> http://www.sunhelp.org/unix-serial-port-resources/serial-pinouts/
[15:18] <incorrect> NativeAngels, yes
[15:18] <NativeAngels> do you have any of these cables ?
[15:18] <Jeniczek> Am now unpacking 240k email for setting up a mailserver and I can see, that every 5seconds or so it waits unitl some kjournald writeouts
[15:19] <incorrect> NativeAngels, i have boxes and boxes of stuff
[15:19] <NativeAngels> me to
[15:19] <NativeAngels> but not them
[15:19] <incorrect> best thing to do is subscribe to a local recycle mailing list
[15:19] <RoyK> NativeAngels: http://www.sunhelp.org/unix-serial-port-resources/serial-pinouts/
[15:19] <incorrect> or make it as RoyK points out
[15:19] <incorrect> more fun to make it
[15:20] <RoyK> soldering a D-sub is a bitch, but just using an already soldered serial cable is trivial
[15:21] <incorrect> a 9pin is easy
[15:21] <incorrect> a 15pin vga is hard(er)
[15:21] <Jeniczek> so no one know ?
[15:22] <Jeniczek> everybody running ext4 without a problem?
[15:22] <Jeniczek> I just wonder, becasue google showed me hundreds of fucked up ppl
[15:23] <RoyK> I just installed my first box with ext4
[15:23] <RoyK> works so far, although I haven't been micromonitoring it
[15:23] <incorrect> Jeniczek, for a year
[15:23] <incorrect> i have 30 servers on ext4
[15:24] <incorrect> its xfs i've had problems with
[15:24] <Jeniczek> well, I am not a LInux guru, but If i clearly see, that unpacking 100gig archive takes more than hour and I cann see taht every 5 seconds kjournald2 and pdflush blocks the unzipping process
[15:24] <RoyK> incorrect: out of interest - what problems?
[15:24] <Jeniczek> then I know it is fucked up :(
[15:25] <Jeniczek> http://bbs.archlinux.org/viewtopic.php?id=84953
[15:25] <RoyK> Jeniczek: bad hardware?
[15:25] <Jeniczek> https://bugs.launchpad.net/ubuntu/+bug/442443
[15:25] <Jeniczek> and so on and so on
[15:25] <incorrect> RoyK, just file corruption
[15:26] <RoyK> incorrect: that's quite bad
[15:26] <Jeniczek> well, its a 1200Euros PCIE card
[15:26] <Jeniczek> and I havent got any issues on ext3 afaik
[15:26] <RoyK> incorrect: I was using xfs a lot earlier, never seen anything like corruption, though
[15:26] <incorrect> let me see iotop doesn't show that for me
[15:26] <Jeniczek> and as I can see a lot of ppl around having that problem
[15:26] <RoyK> Jeniczek: how much data is on that?
[15:26] <Jeniczek> so its definately on my side
[15:27] <incorrect> my ext4 system is fine
[15:27] <ivoks> Jeniczek: upgrade from ext3 to ext4?
[15:27] <Jeniczek> RoyK 3 RAIDs, 1 74gig RAID1, 1 2.3TB RAID5 and 1 3TB RAID5
[15:27] <Jeniczek> no
[15:27] <Jeniczek> clean install
[15:27] <RoyK> if you can handle the downtime, downgrade to ext3, that works
[15:27] <incorrect> my 15tb array doesn't have problems on ext4
[15:27] <RoyK> but moving 5TB+ will take some time
[15:28] <Jeniczek> well I dunno how to downgrade to ext3 from ext4 workin system
[15:28]  * RoyK uses zfs for storage
[15:28] <Jeniczek> the RAID is now almost empty
[15:28] <Jeniczek> am now fillin it up
[15:28] <RoyK> you can't downgrade, only mkfs
[15:28] <Jeniczek> so if it really is ext4 issue, than now is the rigt time to do it
[15:28] <Jeniczek> hm
[15:28] <RoyK> what will ext4 help?
[15:28] <RoyK> over ext3?
[15:29] <RoyK> ext3 is pretty rock stable
[15:29] <Jeniczek> dunno, ext4 was the default
[15:29] <Jeniczek> so i chose it
[15:29] <RoyK> I'd say recreate the filesystems
[15:29] <RoyK> move the data
[15:29] <RoyK> wait for someone to fix the bugs
[15:29] <incorrect> other way round
[15:29] <incorrect> move data then recreate fs;)
[15:30] <Jeniczek> can you help me with the recreate command?
[15:30] <RoyK> obviously, yes
[15:30] <Jeniczek> am in a biiig hurry, I got one hour :(
[15:30] <ivoks> mkfs.ext3 :D
[15:30] <RoyK> Jeniczek: move the data to somewhere, mkfs -t ext3 on the now unused fs, move the data back, etc
[15:30] <Jeniczek> well, ill man mkfs then
[15:30] <ivoks> i still don't understand what's the problem
[15:30] <incorrect> rsync localfile/* remotehost:/somewhere/
[15:30] <RoyK> ivoks: bad i/o performance
[15:30] <ivoks> the fact that kernel is flushing data to disk?
[15:30] <incorrect> mkfs.ext3 /dev/something or other
[15:31] <incorrect> rsync remotehost:/somewhere/ localfile/*
[15:31] <incorrect> oh wait i forgot to unmount and mount
[15:31] <RoyK> rsync -a
[15:31] <Jeniczek> the problem is, than right now am unzipping the 100GIG archive, and every 5 to 10 seconds a kjournald2 and pdflush stops the whole unzip process, does somethin, and then it keeps goin
[15:31] <ivoks> yeah, it's flushing data to the disk :)
[15:31] <RoyK> Jeniczek: are any of those filesystems empty?
[15:32] <Jeniczek> nope
[15:32] <Jeniczek> but not full so much
[15:32] <Jeniczek> the mail raid5 is almost empty
[15:32] <Jeniczek> am now setting it up
[15:32] <RoyK> Jeniczek: then move the data around to empty one
[15:32] <RoyK> then recreate an ext3 fs on that
[15:32] <RoyK> then check if you see the same behaviour on ext3
[15:32] <Jeniczek> /dev/sdc1 1.4T 215G 1.1T 17% /var/mail
[15:32] <Jeniczek> /dev/sdd1 2.7T 48G 2.6T 2% /var/storage
[15:32] <ivoks> but it would still need to flush data to the disk
[15:32] <RoyK> if you do, it's not an ext4 problem
[15:33] <ivoks> otherwise, there wouldn't be anything on the disk :)
[15:33] <RoyK> just move the storage over to mail
[15:33] <ivoks> ext3 does it every 3 seconds
[15:33] <Jeniczek> well, i need to move the mail to the storage
[15:33] <ivoks> ext4 every 5 or 10
[15:33] <Jeniczek> ivoks so what do you think that causes this problem?
[15:33] <RoyK> Jeniczek: there's more than four times as much on mail as there is on storage
[15:33] <ivoks> these aren't problems
[15:34] <ivoks> that's how systems work
[15:34] <ivoks> pile up data in memory
[15:34] <ivoks> and then flush it onto disk
[15:34] <Jeniczek> so why is it so slow?
[15:34] <RoyK> what sort of drives?
[15:34] <RoyK> how many?
[15:34] <ivoks> cache on your raid card?
[15:34] <RoyK> hardware or software raid?
[15:34] <Jeniczek> hardware
[15:34] <ivoks> did you enable cache on it?
[15:34] <Jeniczek> 256MB, BBU included, 3ware 9650
[15:35] <Jeniczek> 12Ports
[15:35] <ivoks> there's tw_cli utility
[15:35] <RoyK> is the write cache enabled?
[15:35] <ivoks> download it and enable write cache
[15:35] <Jeniczek> how can I found it out?
[15:35] <ivoks> tw_cli
[15:35] <RoyK> either with tw_cli or rebooting into 3wares bios
[15:35] <incorrect> oh god not a 3ware
[15:35] <Jeniczek> I have installed the 3ware utlilty which set ups some kind of web server and allow me to connect to a WEb based gui to control those raids
[15:35] <RoyK> what's wrong with 3ware?
[15:35] <incorrect> i found my 3ware controller was slower than software raid5
[15:35] <RoyK> I've used 3ware for years - works well
[15:35] <ivoks> Jeniczek: you can use that too
[15:36] <ivoks> 3ware rulez
[15:36] <ivoks> xfs too
[15:36] <RoyK> incorrect: software raid usually beats it all
[15:36] <ivoks> xfs on 3ware = success :)
[15:36] <Jeniczek> what i have heard, 3ware is a good raid card
[15:36] <RoyK> it is
[15:36] <Jeniczek> okey
[15:36] <incorrect> not in my experience
[15:36] <Jeniczek> so what should I do now?
[15:36] <Jeniczek> about the cache
[15:36] <incorrect> my PERC6's blew the 3wares away
[15:36] <Jeniczek> fuck dell :P
[15:36] <RoyK> if you can reboot the box, do so, hit alt+3 during boot
[15:37] <RoyK> check if write cache is enabled
[15:37] <RoyK> it normally is
[15:37] <Jeniczek> RoyK I can reboot it, but am not in the same city the box is atm, and i dont have a KVM
[15:37] <Jeniczek> so I can get into Alt 3
[15:37] <RoyK> ok
[15:37] <ivoks> Jeniczek: you said you installed web utility?
[15:37] <Jeniczek> but I can get to the web based thing
[15:37] <RoyK> then you need tw_cli
[15:37] <knutmithut> anyone has an idea, why nfsv4 maps users to nobody on the client?
[15:37] <incorrect> i benchmarked dell, hp, supermicro
[15:37] <ivoks> Jeniczek: then use it
[15:38] <Jeniczek> well, ill try to dig fro some cache thing in there now
[15:38] <incorrect> out of all the servers dell came top other than for disk, but that was because hp put nearline sas drives in
[15:38] <ivoks> JanC: there's controler settings in management
[15:39] <incorrect> i put the near line sas drives in the dell and it blew the hp away
[15:39] <ivoks> bah
[15:39] <ivoks> Jeniczek: ^^
[15:39] <ivoks> Jeniczek: you'll see Unit Write Cache setting
[15:40] <Jeniczek> okey, mmt
[15:43] <Jeniczek> hm
[15:43] <Jeniczek> it seems its enabled :(
[15:44] <Jeniczek> ivoks http://i40.tinypic.com/2d2a9eg.jpg
[15:44] <ivoks> is logic disk builded or still building?
[15:44] <Jeniczek> is this it?
[15:44] <ivoks> Jeniczek: protection?
[15:44] <Jeniczek> I dunno, thats the system disk
[15:44] <Jeniczek> or the system raid
[15:44] <ivoks> you are copying to raid1 or raid5?
[15:44] <Jeniczek> raid5
[15:45] <Jeniczek> i have copied the 100gig archive to the MAIL RAID5 array
[15:45] <ivoks> ok, give me screenshot of 'summary'
[15:45] <Jeniczek> and now am unzipping it there
[15:45] <ivoks> doh
[15:45] <ivoks> you are unzipiing 100gb zip of mails?
[15:45] <Jeniczek> it consists of 264345 mails
[15:45] <ivoks> that will take some time :)
[15:45] <Jeniczek> yupp
[15:45] <ivoks> cause that's mostly text
[15:46] <Jeniczek> well, but I see that it unzipps cca 65MB/s and then i can see in iostat, that it does nothin just pdflush and kjournald
[15:46] <ivoks> so the zip ratio is very high
[15:46] <ivoks> pdflush is writing data to disk
[15:46] <ivoks> that's what it does
[15:46] <RoyK> knutmithut: what sort of server?
[15:47] <Jeniczek> http://i39.tinypic.com/s2zgid.jpg
[15:47] <Jeniczek> here you go
[15:47] <ivoks> Jeniczek: click on '2'
[15:47] <knutmithut> ldap kerberos nfsv4
[15:47] <ivoks> and then do a screenshot
[15:47] <incorrect> how much diskspace does the multiverse take?
[15:47] <knutmithut> and ubuntu 9.04 ;)
[15:47] <RoyK> knutmithut: both client and server?
[15:48] <knutmithut> now, current client is 9.10, later will be 10.04
[15:48] <Jeniczek> http://i39.tinypic.com/2udxoxk.jpg
[15:48] <ivoks> Jeniczek: you might try disabling 'Queuing' in controller settings
[15:48] <RoyK> knutmithut: I've seen mapping to nobody when trying without krb from a linux client (solaris server)
[15:48] <ivoks> never the less, unzipping 100gb of mail is a slow process
[15:48] <knutmithut> but client uses kerberos also
[15:48] <ivoks> couse you are unzipping lots of small files
[15:49] <ivoks> not one big
[15:49] <Jeniczek> yupp
[15:49] <gkahla> is hald enabled on ubuntu server? I need automount of USB drives...
[15:49] <Jeniczek> but some of the are big as well
[15:49] <ivoks> and most of those are just text
[15:49] <Jeniczek> yupp
[15:49] <ivoks> that won't utilize your i/o to the maximum
[15:49] <ivoks> check out how your CPU is holding :)
[15:50] <RoyK> knutmithut: check the krb things - perhaps something wrong in there
[15:50] <ivoks> if you are getting 60MB/s in average, that's actually quite good, considering everything :D
[15:50] <Jeniczek> well, the cpu is a weak component on the server, our company things, that IT is the last thing to spent moeny for, so am tryin to do my best... event the cars is from ebay ;)
[15:50] <ivoks> try copying that archive to different name
[15:50] <Jeniczek> the cpu is opteron 248
[15:50] <ivoks> and then watch how fast it writes
[15:51] <Jeniczek> well now its still uznipping
[15:51] <knutmithut> RoyK: thanks, i will
[15:51] <Jeniczek> id rather keep this
[15:51] <ivoks> Jeniczek: let it unzip
[15:51] <Jeniczek> i need to turn the mailserver on asap
[15:51] <ivoks> Jeniczek: just do 'cp archive.zip someothername.zip'
[15:51] <ivoks> Jeniczek: and what how fast does it writes
[15:51] <Jeniczek> yeah I understand what you mean
[15:51] <ivoks> just for 10 seconds
[15:51] <Jeniczek> well
[15:51] <Jeniczek> the unzipping is done ;)
[15:52] <Jeniczek> ok lets try it
[15:52] <Jeniczek> hm
[15:52] <Jeniczek> occasionaly 170MB/s
[15:53] <Jeniczek> but then i see another waits for pdflush and so
[15:53] <ivoks> yep... raid5
[15:53] <ivoks> man
[15:53] <ivoks> i told you
[15:53] <ivoks> pdflush writes data
[15:53] <ivoks> of course you wait for it
[15:53] <Jeniczek> hm
[15:53] <ivoks> you can't read data that's not there
[15:53] <Jeniczek> so everythin is ok?
[15:53] <ivoks> yes
[15:54] <Jeniczek> well, when the pdflush is not active, the speeds hops after a second from 34MB/S to 160 to 180 MB/S
[15:54] <ivoks> what kind of disks are there?
[15:54] <Jeniczek> then keeps at 180MBs and then after 3s falls back
[15:54] <Jeniczek> WD Black
[15:54] <Jeniczek> 1TBs
[15:54] <ivoks> Jeniczek: correct, cause then you are copying to the buffer
[15:54] <ivoks> when pdflush flushes data, you are doing intensive process on the memory
[15:54] <ivoks> so it's slower
[15:54] <Jeniczek> the mail array consists of 4 500GBs WD Blacks
[15:55] <Jeniczek> the storage array consists of 4 1TBs WD Blacks
[15:55] <ivoks> that's sata, right?
[15:55] <Jeniczek> yupp
[15:55] <Jeniczek> 7.2kRPM
[15:55] <ivoks> that's maximum
[15:55] <ivoks> i get 220MB/s on my laptop
[15:55] <ivoks> :)
[15:55] <ivoks> but that's SSD :D
[15:55] <Jeniczek> well, but RAID5 should do a lot more I thing
[15:55] <Jeniczek> especially with BBU and 356MB cache
[15:56] <Jeniczek> 2
[15:56] <ivoks> 256 isn't a lot
[15:56] <ivoks> and that's why you get 170MB/s
[15:56] <ivoks> when you are filling that cache :)
[15:56] <knutmithut> RoyK: seems like it was a problem with libnss-ldap or libpam-ldap.. it's still mapped to nobody, but my user now can access the folder
[15:56] <Jeniczek> hmm
[15:56] <ivoks> anyway, i have to go now
[15:56] <Jeniczek> well, I have to give you a HUGE thanks!
[15:56] <Jeniczek> now am gonna set it up when i know that its ok
[15:57] <ivoks> run hdpart -tT /dev/...
[15:57] <ivoks> hdparm
[15:57] <Jeniczek> wont it destroy any data?
[15:57] <ivoks> 9650, right?
[15:57] <Jeniczek> 9550SX
[15:57] <ivoks> hdparm -tT is testing
[15:57] <ivoks> 9550?!
[15:57] <ivoks> that's slow, dude :D
[15:57] <Jeniczek> well, thats the best for 133Mhz
[15:57] <Jeniczek> our board doesnt have PCI-X
[15:58] <Jeniczek> you know what I mean
[15:58] <ivoks> run hdparm -tT /dev/sda or whatever
[15:58] <ivoks> sdb
[15:58] <Jeniczek> in progress
[15:58] <Jeniczek> /dev/sdb:
[15:58] <Jeniczek> Timing cached reads: 1834 MB in 2.00 seconds = 917.60 MB/sec
[15:58] <Jeniczek> Timing buffered disk reads: 132 MB in 3.04 seconds = 43.40 MB/sec
[15:59] <ivoks> that's slow
[15:59] <ivoks> very slow
[15:59] <ivoks> and this has nothing to do with filesystem
[15:59] <ivoks>  Timing buffered disk reads:  302 MB in  3.00 seconds = 100.54 MB/sec
[16:00] <ivoks> this is on my 9650
[16:00] <Jeniczek> hm
[16:01] <RoyK> ivoks: what block size?
[16:01] <RoyK> on the raid controller
[16:01] <ivoks> no time
[16:01] <ivoks> take care
[16:02] <Jeniczek> so does it mean that its bad for mail server?
[16:02] <Jeniczek> on my previous we had much more worse raid card it it was fine
[16:02] <Jeniczek> am confused a bit right now
[16:05] <RoyK> it means your raid is slow
[16:05] <f1yback> dell cerc 6 channel sata?
[16:05] <f1yback> aka adaptec 2410sa?
[16:05]  * f1yback ducks
[16:06] <Jeniczek> well, I dont get why is it slow
[16:06] <Jeniczek> it cost a lot
[16:06] <Jeniczek> with the BBU
[16:09] <f1yback> what raid mode
[16:11] <Jeniczek> 5
[16:12] <f1yback> that's why
[16:12] <f1yback> how many disks
[16:12] <Jeniczek> 4
[16:12] <f1yback> ugh
[16:12] <f1yback> switch to raid 10
[16:12] <f1yback> you will only have about 50% of your disks as storage
[16:13] <f1yback> but much better performance
[16:13] <Jeniczek> but am planning 6 in a week or two
[16:13] <Jeniczek> 6 disks I mean
[16:13] <Jeniczek> not RAID 6 ;)
[16:13] <f1yback> i'd still go raid 10
[16:13] <f1yback> 5 has health write penalties and random i/o penalties
[16:13] <f1yback> health/heavy
[16:16] <Jeniczek> hmmm
[16:18] <bG303> hello and err help!  got a box that refuses to startup, last message is that mountall cannot mount an nfs volume (nfs isnt there so not suprissing) how can i find out what is going on? how can i get a shell so i can fix this? (sorry first linux box for years and struggling to find out how to diag boot issues)
[16:18] <Jeniczek> well, it seems the server is runnin
[16:23] <f1yback> bG303,
[16:23] <f1yback> raid?
[16:23] <bG303> yea, md0
[16:23] <f1yback> oh good
[16:23] <f1yback> sata? ide? scsi?
[16:23] <bG303> sata
[16:23] <f1yback> ok first thing I would do is burn a system rescue cd
[16:23] <f1yback> and check the drives smart tables
[16:24] <RoyK> f1yback: that's bullshit - he should be getting better performance with that
[16:24] <f1yback> if the reallocated counts are higher than threshhold or there's pending
[16:24] <RoyK> Jeniczek: what block size are you using?
[16:24] <f1yback> or you see UNC or ATMF or TZNF
[16:24] <RoyK> on the raid controller
[16:24] <f1yback> the hd is CANUCKED
[16:24] <f1yback> RoyK, sorry it's true
[16:24] <f1yback> raid 5 is a hog
[16:24] <bG303> ok cant see that being the case as its booting.  i.e. its booting from md0
[16:24] <bG303> i think something is blocking
[16:25] <f1yback> yes you can
[16:25] <bG303> but thanks and i'll start there
[16:25] <f1yback> it's a sw thing
[16:25] <RoyK> f1yback: I've been using raid5 on several controllers and it gives good performance
[16:25] <f1yback> smartctl -a /dev/sda etc
[16:25] <f1yback> RoyK, depends on the load
[16:25] <RoyK> f1yback: don't spread too much fud
[16:25] <f1yback> for basic storage stuff it's fine
[16:25] <f1yback> dude
[16:25] <RoyK> his load is pretty basic
[16:25] <f1yback> WE FOUND OUT THE HARD WAY AT WORK
[16:25] <f1yback> ok
[16:25] <f1yback> I don't spread fud
[16:25] <f1yback> and I threaten to kill people who fuck with people asking for help
[16:25] <f1yback> know that about me
[16:26] <RoyK> how nice of you
[16:27] <bG303> where do i get a system rescue disc from ?
[16:27] <RoyK> the install cd works for taht
[16:27] <RoyK> that
[16:27] <bG303> ok coolio, thankw
[16:27] <f1yback> yeah the install cd isn't bad
[16:27] <f1yback> but sysres has more stuff
[16:27] <f1yback> but up to you
[16:27] <bG303> mother fucker, samba is up, the box is running, ssh is missing and the no gdm
[16:27] <bG303> this is fucked up.
[16:27] <RoyK> if you know linux a little, the install cd suffices quite well
[16:28] <RoyK> bG303: just boot into single
[16:28] <f1yback> I been using linux since 96 bro
[16:28] <f1yback> I used to walk newbies thru kernel compiles etc :P
[16:28] <RoyK> 94
[16:28] <Jeniczek> f1yback well, correct me if am wrong, but I cant turn RAID 5 into RAID 10 without data loss, right?
[16:28] <f1yback> systemrescuecd still is better suited for any data recovery etc
[16:28] <f1yback> actually some controllers can convert it
[16:28] <f1yback> as long as you don't exceed the space shrink but you have to shrink your filesystem first
[16:28] <Jeniczek> hmm, ill investigate mor, but cant see that option in there
[16:28] <Jeniczek> yeah, thats what i understand
[16:29] <bG303> RoyK, its actually better as a bunch of Isos are on that volume, saves downloading them, just confused about what its bitching about.  Normally admin solaris and *bsd, this linux malarky screws with my head (quite like the performance those) :)
[16:29] <Jeniczek> but its 20% full of data, so that wont be the case
[16:29] <RoyK> bG303: just select recovery mode in the boot menu
[16:29] <bG303> RoyK, doesnt do anything, cant get a shell on the server or any sort of login
[16:29] <RoyK> it doesn't boot?
[16:29] <bG303> well it does but hangs
[16:30] <RoyK> you said some stuff was running
[16:30] <bG303> it gets passed networking obviously and is bringing up some services
[16:30] <RoyK> how do you know?
[16:30] <bG303> cus i can access them across the network
[16:30] <f1yback> btw
[16:30] <RoyK> did you try to boot into single user mode?
[16:30] <f1yback> DON'T USE FSCK IF YOU HAVE A DYING DISK
[16:30] <f1yback> :P
[16:30]  * RoyK takes f1yback's coke
[16:30] <bG303> RoyK, no idea how to do that with grub
[16:31] <f1yback> no dude I am serious
[16:31] <f1yback> I have done like 20 or so hard drive data recoveries
[16:31] <RoyK> bG303: just press escape, choose recovery mode
[16:31] <f1yback> it's best to use a tool like ddrescue etc and clone all the sectors to another disk or file
[16:32] <bG303> RoyK, i tried that, didnt work, got the same console with the error, tried alt+<num> and got nothing but blank screens, the debug??? screen and a rolling ubuntu graphic on the X psuedo
[16:32] <bG303> but samba is up ?!?!? responds to pings ?!?? odd ness.
[16:32]  * f1yback goes back to building his ubuntu server vm buildhost
[16:32] <RoyK> samba shouldn't start if you start in single
[16:33] <RoyK> X neither
[16:33] <bG303> no this was a punt let it boot, see what happens
[16:33] <bG303> i cant get a shell at all RoyK,
[16:33] <RoyK> did you choose single?
[16:33] <bG303> recovery gives the same
[16:33] <RoyK> what error?
[16:33] <bG303> no login prompt
[16:33] <bG303> no errors, thats the problem
[16:33] <RoyK> recovery/single should start in plaintext
[16:34] <bG303> last think i saw is an error on pts7 with mountall cant mount an nfs volume
[16:34] <Jeniczek> hm, is there a service that allows me to send a mail with a harmless virus in it so I can test if the antivirus plugin on the mailserver works?
[16:34] <bG303> s/think/thing
[16:34] <RoyK> bG303: nfs mounts aren't mounted in single
[16:34] <bG303> RoyK, there are in my config hahah ;)
[16:34] <RoyK> bG303: enter grub, edit the kernel line, add "single", boot
[16:34] <RoyK> bG303: not in single
[16:34] <bG303> RoyK, sound, brb :)
[16:34] <RoyK> unless you've fucked up badly
[16:35] <RoyK> remove splash and so on
[16:35] <RoyK> doesn't help much for debugging
[16:38] <bG303> ok grub, 'e', got some insmod etc, guessing i add that to the vmlinuz line ?
[16:39] <bG303> heh getting memoris yadraskil on a 486 here ho ho
[16:39] <bG303> ok must have got that wrong as its still booting nfs etc
[16:43] <bG303> ok 10.4 is fucked.  Definely booted single then but it still fires X
[16:45] <bG303> cock this, off for food, i'll try fix this later or rm the whole thing and do something else.
[16:45] <bG303> my life is too short for toy OS's
[16:46] <ziesemer_> !language | bG303
[16:47] <RoyK> excuse me, ziesemer_, but what is this bitching about language?
[16:49] <bc> can someone tell me where on the ubuntu site the support timelines are for the various versions? E.g. when does support for 9.04 end?
[16:49] <jpds> !releases | bc
[16:50] <bc> jpds: thank you. I tried every seach keyword BUT releases heh jesus
[16:51] <jpds> bc: I tend to look at https://wiki.ubuntu.com/Releases myself.
[17:00] <bc> do-release-upgrade should probaly have a manpage, shouldn't it, even though it wouldn't have much substance? Having it show up in `man -k upgrade` would be helpful.
[17:07] <RoyK> bc: it's a lot more convenient if people can tell you to RTFM without there being an FM :þ
[17:09] <bc> RoyK: :D
[17:53] <imjustmatthew> Does anyone know if the lucid server CD runs serial console when you first boot with it? I'm not getting a serial console, but it might be a hardware problem.
[17:58] <RoyK> imjustmatthew: try console=/dev/ttyS0 on the kernel line
[17:59] <imjustmatthew> RoyK: you're saying I need to edit the ISO to change the boot options?
[18:00] <RoyK> what sort of computer is this?
[18:00] <imjustmatthew> an ALIX from PC Engines
[18:01] <RoyK> cpu?
[18:01] <imjustmatthew> Geode LX800
[18:01] <RoyK> doesn't it have a video card?
[18:01] <imjustmatthew> nope, only serial
[18:02] <RoyK> my best guess is to create a boot usb thing and edit grub there
[18:02] <imjustmatthew> okay, I'll give it a shot, thanks.
[18:03] <RoyK> given it can boot from usb, that is
[18:04] <imjustmatthew> yes it can, it's actually a usb cd-rom drive
[18:05] <imjustmatthew> that I'm booting with now
[18:06] <RoyK> imjustmatthew: changing a boot cd is a bit of a hassle, but changing a usb stick is easy
[18:20] <f1yback> imjustmatthew, why not setup serial console to it
[18:21] <imjustmatthew> flyback: that's actually what I want to do. am I going about it the wrong way?
[18:21] <f1yback> ok
[18:21] <f1yback> on the kernel command line
[18:21] <f1yback> do you know what serial port is it
[18:21] <f1yback> I assume com1 if it's the only one
[18:21] <imjustmatthew> COM1
[18:21] <f1yback> it's
[18:21] <f1yback> console=ttyS0,speed
[18:21] <f1yback> console=ttyS0,9600
[18:21] <f1yback> console=ttyS0,38400
[18:21] <f1yback> etc
[18:22] <f1yback> I dunno if the installer will work though in text mode
[18:22] <f1yback> well you need to force the text mode installer
[18:22] <f1yback> oh you are
[18:22] <f1yback> sorry forgot where I am
[18:23] <imjustmatthew> yes, and I'm dumping it to a USB stick to modify the boot parameter and do the install, unless you have an easier way, which would be awesome
[18:23] <f1yback> nope that's how I do it
[18:30] <MTecknology> How can I figure what's causing this and fix it?  WARNING: /etc/ssh/moduli does not exist, using fixed modulus
[18:32] <penguin42> MTecknology: It's a file that's part of the openssh-client package - it should be there
[18:33] <penguin42> MTecknology: Uninstalling openssh-client and reinstalling it should fix it
[18:33] <MTecknology> penguin42: it is there..
[18:34] <RoyK> floown: how do you go to the kernel command line without a console?
[18:34] <MTecknology> err.... wrong system
[18:36] <MTecknology> penguin42: I ran aptitude reinstall openssh-client and it's still not back..
[18:37] <penguin42> MTecknology: Is the file actually there?
[18:38] <MTecknology> nnope
[18:38] <penguin42> I'd uninstall the package and then reinstall it
[18:39] <MTecknology> I can't without removing openssh-server though - and that would kill my connection :P
[18:41] <penguin42> MTecknology: According to man moduli(5) you can regenerate one with ssh-ketgen -G and then -T  never done it though
[18:41] <MTecknology> penguin42: thanks
[18:44] <incorrect> apt-mirror wtf! can't beat downloading locally
[18:45] <incorrect> ftw :D
[18:45] <celeborn999> looking for help on ufw, for some reason i think ufw is mysteriously blocking incoming SMTP traffic despite a rule allowing it
[18:58] <celeborn999> nmap isn't seeing smtp on 25, nor can i netcat to the server on 25, even though i have a rule that says "25/tcp ALLOW IN    Anywhere". when ufw is off it says "25/tcp  filtered smtp". am I doing it wrong?
[18:59] <celeborn999> (it says = nmap reports)
[19:00] <SpamapS> celeborn999: iptables -L -n -v   .. you should see counts go up wherever your SMTP packets are hitting
[19:02] <celeborn999> with or without ufw enabled?
[19:03] <celeborn999> and right now i'm not mailing anything, just trying to verify a connection with netcat or telnet
[19:03] <RoyK> with
[19:03] <celeborn999> so it's not smtp traffic
[19:03] <RoyK> iptables -Lvn won't show much unless the rules aren't there
[19:06] <celeborn999> i'm not sure what i'm looking for...i think i see the line in iptables reflecting the ufw tcp 25 rule. packet count is 0
[19:08] <celeborn999> do the iptables rules logically go from top to bottom?
[19:09] <celeborn999> btw i was able to successfully enable an allow rule for ssh, or at least, i can ssh into the server while ufw is supposedly working
[19:10] <foxbuntu> celeborn999, yes, rules are applied top down
[19:14] <celeborn999> man, i'm just not seeing the answer here
[19:14] <celeborn999> my ssh and my smtp rules look identical but one works and the other doesn't
[19:14] <foxbuntu> celeborn999, pastebin the whole conf
[19:16] <celeborn999> which file, specifically? i'm working with ufw through the command line e.g. sudo ufw whatever whatever. do you want the output of ufw status verbose?
[19:18] <foxbuntu> celeborn999, ufw status numbered | pastebinit
[19:20] <celeborn999> http://pastebin.com/Sj4RjcWf
[19:20] <celeborn999> i changed the rule from 25/tcp (which is the default for ufw allow smtp) to just 25 (ufw allow 25)
[19:21] <celeborn999> thinking, who knows, why not
[19:22] <foxbuntu> celeborn999, well ufw allow 25/tcp is more correct
[19:22] <foxbuntu> or ufw allow smtp
[19:22] <celeborn999> well, i might as well change it back then.
[19:22] <foxbuntu> celeborn999, yes
[19:23] <foxbuntu> celeborn999, also you can just type "sudo ufw allow ssh"
[19:23] <celeborn999> that's what i did for ssh
[19:23] <celeborn999> i did that originally for smtp too but it wasn't working, so i fiddled with it
[19:23] <foxbuntu> celeborn999, ok, are you sure sshd is running on the target machine then?
[19:23] <celeborn999> i'm sshing into it right now
[19:23] <celeborn999> it's remote
[19:24] <foxbuntu> celeborn999, then what is the problem?
[19:24] <celeborn999> nmap isn't seeing smtp on 25, nor can i netcat to the server on 25, even though i have a rule that says "25/tcp ALLOW IN    Anywhere". when ufw is off it says "25/tcp  filtered smtp".
[19:25] <celeborn999> this is nmap from my remote client. if i netcat from the server to port 25 on itself, it connects
[19:25] <foxbuntu> celeborn999, do you have anything listening on port 25?
[19:25] <celeborn999> postfix should be listening. when i netcat on the machine to itself and ehlo, it responds with mail messages
[19:26] <foxbuntu> ok
[19:26] <celeborn999> and when i disable ufw totally, as i mentioned, nmap will detect smtp
[19:26] <celeborn999> though nc still doesn't work even with ufw off. really not sure about that
[19:28] <celeborn999> netstat reports smtp listening
[19:31] <foxbuntu> celeborn999, can you "telnet remotehost.com 25"
[19:32] <celeborn999> no, it times out
[19:32] <foxbuntu> celeborn999, can you do it on the remote machine?
[19:33] <celeborn999> i don't have a telnet client there and don't want to install one but i can netcat to 25 from the remote machine to itself
[19:34] <foxbuntu> celeborn999, sounds to me like a postfix config issue not a ufw issue
[19:34] <celeborn999> how so?
[19:34] <foxbuntu> celeborn999, postfix has rules to bind to the local address
[19:34] <foxbuntu> celeborn999, or to accept mail from only x.x.x.x
[19:35] <foxbuntu> celeborn999, and by default its the loopback
[19:35] <celeborn999> it could be. i'm not a postfix expert. i followed the guide here https://help.ubuntu.com/10.04/serverguide/C/email-services.html as close as i could, it didn't mention anything about that
[19:35] <foxbuntu> your ufw rule appears correct
[19:36] <foxbuntu> celeborn999, yeah, Im no postfix expert myself and it took allot of trial/error to get mine working
[19:37] <foxbuntu> celeborn999, however, let me poke my cfg and see if I can find the correct section
[19:37] <celeborn999> this seems to be the key line sudo postconf -e "inet_interfaces = all"
[19:37] <foxbuntu> celeborn999, thats the main one i think
[19:39] <foxbuntu> celeborn999, smtp_bind_address =
[19:39] <foxbuntu> smtp_bind_address6 =
[19:40] <celeborn999> i don't have that one
[19:40] <foxbuntu> celeborn999, postconf -v | pastebinit
[19:40] <celeborn999> i don't want to pastebin my whole conf...what are we looking at specifically?
[19:41] <foxbuntu> celeborn999, not sure, like I said, Im no expert but looking at yours vs mine could provide insight
[19:41] <foxbuntu> celeborn999, I understand not wanting to post the whole thing...no biggy
[19:42] <celeborn999> thanks
[19:42] <foxbuntu> celeborn999, you could ask around in #postfix too
[19:43] <celeborn999> thanks again
[19:43] <foxbuntu> np
[20:06] <halvors> I get this: "SMTP<< 450 4.7.1 Client host rejected: cannot  find your reverse hostname error" from my postfix server, how to set reverse hostname in postfix
[20:07] <halvors> ??
[20:12] <mcas> halvors: that means, that postfix cannot resolve the hostname of your client
[20:18] <celeborn999> hey foxbuntu, it turns out the postfix problem was the port 25 block some ISPs do. i got around it
[20:19] <halvors> of the client?
[20:19] <celeborn999> yeah, blocking destination-port-25 traffic from my client behind a consumer ISP
[20:19] <celeborn999> totally lame
[20:20] <celeborn999> halvors btw this is for a problem i reported earlier, nothing to do with the problem you reported
[20:22] <halvors> but an other problem, th eepost client cant send email with my server, and i get nothing in the logs :(
[20:25] <axisys> is there a live upgrade like procedure for ubuntu to upgrade server with 100% fall back ?
[20:26] <penguin42> axisys: No, fall back isn't supported - you may be able to do it if you're running lvm mirrors and take a snapshot
[20:26] <axisys> liveupgrade in solaris allows to detach a mirror and upgrade the inactive disk and boot from it .. all in three to four commands.. and let you go back to original setup should a fall back is necessary
[20:27] <penguin42> axisys: Feel free to file a wishlist bug for it - it would be a good feature
[20:27] <penguin42> (and probably not that hard to do with a good lvm setup)
[20:27] <storrgie> I am user id 1000 on my laptop, and user 1001 owns a folder on my server that I am sharing via NFS.... is there a way to specify uid in my fstab on my laptop?
[20:28] <axisys> penguin42: with solaris 10 you can do it even with 1 disk .. you just take a zfs snapshot and then upgrade.. and roll back to snapshot within same disk if have enough space..
[20:28] <axisys> penguin42: i guess theoretically lvm can be done even with one disk
[20:29] <penguin42> axisys: Yeh you should be able to do the same on Linux with an LVM snapshot on the same disk - but that does assume you were using LVM and had spare space; and I doubt that the boot loader stuff is smart enough
[20:29] <axisys> penguin42: hmm
[20:29] <mcas> storrgie: i mean i read that you can map uids with nfs
[20:30] <penguin42> axisys: But it would be good to have it automagically set up by an ubuntu install so you could do that
[20:30] <axisys> at this age in technology that ougta be available.. just thinking out loud
[20:30] <axisys> penguin42: exactly!
[20:30] <storrgie> mcas: can i specify uid in the mount line as an option?
[20:30] <penguin42> axisys: So a wishlist is probably the right thing to do
[20:31] <axisys> penguin42: with todays technology no i dont want lvm would be the option .. not the other way around :-)
[20:31] <axisys> penguin42: where do I submit it ?
[20:31] <penguin42> axisys: from a command line run   ubuntu-bug  ubiquity   (ubiquity is the installer)
[20:32] <axisys> penguin42: in the meantime i am afraid to upgrade my ubuntu server jaunty to lucid (two upgrades)
[20:32] <axisys> penguin42: oh ok
[20:32] <penguin42> axisys: Still, it would be better to get an upgrade done!
[20:32] <mcas> storrgie: here is a good howto about it http://www.troubleshooters.com/linux/nfs.htm
[20:32] <axisys> penguin42: yeah.. but.. just in case.. :-(
[20:33] <storrgie> mcas: so... change my uid on the client
[20:34] <penguin42> axisys: Are you running md raid ?
[20:35] <axisys> penguin42: i think so.. forgot to how to check
[20:35] <penguin42> axisys: Well, would you know how to cope if one of the drives failed in your mirrored pair?
[20:36] <axisys> penguin42: i have the steps somewhere.. it did not get to the point yet ..
[20:36] <axisys> penguin42: only done it few million times in solaris..
[20:37] <penguin42> axisys: Well you see if you were comfortable with doing that I would have suggested a somewhat risky strategy - pull one of the drives and you have a fall back!
[20:37] <axisys> so in solaris i am expert.. but it is little different with linux.. i remember when i read it first time
[20:37] <axisys> penguin42: i gotcha
[20:37] <penguin42> yeh its one of these things that takes some time to get used to
[20:38] <axisys> penguin42: so wasnt there a command to show md status.. forgot it
[20:38] <penguin42> axisys: cat /proc/mdstat   will show it
[20:39] <axisys> pwnguin: nothing there.. checking few servers.
[20:39] <axisys> one server has this
[20:39] <axisys> /dev/mapper/nvidia_eeffhbef1
[20:39] <axisys> so thats dmraid i think.. no?
[20:39] <penguin42> ah dmraid that's not mdraid (duh obvious?!!!)
[20:40] <axisys> df -h / btw
[20:40] <penguin42> it's really dumb we have two similarly named things like that
[20:40] <axisys> lol
[20:40]  * penguin42 doesn't no dmraid, only mdraid
[20:40] <penguin42> kw
[20:40] <axisys> cat /proc/mdstat
[20:40] <axisys> Personalities :
[20:40] <axisys> unused devices: <none>
[20:41] <axisys> penguin42: found one
[20:42] <axisys> http://pastebin.com/AN8Uid5G
[20:42] <axisys> /dev/md1               71G  2.4G   65G   4% /
[20:42] <axisys> except that one is already lucid
[20:45] <penguin42> yeh that's a happy two drive mirror
[21:20]  * f1yback would like to find the people who invented CAPTCHA and inject them with a poison that will kill them in minutes if they don't get the anidote which is protected by a fucking CAPTCHA
[22:25] <dominicdinada> Does anybody know of a site with some downloadable Iptables examples that i could learn from ?
[22:26] <celeborn999> have you considered using UFW?
[22:29] <dominicdinada> i was working with ufw
[22:30] <dominicdinada> but i found a nice tool called firewall builder which lets me build firewalls and was giving a hand
[22:31] <celeborn999> ah ok, sorry no good iptables at hand, i only found out about ufw recently though and find it a lot easier than iptables
[22:32] <dominicdinada> celeborn999: I know with iptables you can lock everything down and well ufw might be to general.... ie sudo ufw allow samba   allows samba but doesnt specify what remoteaddress's
[22:33] <dominicdinada> ie sudo ufw allow dns      you get the hint you cant specific who to allow and who to close out...
[22:33] <celeborn999> according to man ufw it looks like you can specific destination and source ranges
[22:33] <dominicdinada> really?
[22:34] <celeborn999> looks like it. no personal experience though
[22:35] <dominicdinada> well the other problem with ufw is you cant deploy the rule sets either :/
[22:37] <celeborn999> once you set ufw rules, it looks like iptables gets updated. so you could -- i guess, i haven't done this -- use ufw to set things up and then use iptables to transfer
[22:39] <dominicdinada> that sounds quite redundant.... www.fwbuilder.org
[22:40] <dominicdinada> fw builder also configures pix fw's :P
[22:41] <dominicdinada> configure ufw rules > export > import to iptables > export for deployment > import to each machine
[22:41] <penguin42> heck fwbuilder looks pretty neat
[22:41] <celeborn999> the ufw process is kind of a mess
[22:42] <celeborn999> thinking about it
[22:43] <dominicdinada> you can export your iptables-save and import it to workon .... in fwbuilder you can make each fw right in one file but configure each machines fw then deploy it...
[22:43] <dominicdinada> oh i missed a step once you import it the first time from ufw you have to configure the iptables :)
[22:58] <dominicdinada> !ufw
[23:11] <dominicdinada> celeborn999: still playing with fw builder
[23:12] <celeborn999> dominicdinada: any luck?
[23:13] <dominicdinada> well No i am looking at something else atm... pre configured  iptables exist i just gotta look more in depth...
[23:14] <celeborn999> i always found iptables to be obscenely complicated
[23:15] <dominicdinada> well ufw is a dummies front end but really fwbuilder is awesome you can build a fw for 1 or 100 machines right in the same file :P
[23:21] <ermo>  Upstart question - I see no services-admin in gnome-system-tools. If I want smbd to start on boot (into the default runlevel), should I use update-rc.d or is there another equivalent tool for upstart?
[23:21] <jpds> ermo: bug #94065
[23:24] <ermo> jpds: (not wishing to be a support vampire) If I want smbd to start on boot, should I use update-rc.d instead of the Upstart related service files? If both are present, which has the
[23:24] <ermo> 'highest priority'
[23:24] <ermo> I can't seem to find any clear documentation on help.ubuntu.com in the serverguide, nor on the upstart wiki. But maybe I'm looking in the wrong places?
[23:25] <jpds> ermo: Is smbd a shell script in /etc/init.d/ ?
[23:26] <ermo> there is both a SysV style init script (/etc/init.d/smbd) and an Upstart service script (/etc/init/smbd.conf), yes.
[23:27] <enav> ermo ubuntu server guide is too vague
[23:27] <ermo> enav: ... I cannot say that disagree. But then again, maybe I'm not in the target audience for that guide '^^
[23:27] <jpds> ermo: Ah, that's... interesting.
[23:28] <ermo> that *I disagree ..
[23:28] <diabolical_> what the hell is the problem i did sudo ufw enable...... reboot and it reverts to inactive upon reboot
[23:28] <jpds> diabolical_: /etc/ufw/ufw.conf has ENABLED=yes ?
[23:29] <ermo> jpds: Guess I need to do some more poking around for documentation. *sigh* - I hoped that someone here would have a quick answer <g>
[23:30] <diabolical_> prob not but why does it state that "diabolical@diabolical:~$ sudo ufw enable
[23:30] <diabolical_> Firewall is active and enabled on system startup
[23:30] <diabolical_> " then not change the file.... anyother broken thing
[23:30] <diabolical_> another*
[23:30] <diabolical_> ermo: what documentation are you looking for
[23:32] <ermo> how to autostart services on boot using Upstart, and which file takes precedence if there is both a sysV style init script (/etc/init.d/smbd) and an Upstart service configuration (/etc/init/smbd.conf)
[23:32]  * ermo has *zero* experience with upstart
[23:33] <diabolical_> ermo i used ebox and well it took care of it for me
[23:33] <diabolical_> !upstart
[23:33] <diabolical_> although i personally dont recommend using ebox it is way to buggy
[23:35] <ermo> Usage scenario: I have an 'always-on' PC which serves as both my internet PC and my SqueezeBox Server. I want to offer access to it via Samba and have samba start up on each boot.
[23:36] <diabolical_> ermo:  you sure want alot. I will see if i cant get what you need... didnt you install samba when you installed server?
[23:37] <ermo> diabolical_: I have it all installed and set up and working already. What I want is to have samba start automatically after reboots.
[23:38] <diabolical_> ermo: i thought it should... especially when bundled in with server :(
[23:38] <ermo> i.e. I already have samba, but it doesn't start automatically. And the 'services-admin' tool doesn't seem to be shipped with gnome-system-tools (which is maintained by a Ubuntu developer, btw.)
[23:39] <ermo> Hm. I need to exercise my APT-fu to get a listing of the files installed by gnome-system-tools ...
[23:39] <diabolical_> although gnome isnt shipped with server
[23:40] <ermo> Right. I'm in the server channel because I figured that a server channel would have users who knew how to turn on services at boot.
[23:40] <ermo> I actually have the desktop version of Ubuntu installed. But if that's unsupported or out-of-scope for this channel, I'll get my coat and be off :)
[23:40] <jpds> ermo: services-admin was removed because it didn't work with upstart jobs.
[23:41] <jpds> ermo: I would remove the init.d script wiht update-rc.d and then comment out the "start on" line in the init/ file.
[23:42] <ermo> jpds: Ah, so you suspect that the event that the /etc/init/smbd.conf listens for is never fired?
[23:42] <jpds> ermo: I understand from that bug report that that's the way to disable upstart jobs.
[23:44] <jpds> [Until a better disabling tool is created; which is a target for upstart 0.10 which will be in maverick.]
[23:45] <diabolical_> ermo: http://ubuntuforums.org/showthread.php?t=1235863
[23:46] <ermo> diabolical_: Thank you. That post implies that I should use Sys V init scripts to control the start up of smbd. I was under the impression the correct way to start services with 10.04 is to use Upstart.
[23:47] <ermo> (i.e. that post contradicts jpds' advice)
[23:48] <ermo> start on local-filesystems
[23:48] <ermo> stop on runlevel [!2345]
[23:49] <ermo> jpds: I would assume that the above to lines means that Upstart should start smbd after the event 'local-filesystems' is fired and that it should stop smbd in the event that the current runlevel is not 2|3|4|5 ?
[23:49] <jpds> ermo: I think so.
[23:49] <diabolical_> ermo:  funny i run samba, gnome etc and my samba starts fine every time i wonder what you changed
[23:50] <ermo> jpds: a simple grep reveals that /etc/init/mountall emits 'local-filesystems'
[23:50] <ermo> and that dbus, networking, network-manager and smbd+nmbd all listen for that event.
[23:50] <ermo> Verrry strange.
[23:51] <ermo> I'll delete the Sys V init script.
[23:51] <diabolical_> ermo you could just back up your smb.conf
[23:51] <diabolical_> and reinstall samba
[23:51] <diabolical_> why make things more difficult
[23:52] <ermo> diabolical_: Yes, I could. And I could also fiddle with the config files first and understand the root cause and *then* re-install. If re-installing doesn't fix it, I will know why and can file a (hopefully) useful bug reprt :)
[23:52] <ermo> report, even
[23:54]  * diabolical_ says in his best ermo impression *HELP* guys i deleted my mount points, cpufreq and fansettings from sys V now my computer wont boot
[23:54] <ermo> diabolical_: Uh, I fail to see how that has anything to do with my question.
[23:55] <ermo> I haven't *deleted* anything. And the suggestion that I delete the Sys V init script was jpds', not mine.
[23:55] <diabolical_> the answer to your question is you muffed the samba daemon
[23:55] <diabolical_> while you were prob tinkering
[23:56] <ermo> diabolical_: You are making assumptions that do not hold up to closer inspection. I installed the samba daemon. I have not 'tinkered' or deleted anything. Since I installed samba, it has not autostarted, although the Upstart service script implies that it should. I'm here trying to understand why.
[23:57] <ermo> diabolical_: thanks for offering your help, btw.
[23:57] <diabolical_> well i sent ya the link to get you pointed in the right direction
[23:58] <ermo> diabolical_: Yes. And I'm telling you that the link you sent me concernts Sys V init scripts from Ubuntu 9.04. In the mean time, Ubuntu has moved to Upstart as its preferred init system, making that post obsolete.
[23:58] <jpds> ermo: lrwxrwxrwx 1 root root 21 2010-05-15 23:58 /etc/init.d/smbd -> /lib/init/upstart-job*
[23:59] <jpds> smbdd.conf has trumps.
[23:59] <ermo> jpds: yeah, I noticed that. I had a look at the source and noticed that it said 'upstart-job' at the top.