6.35 List Devices

list devices [exclude] [more|all]

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=<raid|nonraid|shared|nonshared|lvm|nonlvm>

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
-t , --terse

Use this NLVM option to format the output for parsing.

more

Prints more information than appears in the standard output. It can be used with or without the -t NLVM option.

Example

more
all

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

nlvm list devices exclude=raid exclude=nonshared exclude=lvm all

Print detailed information for all non-LVM shared devices that are not software RAID devices.

Response Parameters

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

CACHE

Yes or No; whether this device is cachedev

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

SectorSize(logical/physical)

Logical or physical sector size of a device

Provisioning

Thick or Thin provisioning type

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.

Sample Command Responses
Sample 1: nlvm list devices
 Name        Size      Used      Free  Format Shared RAID Enabled CACHE
 sda        1.63TB    1.63TB       0KB  MSDOS   No    No           No
 sdb      931.00GB  206.00GB  724.99GB    GPT   No    No           No
 sdc      931.00GB  699.99GB  231.00GB  MSDOS   No    No           No
 sdd        1.63TB    1.63TB       0KB    GPT   No    No           No
 sde        1.63TB    1.00GB    1.63TB  MSDOS  Yes    No           No
 sdf        1.63TB  801.00GB  875.12GB    GPT  Yes    No           No
 MYRAID0   15.00GB   10.00GB    4.99GB  MSDOS  Yes     0     No    No
 RD1     1023.98MB 1023.98MB       0KB   None  Yes     1     No    No
MYCACHEDEV1    7.99GB    2.50GB    5.50GB    GPT   No    No     No   Yes
MYCACHEDEV2    7.99GB    1.25GB    6.75GB    GPT   No    No     No   Yes
Sample 2: nlvm list devices --terse
 Name=sda Size=1.63TB Used=1.63TB Free=0KB Format=MSDOS Shared=No RAID=No CACHE=No
 Name=sdb Size=931.00GB Used=206.00GB Free=724.99GB Format=GPT Shared=No RAID=No CACHE=No
 Name=sdc Size=931.00GB Used=699.99GB Free=231.00GB Format=MSDOS Shared=No RAID=No CACHE=No
 Name=sdd Size=1.63TB Used=1.63TB Free=0KB Format=GPT Shared=No RAID=No CACHE=No
 Name=sde Size=1.63TB Used=1.00GB Free=1.63TB Format=MSDOS Shared=Yes RAID=No CACHE=No
 Name=sdf Size=1.63TB Used=801.00GB Free=875.12GB Format=GPT Shared=Yes RAID=No CACHE=No
 Name=MYRAID0 Size=15.00GB Used=10.00GB Free=4.99GB Format=MSDOS Shared=Yes RAID=0 Enabled=No CACHE=No
 Name=RD1 Size=1023.98MB Used=1023.98MB Free=0KB Format=None Shared=Yes RAID=1 Enabled=No CACHE=No
Name=MYCACHEDEV1 Size=7.99GB Used=2.50GB Free=5.50GB Format=GPT Shared=No RAID=No  Enabled=No CACHE=Yes
Name=MYCACHEDEV2 Size=7.99GB Used=1.25GB Free=6.75GB Format=GPT Shared=No RAID=No  Enabled=No CACHE=Yes
Sample 3: nlvm list devices more
 Name        Size      Used      Free  Format Shared RAID  Sync  Maj:Min  SectorSize(logical/physical)  Provisioning CACHE

 sda        1.63TB    1.63TB       0KB  MSDOS   No    No           8:0          4096b/4096b                Thick   No
 sdb      931.00GB  206.00GB  724.99GB    GPT   No    No           8:16          512b/512b                 Thick    No
 sdc      931.00GB  699.99GB  231.00GB  MSDOS   No    No           8:32          512b/512b                 Thick    No
 sdd        1.63TB    1.63TB       0KB    GPT   No    No           8:48         4096b/4096b                 Thin   No
 sde        1.63TB    1.00GB    1.63TB  MSDOS  Yes    No           8:64         4096b/4096b                 Thin   No
 sdf        1.63TB  801.00GB  875.12GB    GPT  Yes    No           8:80         4096b/4096b                 Thin   No
 sdg        7.99GB      16KB    7.99GB  MSDOS  Yes    No           8:96          512b/512b                 Thick    No
 sdh        7.99GB    5.00GB    2.99GB  MSDOS  Yes    No           8:112         512b/512b                  Thin    No
 sdi        7.99GB    5.00GB    2.99GB  MSDOS  Yes    No           8:128         512b/512b                 Thick    No
 sdj        8.40GB    5.00GB    3.40GB  MSDOS  Yes    No           8:144         512b/512b                  Thin    No
 MYRAID0   15.00GB   10.00GB    4.99GB  MSDOS  Yes     0  NoEbl  254:4           512b/512b                  Thin    No
 RD1     1023.98MB 1023.98MB       0KB   None  Yes     1  NoEbl  254:3          4096b/4096b                Thick   No
 MYCACHEDEV1    7.99GB    2.50GB    5.50GB    GPT   No    No         254:0           512b/512b                    NA   Yes
