IRC log for #fredlug on 20070331

03:14.45jsmithstickster: You awake?
03:15.00plarsenhi there
03:15.09jsmithHey plarsen
03:15.35plarsenI see nobody posted a topic for tomorrow?
03:15.40plarsenI won't be coming ....
03:15.55plarsenso whatever happens, send me a blurb and I'll put it on the site.
03:16.35jsmithI'm not sure I'll make it either
03:16.41jsmithToo much other stuff going on :-(
03:17.13sticksterBusy schedule tomorrow, straight from LUG to rehearsal in Herndon
03:18.40plarsenI'm sure you'll find something to do ;)
03:19.42jsmithstickster: Quick question if you have a second
03:19.55jsmithstickster: A friend of mine has two drives in a RAID 1 array
03:20.06jsmithstickster: But apparently only one of the disks has a master boot record
03:20.17jsmithstickster: What's the easiest way to see which drive's MBR is correct?
03:20.23plarsenhardware or software raid
03:20.24plarsen?
03:20.32plarsenI'm allowed to "interfear" ;)
03:20.33jsmithsoftware
03:20.48jsmithYes, you're allow to cause me to fear
03:21.18plarsenjsmith: Whatever disk he's got active is the rigth one ... if you do an mdstatus you should see the raid is "off" ??
03:21.31sticksterYou can 'dd if=/dev/sdX of=/tmp/mbrcheck count=1' and look at the result... the MBR will have the AA55 word at offset $1FE
03:21.54sticksterIt appears on Intel as 55AA in their ordering
03:22.34plarsenjsmith: Didn't he mirror the whole disk, or just the partition?
03:22.52sticksterIf he's booting off it in SW RAID it can't be the whole disk
03:22.58sticksterWell, on most distros it can't.
03:23.14sticksterI hear in 2.6.21 it may be possible to put /boot on a RAID partition
03:23.52plarsenstickster: hehe - with RAID1 you can easily boot ;)  I've run md on whole disks before ..... it's been a while though.
03:24.01plarsen@ work I do everything hardware raid
03:24.08plarsenSo I don't mess too much with md these days
03:24.26sticksterI've only got some HW RAID and SAN at work
03:25.04sticksterBut I was pretty sure my installer didn't allow creation of a mirror for /boot
03:25.06plarsenI've got an md  (software) raid on my home box here
03:25.12plarsenBut it just hums along ;)  I don't touch it
03:25.26sticksterYou ended up making a /boot on one disk, and even if you mirror the disk the MBR and /boot is only used on one
03:25.36plarsenand yes, that's a partition based mirror.
03:25.42sticksterYup
03:25.48plarsenstickster: right - but it will work ;)
03:26.01plarsenstickster: so if you loose your primary, you just need to "dd" it back ;)
03:27.17plarsenjsmith: he would only be booting of one of the drives if the mirror is done on partition level. I don't doubt when Stickster says it can't be done on the full disk.
03:27.34plarsenjsmith: So why does it matter if the MBR on the secondary drive is bad?
03:28.07sticksterI don't think he said it was bad, just that he wanted to find out which was the MBR being used... how 'bout it jsmith?
03:28.31jsmithstickster: Yeah, it's not bad... just one of the MBRs works, and the other doesn't.
03:28.34plarsenstickster: bios disk 0?
03:28.43jsmithstickster: He just booted the disks individually until he found which MBR worked
03:28.51jsmithstickster: And then used dd to copy it to the other disk
03:34.43plarsenhmmm stickster; I still don't see anything in the md man pages that should prevent the full disk (non-partition) approach?  I could have SWORN I did that back in the 2.4 days.
03:34.53plarsenThe installer may not allow it ... but it can be done??
03:44.31sticksterplarsen: I'm not sure how that would work.  RAID arrays require a special superblock; how would that resolve with the required MBR for the BIOS?
03:45.00jsmithG'night...
03:45.12stickstergnight jsmith
03:45.23plarsenstickster: same way that there's room for both mbr and partition tables? Different addresses?
03:45.28plarsennight jsmith
03:45.44sticksterplarsen: Uh, no, the first partition table is in the MBR at sector 0 on the disk
03:46.15plarsenstickster: nope .. you can wipe mbr without the partition table ... ?
03:46.25plarsenmbr is just "jump" instructions
03:46.46sticksterplarsen: Right, wiping from $000 -> $1BD
03:46.53sticksterinside sector 0
03:47.40stickster$1BE -> $1FD is the first partition table
03:48.32plarsenThat wasn't really my point. MD "super block" can easily be placed elsewhere?
03:49.44plarsensuper-block is at the end of the device. There shouldn't be a conflict.
03:50.10sticksterYes, I just read that myself
03:50.38sticksterBut again, how would the user be prevented from writing an ext3 partition space over that area?
03:50.57plarsenOf course, if your RAID0/3/5 your disk, your "content" is kinda screwed. Hence the need for a seperate /boot
03:51.28plarsenprevented? The same way he's prevented from overwriting other parts of the disk?
03:51.31plarsenNot sure I understand
03:52.09plarsenWhat's the difference between preventing a user access from a partition that participates in an md device, and a disk device?
03:52.30sticksterThe partition is a type 0xFD, not ext3
03:52.51plarsenRight
03:52.52sticksterThat way the md driver using the partition can control access to the end of the device, keeping the file system from overwriting it
03:53.13plarsenehhhhh - partition types are for "fun" only ... ???
03:53.27plarsenRemember, there's gonna be NO partition table on a non RAID1 device.
03:54.01sticksterNot correct, you can assign three or more partitions in RAID 5, for instance.
03:54.19sticksterBut let's not cloud the issue
03:54.34sticksterThe point right now is, imagine a box with two hard disks.
03:54.36plarsenriiight - but on the single disk partition, there's no partition table. It's only in the logical assembled RAID5 md device.
03:54.45plarsenok
03:55.30sticksterImagine your scheme where you have the whole disks in a RAID1 mirror.
03:55.45sticksterYou are booting off these devices.
03:55.58sticksterAt what level does the system know it has a RAID? The md driver
03:56.48sticksteri.e. kernel or later, not in BIOS
03:57.00plarsencorrect - you need a non-raid boot device/partition. I totally agree. But once that's done, the md config etc. is all located in initrd
03:57.35sticksterWell, I'm not concerned about how you boot exactly, but using the whole drive as a RAID is not safe when you're using any kind of programmatic installer.
03:58.13sticksterBecause if the superblock is at the end of the disk, and there's no external marker for its existence, the installer would allow users to create partitions whose filesystems overwrote the md superblock.
03:58.50sticksterThus, the point of RAID partitions as the building blocks
03:59.07sticksterNow, that's not to say you can't make RAIDs from disks, or even boot from disks using RAID
03:59.56plarsenhmmm - why can't you just check for a valid super-block on device level ??
04:00.42plarsenBut I see your point. You were looking at this from an installation perspective
04:01.38sticksterthat's how most users are going to encounter it.  Exceedingly few will purposely go through the pain of doing all the installation steps manually to achieve a completely mirrored system
04:02.15sticksterBut I'll have to look at anaconda code to see how they handle this
04:02.18plarsenwell, that's excatly my problem with md .... to 'recover' you actually have to save your partition table seperately
04:02.33plarsenBecause if that goes "poof" your system is down, regardless that you mirrored your system
04:02.41sticksterYes, but that's a good idea whether RAID or not
04:03.28sticksterYou remember the old boot diskettes we used to get :-)
04:03.54plarsen:) yes, if you're not using hardware raid that is a good idea ;)  And the difference is, with hardware raid that physical aspect is mirrored too.
04:04.17plarsenheheh yeah, still have my old collection here. I think I still have a DOS 3.3 ;)
04:06.21plarsenso that's my issue for doing a full device RAID. But you're right, it's a chicken and egg issue. If there's no partition table/mbr, the bios won't boot
04:06.28sticksterYeah, checking the clone option in anaconda -- it clones the partition layout where the partitions are 0xFD
04:10.30plarsenyeah, it's about bedtime for me too.
04:10.56plarsenIf you guys get me stuff from the meeting tomorrow evening, I should have time to put it up before I go out of town for 5 days.
04:11.01plarsenNight
04:23.40stickster_afkI'll see what I can do, but after the meeting I hit the road and may not be back online until nighttime
13:05.31stickster_afkplarsen_away: Looks like you marked the meeting at 10:00am instead of 9:00 on the website
22:00.58*** join/#fredlug jsmith (n=jsmith@000-170-517.area3.spcsdns.net)
22:16.45*** join/#fredlug IrishW0lf_afk (n=william@70-41-145-17.cust.wildblue.net)

Generated by irclog2html.pl Modified by Tim Riker to work with infobot.