Skip to main content

Thread: Software RAID 1 recovery and testing confusion


hello,

have ubuntu server 11.10 installed in software raid 1 based on instructions on advanced installation page.

want test breaking , recovering array disconnecting drive, booting in degraded mode , installing new drive , re-syncing. instructions here indicate once in degraded mode need --remove disk both md0 , md1 devices, reinstall new disk , --add new device md0 , md1.

appears @ point disk begin re-syncing , progress can watched via watch -n1 cat /proc/mdstat command.

it? no need set partitions or before doing step?

part confuses me if mentions re install grub onto new disk sudo grub-install /dev/md0. shouldn't command sudo grub-install /dev/sdx x id of replaced drive? wouldn't md devices contain grub boot of non-failed drive? guess i'm confused here.

here current raid setup in case helps:
code:
paul@ubuntu:~$ cat /proc/mdstat  personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]  md1 : active raid1 sda2[0] sdb2[1]        70335416 blocks super 1.2 [2/2] [uu]    md0 : active raid1 sda1[0] sdb1[1]        7810036 blocks super 1.2 [2/2] [uu]    unused devices: <none>    paul@ubuntu:~$ sudo mdadm -d /dev/md0  [sudo] password paul:  /dev/md0:          version : 1.2    creation time : tue dec 27 22:12:18 2011       raid level : raid1       array size : 7810036 (7.45 gib 8.00 gb)    used dev size : 7810036 (7.45 gib 8.00 gb)     raid devices : 2    total devices : 2      persistence : superblock persistent        update time : thu dec 29 14:55:16 2011            state : clean   active devices : 2  working devices : 2   failed devices : 0    spare devices : 0               name : ubuntu:0  (local host ubuntu)             uuid : 87eb9c6b:e38970ce:47d97e62:3eec87f1           events : 19        number   major   minor   raiddevice state         0       8        1        0      active sync   /dev/sda1         1       8       17        1      active sync   /dev/sdb1    paul@ubuntu:~$ sudo mdadm -d /dev/md1  /dev/md1:          version : 1.2    creation time : tue dec 27 22:12:26 2011       raid level : raid1       array size : 70335416 (67.08 gib 72.02 gb)    used dev size : 70335416 (67.08 gib 72.02 gb)     raid devices : 2    total devices : 2      persistence : superblock persistent        update time : thu dec 29 15:56:49 2011            state : clean   active devices : 2  working devices : 2   failed devices : 0    spare devices : 0               name : ubuntu:1  (local host ubuntu)             uuid : d122e399:ee10f81d:132e1c8d:c1a3d942           events : 32        number   major   minor   raiddevice state         0       8        2        0      active sync   /dev/sda2         1       8       18        1      active sync   /dev/sdb2
thanks in advance on subject



Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [ubuntu] Software RAID 1 recovery and testing confusion


Ubuntu

Comments

Popular posts from this blog

How to set the order of FAQs instead of alphabetical

Thread: Get UK Keyboard working

how do I change the e-mail address for my merchant account