=== Cale [n=cale@CPE004854805910-CM000e5cdd834a.cpe.net.cable.rogers.com] has joined #upstart [01:43] Hi, how do I get upstart to display what it is doing as it does it, during bootup and shutdown? I'd just like to be made aware of what's actually happening as it goes on. [01:45] The little progress bar is cute, but it's not really all that informative. [01:47] (I'm using Edgy) [02:00] <_ion> less /var/log/boot [02:01] yeah, how do I get that printed as the machine is actually booting? [02:03] <_ion> Probably by adding 'console output' to /etc/event.d files that contain 'exec /etc/init.d/rc...' === cortana [n=sam@62-31-146-25.cable.ubr12.azte.blueyonder.co.uk] has joined #upstart === cortana [n=sam@62-31-146-25.cable.ubr12.azte.blueyonder.co.uk] has joined #upstart === Cale [n=cale@CPE004854805910-CM000e5cdd834a.cpe.net.cable.rogers.com] has left #upstart ["Leaving"] === hunger [n=tobias@pd95b0676.dip0.t-ipconnect.de] has joined #upstart === nibil [n=nibil@adsl-static-3-105.uklinux.net] has joined #upstart === juergbi [n=juerg@80-219-26-249.dclient.hispeed.ch] has joined #upstart === johnnybuoy [n=johnny@unaffiliated/johnnybuoy] has joined #upstart === Md [i=md@freenode/staff/md] has joined #upstart === Md_ [i=md@freenode/staff/md] has joined #upstart === Md_ is now known as Md === jc-denton [n=nils@ztnw648.ztl.ch] has joined #upstart [11:18] hi all [11:19] i have the strange problem that / is sometimes suddenly mounted read only [11:19] and i cannout mount it rw with -o remount [11:19] also / is uncommented in /etc/fstab [11:19] why? === Md [i=md@freenode/staff/md] has joined #upstart === Keybuk [n=scott@quest.netsplit.com] has joined #upstart [01:15] why is commented? [01:25] commented? [01:49] yes [01:50] http://rafb.net/paste/results/9TtK1412.html [01:51] I don't understand? [01:51] # /dev/hda1 UUID=2232ef2d-5684-429b-8618-d31a881e55ab / ext3 defaults,errors=remount-ro 0 1 [01:51] it's commented out [01:51] you've edited the file and pressed "j" on that line, then saved it [01:52] (in vi) [01:52] no [01:52] or edited it in some other editor, and joined the two lines, however you did that [01:52] i did a fresh install of edgy [01:52] and did nothing with /etc/fstab until i got trouble [01:52] "until you got into trouble" ? [01:52] however i installed it when rc2 was out [01:52] it was suddenly mounted read only [01:53] so you edited /etc/fstab [01:53] and broke it [01:53] the lin break is just there because i copied that thing [01:53] look i also checked it out on some other edgy installtion [01:53] all I'm hearing here is "it was working fine until I broke it" [01:54] if the edgy system booted the first time, then the file must have been correct on first installation [01:54] (and, btw, this has nothing to do with upstart) === johnnybuoy [n=johnny@unaffiliated/johnnybuoy] has joined #upstart === Amaranth_ [n=travis@ubuntu/member/amaranth] has joined #upstart [02:27] ok [02:27] so is /etc/fstab generated by something [02:27] or can i simply edit it by hand [02:27] and also what is this UUID? [02:30] generated by the installer, but then edited by hand [02:30] the UUID is the UUID of the filesystem you want to mount [02:30] you can get it with "vol_id", e.g. "vol_id /dev/hda1" === johnnybuoy [n=johnny@unaffiliated/johnnybuoy] has joined #upstart === johnnybuoy [n=johnny@unaffiliated/johnnybuoy] has joined #upstart === Amaranth [n=travis@ubuntu/member/amaranth] has joined #upstart === wasabi [n=wasabi@ubuntu/member/wasabi] has joined #upstart [03:37] Keybuk: thx so far.. [03:48] humm [03:48] but mount doesn't get these UUIDs [03:49] so what does edgy use to mount it [03:50] mount [03:58] if i remove the # at the beginning [03:58] and type mount -a [03:58] then you'll get an invalid /etc/fstab [03:58] yes [03:58] so it cannot be mounted by mount [03:59] # /dev/hda1 [03:59] UUID=2232ef2d-5684-429b-8618-d31a881e55ab / ext3 defaults,errors=remount-ro 0 1 [03:59] maybe i need to ask different [03:59] # /dev/hda2 [03:59] what reads these lines? [03:59] UUID=ab2da10b-b58d-4f52-9291-2c39391e9996 none swap sw 0 0 [03:59] is what that should look like [03:59] jc-denton: mount. [04:00] the problem isn't that there's a "#" before "/dev/hda1" [04:00] the problem is that you've joined that line ("# /dev/hda1" with the line that should appear below it "UUID=..../...ext3..." etc.) [04:01] now i'm completely confused [04:01] evidently [04:01] http://rafb.net/paste/results/9TtK1412.html [04:01] so the line for /dev/hda2 is correct [04:01] Am I the only one who doesn't really like UUIDs? === Amaranth [n=travis@ubuntu/member/amaranth] has joined #upstart [04:01] but the one for /dev/hda1 not [04:01] jc-denton: the TWO LINES for /dev/hda2 are correct [04:01] wasabi_: what would you prefer? [04:01] ok [04:02] jc-denton: the fact there's only one line for /dev/hda1 is what's wrong [04:02] Keybuk: Unfortunatly I have no answer to that. Probably static device names. ;0 [04:02] but [04:02] jc-denton: tip: make it look like the /dev/hda2 TWO LINES [04:02] wasabi_: device names aren't static [04:02] that's not how the syntax for /etc/fstab is defined [04:02] jc-denton: yes it is [04:02] Why shouldn't they be though? [04:02] My problem with UUIDs is they ignore some odd corner cases. [04:02] Such as md1 vols. [04:03] wasabi_: because part of the name is a number, which implies enumeration of devices, which implies a fixed device set [04:03] <_ion> wasabi: If we want everything to just work with static device names, the device names must contain some kind of a UUID. :-) [04:03] but they don't just ignore it in a way as to make it not work, it continues to work, wrong. [04:03] wasabi_: hmm? md volumes contain an equivalent to a UUID or LABEL which can be used to mount them [04:03] Sure... I guess my main complaint is that the UUIDs come from the FS itself. [04:03] Which may actually have multiple paths to reach it. [04:03] wasabi_: multiple paths is irrelevant, multiple views is the problem there [04:04] hrmm [04:04] Sure? You've got the underlying md device... which is mountable! [04:04] But you should never mount it. [04:04] UUID=asdfasdf is a device or what [04:04] wasabi: what decides that one md is 0 and the other is 1 ? [04:04] and what i would like to know [04:04] is this documented somewhere [04:04] Keybuk: Hmm? [04:04] jc-denton: yes [04:04] jc-denton: yes [04:05] wasabi_: well, if you're going to rely on something which is md0 and something which is md1 [04:05] wasabi_: what decides which is 0 and which is 1? :) [04:05] Well, either way, it's a problem. When edgy switched to UUIDs, I couldn't boot. With my weird ass md + lvm + evms setup. :0 [04:05] wasabi_: we mucked up md/lvm/evms because the developer who's supposed to care about that is a lazy idiot [04:05] ;) [04:05] Keybuk: I'd name the md device statically based on the ID of the *md device* [04:05] not of the FS on it. [04:05] wasabi_: right, where's that ID stored? [04:06] In the MD metadata hopefully. [04:06] Keybuk: i did man fstab [04:06] Which is unviewbale unless the md vol is composed. [04:06] wasabi_: so that should be picked up, and placed in /dev/disk/by-id ? [04:06] and there is still the page from 2004 [04:06] Keybuk: where? [04:06] jc-denton: yes... fstab has supposed mounting by UUID or LABEL for a long time [04:07] <_ion> wasabi: If you're using LVM, why use UUIDs instead of /dev/vgname-lvname? They already have a unique, static identifier. [04:07] Maybe I'm mis understanding something. Where *does* the uuid come from? [04:07] wasabi_: make sure you're subscribed to the udev-* specs for MTV :p [04:07] _ion: Mostly because it forced me too. ;) [04:07] wasabi_: the filesystem/device/block device/container/whatever's appropriate [04:07] I have subscribed. [04:07] Hmm. === mbiebl [n=michael@e180101102.adsl.alicedsl.de] has joined #upstart [04:07] I guess that's maybe my core question. [04:07] In my case, where does the uuid come from. [04:07] The FS, the container, etc? [04:07] wasabi_: right now, errrr [04:07] ls -l /dev/disk/by-id [04:08] sorry [04:08] At some point in the past it came from the FS, because I had two, that conflicted. [04:08] ls -l /dev/disk/by-uuid [04:08] And it mounted the wrong one. [04:08] Looking in /dev/disk/bu-uuid looks right now. [04:08] only one pointer to md1, no pointers to it's underlying devices. [04:08] you had two, identical, Universally UNIQUE Ids? :p [04:08] Yes. Two paths to the same file system. [04:08] It's was a MIRROR [04:08] right [04:08] MD metadata is at the end. [04:09] The underlying devices are still usable. [04:09] so the MD itself should have an ID different to any of its exposed filesystems [04:09] e.g. [04:09] MD = abcdef, composed of two disks [04:09] Keybuk: ok [04:09] hda1 = 123456 [04:09] hda2 = 123456 [04:09] but this is the first time i see that [04:09] you'd mount root=UUID=abcdef [04:09] In the past, it wasn't like that. [04:09] is that linux only? [04:09] jc-denton: yes [04:09] Keybuk: In the past, I had UUID=12345, which was valid for 3 different devices... /dev/sda3, /dev/sdb3, and /dev/md0 [04:09] unless, of course, there's a way to tell by just looking at hda1 that it's part of an MD [04:10] And I guess the link was whatever the last one detected was. ;) [04:10] (without having yet composed the MD) [04:10] Or first one? [04:10] Also, I use XFS, which does have it's own UUID. [04:10] Maybe it decided to use that. [04:10] this is precisely what we need to discuss at MTV, and understand how it fits together [04:10] It looks fine now though. ;) [04:10] and then make sure it works [04:10] Yeah. [04:10] ok i think i got it [04:10] thanks so far for the infos [04:10] but it should be mentioned somewhere [04:10] does edgy has release notes or so [04:10] jc-denton: it is mentioned, in many places [04:11] It made no UUIDs to my evms devices at all though [04:11] but i could not find it [04:11] But it did overwrite fstab to use uuids. [04:11] wasabi_: yeah, we don't migrate MD, EVMS, LVM, etc. because we took the safety approach [04:11] jc-denton: it's in the man page for fstab! [04:11] Heh. You did migrate them. ;) [04:11] wasabi_: at first, yes [04:11] "oops" [04:11] then we decided that it was a bad idea given we didn't understand them [04:12] ah ok [04:12] :) [04:12] Well, to be clear, I don't mind UUIDs in the sense that I believe using a universally unique id is the right approach. [04:12] I just know I was burned a few times during the migration. [04:12] sure [04:12] Shit. I'm a MS guy. I'm used to GUIDs all over the place. [04:12] This will make the system more robust: adding or removing a SCSI disk changes the disk device name but not the filesystem volume label. [04:12] that's cause we don't understand LVM, EVMS, MD, etc. [04:13] ah ok [04:13] Can't wait to talk about em. :0 [04:13] we have specs to understand them, write it down, and then fix it :p [04:13] so that ensures that another disk is not mounted on a specified mount point [04:13] I do some crazy shit with md/lvm/evms. I'd love to see that crazy shit supportable. [04:13] jc-denton: and, more pointedly, it makes your system robust against installing (for example) another controller card [04:13] it should be [04:13] from what I understand, we basically just need to make sure [04:13] a) uevents are generated [04:14] b) which uevents mean we need to run certain tools [04:14] c) how to obtain a unique identifier for the fs/container/device/wibble [04:14] <_ion> jc-denton: Also, in (maybe not so) distant future, the kernel may switch to the libata PATA implementation. Then hd* will change to sd*. [04:15] _ion: RSN [04:15] I believe it was merged into 2.6.19 [04:15] <_ion> Ok, cool. [04:16] <_ion> The edgy kernel already uses libata for PATA disks connected to my SATA+PATA controller. [04:16] I guess the trick is figuring out which information from which devices to seed a uuid with. [04:16] For a md device, it should be the md metadata of the composed vol. [04:17] evms, it should be the evms metadata of the composed volume. [04:17] etc etc [04:19] Which is interesting because you can't actually obtain the MD metadata by looking at the md device itself. === mbiebl [n=michael@e180101102.adsl.alicedsl.de] has joined #upstart === Amaranth [n=travis@ubuntu/member/amaranth] has joined #upstart === Jameson1234 [n=napkin@ip503c00d9.speed.planet.nl] has joined #upstart === Jameson1234 [n=napkin@ip503c00d9.speed.planet.nl] has joined #upstart [05:52] Keybuk: Things get interesting with encrypted devices I think. [05:52] Keybuk: block device comes up -> need to check whether it contains files for loopback -> those turn into new block devs -> get mapped to yet another blockdev -> that needs to get mounted. [05:58] this is easy :) [05:59] it's a nice logical sequence of events [06:14] Keybuk: I have some questions about UMV. Curious how this plays out. These specs are driving out schedules and stuff right? [06:15] What do we all just end up in a room at a certain time sitting around a table? [06:16] And then the guy who registered the specs speaks up or something? === phsdv [n=kvirc@83.152.239.207] has joined #upstart === johnnybuoy [n=johnny@unaffiliated/johnnybuoy] has joined #upstart === Amaranth [n=travis@ubuntu/member/amaranth] has joined #upstart === Md_ [i=md@freenode/staff/md] has joined #upstart === Md_ is now known as Md === phsdv [n=kvirc@83.152.239.207] has left #upstart ["So] === mbiebl [n=michael@e180101102.adsl.alicedsl.de] has joined #upstart