/srv/irclogs.ubuntu.com/2007/11/26/#ubuntu-server.txt

Centaur5soren: Yeah, I installed a specific smartlink file from synaptic so I guess I don't know what I'm doing.  :)00:00
Centaur5soren: Would pppoe taking control of ppp0 have a conflict?00:00
sorenCentaur5: Depends on what you want to do with the modem. :)00:02
sorenCentaur5: Not all uses of modems involve ppp.00:02
Centaur5soren: I want to use hylafax so any machine can send a fax.  Any better method for doing this?00:02
sorenCentaur5: Not sure. I've used asterisk for it a few times.00:03
sorenCentaur5: But that's quite different.00:03
Centaur5I know this is going to be a newbie question but how to you find out if the modem is using /dev/ttyS0?00:04
sorenCentaur5: Just use /dev/modem00:05
sorenAw, crap, I need to go to bed.00:05
sorenTime flies when you're having fun.00:05
Centaur5soren: alright, thanks.  I'll try to figure it out.00:05
Centaur5or when you're arguing?00:05
sorenCentaur5: Arguing is fun.00:06
sorensometimes.00:06
sorenCentaur5: When it turns out to be not completely pointless, it's fine.00:06
Centaur5haha, if you're going to argue with the wife do it naked so you can make up promptly00:06
sorenand this time, I managed to convince someone that I was right (or so i think), so it's all good.00:07
sorenCentaur5: Good advice.00:07
soren:)00:07
Centaur5alright, g'night soren00:07
hatteryes, g'night soren00:08
soreng'night, everyone.00:08
ajmitchnight soren00:08
sorenOh, hi, ajmitch!00:08
sorenAnd good night.00:08
ajmitchhi :)00:08
soren:)00:08
* soren whisks off to bed.00:08
osmosisanyone know how I can enable putting the monitor in power saving mode during inactivity, rather then just blank screen?00:20
lamontnealmcb: ew.  smarthost/password... is that sasl-ish?00:27
lamontnealmcb: so what I need is a howto-do-sasl config00:27
nealmcblamont: I'm haven't looked at exactly what fastmail lis looking for, and maybe this is a less common use case than I was thinking, but it seems like it would be increasingly popular.00:33
nealmcblamont: the itch that started me down this path was wanting to run caff to sign keys from the uds-boston keysigning party.  but I didn't have email configured on my laptop, and I didn't have my pgp keys configured on the server I send mail from.  I thought while I was at it, it should be a smarthost setup to fastmail (a password-protected relay)  so it would work on the road without reconfiguration.  but maybe the number of smarthost installs t00:39
lamontah.00:41
lamontI just taught my postfix install that anyone with a cert signed by my CA is loved.00:42
nealmcband maybe it's silly to even be wanting to run postfix on the laptop since I usually read it over ssh via mutt to another machine.  but I'll probably be changing that.00:43
nealmcblamont: I don't run the smarthost - just the postfix on the laptop - so I don't set the policy...00:44
fujin_Anyone familiar with freeradius?00:44
fujin_I'm having some freaky issues trying to use 1.1.7-1 from debian unstable00:44
fujin_reeradius: relocation error: /usr/lib/freeradius/rlm_sqlippool-1.1.3.so: undefined symbol: sql_get_socket00:45
lamontnealmcb: once I have a good sasl-config writeup that doesn't break the other options, I plan to include it.00:50
lamontit's more a function of me not needing it :-(00:50
nealmcblamont: i.e. you want someone else to figure out how to fit that into the way ubuntu does sasl configs?  I'm certainly no expert there, but if I ever get the itch badly enough I may plunge in....00:52
lamontI don't care who does it... I just know it'll go faster if someone else does it...00:53
nealmcbin the meantime I'll send some patches to the doc to clarify that this is NOT what the current doc describes how to do....00:53
nealmcbre: who does it - that's what I thought - makes sense00:54
ScottKnealmcb: Did you get your smarthost problem solved?01:01
nealmcbScottK: nope01:02
ScottKnealmcb: What do you use for SASL?01:02
nealmcbnothing yet01:02
nealmcbI'm just using my cable smarthost for the time being01:02
nealmcbno password there01:02
ScottKIf you have "The Book of Postfix" it gives you a good how-to.01:02
lamontScottK: heh.  I might at that01:02
lamontnot sure where it's hiding though01:03
* lamont works on figuring out what got changed in gutsy(?) that broke pam/ldap for him01:04
ScottKUsing cyrus-sasl and sasl-db it wasn't that hard.01:05
ScottKAssuming you've set cyrus-sasl up once already.01:05
nealmcbLooking at my thunderbird config, I'm not even sure it uses sasl - it specifies "username and password" and "tls" but doesn't say sasl, though thunderbird may just be dealing with it under the covers....01:06
ScottKThat's SASL.01:07
lamontif it wants a user/pass, it's SASL01:10
nealmcbit's been too many years since I looked at that - so even plain text passwords are sasl - that makes sense....01:11
nealmcbso in the real world, how common are plain-text passwords that use tls for secrecy, vs no-tls, and some other crypto for just the passwords?01:13
lamontanyone here using ldap for user creds?01:15
* nealmcb resists the urge to !ask lamont (not)01:15
lamontnealmcb: well, the follow up is "WTF am I doing wrong?"01:16
lamontI had it working in feisty, and then y'all made it better in gutsy, and broke everything01:16
nealmcblamont: You'll have to be more specific :-)01:16
nealmcbperhaps the question is "will the last person to touch ldap step forward" :-)01:17
lamontldapsearch -LLL -x -D cn=admin,dc=mmjgroup,dc=com -W -H ldaps://ldap.mmjgroup.com -b dc=mmjgroup,dc=com 'uid=lamont'01:18
lamontthat works. finger lamont doesn't hit ldap01:18
lamontrather, if I use a diff user, which only exists in ldap, then 'no such user' although ldapsearch happily drops the entire entry above.01:18
zul'lo01:20
ScottKnealmcb: plain methods plus TLS are the most common I believe.  I suspect plain with no TLS is nearly if not more common.01:25
* lamont is reminded that he hates perl01:38
lamontfcntl64(3, F_SETFL, O_RDWR|O_NONBLOCK)  = 002:04
lamontconnect(3, {sa_family=AF_INET, sin_port=htons(389), sin_addr=inet_addr("192.168.35.41")}, 16) = -1 EINPROGRESS (Operation now in progress)02:04
lamontselect(1024, NULL, [3], NULL, {30, 0})  = 1 (out [3], left {30, 0})02:04
lamontgetpeername(3, 0xbfe35138, [128])       = -1 ENOTCONN (Transport endpoint is not connected)02:04
lamontmaybe it's not me...02:04
lamontI think there should be a "connect" call after the select, no?02:04
fujin_ITS YOUUUU02:05
fujin_no02:05
lamontheh.02:06
lamontso... why did getent use ldap, instead of ldaps.02:06
lamontfor the love of pete02:08
lamontdiff ldap.conf{.bad,}02:09
lamont2c202:09
lamont< uri ldaps://ldap.mmjgroup.com02:09
lamont---02:09
lamont> uri ldaps://ldap.mmjgroup.com/02:09
lamontit would really be nice if the docs actually said that a trailing slash is required.  Or, for the &*)(*^)( win, append a / when there isn't one.02:12
fujin_heh.02:13
fujin_have you got start_tls or whatever it is?02:14
fujin_tls start_tls02:14
fujin_ssl start_tls02:14
fujin_that's it02:14
fujin_ssl on/off/start_tls02:14
fujin_I gave up on tls/ssl02:14
* lamont floods a little.02:14
fujin_and just put all of my ldap authentication into a secure airgap network and put it plaintext02:14
lamontbase dc=mmjgroup,dc=com02:14
lamonturi ldaps://ldap.mmjgroup.com/02:14
lamontldap_version 302:14
lamontrootbinddn cn=admin,dc=mmjgroup,dc=com02:14
lamontnss_base_passwd ou=People,dc=mmjgroup,dc=com?one02:14
lamontnss_base_shadow ou=People,dc=mmjgroup,dc=com?one02:14
lamontnss_base_group  ou=Group,dc=mmjgroup,dc=com?one02:14
lamontTLS_CACERT /etc/ssl/certs/MMJ-2005-cacert.pem02:14
lamontTLS_REQCERT demand02:14
lamontuse_sasl no02:14
lamontrootuse_sasl no02:14
fujin_mm, looks fine02:15
lamontworks fine, except for gutsy (1) renaming all the files, and (2) changing to require that trailing slash02:15
fujin_awesome gutsyness02:15
fujin_I haven't even started testing it yet :\02:15
lamontoh, I expect that it's true in debian too02:15
wasabiOh geeze.02:15
wasabinss-ldapisms02:15
wasabishield my eyes!02:15
fujin_wasabi: nothing else can do what it does!02:15
lamontnss is love02:15
wasabiWinbind and Samba can02:15
wasabiBetter02:15
fujin_oh pfft02:15
lamontexcept for the sodomotron parts.02:16
wasabiI would not mind LDAP on Linux if nss-ldap and pam-ldap didn't suck so blatantly compared to alternatives.02:16
fujin_yeah, that's true02:26
fujin_they are pretty shit02:26
fujin_I wish my senior hadn't told me we had to use it02:26
fujin_so that I could use like, nss-mysql and pam-mysql02:27
fujin_or something, else.02:27
* lamont looks around for a pam.conf knowledgeable person to confirm that '... required pam_permit.so' is basically a no-op02:48
lamontwhereas '... sufficient pam_permit.so' is a "no more checking, just let'em in" directive02:48
fujin_should be sufficient pam_ldap.so02:50
fujin_required pam_permit.so02:50
lamontright02:52
lamontmy "sufficient" example above being totally wrong other than for explaining how stupid it is...02:53
* lamont calls the new home-config package sufficient.03:53
Centaur5is there a way to see a dhcp table of what addresses have been given out on Gutsy?04:30
hatterCentaur5, do you mean /var/lib/dhcpd.leases04:39
lamonthatter: /var/lib/dhcp3/dhcpd.leases04:39
lamonter, Centaur504:39
hatterya thats it04:39
Centaur5perfect, thanks04:39
_rubenbah .. i suffered from Bug #141601 last night .. not sure if i should be happy with the fact that it's a "known" issue :p07:40
ubotuLaunchpad bug 141601 in tasksel "tasksel packages stays at 100%" [Undecided,New] https://launchpad.net/bugs/14160107:40
soren_ruben: What does it mean that a package is at 100%?08:03
svschwartzhi all08:37
svschwartzgot question08:37
svschwartzdoes ubuntu-server use upstart or sysv ?08:38
svschwartzGutsy08:39
svschwartzhow can I figure this out?08:40
avatar_you've installed gutsy?08:40
avatar_dpkg -l |grep upstart08:40
svschwartzyes08:40
avatar_gutsy uses upstart08:40
svschwartzIs there any tool like sysv-rc-conf to manage startup sctipts ?08:41
svschwartzthere is upstart-compat-sysv package that says "compatibility for System-V-like init" so I gues sysv-rc-conf is ok08:44
svschwartzanybody here interested in creating drive images ? I've found good project - fork of partimage, it needs our help https://launchpad.net/partimage-ng08:47
_rubensoren: its indeed described a bit vague, but it means that the progress bar gets stuck at 100%09:05
soren_ruben: Aha.. Anything interesting in the process table?09:06
_rubenzombie process09:06
_rubencant reproduce atm since im at work and the issue was at home and wol aint working on that box :/09:07
_rubeni think it was some apt-* process that was in zombie state09:07
_rubenit was 1 or 2 lines below the whiptail process09:08
soren_ruben: The proces that is a zombie is not the problem.09:08
_ruben(never really understood the real concept of zombie procs)09:09
_rubenapart from getting rid of them can be quite tedious, except for this case, killing the tasksel proc kills all09:10
sorenIt's hardly ever tedious.09:12
sorenWhen a process terminates, it has an exit code.09:12
sorenUntil another proces has read this exit code (by issuing the wait() system call), the process can't be removed from the process table.09:13
sorenA process that has terminated, but has not been "reaped" (had its exit code read), is a zombie process.09:14
_rubenah, didnt know that09:14
sorenIf a process' parent process dies, the process is orphaned and adopted by init (pid 1).09:14
soreninit will always take care of calling wait() on terminated processes.09:14
sorenSo... Putting these two facts together, we get:09:15
sorenTo get rid of zombie processes, you need to focus on the parent.09:15
sorenGet the parent to bury its dying child process, or kill the parent so that init can take care of it for them.09:15
sorenA zombie process is harmless.09:15
sorenIt takes a spot in the process table, but all its memory and such has already been freed.09:16
sorenIt's cosmetic, really.09:16
_rubentrue .. tho the fact that tasksel is hanging (be it cause or result), is a bit of an issue ;)09:17
soren_ruben: Possibly. I'd need to see the process table when this happens.09:18
_rubenfigured as much09:18
_rubentrying to reproduce it on a vm here probably aint gonna work, since if it'd be 100% reproducable, there would probably be more comments, etc09:19
sorenyeah09:19
_rubenon the system i played with last night (dell c521) it was 100% reproducable (tried few times)09:20
_rubentho i cant think of anything fancy that could be causing this09:20
sorenDunno.09:31
=== ScottK2 is now known as ScottK
=== AnRkey_ is now known as AnRkey
AnRkeyhow can i get nmap to use a broadcast ip?14:13
AnRkeyit's driving me nuts cause google is not turning up much14:13
ivokswhy would you do that?14:13
sommerAnRkey: do you want to scan an entire subnet?14:19
sommerAnRkey: sudo nmap -sS 10.0.0.0/814:19
sommerfor example... if you are trying to scan a subnet anyway14:20
AnRkeyyeah but our cisco vlans are confed to block broadcasts14:23
AnRkeyso i need to spec a broadcast ip in the nmap command14:23
AnRkeyfor example when we use wakeonlan we do ... wakeonlap -i 172.16.10.255 -p 9 172.16.12.0/2414:24
AnRkeyso the wakeonlan broadcast for 12.0/24 goes through 10.25514:25
AnRkeyi can't see any option for broadcast ip's in nmap though...14:25
sommerAnRkey: mmmm... not sure, you might double check the man page if you haven't14:26
AnRkeyi have almost memorized the man page :D14:28
AnRkeythanks anyhow14:29
AnRkeyi will not let it win!!!14:31
ivokspeople do strange things with their networks :)14:38
sorenAnRkey: It wont' work anyway.14:40
sorenAnRkey: I can't imagine any system in its right mind will respond to requests sent to the broadcast address.14:41
ScottKlamont: Got a minute for an HPPA question?14:47
AnRkeygood point soren14:47
* AnRkey ponders his predicament...14:48
ScottKlamont: Nevermind.  Figured it out.  Sendmail isn't built yet.  Urgh.14:51
ScottKlamont: Are you planning on asking for give backs on Universe stuff that doesn't build for HPPA in Hardy because builds are out of sequence?14:52
lamontScottK: yeah.  at some point.14:52
lamontI figured I'd let it catch up, and then have someone do a mass give-back14:52
lamontsendmail should bump up?14:53
ScottKOK.  I won't worry about it then.14:53
lamontand what needs to be retried because of it?14:53
ScottKlamont: dkim-milter14:53
ScottKIt was looking for libmilter1, but HPPA doesn't have it yet because Sendmail 8.14 isn't built yet on HPPA.14:53
lamontsendmail at 900, dkim-milter at 35014:54
ScottKWhich means?14:54
lamontso it's _way_ down the pipe after sendnail14:54
lamontsendmail will build before anything else in universe, after all of main14:55
ScottKWell it already FTBFS once.14:55
lamontuniverse largely defaults to 355, so it'll come after a large chunk of universe14:55
lamontdkim-milter, taht is14:55
lamontsendmail ftbfs?14:55
ScottKNo, dkim-milter14:55
ScottKSendmail is not yet built.14:55
ScottKThe new one14:55
ScottK8.13 built, but not 8.14.14:56
lamontsendmail is next up, unless something from main hops in ahead of it.14:57
* lamont needs to go heads-down on a work thang today14:58
krautmoin15:17
Runithadhello, this is my first visit, I have 2 ubuntu servers hosting 10 domains :-)16:02
nealmcbRunithad: welcome!16:09
Runithadthx16:44
jaredthaneI need to build php5 with a certain configure options. How can I figure out which configure options the ubuntu php5 package has?16:54
sommerjaredthane: php --info from a terminal will tell you.16:59
sommeryou could also create an info.php file calling the phpinfo() function.16:59
=== dantalizing is now known as dantalizing|lunc
Gargoyleif I am using DRBD with heatbeat 2, do I still need outdate-peer in drbd.conf?17:14
kshahWhat is the preferred way for granting ftp access to a non home directory, for instance the apache web directory /var/www -R , using vsftpd17:35
somerville32Just give the account access to that directory17:36
somerville32Or even set it's home directory to /var/www if you want it to start there on login17:36
kshahset the users home directory17:37
kshah?17:37
kshahor chmod the user17:37
somerville32If you want them to start in /var/www when they login, set their home directory to that17:38
somerville32However, that doesn't give them permissions17:38
somerville32You need to change the permissions to do that17:38
kshahthx17:40
somerville32No problem.17:40
kshahi want to fully understand file permissions, so if /var/www is owned by user root and group root, to give my local user write permission there, i have to execute chmod with the +o option?18:00
somerville32kshah, no18:01
kshahoh no18:01
kshahhow does my local user relate to the groups?18:01
somerville32You would have to set the group for /var/www to something different18:02
somerville32And than add that user to that group18:02
somerville32and set the permissions for the group for that directory to what you want18:02
kshahokay that makes sense, but does that effect, say the daemons who need to read there, apache, or rails?18:05
somerville32It might if you don't do it correctly18:05
kshahI'm not following, as I understand the apache user is www-data, right?18:07
kshahbut unless they are in the 'root' group, how does their access work?18:07
somerville32What is the output of ls -l | grep www ?18:08
kshah75518:09
kshahfor /var/www and subs18:09
somerville32Who is the owner and group of /var/www18:10
kshahroot / root18:10
=== dantalizing|lunc is now known as dantalizing
kshahi just don't get what is the proper way to give my user permissions to the /var/www directory18:13
dantalizingkshah "sudo chown -R <username> /var/www" then "sudo chgrp -R www-data /var/www" will allow your user to "own" the files, and the web server to read them18:16
kshahdantalizing: and that won't interfere with rails or anything like that because Apache hands off the files to rails and then rails back to Apache?18:18
kshahokay, so now I 'own' the files, and I put myself in the group that apache creates when it installs www-data? is that right18:20
dantalizingshouldnt interfere with your rails18:21
dantalizingregarding your perm setup, really depends on what else you need to do18:21
dantalizingdoes the web server process need to modify files?18:21
dantalizingdo you have other users who will be modifying files?18:22
kshahusers: probably not18:22
dantalizingif you own the files, no need to add yourself to www-data18:22
kshahweb server process: i don't know, this is just a rails app18:22
kshahare you saying that if rails needs to create a file, it may have a problem since it'll be apache handling it and it doesn't have write permissions?18:23
dantalizingfor instance, a typical php blog app will write to a config.php during a web based configuration, and therefore www-data would need write access to that file18:23
kshahokay i see, yeah18:23
dantalizingbut if you're just reading files, www-data only needs read18:23
kshahso then what do people typically do to accomodate for all situations?18:24
kshahdo they just do it case by case?18:24
kshahand grant permissions for specific files?18:24
kshahbest practice18:24
dantalizingimho, "all" is too general18:24
kshahok18:24
dantalizingi dont know "best" practice, but for my wifes static website (no rails, no php), i made the files owned by her, read by www-data18:25
dantalizingall html is 64018:25
dantalizingand dirs are 75018:26
dantalizingthat wouldnt work if you have a web based template modify page, for instance18:26
dantalizingI never leave the files with root owner/group18:27
kshahokay, and so if my rails app needs to write uploaded files, I can do it in a folder that i specifically grant permissions to that is below the web root18:28
dantalizingor preferably outside the webroot, but yes18:28
dantalizingso assuming you own the dir, and www-data is the group, that dirs permissions would be 77018:29
kshahcool, I think I got it, make exceptions to the security, not security to the exceptions18:32
dantalizingwell put..18:32
kshahexceptions might not be the best word, but I get it :) thank you dantalizing18:33
dantalizingadvice worth every penny you paid!18:33
dantalizing:)18:33
kshahlol18:37
dendrobatesbug 15594719:16
ubotuLaunchpad bug 155947 in libnss-ldap "ldap config  causes Ubuntu to hang at a reboot" [Undecided,Incomplete] https://launchpad.net/bugs/15594719:16
zuli think we got bitten by that today19:17
zulat work19:17
alephantHey all...19:21
alephantI have a Dell PERC 5i controller that works beautifully with the megaraid_sas driver19:21
alephantbut now I'd like to get notified when the array is degraded19:21
alephantI yanked out a drive, and the LEDs indicated that the array was being rebuilt, but there's nothing in syslog19:22
alephantWill the module do any status reporting, or do I need Dell's OpenManage cra^H^H^H stuff to talk to the controller?19:24
alephant...so apparently the megaraid_sas has no hooks into /proc >:-|19:27
alephantAnybody had any luck with the Dell OMSA stuff in Ubuntu?19:27
kshahcan anyone possibly tell me a reason why every time my friend visits my website (any file, ubuntu 7, apache 2.2) he has to refresh the page before it shows, the first time he visits it is a blank page?19:31
mralphabetkshah: his cache19:31
kshahmralphabet: but it is the first time he's visited the page, he clear his cache and it still requires him to refresh, or am I misunderstanding you?19:32
mralphabetso you make a page, blah.html with stuff in it and it shows blank the first time he visits it?19:33
kshahyes19:33
mralphabetsorry, I misunderstood then, that is odd19:33
mralphabetdoes your error log say anything?19:35
mralphabetdoes this happen for any other visitors?19:38
kshahit doesn't happen for me19:39
kshahchecking the log19:39
mralphabetif it works for you and doesn't for him, I have to say it is something on his side of things19:39
mralphabetwhat client browser?19:39
kshahFF19:40
kshahits so odd19:41
mralphabetand has he tried IE?19:41
mralphabetor safari or any of the others?19:42
mralphabetor lynx if he's on a linux box?19:42
kshahasking him to use IE19:42
kshahI wonder if it is because there is a conflicting DNS entry19:43
kshahtwo servers both claiming to be something.com19:43
kshahdoesn't seem to make sense though19:43
mralphabetthat could be a roundrobin answer19:44
mralphabetattempt 1 goes to ip 1, attempt 2 goes to ip 219:44
h4x0r7h1sdamnit20:03
h4x0r7h1sI am using mod_jk to connect to an ajp13 worker, and it totally ignores my JkWorkersFile setting and just initializes a worker called ajp13 trying to connect to localhost:800920:04
h4x0r7h1sit'll bitch if the file isn't there of course, but it doesn't load workers from it20:04
kshahnot sure if I should ask this here or in #apache, but I've successfully followed the ubuntu-server guide in the past to enable SSL, self signed, but I want to it to work like a real website, only for pages that I designate as needing to be secure, login/logout, accounts, etc20:24
kshahcan someone help me with that?20:24
sommerkshah: you can place the security settings in a .htaccess file20:26
sommerI'm not 100% sure if that's what you're looking for though.20:26
kshahwell, like when someone clicks on 'login', that should be in https://20:27
kshah'should be in' didn't make sense, but you know what i mean20:27
sommerkshah: for a situation like that what I usually do is a rewrite rule.20:28
mralphabetthe link that you make points to https://somesite.com/somedir/somesslfile.html20:28
kshahokay, i know what you mean, i think i saw an example of that20:28
kshahsommer: in the conf file20:28
mralphabetkshah: did your friend fix his browsing problem?20:28
sommerkshah: should be there's also some great examples in the docs on the apache site.20:29
kshahmralphabet: I don't think so, I don't think its happening to him in IE, he doesn't know whats up20:29
kshahsommer: thanks, I think I read over an example there, I just wanted to confirm here in case I misunderstood20:31
sommernp20:31
=== jetole_ is now known as jtole
jtolehey guys, I am looking to do load balancing with failover for a web site, the two locations for the site are located states away from each other and we were originally going to do DNS with two A records and low cache so we can manually remove one if a site goes down20:39
jtolebut I thought you guys might know of a better solution20:39
ivoksredhat-cluster-suite + ldirectord20:39
ivoksoh... sorry20:39
ivoksstates away20:40
ivoksdidn't notice that part :)20:40
jtoleespecially if it can be automated so if one site fails, traffic is automatically diverted to site B20:40
jtoleyeah, it's ok20:40
jtoleplus it has to be OS independent since the sites are on windows IIS/SQL however some of them are on xen on ubuntu with a debian IDS at one site20:41
jtoleSQL is fine actually, the web servers always connect to the SQL at the same site20:41
jtoleso basically it would be end user @ anywhere connecting to 80/44320:41
ivokswell... you can't do much on those systems20:45
ivoksboth have public IP address, right?20:46
fujinjtole: use the linux HA packages20:48
fujincan do easy failover between n+1+x systems20:49
fujinI use it here locally on a private LAN for a callcentre Asterisk setup20:49
fujinacross the intertrons it should work fine20:49
fujinoh what20:49
fujinone server is windows? nevermind20:49
ScottKivoks: Saw your reply on the server list.  Sounds very good.  I think this will be a big step forward for Ubuntu mail server easy of setup.20:50
ScottKeasy/ease20:50
ivoksi hope so20:52
ivoksfujin: HA or redhat-cluster-suite is not good options for this situations20:53
jtoleivoks: yes, they are all on public IP, like I said, right now our main coarse of action is DNS with two A records and a 5 minute cache time but if one server goes down it requires manual intervention to initiate the failover20:54
jtolefujin: so for linux HA I am fscked?20:54
ivoksjtole: do you really have a fail over?20:55
ScottKjtole: You could write a script to check and modify the DNS if it gets no response.20:55
ivoksi mean... i guess each server has it's own sql database, right?20:55
ivoksso... services don't fail over20:55
ivoksthey just die, right?20:55
ScottKPersonally, I think it's more trouble than it's worth.  Just make the primary as reliable as you can and suck up what little outages you get unless it's so critical you can afford to do it right.20:56
jtoleivoks: no, not yet, the second co-location will be implemented in about two weeks20:58
jtoleright now we just simply have a primary site20:58
ivokswill they have same SQL data?20:58
jtoleivoks, there will be SQL servers at each site, currently there are two at our main site but no fail over and it is managed hosting solution (which I don't like) and they will not provide us one20:59
jtolehowever both sites will be getting transaction (up to the minute) updates of remote sites20:59
jtoleMS SQL transactional replication20:59
ivoksand one machine is windows, and the other is linux?21:00
sommerScottK: hey, just wondering if you'd had a chance to review the Mail Filtering section of the Postfix docs?21:01
ScottKNo.  Sorry.  Still on my list.21:01
sommerScottK: cool, no rush21:01
jtoleScottK: it is not only crucial but was more then a recommendation of upper management, so far I have allocated 24k in new hw expenses as well as 1400 a month on co-location costs and it was all approved in record time21:08
jtoleI don't imagine any big web site has only one location and I have seen many mid sized companies in previous employment that do not21:09
ScottKjtole: In that case, I'd suggest doing a proper failover or HA solution like ivoks was suggesting.  Don't mess with the Windows/Linux mix21:09
jtolewell right now windows is a requirement21:09
fujinyuck@windows/linux mix21:09
fujinthen do windows/windows21:09
ScottKjtole: True, but I think it's more important for scalability than reliability.21:09
fujinand use the windows cluster tools21:10
jtolefujin: windows VM is a pain in the ass and we want quick restoration in the event of a problem21:10
ScottKMy web host, on a shared server has ~5 minutes of down time a year.21:10
mralphabetall that you have right now is round robin dns answers and a low TTL, that is not failover ;(21:10
jtolei.e. in xen copying c:\ from 5 days ago back over corrupt c:\ etc21:10
jtoleScottK: well our managed hosting provider has had 3 of our servers go down in the last few months21:11
ivoksso those are windows on top of linux21:11
mralphabetjtole: if you want quick recovery from a meltdown on the windows side, there is a symantec product that can restore to bare metal in ~ 1 hour21:11
ivoksayayay21:11
jtolethat is why co-location is now a priority21:11
fujinjtole: then use linux/linux21:11
ScottKjtole: Then get a better provider.21:11
jtoleivoks: yes A windows on top of linux21:11
jtolexen21:11
* mralphabet sighs21:12
ivoksdrop linux and go with windows only21:12
ivoksnothing else works21:12
jtolefujin: windows is a requirement, this site has been long established for years and is all ASP / SQL 200021:12
jtoleScottK: co-location will be a better provider21:12
mralphabetthen take linux out of the equation and use the windows HA tools21:12
mralphabetdoes the linux OS actually do anything other then serve xen?21:14
jtolemralphabet: no but it will be serving multiple machines on xen21:14
mralphabetand what do these multiple vm's do? one for asp and one for sql?21:15
jtoletwo for IIS, one SQL, one mail, another one running linux nagios on one of the machines21:15
ivoksso many xen machines...21:16
ivoksi hope you have two quad core processors :)21:16
jtolethat is what xen was built for21:16
fujinyou're doing it wrong21:16
ivoksand 16GB of ram :)21:16
fujinas I said earlier21:16
mralphabetaye, you are doing it wrong21:17
jtoleyes, AMD 2.4 Ghz w/ 8GB RAM and RAID 5 with 5 250GB sata 221:17
fujintake Linux out of the equation and use the windows clustering/HA tools21:17
mralphabetyour stated goals do not match up with the hardware / software mix you have21:17
jtoleon two machines + IDS and bypass switch + switch w/ monitor port21:17
jtoleso you guys are saying to lose windows all together on this one?21:17
akincer!pastbin21:17
ubotuSorry, I don't know anything about pastbin - try searching on http://ubotu.ubuntu-nl.org/factoids.cgi21:17
jtoleer, lose linux I mean21:18
akincer!pastebin21:18
ubotupastebin is a service to post large texts so you don't flood the channel. The Ubuntu pastebin is at http://paste.ubuntu-nl.org (make sure you give us the URL for your paste - see also the #ubuntu channel topic)21:18
fujinjtole: either lose linux, or lose windows21:18
mralphabetor go to vmware esx21:18
fujina 100% linux environment will enable you to use the heartbeat / linux-ha clustering packages for failover21:18
mralphabetesx has failover packages for vm's21:18
fujinand a 100% windows environment will let you do a similar thing with clustering21:18
fujinmralphabet: esx wont' work, as, his two servers are 'states' away afaik21:18
ivokskhm... redhat-cluster-suite instead of ha :)21:18
jtolelike I said, I can't lose windows, I would like to but I cannot21:18
fujinwth@ redhat-cluster-suite21:19
fujinI don't even know what that is, it's so wrong21:19
fujins/redhat.*//21:19
mralphabetfujin: I thought esx could do remote failover in case a building disappears21:19
jtolelol21:19
ivoksfujin: ?21:19
fujinmralphabet: not sure about that21:19
fujinbut ESX at both locations would be expensive21:19
ivoksfujin: it's a tool, fully suported in ubuntu21:19
fujin(san, n+1 esx hosts)21:19
ivokswich isn't something you can say for ha21:19
jtolewell, unfortunatly, we won't have linux at all at one site21:19
fujinivoks: apt-get install heartbeat?21:20
fujinapt-get install heartbeat221:20
ivoksfujin: in universe21:20
mralphabetfujin: he's already 24k deep /shrug21:20
jtolealthough this may become two co-locations once the first one is up and proves useful21:20
ivoksfujin: r-c-s is in main21:20
ivoksfujin: and much much better than ha21:20
fujinmralphabet: san+esx host(s) > 100k21:20
mralphabetfujin: what's another 75?! ;)21:20
fujinI guess.21:20
akincerI posted here a week or so ago about a Tripp Lite KVM keyboard and touchpad that didn't work in the server install. I got it working only by unplugging and plugging it back in. I included output of dmesg in this process here http://paste.ubuntu-nl.org/45942/21:20
fujinakincer: log a bug21:21
akincerWas just thinking that21:21
mralphabetfujin: i'm just being sarcastic21:21
fujinGenerally the engineer shouldn't have to worry about pricing.21:22
mralphabettrue, to a point21:22
mralphabetanyway, jtole, as I said before, your stated goals and what have already don't really mix21:23
jtoleI gotta run, cheers21:23
mralphabetI feel kinda bad for him21:23
fujinheh, yeah.21:24
fujinI wouldn't want to inherit that shitbag of a system.21:24
fujinhe *is* doing it wrong, though.21:24
mralphabetyes21:24
mralphabethe's asking for help AFTER he already bought the system21:24
fujin"I did it wrong! help!"21:24
fujin;|21:24
fujinepic fail21:25
mralphabethow about the novel approach of doing a little research first ;(21:25
fujinThat's always good.21:25
ivoksfujin: if you use HA, really check out cluster-suite21:28
akincerGot a bug report of my very own. How nice21:29
fujinIt'd be a pain to change it.21:29
ivoksfujin: it provides some features HA doesn't and provides support for shared (file) systems like drbd and gfs21:29
ivoksfujin: that's what i tought so21:30
fujinivoks: I rolled heartbeat v1 (linux-ha) for my systems, for basic ping-node failover.21:30
ivoksfujin: now i just wish i did't it sooner :)21:30
fujinand have no use for drbd/gfs21:30
fujinI just check if asterisk is running, check conectivity etc21:30
fujinit's only very basic.21:30
ivoksok21:30
ivokss/drbd/gnbd/21:31
fujinis gnbd functionally identical to drbd?21:31
ivoksno21:31
fujinI had thought of using drbd for voicemail replication etc21:31
ivoksdrbd provides shared disk21:31
fujinbut gave up and went with one-way rsync from the secondary from the primary21:31
ivoksgnbd provides access to physical disk21:31
fujinoh, cool21:31
fujinivoks: without copying the data?21:32
ivokswith drbd you can set up network mirror21:32
ivokswith drbd?21:32
ivoksi'm using drbd for web servers21:32
fujinwhat does GNDB do?21:33
ivoksimagine you have NAS21:33
fujinprovide access to data over the network (like NFS)?21:33
fujinI've been looking for a way to share mailstores between my 3 mailhosts21:33
ivokswell, yes and no... :)21:33
fujinall the data is on a SAN, but implementing file locking between them has been a pain21:33
ivoksfilesystem does that21:33
ivokswith gnbd you export device21:34
ivoksand then create GFS on it21:34
fujinI see.21:34
ivoksso all systems can access that device at the same time21:34
ivoksyou just need to make sure that gnbd server doesn't fail21:34
ivoksthis is why i use drbd21:34
ivoksdrbd keeps data in sync on two machines21:35
ivoksand allows both machines to rw at the same time21:35
ivokswith GFS on top of it, problems with locking are solved21:35
fujinbut theoretically21:36
fujinI'm reading the usage stuff now21:36
fujinit looks like it'll do what I want21:36
ivoksi took me one week to figure it out what is what exactly :)21:36
fujindrbd would work, but replicating 300gb of mail is silly21:36
fujinbetween all 321:36
ivoksyou can't do that21:36
fujinoh?21:37
ivoksyou can have only two primaries at the same time21:37
ivoksit's doesn't replicate all 300GB, only changes21:37
ivoksso, on reboot, only changes are replicated21:37
fujinI see21:37
fujinbut it'll still mean having 300gb x X21:37
fujinjust to redundantly have 300gb21:37
ivoksyes21:37
fujinwhile space isnt' really an issue (we've a 5tb~ SAN)21:37
fujinI'd prefer something that just shared the exact data, with happy file locking21:38
fujin(and wasn't NFS!)21:38
* fujin cringes @ NFS21:38
ivoksgnbd+gfs21:38
fujinYes, it seems like it'll do what I want.21:38
ivoksjust don't use OCFS21:38
ivoksocfs died on me couple of times during testing21:39
ivoksgfs works great21:39
fujinThanks for the suggestion21:39
fujinI've made note of it and will investigate further when my current projects are completed21:39
ivokssource: http://sources.redhat.com/cluster/21:40
ivoks:)21:40
fujinAnd you said it's apt-gettable?21:40
ivoksit's in main21:40
fujinThat's handy.21:40
ivoksit's only clustering system supported in ubuntu21:40
ivokseverything else is in universe21:41
ivokscommunity supported21:41
fujinI see.21:41
* Nafallo hates servers21:41
fujinI hadn't had any issue with linux-ha, and that was the first tutorial I found21:41
ivoksme too21:41
fujingenerally don't do application-level failover.21:41
fujinor, hadn't done it before21:41
ivoksi had one problem with linux-ha21:41
ivokstwo machines, both runing mysql in master-master replication21:42
ivokseach machine has it's own IP21:42
ivoksand mysql binds to that IP21:42
ivoksone has VIP, so mysql binds to VIP also21:42
ivoksbut when that machine fails, VIP goes to other machine21:42
fujinnasty21:42
ivoksand then you have a problem21:43
fujinI hate two-way MySQL replication.21:43
fujinwe do master-slave here, with manual failover21:43
ivoksmysql needs restart, cause it isn't binded to VIP21:43
ivokswith r-c-s, you don't have to do that :)21:43
fujinivoks: any resources/tutorials on r-c-s configuration?21:43
ivoksfujin: there's a GUI tool for setting up :D21:43
fujinMy servers don't run GUI's!21:44
ivoksit creates cluster.conf21:44
ivoksno... it's a tool; you can run it on your laptop21:44
ivoksit creates cluster.conf, which you then transfer to servers21:44
fujinI wouldn't run Ubuntu on a desktop, either.21:44
fujindoes apt-getting redhat-cluster-suite install all of the magic stuff? like gfs-tools etc?21:45
ivoksyes21:45
fujinah, it's a metapackage I see.21:45
fujinso, basically21:45
fujinthe clients (my mailhosts, in this example) will have gfs and gndb client configured21:46
fujinand then theoretically behind that I'd have say, mailstores21:46
fujinwith gndb-server and gfs installed on it21:46
fujins/it/them/21:46
ivoksright21:46
fujincool21:47
fujinsounds great21:47
fujinnow if only I could find some documentation or a tutorial on rcs21:47
ivoksthere are PDFs21:47
ivokssearch for Global_Network_Block_Device.pdf21:47
ivoksand21:48
ivoksCluster_Administration.pdf21:48
ivoksand Global_File_Syste.pdf too21:48
fujincool, found it21:48
fujinwill pass them onto my senior and have him browse through21:49
fujinmay roll it on my phone system too, for the fun of it :)21:49
ivoksif you have only two servers21:50
ivoksit would, maybe, be better to stay with HA21:50
ivoksanyway... good night to you all21:53
=== tiborio__ is now known as tiborio

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