How does one fix an array that has come up as degraded?
Peter
On 13/03/06, Peter Kitchener peter@registriesltd.com.au wrote:
How does one fix an array that has come up as degraded?
man mdadm
-- Sudev Barar Learning Linux
Quoting Peter Kitchener peter@registriesltd.com.au:
How does one fix an array that has come up as degraded?
Let say "cat /proc/mdstat" states /dev/sda1 in /dev/md0 is the one that failed. You'd remove it from array with "mdadm /dev/md0 -r /dev/sda1". After you replace failed drive and partition it, you'd use "mdadm /dev/md0 -a /dev/sda1" to add it back. If you had more that one partittion on /dev/sda (belonging to different arrays), you'd repeat above mdadm commands for each of them.
Aleksandar Milivojevic wrote:
Quoting Peter Kitchener peter@registriesltd.com.au:
How does one fix an array that has come up as degraded?
Let say "cat /proc/mdstat" states /dev/sda1 in /dev/md0 is the one that failed. You'd remove it from array with "mdadm /dev/md0 -r /dev/sda1". After you replace failed drive and partition it, you'd use "mdadm /dev/md0 -a /dev/sda1" to add it back. If you had more that one partittion on /dev/sda (belonging to different arrays), you'd repeat above mdadm commands for each of them.
Thank you. That seems to have worked.
Peter