6.37 List Linux Volumes

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

Print a list of Linux POSIX volumes and for each, display its path, mount point, file system type, NCP enabled status, and mount status.

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

Example

all

Command Example

nlvm list linux volumes

Print a list of Linux POSIX volumes and the paths where they are mounted.

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 standard information about the Linux volumes on the server:

Label

Description

Name

Volume name. The format of the name depends on the type of volume and whether it is NCP-enabled.

Group

LVM group name or NA (not applicable) for non-LVM volumes

Mounted

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

Size

Size of the volume in KB, MB, GB, or TB

Shared

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

Type

Type of file system (such as btrfs, ext2, ext3, reiserfs, or xfs)

LVM

Yes or No; whether the volume is an LVM volume

NCP

Yes or No; whether the volume is NCP-enabled

Mountpoint

Full Linux path where the volume is mounted

More Output

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

Label

Description

Path

Path of the device or partition. For LVM, this is typically /dev/<volume_group_name>/<logical_volume_name>. If it is not LVM, this is the partition path.

All Output

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

Sample Command Responses
Sample 1: nlvm list linux volumes
 Name   Group  Mounted    Size Shared     Type LVM NCP Mountpoint
 /               Yes    15.98GB  No       ext3  No  No /
 /home           Yes     3.00GB  No       ext3  No  No /home
 mylvm  mylvm    No    100.00MB  No       ext3 Yes  No /usr/novell/mylvm
 LVMNCP lvmncp   No    100.00MB  No       ext3 Yes Yes /usr/novell/lvmncp2
 NCP3            Yes   103.59MB  No       ext3  No Yes /usr/novell/NCP3
Sample 2: nlvm list linux volumes --terse
 Name=/ Group=NA Mounted=Yes Size=15.98GB Shared=No Type=ext3 LVM=No NCP=No Mountpoint=/
 Name=/home Group=NA Mounted=Yes Size=3.00GB Shared=No Type=ext3 LVM=No NCP=No Mountpoint=/home
 Name=mylvm Group=mylvm Mounted=No Size=100.00MB Shared=No Type=ext3 LVM=Yes NCP=No Mountpoint=/usr/novell/mylvm
 Name=LVMNCP Group=lvmncp Mounted=No Size=100.00MB Shared=No Type=ext3 LVM=Yes NCP=Yes Mountpoint=/usr/novell/lvmncp2
 Name=NCP3 Group=NA Mounted=Yes Size=103.59MB Shared=No Type=ext3 LVM=No NCP=Yes Mountpoint=/usr/novell/NCP3
Sample 3: nlvm list linux volumes more
 Name   Group  Mounted    Size Shared     Type LVM NCP Mountpoint          Path
 /               Yes    15.98GB  No       ext3  No  No /                   /dev/sda2
 /home           Yes     3.00GB  No       ext3  No  No /home               /dev/sda3
 mylvm  mylvm    No    100.00MB  No       ext3 Yes  No /usr/novell/mylvm   /dev/mylvm/mylvm
 LVMNCP lvmncp   No    100.00MB  No       ext3 Yes Yes /usr/novell/lvmncp2 /dev/lvmncp/LVMNCP
 NCP2            Yes   103.59MB  No       ext3  No Yes /usr/novell/NCP3    /dev/sdc3
Sample 4: nlvm list linux volumes all
 Name=/
  Group=NA Mounted=Yes Size=15.98GB
  Shared=No Type=ext3 LVM=No NCP=No
  Mountpoint=/
  Path=/dev/sda2
  MountOptions=acl,user_xattr

 Name=/home
  Group=NA Mounted=Yes Size=3.00GB
  Shared=No Type=ext3 LVM=No NCP=No
  Mountpoint=/home
  Path=/dev/sda3
  MountOptions=defaults

 Name=mylvm
  Group=mylvm Mounted=No Size=100.00MB
  Shared=No Type=ext3 LVM=Yes NCP=No
  Mountpoint=/usr/novell/mylvm
  Path=/dev/mylvm/mylvm
  MountOptions=rw

Name=LVMNCP
  Group=lvmncp Mounted=No Size=100.00MB
  Shared=No Type=ext3 LVM=Yes NCP=Yes
  Mountpoint=/usr/novell/lvmncp2
  Path=/dev/lvmncp/LVMNCP
  MountOptions=rw

 Name=NCP3
  Group=NA Mounted=Yes Size=103.59MB
  Shared=No Type=ext3 LVM=No NCP=Yes
  Mountpoint=/usr/novell/NCP3
  Path=/dev/sdc3
  MountOptions=rw