Answer the question
In order to leave comments, you need to log in
How to hot swap disks in RAID1 using mdadm in Ubuntu Server 10.04?
Given:
Answer the question
In order to leave comments, you need to log in
Article on xgu
A disk in an array can be conditionally made a bad disk using the --fail (-f) switch:
A failed disk can be removed using the --remove (-r) switch:
Adding a new disk
You can add a new disk to the array using the --add switches (-a) and --re-add:
And, if you need to update mdadm.conf
The dmadm daemon itself can send mail about the status of the raid.
In order for the system to be able to boot from a program array, when creating an array, you must specify --metadataversion=0.90.
I make 500mb under boot (md0) the rest is md1, then lvm.
Accordingly fdisk'om it is necessary to break hards equally.
I can't say anything about the "spare disk". But in my opinion mdadm and 1 raid can build on 3 disks. I do not vouch for the result)))
%# mdadm /dev/md0 --fail /dev/hde1
%# mdadm /dev/md0 -f /dev/hde1
%# mdadm /dev/md0 --remove /dev/hde1
%# mdadm /dev/md0 -r /dev/hde1
%# mdadm /dev/md0 --add /dev/hde1
%# mdadm /dev/md0 -a /dev/hde1
In order to copy the partition table to a new disk, and not worry about fdisk, there is a utility sfdisk
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question