6.28 List Device

list device <device_name>

Print the details of a specified device.

nlvm [nlvm_options] list device  <device_name>

Command Option

device_name

Mandatory. Specify the desired device.

Example

sdb

Command Example

nlvm list device sdb

Print the details for the /dev/sdb device.

Response Parameters

The device details include the following values. Most labels are self-explanatory.

Label

Description

Name

Device name such as sdb or raid1

Size

Total amount of space on the device in KB, MB, GB, or TB, and the number of whole sectors in that space

Size=623.91MB (1277773)

Used

Used space on the device in KB, MB, GB, or TB, and the number of whole sectors in that space.

Free

Available space on the device in KB, MB, GB, or TB, and the number of whole sectors in that space

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

M:M

Major:Minor numbers, such as 8:112

H:S

Heads:Sectors geometry per track, such as 255:32

SectorSize (logical/physical)

Logical or physical sector size of a device

Provisioning

Thick or Thin provisioning type

If the device contains partitions, it provides the following information:

Label

Description

Part

Partition=

Partition name such as sdb1.1, sdc2, or cluster.sbd

Type

Partition type, including NSS, NSS RAID, SBD, Linux, Linux_swap, LVM

Size

Amount of space allocated to the partition in KB, MB, GB, or TB

Sectors

Number of whole sectors allocated to the partition

Pool

If the partition is the NSS type, the name of the pool that resides on the partition (if any)

For NSS software RAID devices, it provides the following information:

Label

Description

RAID

No or RAID type (0, 1, or 5)

Sync

Yes or %; whether the RAID is in sync or if a sync is in progress

Segs

Number of segments defined for the RAID

Enbl

Yes or No; whether the RAID is enabled on this node

Missing

Segment number (if any) that is missing in the RAID

Stripe

RAID stripe size in bytes (typically KB) for RAID types 0 and 5

For RAID segments, it provides the following information:

Label

Description

Segment

Segment index number

Name

Segment name, such as sdb1.4

Device

Name of the device that contains the segment, such as sdb

Size

Segment size in KB, MB, GB, or TB

Sectors

Number of whole sectors allocated to the partition

Sample Command Responses
Sample 1: Standard Device
nlvm list device sdf
 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
  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
Sample 2: NSS RAID 1 (Mirror) Device (not initialized)
nlvm list device RD1
 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=Thin
  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
Sample 3: NSS RAID 0 Device
nlvm list device MYRAID0
  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=Thick
  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