/srv/irclogs.ubuntu.com/2008/11/20/#ubuntu-server.txt

espaciousif i only simulate the drive failure with mdadm --fail on reboot it will need to rebuild?00:05
=== erichammond2 is now known as erichammond
=== Dedi is now known as dedi_away
=== dedi_away is now known as Dedi
=== Dedi is now known as dedi_away
=== dedi_away is now known as Dedi
jtmoneywow, i just installed 8.10... THANK YOU SO MUCH! the fakeraid support is amazing... so seamless03:44
jtmoneythank you03:44
geniiIf I want to be alerted by SMS on ups remianing time or such and already have a working freepbx for instance, what approach should I take?03:50
geniiProbably hack apcutils or so I suppose03:52
geniiapcupsd  rather03:53
jtmoneymaybe i spoke too soon... seems to be stuck at 33% when trying to format my raid-1 set up :(03:53
jmarsdenIf it already logs messages via syslog, you could probably use swatch or some similar logwatcher to email you (to your cellphone) when relevant lines appear in the appropriate log file.  Should avoid any need to hack anything?03:54
geniijmarsden: Thing is I pay for emails to my phone but texts are free03:54
jmarsdenOK.  Strange policy that... so do you have a way to generate SMS msgs on your server already that works with your cell provider?03:55
geniijmarsden: Not sure. The asterisk backend can do for instance bridge to POTS from SIP or so03:57
jmarsdenOK.  So as long as you ahve some command line tool to send SMSes, you can configure either the UPS software (nut or apcupsd etc) ot logwatch to run it when soemthing happens that you care about.03:57
jmarsdenI know nut can be configured to run arbitrary notifier programs, not so sure about apcupsd.03:58
geniiI think it can, yes03:58
jmarsdenThen you just need to find that command line SMS-send tool and you're golden.03:59
geniiMaybe I'll just have it phone me physically and play back some festvox thing saying "so many minutes of power left" or so...03:59
jmarsden:-)03:59
geniijmarsden: Thanks for the input04:00
jmarsdenNo problem.04:00
=== Dedi is now known as dedi_away
jtmoneyhey guys, i need some help... i'm trying to use fakeraid with 8.10 server amd64... however, when writing the partition configuration to disk, it always gets stuck at 33%... this is what i get in the console04:36
jtmoneypartman: warning: 176 blocks unused.04:36
jtmoneypartman:04:36
jtmoneyit seems like it's returning an error, it's just not displaying it04:36
jmarsdenjtmoney: Is there really any benefit on fast 64-bit hardware to using device-specific fakeraid (why not just use software RAID)?04:38
jtmoneyi guess... i'm only interested in RAID-1 anyways04:39
jmarsdenhttps://help.ubuntu.com/8.10/serverguide/C/advanced-installation.html even claims software raid can be better than some fakeraid implementations04:39
jmarsdenI'd switch to software raid and see how well that works.04:40
jtmoneyi don't think i have an option :)04:42
jtmoneyhmm04:42
jtmoneywell, maybe i should use 8.04 LTS now instead04:42
jmarsdenWell, you could look for bugs on LP related to your specific fakeraid chip, etc...04:42
jmarsden8.04 LTS doesn't do boot degraded stuff with software RAID though... why go back to an older version, unless you really do need the LTS aspect?04:43
jtmoneygood point04:43
jtmoneyactually, i hear the hard drives04:46
jtmoneymaybe it just takes a while to set up 2 x 1 TB RAID-104:46
jtmoneythat leads me to another question... and this is not clarified in the fakeraid howto04:46
jtmoneyshould i configure the raid within the bios?04:46
jtmoneyor don't configure the raid in the bios and let ubuntu handle it04:47
jmarsdenI'm not sure, I last tried fakeraid in Linux at least 5 years ago... was unhappy, switched to software RAID and stayed that way, except for "serious" servers with hardware SCSI RAID controllers!04:47
jmarsdenI suspect the BIOS won't matter, Ubuntu will set it up; but I'm not at all sure of that.04:48
jtmoneyhmm, it does seem better to do software raid04:48
=== dedi_away is now known as Dedi
jtmoneywhat happens if i have a software RAID-1 set up and i were to take one of the hard drives and try to mount it in another machine, would i be able to see all my data?06:41
[Solars]no06:45
jtmoneybut if i were to implement them using fakeraid RAID-1, the drives would act independently, right?06:47
jtmoneyi.e., there's no RAID-specific data on the drives in RAID-106:47
[Solars]if you using a software raid, the software does the raiding scheme, if you using hardware raid the hardware does it... depending on the raid type, data are all drives06:55
jtmoneyokay, thanks solars06:55
=== J_- is now known as J-_
krautmoin08:08
Jeeves_morning08:13
Jeeves_kraut: you're Karl right?08:14
krauti'm kraut, ok? ;)08:15
Jeeves_kraut: Sorry, I'm confused08:16
krauthehe, no problem08:16
Jeeves_I'm looking for Karl Goetz08:16
Jeeves_He wrote something very curious and I was wondering if he's serious or not08:17
uvirtbotNew bug: #300221 in samba (main) "Add "Recommends: keyutils" to smbfs" [Undecided,New] https://launchpad.net/bugs/30022108:21
LoveGuruthere is one log file in log folder. i want to copy all text whatever that file have it. so i can paste it on pastebin how can i do that?08:24
ropetinLoveGuru: pastebinit maybe?08:32
_rubenJeeves_: that'd be kgoetz or, crap, his other nick slipped my mind08:35
_rubenKamping_Kaiser == kgoetz08:35
Jeeves__ruben: Ah yes08:55
_rubenwow .. bind 9.5 statistics channel feature sure is sweet09:21
_rubenspits out xml output over http with a bucketload of info09:25
=== J_- is now known as J-_
Kamping_KaiserJeeves_, you were after me?11:18
=== jussio1 is now known as jussi01
ahasenackFailed to fetch http://archive.ubuntu.com/ubuntu/pool/main/h/hplip/hpijs_2.7.7+2.7.7.dfsg.1-0ubuntu5.1_i386.deb  Size mismatch (gutsy hpijs update), is this known? Just a bad mirror?12:46
zulKoon: hardy isnt affected by the nagios-plugins bug is it?13:18
Koonzul: no, the overflow doesn't trigger anything13:18
zulKoon: cool just checking13:18
Koonzul: it's still wrong, but invisible13:19
zulKoon: heh qualitiy13:19
ScottKzul: No.  It's kwality.13:33
=== phaidros is now known as byr0n
ladfnetI'm having a problem with my network configuration. I'm running two vlans of eth0, and they're configured in /etc/network/interfaces. It boots fine, and both vlans work, but if I do a /etc/init.d/networking restart then the network shuts down. It's a remote server, and I'm configuring over ssh, and I'm running automatic restarts of the server through a cronjob. If I remove the second vlan(not the internet connection) then it works fine, 14:51
ladfnetI tried to pipe error to one file, and output to another, but no errors are reported from the networking restart14:51
ladfnetany ideas?14:51
uvirtbotNew bug: #300330 in mysql-dfsg-5.0 (main) "package mysql-server-5.0 None [modified: /var/lib/dpkg/info/mysql-server-5.0.list] failed to install/upgrade: corrupted filesystem tarfile - corrupted package archive" [Undecided,New] https://launchpad.net/bugs/30033015:41
zulKoon: ping16:01
Koonzul: pong16:01
zulI have backported the dfs patch to the intrepid kernel, ill push it today to the kernel guys16:02
Koonzul: did you test that it fixes it ?16:02
zulKoon: no its from linus' tree so it should be good16:03
mathiazzul: Koon: AFAICT there are two bugs related to cifs16:13
mathiazbug 28682816:13
uvirtbotLaunchpad bug 286828 in samba "Access to samba<3.0.26 shares using CIFS is broken on 8.10" [Undecided,Confirmed] https://launchpad.net/bugs/28682816:13
Koonmathiaz: only two ?16:14
mathiazKoon: hm - ok... Two that I know of wrt to interpid upgrades :)16:14
zulmathiaz: that one is a kernel "bug" the other is a libsmbclient one that we already did the SRU for16:15
mathiazKoon: although one of them is related to samba.16:15
Koonthe other would be... bug 282298 ?16:15
uvirtbotLaunchpad bug 282298 in samba "[SRU] Intrepid: No Access to NAS (samba<=2.2.x) shares any more" [Undecided,Fix committed] https://launchpad.net/bugs/28229816:15
mathiazzul: right - the one that truncates the last caracated?16:15
zulmathiaz: correct16:15
Koonthat one should be fixed now16:15
Koonin jaunty and intrepid-proposed16:16
mathiazsoren: kirkland and I worked on iscsi yesterday16:16
sorenmathiaz: Do tell.16:17
mathiazsoren: and we came up with a if-up.d scripts that works16:17
kirklandsoren: i think we made some nice progress16:17
sorenmathiaz: An if-up.d script for what?16:17
mathiazsoren: basically symlinking the init script in /etc/network/if-up.d/16:17
mathiazsoren: and adding support of  if-up.d calls to the init script.16:17
sorenmathiaz: Ok...16:18
kirklandsoren: to ensure that the iscsi daemon starts when the networking comes up16:18
mathiazsoren: we've also tried to start open-iscsi at S25 and that would not work16:18
sorenmathiaz: Why?16:18
mathiazsoren: the interfaces are not up by then16:18
sorenmathiaz: Physical interfaces?16:18
kirklandsoren: it's not deterministic that the interface will be up by then16:18
mathiazsoren: at least in our vm system.16:18
mathiazsoren: physical in the sense that we've tested in kvm16:19
sorenmathiaz: I mean: Not bridges or bonded interfaces?16:19
sorenThat sounds like a bug.16:19
mathiazsoren: starting open-iscsi in if-up.d makes *sure* that the network interface is running16:19
soren*a* network interface.16:19
mathiazsoren: I haven't tested bridges and bonded interfaces yet16:19
mathiazsoren: true - however you can call iscsiadm with an interface option16:20
sorenWhat does that do?16:20
mathiazsoren: which *should* select targets that are only accessible via the interface16:20
soreninteresting.16:20
mathiazsoren: since we have the name of the interface in IFACE when called in if-up.d we should be able to tell iscsiadm to only login targets that are setup to use the interface that has been created.16:21
mathiazsoren: the other reason for using if-up.d is that _netdev mounts in fstab are mounted by if-up.d/mountnfs16:22
mathiazsoren: so if we'd run open-iscsi at S45 (or S25) _netdev mounts in fstab would not be mounted16:22
sorenARGH!16:23
sorenbug 4419416:23
uvirtbotLaunchpad bug 44194 in netbase "wpasupplicant doesn't start when the network start" [Undecided,Fix released] https://launchpad.net/bugs/4419416:23
sorenI still think _netdev is a horrible, horrible idea.16:23
mathiazsoren: this is why debian has call to mount -a -O _netdev in their open-iscsi init script16:23
mathiazsoren: right - so I thought about another option here16:24
mathiazsoren: is it possible to teach udev to check fstab UUID when a device is created?16:24
sorenWhat do you mean?16:24
mathiazsoren: because when the initiator logs into a target, devices are created16:24
sorenRight.16:24
mathiazsoren: once you've logged into a target, you'll have a device in /dev/disk/by-uuid/16:25
sorenYes.16:25
mathiazsoren: that will be the UUID of the fs16:25
sorenYEs.16:25
mathiazsoren: this UUID is also used in fstab16:25
sorenYes.16:25
soren:)16:25
mathiazsoren: so - could udev scan fstab and do the mount?16:26
* soren has a hunch that there's a reason why not to do that, but can't remember why..16:26
mathiazsoren: I'll ask KeyBuk in #ubuntu-devel16:27
sorenMaybe it's an ordering thing.16:27
sorenYou don't know for sure that mounting them in the order in which they appear will give the results you want.16:28
mathiazsoren: right - so you could end up in situation where /srv/disk1 is a local disk16:29
sorenHm?16:29
mathiazsoren: and /srv/disk1/iscsi1 is remote isci disk16:29
sorenOh.16:29
mathiazsoren: but the iscsi target would come up before the local disk is mounted16:29
sorenOh, yes, if you only do it to iscsi targets.16:29
=== leonel_ is now known as leonel
sorenmathiaz, kirkland: Honestly, I don't remember all the details.16:37
sorenI just remember spending lots and lots of time on this, and came to the conclusion that S25 was the right place to start it.16:37
sorenNow, siretart broke that, clearly, but that's bug that needs fixing.16:38
kirklandsoren: hmm, we had no success with it at S25...  the ifup script seems to work far better in all use cases we've tested so far16:39
sorenkirkland: Exactly..16:40
sorenkirkland: Like I just said: siretart clearly broke it.16:40
sorenkirkland: Because *no* interfaces will ever be up at that point.16:40
Koonmathiaz: beware of the shutdown order too -- we already have lots of bugs about network file systems being unmounted after network is gone.16:44
kirklandKoon: we actually fixed that too, for iscsi16:45
kirklandKoon: it was being shutdown in the wrong place, pre-merge16:45
Koonkirkland: cool, would the fix also be applicable to other network mounts ?16:46
kirklandKoon: now, it's taken down by the umountnfs scripts16:46
kirklandKoon: assuming that the fstab entry is tagged with _netdev16:46
kirklandsoren: can you explain why you hate on _netdev so much?16:46
sorenBecause I think it's the way it would have been done in the 70's.16:47
sorenOr in Debian.16:47
soren...which -- in this respect -- turns out to be quite similar.16:48
sorenDon't get me wrong. I love Debian with a passion..16:48
soren..but when it comes to the whole boot process and all that? Sheesh.. Get with the programme!16:48
sorenI think it's a crude, crude hack to work around the real issue:16:50
sorenThat we're too stupid to get the iscsi devices to pop up in time for the whole mounting thing.16:50
sorenI think that's:16:50
sorena) A much more interesting problem to solve16:50
sorenand16:50
sorenb) what will be of most benefit to the users in the end.16:51
sorenand me.16:51
soren:)16:51
sorenkirkland: ^16:51
hansinI was just thinking about the announcement that Canonical/Ubuntu will support the ARMv7 processors in the 9.04 release.  Will the server edition be included with this?  I understand that the server edition comes for the same repos, but I guess I am wondering if the unique parts (like kernel) will be compiled for ARMv7?  Thanks.16:59
sorenhansin: The server flavour on PC hardware exists because we want a different configuration than on the desktop. If the same makes sense on ARM, we might very well have a separate flavour there as well.17:04
W8TAHcan someone please point me to a good instructions on installing and using vmware-server on ubuntu server?17:06
andolW8TAH: https://help.ubuntu.com/community/VMware/Server17:22
W8TAHandol: thank you17:28
JDStoneare there any limitations with the 64bit version of Ubuntu server?17:43
JDStonethat I should know about?17:43
mathiazEtienneG: do you have your iscsi testing environment ready?17:43
EtienneGmathiaz, yes, I guess17:44
mathiazEtienneG: do you have a setup with more than one interface?17:44
mathiazEtienneG: bonding? bridged?17:44
EtienneGmathiaz, if by "environment", you mean a vm running the target and a vm running the initiator17:44
EtienneGmathiaz, yes, the iniattor is configured with bonded Ethernet17:44
mathiazEtienneG: great - I'll get a link to a new open-iscsi package17:45
mathiazEtienneG: if you could test it in your environment that would be helpful17:45
EtienneGJDStone, none, except possibly that some third-party software and driver may be 32 bits only17:45
EtienneGbut hopefully, these would not be relevant to you17:46
EtienneGmathiaz, 'k, send me the link, I get that done this afternoon ASAP17:46
JDStoneyeah, that's what I'm thinking17:46
JDStonethanks EtienneG that helped17:46
JDStonethat's all I needed to know17:46
EtienneGJDStone, that's really just IME, you may want to ask a second opinion17:47
EtienneGJDStone, one annoying bug I had was running hardy 64 bits on VMWare ESX 3.517:48
EtienneGbut that was specific to that particular setup17:48
Faust-Cwhat is a good app to connect to ftps/sftp/webdavs18:07
Faust-Cnautilus errors out18:07
Faust-Cand lftp wont put a folder18:08
kopoHi!18:13
kopoIs there any way to configure Alt+F2-F6 buttons in shell?18:14
Deepsconfigure to do what?18:14
kopoNormally you can switch between virtual consoles..18:14
Deepsyep, thats default behaviour18:14
kopo..but I want to run different programs..18:14
Deepsso switch to the different console, login and run the program?18:14
Faust-Cscreen?18:15
kopolike F2 for irssi ;) F3 for top18:15
Faust-Ckopa, screen tabs18:15
Faust-Csec18:15
Deepsscreen tabs would be a better idea, yeah, but no reason why you cant do what you want with multiple consoles18:15
Deepsjust means logging in first on each console18:15
hansinsoren: Thanks.  The reason I ask (about ARMv7 server edition) is that a few months ago I saw a talk given by the guy who first cracked the18:15
Faust-Ckopa, http://www.bsdguides.org/guides/freebsd/misc/screenrc18:16
hansinwoops.  Linksys NSL18:16
* Faust-C wrote that18:16
DeepsFaust-C: sftp (cli util) will do recursive dirs i believe18:16
Faust-CDeeps, ah sweet, i thought so18:16
kopohmm.. what do you think? screen tabs or multiple consoles?18:16
hansinNSLU2.  It can run ARM debian.  But I could imagine some really cool ARMv7 based devices for home servers (or even lightweight business servers).18:16
Deepskopo: whichever makes you happier18:17
Deepskopo: i'd use screen personally as it meanas you can ssh in from remote and reattach to the same sessions18:17
Faust-Ckopa, multiple considers means more reasources18:18
* Faust-C does the screen dance18:18
Deepsyour guide is very inconsistent btw faust18:18
Deepswell, 'very' is going a bit far18:19
Deepslooking at your screenrc, lines 3+4 dont seem to relate to the comment on the line above it18:19
Faust-CDeeps, its dated18:19
Faust-Cthats a old one18:19
kopothanks!18:19
Faust-Ci dont have my newest one up yet18:20
* Faust-C will once i have site the way i like it18:20
Faust-CDeeps, and btw that is right18:20
Faust-Coh crap no its not18:20
Faust-Cwait no its right18:20
Faust-Ccause F1 doesnt = F118:21
paul68 I tried through this howto to make my iptables to run when I boot up my system however I don't get any response that its or its not working can someone help me out with this  https://help.ubuntu.com/community/IptablesHowTo#Configuration%20on%20startup18:37
danielm_mcanyone know how to disable the f1 key from displaying the help menu in a terminal?19:16
greenflydanielm_mc: you'd have to go to the gnome keybinding settings probably19:17
danielm_mcyaah, i actually just figured it out19:17
danielm_mcgotta go to key shortcuts19:18
danielm_mcman #ubuntu is about 0 help about 100% of the time unless you're stuck trying to install a mouse19:18
greenflyheh19:19
danielm_mcyeh sucks, i hate to bother this crowd with dumb questions like that, but whatev19:22
bluedragonpiperI am receiving a failed to fetch error (404) in aptitude and not sure how to resolve it when trying to get this file: http://security.ubuntu.com/ubuntu/pool/main/libx/libxml2/libxml2_2.6.31.dfsg-2ubuntu1.2_i386.deb19:25
bluedragonpiperI have checked the files at that location and found similar file: libxml2_2.6.31.dfsg-2ubuntu1.3_i386.deb19:25
greenflytry to do an aptitude update first19:27
=== paul678 is now known as paul68
bluedragonpipergreenfly: Thanks a million, I read through the apt-get and apt-cache manpages several times assuming aptitude was just a frontend... *smacks forehead19:30
greenflynp19:33
sorenmathiaz, kirkland: Do you need anything else from me on the topic of iscsi tonight?20:30
kirklandsoren: hmm20:34
kirklandsoren: well, not really20:34
kirklandsoren: i'm not sure the approaches you're asking for are doable within a reasonable timeframe at this point20:34
sorenDefine "reasonable timeframe".20:34
sorenNoone's demanding that this work by alpha 1 :)20:35
kirklandsoren: well, we've got a package that works ***far*** better than any open-iscsi package that we've ever had in Ubuntu before20:35
kirklandsoren: we can upload that now, in early jaunty, and incrementally improve the package through the development cycle20:36
mathiazEtienneG: could test the open-iscsi package from http://people.ubuntu.com/~mathiaz/packages/?20:36
mathiazsoren: you may wanna have a look at these ^^ too20:36
mathiazsoren: the changelog is not up-to-date though,20:37
kirklandsoren: alternatively, multiple of us can spend several more days/weeks rearchitecting it before we have something that even works20:37
sorenLook... You asked my advice.20:38
sorenNo need to get all hands up in the air about it.20:38
sorenAnd I seriously doubt it would take that much time.20:39
sorenI'm still quite sure starting iscsi before mountall is the right thing to do.20:39
sorenWhat we need to do is to make sure as many cases of networking are functional at that point.20:40
sorenMost notably bonding, but also bridging.20:40
sorenIt's very much in the spirit of all the other stuff we've changed in the boot process.20:41
sorenWhy did you drop "Exit without error if /sys is not available. Otherwise, it's not possible to use this package as a build-dependency.20:42
soren"20:42
soren?20:42
kirklandsoren: i couldn't agree more with your point: "What we need to do is to make sure as many cases of networking are functional at that point."20:42
sorenIn fact, apart from the homepage thing, why did you drop those the two other changes?20:42
soren(I've only looked at the changelog so far)20:43
kirkland<mathiaz> soren: the changelog is not up-to-date though,20:43
sorenI saw that. Did those things not get dropped anyway?20:43
mathiazsoren: IIRC they were merged in debian20:44
sorenIf "remove open-iscsi init script on upgrades before hardy" does what I think I remember it does, I find it somewhat hard to believe that it's in Debian now.. :)20:44
mathiazsoren: that is something that we can dropped20:44
mathiazsoren: the changelog is not up-to-date. But at least that specific code (update-rc.d -f remove open-iscsi) is not useful now20:45
sorenWhy?20:45
sorenI'm genuinely curious.20:45
mathiazsoren: since it would be run if we're upgrading from lt hardy version20:45
sorenGood point.20:46
sorenErr...20:46
* soren goes to check something.20:46
mathiazsoren: http://paste.ubuntu.com/74941/20:46
mathiazsoren: that's the full code in the postinst20:47
sorenmathiaz: Are you moving the K??open-iscsi script?20:47
kirklandsoren: we needed to come after sendsigs20:48
mathiazsoren: yop - to after sendsig20:48
mathiazsoren: and also after umountnfs20:48
mathiazsoren: which takes care of umounting netdev filesystems20:48
soren"If  any  files  /etc/rcrunlevel.d/[SK]??name  already exist then update-rc.d does nothing."20:49
sorenFrom update-rc.d man page.20:49
sorenSo if someone already has the package installed, they won't get moved unless you remove the existing ones.20:49
=== ogra_ is now known as ogra
kirklandsoren: so we'll need some postinst special code?20:49
soren...which is why that line of code was tehre.20:49
kirklandsoren: ah20:49
mathiazsoren: oh ok.20:50
kirklanda comment of documentation in there would be nice :-)20:50
mathiazsoren: so we need to update the package version20:50
* soren seems to remember saying something about removing code you don't know why is there to begin with... :)20:50
kirklandokay okay :-)  we'll add a line explaining what the point of that block is20:51
sorenWhat you should do (and what I really should have done, but clearly I was being lazy) is to check if the offending symlink is there and then rename it.20:51
sorenWhat I did was effectively throwing away the sysadmin's changes...20:51
kirklandfair enough20:51
kirklandthat way, we'll only touch a symlink that we know the previous package put there20:52
sorenYEs.20:52
kirklandand it'll be self-documenting, clearer what the end goal is20:52
sorenAnd just keep your fingers crossed that people didn't move those symlinks in an attempt to fix various things.20:52
soren...which, now that I think about it, might have been why I just forced it.20:52
kirkland<kirkland> a comment of documentation in there would be nice :-)20:53
espacioushi soren i managed to solve the problem with my raid. the trick was my bios is old and i had to reset it and set it up again (hdd detect issues)20:53
sorenespacious: What did that matter?20:53
sorenkirkland: 20:50:37  * soren seems to remember saying something about removing code you don't know why is there to begin with... :)20:53
espacioussoren the disk was not detected properls or the ata cable was bad plugged.i dont know.20:53
espaciousfact is now is ok.20:54
sorenespacious: I'm sorry, but I don't buy that explanation :)20:54
sorenespacious: I suspect something else was really up that now happened to be fixed when you went through it for the third time.20:54
soren...or something.20:54
kirklandsoren: agreed :-)20:54
espacioussoren but! i messed sth up again since i made xfs on the md3 array but it wont mount20:54
sorenkirkland: This messing about with those symlinks is a good reason why it might be a good idea to not upload a half solution now and changing it later.20:55
espacioussoren no the ata cable was the trouble it was wrong connected i got ATAPI incompatible message at boot but i didnt saw it. now i repaired that and rabuild went ok20:55
sorenkirkland, mathiaz: is there anything in particular that makes you want to push this sooner rather than later?20:56
sorenespacious: Oh, I see.20:56
sorenespacious: Well, that's good.20:56
mathiazsoren: why do you want later?20:56
kirklandsoren: to establish something to test off of, early in the dev cycle20:56
sorenmathiaz: 20:55:39 < soren> kirkland: This messing about with those symlinks is a good reason why it might be a good idea to not upload  a half solution now and changing it later.20:56
sorenIt's an extra upgrade case you need to handle in the maintainer scripts.20:57
espacioussoren so can u throw an eye at my logs to see where is the problem now.20:57
sorenespacious: I can try.20:57
espacioussoren u are veri kind.20:57
espaciousvery*20:57
sorenmathiaz, kirkland: Especially if we all agree that it's not the rigth approach... but I get the feeling this might not be the case after all.20:57
mathiazsoren: so if we'd go for later, what should be done to get a correct upload?20:58
espacioushow's the /smome/some/asds.log| pastebin command ?20:58
kirklandsoren: mostly, i think, because there's going to be some work required in the installer, which will need to be done earlier in the Jaunty cycle than we started looking at this in Intrepid20:58
sorenmathiaz, kirkland: Maybe you can tell me? I'd like to hear your version.20:58
sorenespacious: No idea. I'm a copy/paste monkey myself.20:58
kirklandsoren: a merge of upstream, plus (at least mostly) better working code is a pre-req to going much further20:59
espacioussore ok. will find out not a problem i will post u links in 5 min.20:59
sorenkirkland: I'm sort of looking for a definition of "better working code".20:59
kirklandsoren: okay, we've split the whole iscsi problem into 3 parts ....20:59
sorenkirkland: What are the success criteria, and what's the strategy to get us there?20:59
mathiazsoren: the *current* state in interpid/jaunty is that open-iscsi doesn't work21:00
sorenkirkland: Ok, go on.21:00
kirklandsoren: 1) root on iscsi, which is a different beast, we're putting that off until later21:00
sorenmathiaz: I know.21:00
mathiazsoren: there is a mismatch between the kernel version and the userspace21:00
sorenmathiaz: Right.21:00
mathiazsoren: so from that point of view, it's better code as it works now21:00
kirklandsoren: 2) iscsi in the installer, which depends on a working #3, which is ....21:00
kirklandsoren: 3) other, non-root iscsi filesystems21:00
kirklandsoren: we're focusing on 3 at the moment21:01
sorenOk. So how about just uploading a new set of tools and deal with the integration details later?21:01
kirklandsoren: now, under that, we have to consider several different forms of networking21:01
soren...thus limiting the amount of upgrade cases to worry about.21:01
kirklandsoren: but we've determine that we need to go after the lion's share (90%?) of common networking setups21:01
sorenkirkland: Yes. Which really is an issue separate from iscsi, but we happen to depend on it working properly.21:01
kirklandsoren: use the default interface, bonded, etc.21:01
kirklandsoren: and put aside a few of the more esoteric ones, for now21:02
sorenkirkland: I really don't give a hoot about wpasupplicant here, for instance.21:02
kirklandsoren: so success criteria ....21:02
sorenIf it happens to work, fine. Bonding is really important, and bridging is rather important.21:02
sorenIMO, that is.21:02
kirklandsoren: agreed on that21:02
kirklandsoren: for (3), having a Jaunty install, with open-iscsi installed21:02
kirklandsoren: that can run iscsi_discovery21:02
kirklandsoren: to find, and attach to a target21:03
kirklandsoren: get its /etc/iscsi configuration written properly21:03
kirklandsoren: get a workable /etc/fstab entry21:03
kirklandsoren: and reboot ad nauseum, with the filesystem automounting/auto-umounting cleanly, successfully, reliably21:03
sorenSounds good.21:04
kirklandsoren: and testing that out of some finite list of networking setups21:04
kirklandsoren: default ethernet, bonded ethernet, bridged seems like a reasonable starting point21:04
kirklandsoren: vnet's maybe coming later21:04
sorenvnet's?21:04
kirklandsoren: and all of the other crazy networking setups we'll handle as they trickle in21:04
kirklandsoren: vlan, i don't know, whatever someone's going to come up with21:05
sorenRight, ok.21:05
kirklandokay so....21:05
kirklandper the success criteria above, mathiaz has a package that's looking pretty good21:05
kirklandgrant it, we've only tested with default network21:05
kirklandbut EtienneG has offered to help us with some other scenarios21:05
kirklandbonded, for instance21:05
kirklandif you wish, i suppose we can test that in a PPA?21:05
kirklandwould that make you feel better than uploading to Jaunty?21:06
sorenthat's a really good idea.21:06
sorenMuch.21:06
kirklandokay, we can do that, gather some data points21:06
kirklandheck, blog about it on ubuntu-server21:06
EtienneGgoing to test it in a minute, my intrepid vm is updating right now21:06
sorenThe fewer upgrade cases to worry about, the better. Especially the ones that mess around with rc?.d/* symlinks.21:06
* kirkland steps off the pulpit21:07
sorenkirkland: Can you give me the quick 5 points on how mathiaz's package does things now?21:07
mathiazEtienneG: the packages I've put on people.ubuntu.com have been compiled for jaunty21:07
mathiazsoren: open-iscsi is started after S40Networking21:07
mathiazsoren: open-iscsi init script takes care of mounting the _netdev entries in fstab21:08
* kirkland will let mathiaz take this one, and fly wingman21:08
mathiazsoren: this is what debian is doing for now.21:08
sorenYes.21:08
mathiazsoren: for the shutdown sequence, open-iscsi is shutdown after umountnfs and sensigs21:08
mathiaz*sendsigs*21:09
mathiazsoren: umountnfs.sh takes care of umounting netdev filesystems21:09
mathiazsoren: and sendsigs won't kill the iscsid daemon21:09
sorenmathiaz: What if /usr is on iscsi?21:09
mathiazsoren: do script run after S32open-iscsi rely on /usr available?21:11
sorenAfter S35mountall.sh.21:11
mathiazsoren: the next one S40umountfs states that it doesn't rely on /usr21:12
sorenmathiaz: S40umountfs?21:12
sorenWhere's that?21:12
mathiazsoren: /etc/rc6.d/21:12
mathiazsoren: and actually you have the same problem if /usr on mounted via nfs21:12
sorenEr... WE're talking about bootig here?21:12
sorenbooting.21:12
mathiazsoren: no - shutdown21:12
sorenOh.21:13
sorenI'm not :)21:13
sorenno point in worrying about shutting down if we can't boot properly yet :)21:13
mathiazsoren: sure - so how is /usr on nfs handled?21:13
espaciousso soren http://pastebin.com/f3ebe2c3d , http://pastebin.com/fa975495 , http://pastebin.com/f695ade9921:13
mathiazsoren: in that case it's S45mountnfs.sh that is takes of mounting /usr from nfs21:14
EtienneGmathiaz, damn developer and their bleeding edge stuff!21:14
sorenmathiaz: Probably not very well anymore.21:14
sorenmathiaz: That's a poor excuse to break it for iscsi too, though :)21:14
espacioussoren i think the partitions shoud be Raisd autodetect not LVM or what?21:14
EtienneGjust curious: are you guys going to go with marking fs on iscsi target with _netdev and delaying mount until all of networking is up?21:14
mathiazEtienneG: yes21:15
kirklandEtienneG: right21:15
EtienneGmathiaz, now I love you21:15
sorenplease, please, please.... no.21:15
mathiazsoren: so how do you wanna handle that then?21:15
sorenhandle what, exactly?21:15
mathiazsoren: what EtienneG just said21:16
sorenHandle marking stuff as netdev and postponing mounting?21:16
sorenI wouldn't.21:16
mathiazsoren: yes - and waiting for S40networking21:16
sorenI wouldn't.21:16
mathiazsoren: before starting any iscsi device21:16
sorenI wouldn.t21:16
mathiazsoren: the other option is to use if-up.d21:17
soren*a* other option.21:17
sorenPossibly a good one.21:17
mathiazsoren: if so, we'd have to teach mountnfs.sh to wait for netdev filesystem to come up.21:17
mathiazsoren: and we'd also have to come up with a way to make sure that iscsi block device are available before keeping booting21:18
sorenYes.21:18
mathiazsoren: the use case here being that some application may wanna use the raw block device21:18
mathiazsoren: and so we have to make sure that the iscsi block device is there21:18
* soren is very confused21:18
mathiazsoren: AFICT there isn't such a facility for now21:18
sorenYou ask me...21:18
sorenand I explain at great lenght what I'd do...21:19
sorenand you decide to do the complete opposite.21:19
sorenWhy do you ask?21:19
sorenI said, and still believe that marking things in fstab as netdev, postponing mounting until after S40, etc, etc. is exactly how you'd do it 15 years ago.21:20
sorenWe've changed everything else in Ubuntu to happen at discovery time. This has brought us loads of cool stuff.21:20
mathiazsoren: ok - so what you suggested to make sure that the iscsi devices pop up in time21:20
sorenWe no longer have to hardcode raid configurations and whatnot... We configure stuff as it pops up and that magically makes everything available when we want to mount it.21:21
soreni dont' see why we'd go the complete opposite direction with iscsi.21:21
mathiazsoren: ok - so I've got some working code to that integrates with if-up.d21:21
mathiazsoren: we get to the point where the iscsi block device are created21:22
sorendoes it involve marking stuff as _netdev?21:22
sorenIn fstab?21:22
EtienneGthe drawback being that you have to fix each networking use-case piecemeal, and leave people with some esotoric network setup in the cold21:22
mathiazsoren: yes - because the mountfs script if ifup.d takes care of mounting netdev devices21:22
EtienneG(ie, wpasupplicant, various vpn and stuff)21:22
sorenEtienneG: Noone said making an operating system was easy.21:22
* soren sobs21:23
sorenIt's pointless.21:23
mathiazsoren: the other option is to teach udev to mount the device21:23
sorenit's an annoying thing to have to implement in the installer, and if we do the other stuff right, it's not necessary.21:23
sorenmathiaz: No. The other option is to make sure that the device is there and ready when *everthing* else is mounted.21:23
sorenYour if-up.d trick might very well do that.21:24
sorenI'm starting to like the sounds of it.21:24
Jeeves_I might have missed half the discussion21:24
mathiazsoren: ok - but then how do you make sure that when mountall.sh waits for all the devices to be there?21:24
Jeeves_But how is iscsi really different from nfs?21:25
sorenmathiaz: udevadm settle, probably.21:25
Jeeves_(Shut me up if needed)21:25
sorenJeeves_: For one thing, you have a regular filesystem on iscsi.21:25
soreniscsi provides block devices.21:25
EtienneGJeeves_, iscsi expose block devices, nfs expose file syste,21:25
sorennfs is easy to recognise in fstab.21:25
soren...which has allowed for shortcuts earlier.21:25
EtienneGbasically, iscsi make network block device look like they are local21:26
sorenmathiaz: Or we could spin waiting for stuff to turn up if we wanted to.21:26
mathiazsoren: hm - you may hit race condition, because while isciadm is logging  into the target udev doesn't know that there is device to be settled21:26
EtienneGan iscsi target would show up as /dev/sdb, /dev/sdc, etc21:26
sorenmathiaz: We do for the root filesystem anyway.21:26
Jeeves_ah right21:26
Jeeves_missed that bit :)21:26
sorenmathiaz: These are tiny details. I'm sure there's a way to query iscsid asking it if it's about to login somewhere or not.21:27
mathiazsoren: well - the list of target to logged in can be retrieved easily21:27
sorenmathiaz: We can even add a special piece of code that puts a lock file somewhere when we call the initiator thing and remove it when it's done and wait for it to disappear before we go on to mountall.21:28
EtienneGmathiaz, in any case, is there still any value in me testing whatever you did today?21:29
mathiazsoren: that means sticking another init script in rcS before mountaall21:29
mathiazEtienneG: yes21:29
mathiazEtienneG: I'd like to know what happens when multiple interface are used21:29
sorenmathiaz: Really? Couldn't we do it in the current open-iscsi script?21:29
EtienneGmathiaz, ok, but I will postpone until tomorrow if you do not mind.  Also, could you post the URL again, it is lost in the scrollback :(21:29
sorenmathiaz: ...which is at S25.21:29
mathiazEtienneG: whathever solution we choose, we'll run in the same issue when iscsiadm tries to connect to a target with multiple interfaces21:30
kirkland<mathiaz> EtienneG: could test the open-iscsi package from http://people.ubuntu.com/~mathiaz/packages/?21:30
EtienneGthanks21:30
kirklandEtienneG: bonded ethernet would be nice if you could test that one21:30
kirklandEtienneG: bridged too, if possible21:30
mathiazsoren: well - we'd have to refactor the init script completly21:30
mathiazsoren: the current init script should be moved to if-up.d21:31
mathiazsoren: as it's responsible for starting the iscsid daemon if it's not running21:31
mathiazsoren: and then logging  into the target21:31
sorenmathiaz: Right.21:31
sorenmathiaz: I don't mind changing things :)21:31
mathiazsoren: we'd have to add another init script at S25 that waits for all the iscsi devices to be up21:31
sorenmathiaz: Especially if those things are things that is involved in booting and we inherited it from Debian.21:32
EtienneGkirkland, yeah, I will try to setup a testbed with both21:32
sorenmathiaz: All the ones that are on their way, yes.21:32
mathiazsoren: hm - that should be possible then21:33
sorenIt's very possible. In fact, I doubt it's more than a couple of days work.21:33
* soren runs for a few minutes21:36
* kirkland -> goes get a late lunch21:37
sorenmathiaz, kirkland: So I think we're pretty much on the same page now?21:41
sorenPlan is: Fix ifenslave-2.6 to configure stuff asap (a.k.a. when the last slave turns up). Put iscsi initiation thing into an if-up.d script. Replace the existing S25open-iscsi with something like "udevadm settle; <something that waits for running iscsi logins to finish>" ?21:43
sorenEtienneG: Doing it the Debian way might solve a specific problem you have at hand, but it fails in many other ways. It works no matter how obscene your network setup is, but it doesn't work at all for people who need it for /usr, /var or anything else that's expected to be around waaay before S40networking is run.21:46
sorenEtienneG: I don't think this is a matter of choosing one over the other. This is a matter of fixing this to happen in the order required to make any use case work.21:48
EtienneGsoren, could be.  In the end, I do not care about the Ubuntu way or the 15-years-ago way of doing it, I just care about getting it to work in a general fashio21:48
EtienneGotherwise, it is not fixed, it is just a problem waiting to happen21:48
EtienneGif you think your way does it, I am good with it21:49
sorenBack in the day, there were init scripts for mdadm and lvm. They were run in that order. You had to put your mdadm config into a config file. If you wanted to stack things in more layers than that, or if you wanted mdadm on top of lvm, you lost.21:49
sorenIn fixing that, there were a few cases here and there that failed for a while, but the end result is a *very* flexible system that allows you to stack things in any way you please, because we don't care about the ordering anymore.21:50
sorenThis paradigm started to work its way into networking, when udev started configuring things as they turned up.21:51
sorenSomeone (who shall remain unnamed right now) put in a "fix" that stopped this from happening, effectively bringing back networking to the "one way or the highway" paradigm.21:52
* soren goes to bed21:57
RediXeUsing rsync, I can rsync my home directory on my desktop to my server, how can I then pull that home directory off the server and on to my laptop?23:24
Kamping_Kaisersure.23:25
hads`rsync server:. .`23:28
hadsSomething along those lines23:29
dana_goodrsync server /home/redixe23:29
dana_goodsomething like that23:30
hadsThat doesn't involve a remote source23:30
hadsOK, I forgot the -a switch on mine.23:31
Kamping_Kaiserrsync -avz --progress $PATHIN server:$PATHOUT23:51
hadsrsync -Pav server:. .23:58

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