Name

raidstop

Synopsis

raidstop [options] mddevice

raidstop is the counterpart of raidstart and is useful for the same reasons. Since member disks can be allocated to only one array at a time, arrays must be deactivated by using raidstop before their member disks can become available to use in new arrays.

Options

-a, --all

Applies command to all devices found in /etc/raidtab. You will not need to specify an mddevice.

-c, --configfile filename

Specifies the use of a configuration file other than the default /etc/raidtab.

-h, --help

Displays configuration flags and exits.

-V, --version

Displays the command version and exit.

Example usage

The following stops all devices found in /etc/raidtab:

# raidstop -a

The following stops all arrays defined in /home/derek/example-raid0:

# raidstop -a -c /home/derek/example-raid0

The following stops /dev/md2, as defined in /home/derek/example-raid0:

# raidstart -c /home/derek/example-raid0 /dev/md2

The following stops only the array /dev/md2, as described in /etc/raidtab:

# raidstart /dev/md2

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.