mdadm --run /dev/md? returns the following error
mdadm: failed to run array /dev/md0: Invalid argument
The script need to use mdadm --assemble and needs to provlde the configuration file /etc/mdadm.conf.
Also I am not sure why this script is named Raid1 since it can handle all types of raids (raid0,raid1,raid5 and raid10 etc).
Following is the patch to support Raid1 on systems which uses mdadm utility. Also added an example similar to raidtools.
Thanks
Ranjan
25a26,27 > # or > # nodea 10.0.0.170 Raid1::/etc/mdadm.conf::/dev/md0 > Filesystem::/dev/md0::/data1::ext2 60a63 > # 1a) or for systems with mdadm tools create /etc/mdadm.conf (see example > below) 62a66,69 > # 2a) or create mirror raid with the following command > # mdadm --create /dev/md? -l 1 -n 2 /dev/sdb? /dev/sdb? > # To list details about the raid configuration > # mdadm -D /dev/md? 88c95,98 < --- > # EXAMPLE config file for /etc/mdadm.conf (for more info:man mdadm.conf) > # > #DEVICE /dev/sdb1 /dev/sdb2 > #ARRAY /dev/md0 level=raid1 UUID=4a865b55:ba27ef8d:29cd5701:6fb42799 203c213 < $MDADM --run $MDDEV --config=$RAIDTAB_CONFIG --- > $MDADM --assemble $MDDEV --config=$RAIDTAB_CONFIG
_______________________________________________________ Linux-HA-Dev: [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/