MYCACHEDEV2    7.99GB    1.25GB    6.75GB    GPT   No    No         254:1           512b/512b                    NA   Yes
Sample 4: nlvm list devices all
  Name=sda
  Size=1.63TB(3515088896) Used=1.63TB(3515088896) Free=0KB(0)
  Format=MSDOS Shared=No RAID=No M:M=8:0 H:S=255:32 SectorSize(logical/physical)=4096b/4096b Provisioning=Thick Cache=No Enbl=No
  Partitions on the device:
   Part   Type                Size     Sectors  Pool
   sda1.1 NSS                1.63TB 3515083168  POOL1

 Name=sdb
  Size=931.00GB(1952448512) Used=206.00GB(432021568) Free=724.99GB(1520426911)
  Format=GPT Shared=No RAID=No M:M=8:16 H:S=255:32 SectorSize(logical/physical)=512b/512b Provisioning=Thick Cache=No Enbl=No
  Partitions on the device:
   Part Type                Size    Sectors  Pool
   sdb2 Linux              5.00GB  10491904
   sdb3 Linux              1.00GB   2103296
   sdb1 Linux            199.99GB 419426304

 Name=sdc
  Size=931.00GB(1952448512) Used=699.99GB(1467987968) Free=231.00GB(484460544)
  Format=MSDOS Shared=No RAID=No M:M=8:32 H:S=255:32 SectorSize(logical/physical)=512b/512b Provisioning=Thick Cache=No Enbl=No
  Partitions on the device:
   Part Type                Size    Sectors  Pool
   sdc1 Linux LVM         99.99GB 209711104
   sdc2 Linux LVM        199.99GB 419424256
   sdc3 Linux LVM        199.99GB 419424256
   sdc4 Linux LVM        199.99GB 419426304

 Name=sdd
  Size=1.63TB(3515088896) Used=1.63TB(3515088856) Free=0KB(0)
  Format=GPT Shared=No RAID=No M:M=8:48 H:S=255:32 SectorSize(logical/physical)=4096b/4096b Provisioning=Thin Cache=No Enbl=No
  Partitions on the device:
   Part Type                Size     Sectors  Pool
   sdd1 Linux LVM        100.01GB  209741824
   sdd2 Linux LVM        100.01GB  209745920
   sdd3 Linux LVM        100.01GB  209743872
   sdd4 Linux LVM        100.01GB  209745920
   sdd5 Linux LVM        100.01GB  209743872
   sdd6 Linux LVM        100.01GB  209743872
   sdd7 Linux LVM        100.01GB  209745920
   sdd8 Linux LVM        100.01GB  209743872
   sdd9 Linux            876.01GB 1837129728

 Name=sde
  Size=1.63TB(3515088896) Used=1.00GB(2097184) Free=1.63TB(3512991712)
  Format=MSDOS Shared=Yes RAID=No M:M=8:64 H:S=255:32 SectorSize(logical/physical)=4096b/4096b Provisioning=Thin Cache=No Enbl=No
  Partitions on the device:
   Part   Type                Size  Sectors  Pool
   sde1.1 NSS                1.00GB 2097152  DATA3

 Name=sdf
  Size=1.63TB(3515088896) Used=801.00GB(1679818816) Free=875.12GB(1835269816)
  Format=GPT Shared=Yes RAID=No M:M=8:80 H:S=255:32 SectorSize(logical/physical)=4096b/4096b Provisioning=Thin Cache=No Enbl=No
  Partitions on the device:
   Part   Type                Size     Sectors  Pool
   sdf1.1 NSS              500.00GB 1048576000  DATA
   sdf1.2 NSS              300.00GB  629145600  WEB
   sdf1.3 NSS                1.00GB    2097152  DATA3


