Name

lsraid

Synopsis

lsraid [mode] [options] -a mddevicelsraid [mode] [options] -d memberdevice

lsraid is included with release 1.0 of raidtools. It allows users to examine arrays and generate /etc/raidtab files by querying active arrays. lsraid is useful for checking devices, diagnosing problems, and recovering lost configuration files. lsraid was written by Joel Becker at Oracle Corporation.

Options

-A

Specifies array mode. Displays information about an array. When combined with the -a option, array mode will query an active array. When combined with the -d option, array mode will read the RAID superblock from a member disk instead of querying the array.

-D

Denotes disk mode. Displays information about member disks. When used with the -a option, disk mode returns information about each array member. When combined with -d, disk mode returns information about the specified member disks.

-R

Specifies raidtab mode. Queries an array or member disk and generates an /etc/raidtab file based on the RAID superblock it finds.

-a device

Selects an active md device to query. If the md device is inactive, lsraid indicates the device major and minor numbers and specifies that the array is offline.

-d device

Selects which block device (member disk) to query. lsraid reads the RAID superblock from the member disk.

-f

When combined with -A, displays only member disks that have failed.

-g

When combined with -A, displays only member disks that are working.

-s

When combined with -A, displays only spare disks in an array. ...

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.