6.26 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

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 sdb
 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
Sample 2: NSS RAID 1 (Mirror) Device (not initialized)
nlvm list device MyRaid1
 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
Sample 3: NSS RAID 0 Device
nlvm list device rr0
 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