raid5d8
Command set to manage md devices.
Part of mdadd(8).
Usage
mdadd [options]
[md_device]
[block_device_1
block_device_2 ...]
mdrun [options]
md_device
mdstop [options]
md_device
mdop [options]
md_device
block_device
Overview
Md devices are virtual devices used to group real block devices. This way, two 100MB disks can be used as a single 200MB disk, whatever their interface type.
If you're using the /proc filesystem, /proc/mdstat gives you informations about md devices status.
Avaible commands are :
mdadd : groups several real devices into a virtual one.
mdrun : set a virtual device as usable, with a given mode.
mdstop : free real devices belonging to a virtual one, and flush buffers.
mdop : invalidate or revalidate a device belonging to a raid-1 device
Options
-
-a -
Apply the command to the set of devices described in
/etc/mdtab.
-
-r -
Starts the virtual device after the real devices are being added. Only applicable to
mdadd.
-
-px -
where x is :
l : starts the device in linear mode,
0: starts the device in raid-0 mode,
1: starts the device in raid-1 mode.
assuming that the mode is either compiled into the kernel or loaded using theinsmodprogram. Only applicable tomdrun.
-
-cn -
(raid-0 and raid-1 only)
Set the chunk size as PAGE_SIZE << n. You can also set the chunk size in kilobytes with-cxkwhere x is a power of 2. Only applicable tomdrun.
-
-fn -
(raid-1 only)
Set the maximum fault number asn. Only applicable tomdrun.
-
-i -
(raid1 only)
Invalidate a physical device belonging to a raid-1 device. Only applicable tomdop.
-
-v -
(raid1 only)
Revalidate an invalidated physical device belonging to a raid-1 device. Only applicable tomdop.
-
-V -
Show version number as well as driver version the command is compiled for.
Examples
To configure the device :
/sbin/mdadd /dev/md0 /dev/sdb1 /dev/sdc2
Warning, /sbin/mdadd /dev/md0 /dev/sdb1 /dev/sdc2 is different from /sbin/mdadd /dev/md0 /dev/sdc2 /dev/sdb1 because there's no internal ordering.
To make it usable in linear mode :
/sbin/mdrun -pl /dev/md0
To make it usable in striped mode, with 8kb chunks :
/sbin/mdrun -p0 -c8k /dev/md0
To stop it :
/sbin/mdstop /dev/md0
If you have described you md-devices in /etc/mdtab , you can replace the two first steps with
/sbin/mdadd -ar
Files
/sbin/mdadd : main command. Other commands are symlinks to this file.
/etc/mdtab : configuration file.
/proc/mdstat : driver and devices status
Releases
Unchanged in 2 releases since Debian 1.1 (Buzz).