lazardo, please don't respond if you don't know the answer...
Quote:
Originally Posted by lazardo
RAID1 is defined as a mirror (meaning identical bits on the platter) set.
|
I think your wrong here,
In raid-1 the MBR is different! If you don't believe me try this:
- make a raid-1 configuration with raid-extra-boot=mbr (or the devices as you mentioned)
- stop the computer, remove 1 disk.
- change the remaining disk to the empty slot of the removed disk
- It will not boot.
- change the remaining disk to it's original slot.
- it will boot.
My conclusion: there must be something of the hardware adress in the written MBR.
My question(1): What is in the MBR written? (somthing like: I'm on 0x0800, or something like I'm part of x-way raid-device?)
Quote:
Originally Posted by lazardo
The option I noted tells the boot loader which disks are in the set and thus where to put copies of the MBR.
|
Which disks are in the set is written on the disk itself (when you generate the raid). NOT in a config-file like this (not even in mdadm.conf or raidtab.conf, there are only viewed when generating the raid)
The raid-extra-boot options is optional.
Normally the boot-record is only written on the first sector of the raid-1 partition (typically /dev/md0).
But if it's used the options are:
none : suppress generation of all auxiliary boot records. (don't write boot records to MBR), same as not using this option at all
auto : automatically generate auxilary boot records as needed on SKEWED raid sets.
Let says the first raid partion is /dev/md0 is made of /dev/sda1 /dev/sdb1.
My Question (2): will this option only put a bootrecord on the MBR of sda if there are not present on /dev/sda1, and only put a bootrecord on the MBR of sdb if there are not present on /dev/sdb1?
mbr-only: write the boot records for all disks which are part of the raid, but not on the first partition of the raid-device.
mbr: write the boot records for all disks which are part of the raid, and leave the default option to write boot-records on the first partition of the raid-device.
comma-seperated list of devices: write extra boot records to drives you mention here. For example only on /dev/sdb.
If someone could answer my questions, I would be very happy..