lspvcfs Command

Purpose

Lists PowerVC file system information.

Syntax

lspvcfs list-filesystems [--json] [--filesystem FILESYSTEM]

Description

The lspvcfs command is used to retrieve and display file system details in a PowerVC environment. The lspvcfs command provides list-filesystems subcommand to list registered file systems. The mount points, capacities, usage, and status of the file systems are also displayed. All the users are permitted to run this command.

Subcommands

The list-filesystems subcommand lists file system details that include mount point, capacity, usage, and status. If a file system is specified by using the --filesystem parameter, information that is related to the specified file system is displayed. If no file system is specified, information about all the registered file systems are displayed.

Flags

Table 1. Flags
Item Description
-h or --help Displays help about the lspvcfs command or the subcommands.
--json Redirects the results in a JSON format for scripting and automation.
--filesystem FILESYSTEM Displays information about the specified file system. The following file systems are the valid options:
  • /powervchome
  • /dump
  • /extra
  • /powervcdata
  • /powervclog

Examples

  1. To list all the file systems in table format, enter the following command:
    lspvcfs list-filesystems
  2. To list details for a specific file system, enter the following command:
    lspvcfs list-filesystems --filesystem /powervchome
  3. To display the file system information in JSON format, enter the following command:
    lspvcfs list-filesystems --json
  4. To display information of a specific file system in JSON, enter the following command:
    lspvcfs list-filesystems --filesystem /powervclog --json