6.33 List Partitions

list partitions [device] [mask] [more|all]

Print a list of partitions based on the options. If no command options are specified, all data partitions are listed.

nlvm [-t] list partitions [device] [mask] [more|all]

Command Options

device=device_name

Print a list of the partitions on the specified device.

Example

device=sdb
mask=<free|all|nss|nssfree>

Print a list of the partitions that meet the specified mask option.

Mask Options

free

Print a list of only the free space partitions.

all

Print a list of both data and free space partitions.

nss

Print a list of only NSS type partitions.

nssfree

Print a list of free space that can be used to create NSS partitions. This option combines contiguous free space together to give a true view of available space.

Example

mask=nss
-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 partitions. This is the same information that is printed for the nlvm list partition <partition_name> command. It can be used with or without the -t NLVM option.

Example

all

Command Example

nlvm list partitions device=sdb mask=nss

Print a list of partitions of type nss on the /dev/sdb device.

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 information about the partitions on the server:

Label

Description

Name

Name of the partition

Type

Partition type in both hex and type name if known

Start

Starting sector of the partition

Size

Size of the partition in MB, GB, or TB

Device

Device the partition is on, such as sda or raid1

More Output

The command returns the following additional information about the partitions on the server:

Label

Description

Shared

Whether the partition is marked Shareable for Clustering (1, 0)

M:M

Major:minor numbers of the partition (if applicable)

Pool

Name of the NSS pool using this partition (if applicable)

All Output

If the all option is used, the command returns the same information about each partition as is displayed for the nlvm list partition <partition_name> command.

Sample Command Responses
Sample 1: nlvm list partitions
nlvm list partitions

 Name                        Type    Start     Size  Device
 sda1              82(Linux_Swap)     2048    1.00GB sda
 sda2                   83(Linux)  2105344   15.98GB sda
 sda3                   83(Linux) 35633152    3.00GB sda
 sdb1.1                  169(NSS)       32  100.00MB sdb
 sdb1.2                  169(NSS)   204832  100.00MB sdb
 sdb1.3                  169(NSS)   409632  100.00MB sdb
 sdb1.4             1CF(NSS_Raid)   614432  100.00MB sdb
 sdc1               8E(Linux_LVM)       32  103.57MB sdc
 sdc2               8E(Linux_LVM)   212160  103.59MB sdc
 sdc3                   83(Linux)   424320  103.59MB sdc
 sdc4             5(DOS_Extended)   636480  713.20MB sdc
 sdc5.1                  169(NSS)   636512  100.00MB sdc
 sdc7.1                  169(NSS)  1060832  100.00MB sdc
 sdc8.1             1CF(NSS_Raid)  1272992  100.00MB sdc
 sdc9.1                  169(NSS)  1485152  100.00MB sdc
 cluster.sbd       1AD(Cluster)   409664   50.00MB sdd
 sde1                   83(Linux)       32  103.57MB sde
 sde2                   83(Linux)   212160  103.59MB sde
 sde3               8E(Linux_LVM)   424320  103.59MB sde
 sde4             5(DOS_Extended)   636480  713.20MB sde
 sde5                   83(Linux)   636512  103.57MB sde
 sde6                   83(Linux)   848672  103.57MB sde
 sde7.1             1AC(Snapshot)  1060832   50.00MB sde
 sdf1.1                  169(NSS)       32  100.00MB sdf
 sdf2                   83(Linux)   212992   95.00MB sdf
 sdf3.1                  169(NSS)   407552  100.00MB sdf
 sdh1             5(DOS_Extended)   204800  919.75MB sdh
 sdh5                7(NTFS/HPFS)   409600  200.05MB sdh
 sdh6                7(NTFS/HPFS)   819347  200.00MB sdh
 sdi1             5(DOS_Extended)       32  499.98MB sdi
 sdi5                7(NTFS/HPFS)       64  100.96MB sdi
 sdi6.1             1AC(Snapshot)   206880   75.00MB sdi
 rr0p1.1                 169(NSS)       32   50.00MB rr0
 rr0p1.2                 169(NSS)   102432   50.00MB rr0