Name=sdg 
  Size=10.00GB(20971520) Used=9.00GB(18874432) Free=1023.95MB(2097055)
  Format=GPT Shared=No RAID=No M:M=8:96 H:S=255:32 SectorSize(logical/physical)=512b/512b Provisioning=Thick Cache=No Enbl=No
  Partitions on the device:
   Part   Type                Size   Sectors  Pool
   sdl1.1 NSS CACHEDEV       5.00GB 10485760
   sdl1.2 NSS CACHEDEV       4.00GB  8388608


 Name=sdh 
  Size=10.00GB(20971520) Used=7.00GB(14680128) Free=2.99GB(6291359)
  Format=GPT Shared=No RAID=No M:M=8:112 H:S=255:32 SectorSize(logical/physical)=512b/512b Provisioning=Thick Cache=No Enbl=No
  Partitions on the device:
   Part   Type                Size  Sectors  Pool
   sdm1.1 NSS CACHEDEV       3.00GB 6291456
   sdm1.2 NSS CACHEDEV       4.00GB 8388608


Name=MYRAID0
  Size=15.00GB(31457280) Used=10.00GB(20971552) Free=4.99GB(10485728)
  Format=MSDOS Shared=Yes RAID=0 Sync=NoEbl M:M=254:4 H:S=255:32 SectorSize(logical/physical)=512b/512b Provisioning=Thin Cache=No Enbl=No
  Segs=3 Enbl=No Missing=None Stripe=64k
  Segments of the RAID:
   Segment Name   Device     Size   Sectors
      0    sdj1.1 sdj       5.00GB 10485792
      1    sdi1.1 sdi       5.00GB 10485792
      2    sdh1.1 sdh       5.00GB 10485792
  Partitions on the device:
   Part        Type                Size   Sectors  Pool
   MYRAID0p1.1 NSS               10.00GB 20971520  DATA4

 Name=RD1
  Size=1023.98MB(2097120) Used=1023.98MB(2097120) Free=0KB(0)
  Format=None Shared=Yes RAID=1 Sync=NoEbl M:M=254:3 H:S=255:32 SectorSize(logical/physical)=4096b/4096b Provisioning=Thick Cache=No Enbl=No
  Segs=2 Enbl=No
  Segments of the RAID:
   Segment Name   Device     Size  Sectors  Sync
      0    sde1.1 sde       1.00GB 2097152 NoEbl
      1    sdf1.3 sdf       1.00GB 2097152 NoEbl



Name=MYCACHEDEV1 
  Size=7.99GB(16777152) Used=2.50GB(5242944) Free=5.50GB(11534175)
  Format=GPT Shared=No RAID=No M:M=254:0 H:S=255:32 SectorSize(logical/physical)=512b/512b Provisioning=NA Cache=Yes Enbl=No
  Partitions on the device:
   Part           Type                Size   Sectors  Pool
   MYCACHEDEV11.1 NSS CACHE        256.00MB  524288
   MYCACHEDEV11.2 NSS CACHE          1.00GB  2097152
   MYCACHEDEV11.3 NSS CACHE        256.00MB  524288
   MYCACHEDEV11.4 NSS CACHE          1.00GB  2097152

 Name=MYCACHEDEV2 
  Size=7.99GB(16777152) Used=1.25GB(2621504) Free=6.75GB(14155615)
  Format=GPT Shared=No RAID=No M:M=254:1 H:S=255:32 SectorSize(logical/physical)=512b/512b Provisioning=NA Cache=Yes Enbl=No
  Partitions on the device:
   Part           Type                Size   Sectors  Pool
   MYCACHEDEV21.1 NSS CACHE        256.00MB  524288
   MYCACHEDEV21.2 NSS CACHE          1.00GB  2097152