Name

raidhotadd

Synopsis

raidhotadd mdevice memberdevice

raidhotadd inserts a new disk into a running array. After a failed drive has been removed using raidhotadd, you can use this command to add a replacement drive.

When a new drive is introduced into an active array, reconstruction commences. Therefore, it’s a wise idea to add a new drive when you are certain that the recovery process will not impact users. There may, of course, be times when waiting is not an option. You can also fine-tune the speed at which recovery occurs in order to minimize the impact on the system. Refer to the /proc/sys/dev/raid section, earlier in this chapter, for details on how to throttle the recovery process.

Options

raidhotadd has no command-line options. It takes an md device and a member disk as its only arguments.

Example usage

The following adds /dev/sdc1 to the array /dev/md0:

# raidhotadd /dev/md0 /dev/sdc1

Get Managing RAID on Linux now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.