Sample 2: nlvm list partitions more
nlvm list partitions more

 Name                Type    Start     Size  Device Shared Maj:Min Pool
 sda1       82(Linux_Swap)     2048    1.00GB sda      No     8:1
 sda2            83(Linux)  2105344   15.98GB sda      No     8:2
 sda3            83(Linux) 35633152    3.00GB sda      No     8:3
 sdb1.1           169(NSS)       32  100.00MB sdb      No     0:0   PMOVE
 sdb1.2           169(NSS)   204832  100.00MB sdb      No     0:0
 sdb1.3           169(NSS)   409632  100.00MB sdb      No     0:0 BIGLONGPOOLNAME
 sdb1.4      1CF(NSS_Raid)   614432  100.00MB sdb      No     0:0
 sdc1        8E(Linux_LVM)       32  103.57MB sdc      No     8:33
 sdc2        8E(Linux_LVM)   212160  103.59MB sdc      No     8:34
 sdc3            83(Linux)   424320  103.59MB sdc      No     8:35
 sdc4      5(DOS_Extended)   636480  713.20MB sdc      No     8:36
 sdc5.1           169(NSS)   636512  100.00MB sdc      No     0:0
 sdc7.1           169(NSS)  1060832  100.00MB sdc      No     0:0   POOL1
 sdc8.1      1CF(NSS_Raid)  1272992  100.00MB sdc      No     0:0
 sdc9.1           169(NSS)  1485152  100.00MB sdc      No     0:0   PMOVE_move
 cluster.sbd 1AD(Cluster)  409664   50.00MB sdd     Yes   253:20
 sde1            83(Linux)       32  103.57MB sde      No     8:65
 sde2            83(Linux)   212160  103.59MB sde      No     8:66
 sde3        8E(Linux_LVM)   424320  103.59MB sde      No     8:67
 sde4      5(DOS_Extended)   636480  713.20MB sde      No     8:68
 sde5            83(Linux)   636512  103.57MB sde      No     8:69
 sde6            83(Linux)   848672  103.57MB sde      No     8:70
 sde7.1      1AC(Snapshot)  1060832   50.00MB sde      No   253:6   SNAPSHOT1
 sdf1.1           169(NSS)       32  100.00MB sdf      No     0:0   T1
 sdf2            83(Linux)   212992   95.00MB sdf      No     8:82
 sdf3.1           169(NSS)   407552  100.00MB sdf      No     0:0   T2
 sdh1      5(DOS_Extended)   204800  919.75MB sdh      No     8:113
 sdh5         7(NTFS/HPFS)   409600  200.05MB sdh      No     8:117
 sdh6         7(NTFS/HPFS)   819347  200.00MB sdh      No     8:118
 sdi1      5(DOS_Extended)       32  499.98MB sdi      No     8:129
 sdi5         7(NTFS/HPFS)       64  100.96MB sdi      No     8:133
 sdi6.1      1AC(Snapshot)   206880   75.00MB sdi      No   253:17  SNAP1
 rr0p1.1          169(NSS)       32   50.00MB rr0      No     0:0
 rr0p1.2          169(NSS)   102432   50.00MB rr0      No     0:0   RRPOOL
