Print a list of the devices. For each device, display the device name, size, free available space, partitioning type, if it is marked as Shareable for Clustering, and if it is an NSS software RAID device. If no other options are specified, this prints a list of all devices and software RAID devices.
nlvm [-t] list devices [exclude] [more|all]
Command Options
Exclude the specified type of devices. This option can be used multiple times to add exclusions for different types. Valid device types are raid, nonraid, shared, nonshared, lvm, or nonlvm.
Example
exclude=raid exclude=nonshared
Use this NLVM option to format the output for parsing.
Prints more information than appears in the standard output. It can be used with or without the -t NLVM option.
Example
more
Prints detailed information about each of the devices. This is the same information that is printed for the nlvm list device <device_name> command. It can be used with or without the -t NLVM option.
Example
all
Command Example
Print detailed information for all non-LVM shared devices that are not software RAID devices.
You can issue the commands with the --terse NLVM option to output the same information in a format that is more easily parsed.
Standard Output
The command returns the following standard information about the devices on the server:
Label |
Description |
---|---|
Name |
Device name such as sdb or raid1 |
Size |
Total amount of space on the device in KB, MB, GB, or TB |
Used |
Used space on the device in KB, MB, GB, or TB |
Free |
Available space on the device in KB, MB, GB, or TB |
Format |
MSDOS, GPT, CSM (legacy EVMS Cluster Segment Manager), LVM (clustered Linux LVM volume), None (not initialized) |
Shared |
Yes or No; whether this device is marked as Shareable for Clustering |
RAID |
Yes or No; whether this is an NSS software RAID device |
Enabled |
Yes or No; whether the RAID is enabled on this node |
More Output
The command returns the following additional information about the devices on the server:
Label |
Description |
---|---|
RAID |
Type (0, 1, or 5) or No; type of NSS RAID device, or not a RAID |
Sync |
Yes or %; whether the RAID is in sync or percent completed |
M:M |
Major:Minor numbers, such as 8:112 |
All Output
If the all option is used, the command returns the same information about each device as is displayed for the nlvm list device <device_name> command. This includes information about its partitions, or about its partitions and segments for RAID devices.
Name Size Used Free Format Shared RAID Enabled sda 20.00GB 19.99GB 1008KB MSDOS No No sdb 1.00GB 400.01MB 623.98MB MSDOS No No sdc 1.00GB 710.78MB 298.82MB MSDOS No No sdd 8.00GB 50.01MB 7.95GB MSDOS Yes No rr0 199.96MB 100.01MB 99.95MB MSDOS No 0 Yes MyRaid1 99.98MB 0KB 99.98MB None No 1 Yes
Name=sda Size=20.00GB Used=19.99GB Free=1008KB Format=MSDOS Shared=No RAID=No Name=sdb Size=1.00GB Used=400.01MB Free=623.98MB Format=MSDOS Shared=No RAID=No Name=sdc Size=1.00GB Used=710.78MB Free=298.82MB Format=MSDOS Shared=No RAID=No Name=sdd Size=8.00GB Used=50.01MB Free=7.95GB Format=MSDOS Shared=Yes RAID=No Name=rr0 Size=199.96MB Used=100.01MB Free=99.95MB Format=MSDOS Shared=No RAID=0 Enabled=Yes Name=MyRaid1 Size=99.98MB Used=0KB Free=99.98MB Format=None Shared=No RAID=1 Enabled=Yes
Name Size Used Free Format Shared RAID Sync Maj:Min sda 20.00GB 19.99GB 1008KB MSDOS No No 8:0 sdb 1.00GB 400.01MB 623.98MB MSDOS No No 8:16 sdc 1.00GB 710.78MB 298.82MB MSDOS No No 8:32 sdd 8.00GB 50.01MB 7.95GB MSDOS Yes No 8:48 rr0 199.96MB 100.01MB 99.95MB MSDOS No 0 Yes 253:15 MyRaid1 99.98MB 0KB 99.98MB None No 1 Yes 253:2
Name=sda Size=20.00GB(41943040) Used=19.99GB(41941024) Free=1008KB(2016) Format=MSDOS Shared=No RAID=No M:M=8:0 H:S=255:32 Partitions on the device: Part Type Size Sectors Pool sda1 Linux Swap 1.00GB 2103296 sda2 Linux 15.98GB 33527808 sda3 Linux 3.00GB 6309888 Name=sdb Size=1.00GB(2097152) Used=400.01MB(819232) Free=623.98MB(1277920) Format=MSDOS Shared=No RAID=No M:M=8:16 H:S=255:32 Partitions on the device: Part Type Size Sectors Pool sdb1.1 NSS 100.00MB 204800 PMOVE sdb1.2 NSS 100.00MB 204800 sdb1.3 NSS 100.00MB 204800 BIGLONGPOOLNAME sdb1.4 NSS Raid 100.00MB 204800 Name=sdc Size=1.00GB(2097152) Used=710.78MB(1455680) Free=298.82MB(612000) Format=MSDOS Shared=No RAID=No M:M=8:32 H:S=255:32 Partitions on the device: Part Type Size Sectors Pool sdc1 Linux LVM 103.57MB 212128 sdc2 Linux LVM 103.59MB 212160 sdc3 Linux 103.59MB 212160 sdc4 DOS Extended 713.20MB 1460640 sdc5.1 NSS 100.00MB 204800 sdc7.1 NSS 100.00MB 204800 POOL1 sdc8.1 NSS Raid 100.00MB 204800 sdc9.1 NSS 100.00MB 204800 PMOVE_move Name=sdd Size=8.00GB(16777216) Used=50.01MB(102432) Free=7.95GB(16674784) Format=MSDOS Shared=Yes RAID=No M:M=8:48 H:S=255:32 Partitions on the device: Part Type Size Sectors Pool cluster.sbd Cluster 50.00MB 102400 Name=rr0 Size=199.96MB(409536) Used=100.01MB(204832) Free=99.95MB(204704) Format=MSDOS Shared=No RAID=0 Sync=Yes M:M=253:15 H:S=255:32 Segs=2 Enbl=Yes Missing=None Stripe=64k Segments of the RAID: Segment Name Device Size Sectors 0 sdb1.4 sdb 100.00MB 204800 1 sdc8.1 sdc 100.00MB 204800 Partitions on the device: Part Type Size Sectors Pool rr0p1.1 NSS 50.00MB 102400 rr0p1.2 NSS 50.00MB 102400 RRPOOL Name=MyRaid1 Size=99.98MB(204768) Used=0KB(0) Free=99.98MB(204768) Format=None Shared=No RAID=1 Sync=Yes M:M=253:2 H:S=255:32 Segs=2 Enbl=Yes Segments of the RAID: Segment Name Device Size Sectors Sync 0 sdb1.2 sdb 100.00MB 204800 Yes 1 sdc5.1 sdc 100.00MB 204800 Yes