6.41 List Volumes

list volumes [more|all]

Print a list of NSS volumes on the system. For each, display its pool name and volume state (active or deactive).

nlvm [-t] list volumes [more|all]

Command Options

-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 NSS volumes. This is the same information that is printed for the nlvm list volume <nss_volume_name> command. It can be used with or without the -t NLVM option.

Example

all

Command Example

nlvm list volumes [more]

Print a list of NSS volumes, and display detailed information about each volume.

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 NSS volumes on the server:

Label

Description

Name

Name of the volume

Pool

Name of the pool

State

Volume state (Active, Deactive)

Mounted

Yes or No; whether the volume is mounted for user access

Shared

Yes or No; whether the volume’s device is marked Shareable for Clustering

More Output

The command returns the following additional information about the NSS volumes on the server:

Label

Description

Used

Amount of used space in KB, MB, GB, or TB

Avail

Amount of available space (free space plus purgeable space) in KB, MB, GB, or TB

Quota

None, or amount of the volume quota in MB, GB, or TB

Attributes

Volume attributes (such as Salvage, Compression, User Space Quotas, Directory Quotas, Encrypted)

All Output

If the all option is specified, the information returned for each volume is the same as for the list volume <volume_name> command.

Sample Command Response
Sample 1: nlvm list volumes
nlvm list volumes

 Name    Pool      State Mounted Shared
 NSS1    POOL1    Active   Yes     No
 NSS1_SV SNAP1    Active   Yes     No
 TESTVOL POOL1    Active   Yes     No
 VOL1    POOL1    Active   Yes     No
 VOL1_SV SNAP1    Active   Yes     No
Sample 2: nlvm list volumes more
nlvm list volumes more

 Name    Pool      State Mounted Shared    Used     Avail    Quota  Attributes
 NSS1    POOL1    Active   Yes     No    1.28MB   87.27MB     None  Salvage,Compression,Encrypted[AES128]
 NSS1_SV SNAP1    Active   Yes     No     572KB   88.05MB     None  Salvage,Compression,Encrypted[AES128]
 TESTVOL POOL1    Active   Yes     No     564KB   87.27MB     None  Salvage
 VOL1    POOL1    Active   Yes     No     600KB   87.27MB     None  Salvage
 VOL1_SV SNAP1    Active   Yes     No     600KB   88.05MB     None  Salvage
Sample 3: nlvm list volumes more --terse
nlvm list volumes more --terse

 Name=NSS1 Pool=POOL1 State=Active Mounted=Yes Shared=No Used=1.28MB Avail=87.27MB Quota=None Attributes=Salvage,Compression,Encrypted[AES128]
 Name=NSS1_SV Pool=SNAP1 State=Active Mounted=Yes Shared=No Used=572KB Avail=88.05MB Quota=None Attributes=Salvage,Compression,Encrypted[AES128]
 Name=TESTVOL Pool=POOL1 State=Active Mounted=Yes Shared=No Used=564KB Avail=87.27MB Quota=None Attributes=Salvage
 Name=VOL1 Pool=POOL1 State=Active Mounted=Yes Shared=No Used=600KB Avail=87.27MB Quota=None Attributes=Salvage
 Name=VOL1_SV Pool=SNAP1 State=Active Mounted=Yes Shared=No Used=600KB Avail=88.05MB Quota=None Attributes=Salvage
Sample 4: nlvm list volumes all
nlvm list volumes all

 Name=NSS1
  Pool=POOL1 State=Active Mounted=Yes Shared=No
  Used=1.28MB Avail=87.27MB Quota=None Purgeable=12KB
  Attributes=Salvage,Compression,Encrypted[AES128]
  ReadAheadBlocks=16 PrimaryNameSpace=LONG
  Mountpoint=/media/nss/NSS1
  Objects=28 Files=23 
  BlockSize=4096 ShredCount=1 AuthModelID=1
  SupportedNameSpaces=DOS,MAC,UNIX,LONG
  CreateTime:  Wed May 22 16:03:26 2013
  ArchiveTime: Never

 Name=NSS1_SV
  Pool=SNAP1 State=Active Mounted=Yes Shared=No
  Used=572KB Avail=88.05MB Quota=None Purgeable=12KB
  Attributes=Salvage,Compression,Encrypted[AES128]
  ReadAheadBlocks=16 PrimaryNameSpace=LONG
  Mountpoint=/media/nss/NSS1_SV
  Objects=15 Files=15 
  BlockSize=4096 ShredCount=1 AuthModelID=1
  SupportedNameSpaces=DOS,MAC,UNIX,LONG
  CreateTime:  Wed Jun  5 16:57:21 2013
  ArchiveTime: Never

 Name=TESTVOL
  Pool=POOL1 State=Active Mounted=Yes Shared=No
  Used=564KB Avail=87.27MB Quota=None Purgeable=8KB
  Attributes=Salvage
  ReadAheadBlocks=16 PrimaryNameSpace=LONG
  Mountpoint=/media/nss/TESTVOL
  Objects=14 Files=14 
  BlockSize=4096 ShredCount=1 AuthModelID=1
  SupportedNameSpaces=DOS,MAC,UNIX,LONG
  CreateTime:  Mon Jun 17 15:21:02 2013
  ArchiveTime: Never

 Name=VOL1
  Pool=POOL1 State=Active Mounted=Yes Shared=No
  Used=600KB Avail=87.27MB Quota=None Purgeable=12KB
  Attributes=Salvage
  ReadAheadBlocks=16 PrimaryNameSpace=LONG
  Mountpoint=/media/nss/VOL1
  Objects=15 Files=15 
  BlockSize=4096 ShredCount=1 AuthModelID=1
  SupportedNameSpaces=DOS,MAC,UNIX,LONG
  CreateTime:  Wed May 22 16:03:26 2013
  ArchiveTime: Never

 Name=VOL1_SV
  Pool=SNAP1 State=Active Mounted=Yes Shared=No
  Used=600KB Avail=88.05MB Quota=None Purgeable=12KB
  Attributes=Salvage
  ReadAheadBlocks=16 PrimaryNameSpace=LONG
  Mountpoint=/media/nss/VOL1_SV
  Objects=15 Files=15 
  BlockSize=4096 ShredCount=1 AuthModelID=1
  SupportedNameSpaces=DOS,MAC,UNIX,LONG
  CreateTime:  Wed Jun  5 16:57:21 2013
  ArchiveTime: Never