Sample 3: nlvm list partitions all
nlvm list partitions all

 Name=sda1
  Type=82(Linux_Swap) Start=2048 Size=1.00GB(2103296)
  Device=sda Shared=No M:M=8:1 Pool=None

 Name=sda2
  Type=83(Linux) Start=2105344 Size=15.98GB(33527808)
  Device=sda Shared=No M:M=8:2 Pool=None

 Name=sda3
  Type=83(Linux) Start=35633152 Size=3.00GB(6309888)
  Device=sda Shared=No M:M=8:3 Pool=None

 Name=sdb1.1
  Type=169(NSS) Start=32 Size=100.00MB(204800)
  Device=sdb Shared=No M:M=0:0 Pool=PMOVE

 Name=sdb1.2
  Type=169(NSS) Start=204832 Size=100.00MB(204800)
  Device=sdb Shared=No M:M=0:0 Pool=None

 Name=sdb1.3
  Type=169(NSS) Start=409632 Size=100.00MB(204800)
  Device=sdb Shared=No M:M=0:0 Pool=BIGLONGPOOLNAME
  Label: This partition belongs to big long pool name.

 Name=sdb1.4
  Type=1CF(NSS_Raid) Start=614432 Size=100.00MB(204800)
  Device=sdb Shared=No M:M=0:0 Pool=None

 Name=sdc1
  Type=8E(Linux_LVM) Start=32 Size=103.57MB(212128)
  Device=sdc Shared=No M:M=8:33 Pool=None

 Name=sdc2
  Type=8E(Linux_LVM) Start=212160 Size=103.59MB(212160)
  Device=sdc Shared=No M:M=8:34 Pool=None

 Name=sdc3
  Type=83(Linux) Start=424320 Size=103.59MB(212160)
  Device=sdc Shared=No M:M=8:35 Pool=None

 Name=sdc4
  Type=5(DOS_Extended) Start=636480 Size=713.20MB(1460640)
  Device=sdc Shared=No M:M=8:36 Pool=None

 Name=sdc5.1
  Type=169(NSS) Start=636512 Size=100.00MB(204800)
  Device=sdc Shared=No M:M=0:0 Pool=None

 Name=sdc7.1
  Type=169(NSS) Start=1060832 Size=100.00MB(204800)
  Device=sdc Shared=No M:M=0:0 Pool=POOL1

 Name=sdc8.1
  Type=1CF(NSS_Raid) Start=1272992 Size=100.00MB(204800)
  Device=sdc Shared=No M:M=0:0 Pool=None

 Name=sdc9.1
  Type=169(NSS) Start=1485152 Size=100.00MB(204800)
  Device=sdc Shared=No M:M=0:0 Pool=PMOVE_move

 Name=cluster.sbd
  Type=1AD(Cluster) Start=409664 Size=50.00MB(102400)
  Device=sdd Shared=Yes M:M=253:20 Pool=None
  Label: cluster

 Name=sde1
  Type=83(Linux) Start=32 Size=103.57MB(212128)
  Device=sde Shared=No M:M=8:65 Pool=None

 Name=sde2
  Type=83(Linux) Start=212160 Size=103.59MB(212160)
  Device=sde Shared=No M:M=8:66 Pool=None

 Name=sde3
  Type=8E(Linux_LVM) Start=424320 Size=103.59MB(212160)
  Device=sde Shared=No M:M=8:67 Pool=None

 Name=sde4
  Type=5(DOS_Extended) Start=636480 Size=713.20MB(1460640)
  Device=sde Shared=No M:M=8:68 Pool=None

 Name=sde5
  Type=83(Linux) Start=636512 Size=103.57MB(212128)
  Device=sde Shared=No M:M=8:69 Pool=None

 Name=sde6
  Type=83(Linux) Start=848672 Size=103.57MB(212128)
  Device=sde Shared=No M:M=8:70 Pool=None

 Name=sde7.1
  Type=1AC(Snapshot) Start=1060832 Size=50.00MB(102400)
  Device=sde Shared=No M:M=253:6 Pool=SNAPSHOT1

 Name=sdf1.1
  Type=169(NSS) Start=32 Size=100.00MB(204800)
  Device=sdf Shared=No M:M=0:0 Pool=T1

 Name=sdf2
  Type=83(Linux) Start=212992 Size=95.00MB(194560)
  Device=sdf Shared=No M:M=8:82 Pool=None

 Name=sdf3.1
  Type=169(NSS) Start=407552 Size=100.00MB(204800)
  Device=sdf Shared=No M:M=0:0 Pool=T2

 Name=sdh1
  Type=5(DOS_Extended) Start=204800 Size=919.75MB(1883650)
  Device=sdh Shared=No M:M=8:113 Pool=None

 Name=sdh5
  Type=7(NTFS/HPFS) Start=409600 Size=200.05MB(409715)
  Device=sdh Shared=No M:M=8:117 Pool=None

 Name=sdh6
  Type=7(NTFS/HPFS) Start=819347 Size=200.00MB(409600)
  Device=sdh Shared=No M:M=8:118 Pool=None

 Name=sdi1
  Type=5(DOS_Extended) Start=32 Size=499.98MB(1023968)
  Device=sdi Shared=No M:M=8:129 Pool=None

 Name=sdi5
  Type=7(NTFS/HPFS) Start=64 Size=100.96MB(206784)
  Device=sdi Shared=No M:M=8:133 Pool=None

 Name=sdi6.1
  Type=1AC(Snapshot) Start=206880 Size=75.00MB(153600)
  Device=sdi Shared=No M:M=253:17 Pool=SNAP1

 Name=rr0p1.1
  Type=169(NSS) Start=32 Size=50.00MB(102400)
  Device=rr0 Shared=No M:M=0:0 Pool=None

 Name=rr0p1.2
  Type=169(NSS) Start=102432 Size=50.00MB(102400)
  Device=rr0 Shared=No M:M=0:0 Pool=RRPOOL
Sample 4: Partitions that Contain a Specified String in the Name
nlvm list partitions | grep LH-DFS01-

 Name                        Type    Start     Size  Device
 D1_LH-DFS01-1_part1.1   169(NSS)       32  24.99GB  D1_LH-DFS01-1