Administering RAID Arrays
5-22
Express5800/
ftServer
: System Administrator’s Guide for the Linux Operating System
Occasionally,
sfdisk
returns the following error while writing the saved partition
table to the spare disk:
Checking that no-one is using this disk right now ...
BLKRRPART: Input/output error
This error indicates that the disk is currently in use, so you should not repartition it.
Perform these steps to correct this error:
a. Unmount all file systems.
b. Swap off all swap partitions on this disk.
c. Use the
--no-reread
flag to suppress this check.
d. Use the
--force
flag to overrule all checks.
N O T E
The preceding error does not occur if the spare disk
already contained a valid partition table.
If you are sure that the spare disk is not in use, force
sfdisk
to write the partition
table by using the
--no-reread
flag.
To add partitions on the spare disk to RAID-1 arrays
1. Type the following command to determine which RAID-1 arrays the running disk
belongs to:
#
mdadm --detail --scan
ARRAY /dev/md2 level=raid1 num-devices=2
UUID=5ddb14c7:d5e0b2d6:ad80086d:8db2a245
devices=/dev/sda2
ARRAY /dev/md1 level=raid1 num-devices=2
UUID=3838df6e:60caf7e6:695d0f62:de94e821
devices=/dev/sda3
ARRAY /dev/md0 level=raid1 num-devices=2
UUID=3e4ad330:c8ee5dfc:f48bd88a:401ada25
devices=/dev/sda1