帮助命令
 
                  更新时间 2025-09-29 17:49:42
                 
 
                    最近更新时间: 2025-09-29 17:49:42
                  
 本节主要介绍帮助命令行的使用。
 ./stor { --help | -h }
此命令用来查看HBlock的命令帮助信息。
示例
示例1
查看HBlock整体命令。
[root@hblockserver CTYUN_HBlock_Plus_3.10.0_x64]# ./stor --help
Usage:
  stor <command> [options]
  stor <command> <subcommand> [options]
  Type 'stor --help <command>' or 'stor --help <command> <subcommand>' to print help on a specific subcommand.
  Type 'stor --version' to print HBlock version.
Available commands:
  alarm                       View and manage alarms.
  backup                      Manage backup(s).
  config                      Configure HBlock.
  conssnap                    Manage consistency snapshot(s).
  event                       Event information.
  info                        Get HBlock information.
  install                     Install HBlock.
  license                     Manage HBlock license(s).
  logcollect                  Log collection information.
  lun                         Manage LUN(s).
  monitor                     Get performance data.
  qos                         Manage QoS policy.
  restart                     Restart HBlock.
  server                      Manage HBlock server(s).
  setup                       Initialize HBlock.
  snapshot                    Manage snapshot(s).
  start                       Start HBlock.
  status                      Get HBlock status.
  stop                        Stop HBlock.
  storagepool                 Manage storage pools.
  target                      Manage target(s).
  topology                    Manage topology.
  tuning                      Adjusting parameters to fit different scenarios.
  uninstall                   Uninstall HBlock on all servers.
  upgrade                     Upgrade HBlock.
General subcommands:
  add                         Add an entity, such as adding a LUN or server.
  ls                          List entities or the specified entity, such as listing servers or the specified server.
  rm                          Remove an entity, such as removing a LUN or server.
  set                         Set entity properties, such as setting LUN or server properties.
Available subcommands for alarm:
  E[export]                   Export alarm records to a file.
  M[mute]                     Set the mute status of a specified alarm record to Muted status, stop receiving its alarm emails and not list it by default.
  UM[unmute]                  Set the mute status of a specified alarm record to Normal status.
  R[resolve]                  Set a specified alarm record to Resolved status.
Available subcommands for backup:
  E[export]                   Export backup file.
  I[import]                   Import backup file to a LUN.
Available subcommands for conssnap:
  R[rollback]                 Rollback consistency snapshot.
Available subcommands for lun:
  C[clone]                    Create clone LUN.
  F[flatten]                  Flatten clone LUN.
  RC[recover]                 Recover the specified LUN from the cloud.
  RS[resume]                  Resume recovery of a previously failed LUN.
  S[switch]                   Switch between active and standby iSCSI targets.
  W[wipe]                     Wipe the specified LUN.
  X[expand]                   Expand LUN.
Available subcommands for monitor:
  E[export]                   Export historical performance data to a file.
  V[view]                     Get real-time performance data.
Available subcommands for qos:
  A[assoc]                    Associate the QoS policy with the specified objects.
  D[disass]                   Disassociate the QoS policy with the specified objects.
Available subcommands for server:
  A[addpath]                  Add path(s) to store data.
  R[rmpath]                   Remove path(s).
  S[setpath]                  Set path(s) properties.
Available subcommands for snapshot:
  R[rollback]                 Rollback snapshot or a snapshot in consistency snapshot.
Available subcommands for storagepool:
  A[addnode]                  Add node(s) to storage pool.
  R[rmnode]                   Remove node(s) from storage pool.
Available subcommands for target:
  R[rmallow]                  Remove iSCSI target allowlist.
  S[setallow]                 Set iSCSI target allowlist.
Available subcommands for upgrade:
  T[status]                   Get upgrade status.示例2
查看卷的命令。
[root@hblockserver CTYUN_HBlock_Plus_3.10.0_x64]# ./stor lun --help
lun: Manage LUN(s).
Usage: lun <subcommand> [options]
  Type 'stor --help lun <subcommand>' to print help on a specific subcommand.
Available subcommands:
  add                                Create LUN.
  C[clone]                           Create clone LUN.
  F[flatten]                         Flatten clone LUN.
  ls                                 List all iSCSI LUNs or the specified LUN.
  RC[recover]                        Recover the specified LUN from the cloud.
  RS[resume]                         Resume recovery of a previously failed LUN.
  prefer                             Set server affinity of active and standby iSCSI targets for LUN.
  rm                                 Remove LUN.
  S[switch]                          Switch between active and standby iSCSI targets.
  set                                Set LUN properties.
  W[wipe]                            Wipe the specified LUN.
  X[expand]                          Expand LUN.
