6.41 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 or MYCACHEDEV1

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
MYCACHEDEV11.1     191(NSS_CACHE)        64  256.00MB MYCACHEDEV1
MYCACHEDEV11.2     191(NSS_CACHE)    524352    1.00GB MYCACHEDEV1
MYCACHEDEV11.3     191(NSS_CACHE)   2621504  256.00MB MYCACHEDEV1
MYCACHEDEV11.4     191(NSS_CACHE)   3145792    1.00GB MYCACHEDEV1
MYCACHEDEV21.1     191(NSS_CACHE)        64  256.00MB MYCACHEDEV2
MYCACHEDEV21.2     191(NSS_CACHE)    524352    1.00GB MYCACHEDEV2
 sda1                    83(Linux)      2048  512.00MB sda
 sda2                    83(Linux)   1050624   79.93GB sda
 sda3                    83(Linux) 168689664   10.00GB sda
 sda4                    83(Linux) 189661184    9.56GB sda
 sdg1.1                   169(NSS)        64    2.00GB sdg
 sdi1.1                   169(NSS)        64    2.00GB sdi
 sdi1.2                   169(NSS)   4194368    2.00GB sdi
 sdl1.1          190(NSS_CACHEDEV)        64    5.00GB sdl
 sdl1.2          190(NSS_CACHEDEV)  10485824    4.00GB sdl
 sdm1.1          190(NSS_CACHEDEV)        64    3.00GB sdm
 sdm1.2          190(NSS_CACHEDEV)   6291520    4.00GB sdm
Sample 2: nlvm list partitions more
nlvm list partitions more

 Name                Type    Start     Size  Device Shared Maj:Min Pool
MYCACHEDEV11.1     191(NSS_CACHE)        64  256.00MB MYCACHEDEV1   No     0:0
MYCACHEDEV11.2     191(NSS_CACHE)    524352    1.00GB MYCACHEDEV1   No     0:0
MYCACHEDEV11.3     191(NSS_CACHE)   2621504  256.00MB MYCACHEDEV1   No     0:0
MYCACHEDEV11.4     191(NSS_CACHE)   3145792    1.00GB MYCACHEDEV1   No     0:0
MYCACHEDEV21.1     191(NSS_CACHE)        64  256.00MB MYCACHEDEV2   No     0:0
MYCACHEDEV21.2     191(NSS_CACHE)    524352    1.00GB MYCACHEDEV2   No     0:0
 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
sdl1.1          190(NSS_CACHEDEV)        64    5.00GB sdl           No     0:0
sdl1.2          190(NSS_CACHEDEV)  10485824    4.00GB sdl           No     0:0
sdm1.1          190(NSS_CACHEDEV)        64    3.00GB sdm           No     0:0
sdm1.2          190(NSS_CACHEDEV)   6291520    4.00GB sdm           No     0:0
Sample 3: nlvm list partitions all
nlvm list partitions all

Name=MYCACHEDEV11.1
  Type=191(NSS_CACHE) Start=64 Size=256.00MB(524288)
  Device=MYCACHEDEV1 Shared=No M:M=0:0 Pool=None
  Label: CPOOL1
 
Name=MYCACHEDEV11.2
  Type=191(NSS_CACHE) Start=524352 Size=1.00GB(2097152)
  Device=MYCACHEDEV1 Shared=No M:M=0:0 Pool=None
  Label: CPOOL1
 
Name=MYCACHEDEV11.3
  Type=191(NSS_CACHE) Start=2621504 Size=256.00MB(524288)
  Device=MYCACHEDEV1 Shared=No M:M=0:0 Pool=None
  Label: CPOOL2
 
Name=MYCACHEDEV11.4
  Type=191(NSS_CACHE) Start=3145792 Size=1.00GB(2097152)
  Device=MYCACHEDEV1 Shared=No M:M=0:0 Pool=None
  Label: CPOOL2
 
Name=MYCACHEDEV21.1
  Type=191(NSS_CACHE) Start=64 Size=256.00MB(524288)
  Device=MYCACHEDEV2 Shared=No M:M=0:0 Pool=None
  Label: CPOOL3
 
Name=MYCACHEDEV21.2
  Type=191(NSS_CACHE) Start=524352 Size=1.00GB(2097152)
  Device=MYCACHEDEV2 Shared=No M:M=0:0 Pool=None
  Label: CPOOL3
 

 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

Name=sdl1.1
  Type=190(NSS_CACHEDEV) Start=64 Size=5.00GB(10485760)
  Device=sdl Shared=No M:M=0:0 Pool=None
  Label: MYCACHEDEV1
 
Name=sdl1.2
  Type=190(NSS_CACHEDEV) Start=10485824 Size=4.00GB(8388608)
  Device=sdl Shared=No M:M=0:0 Pool=None
  Label: MYCACHEDEV2
 
Name=sdm1.1
  Type=190(NSS_CACHEDEV) Start=64 Size=3.00GB(6291456)
  Device=sdm Shared=No M:M=0:0 Pool=None
  Label: MYCACHEDEV1
 
Name=sdm1.2
  Type=190(NSS_CACHEDEV) Start=6291520 Size=4.00GB(8388608)
  Device=sdm Shared=No M:M=0:0 Pool=None
  Label: MYCACHEDEV2
 
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