La commande 'vol_list' dans l'interface 'xcli' permet de lister les volumes d'une baie XIV.

La syntaxe est la suivante :

vol_list [ vol=VolName | pool=PoolName | cg=CgName ]

Il est en effet possible de spécifier le nom du volume, du Pool d'appartenance ou le groupe de consistence.

Ainsi, la commande 'vol_list cg=serveur1_CG' listera les volumes devant rester cohérent lors des réplications.

Exemple :

# vol_list cg=h6_CG1
Name                  Size (GB)   Master Name   Consistency Group   Pool                 Creator   Used Capacity (GB)   
h6_testvg01_J   17                                                   h6_CG1        replic_pool1   xivadmin  4                    
h6_testvg02_J   17                                                   h6_CG1        replic_pool1   xivadmin  0     

Il est également possible de spécifier les champs à afficher en ajoutant l'option '-t' suivi du nom des champs, séparés par une virgule.

Exemple :

# vol_list -t name,cg_name vol=h6_testvg01_J

 

La liste des champs est la suivante :

Nom du champ information
size Size (GB)
size_MiB Size (MiB)
master_name Master Name
cg_name Consistency Group
pool_name Pool
creator Creator
capacity Capacity (blocks)
modified Modified
sg_name Snapshot Group Name
delete_priority Deletion Priority
locked Locked
serial Serial Number
snapshot_time Snapshot Creation Time
snapshot_time_
on_master
Master Copy Creation Time
snapshot_of Snapshot of
sg_snapshot_of Snapshot of Snap Group
wwn WWN
mirrored Mirrored
locked_by_pool Locked by Pool
used_capacity Used Capacity (GB)
used_capacity_MiB Used Capacity (MiB)
short_lived_io Short Live IO
enable_VAAI VAAI enabled
user_disabled_VAAI VAAI disabled by user
snapshot_format Snapshot Format

Un extrait de la documentation officielle est donnée ci-dessous:

 

Lists all volumes or a specific one.

vol_list [ vol=VolName | pool=PoolName | cg=CgName ]

Parameters:

NameTypeDescriptionMandatoryDefault
vol Object name Name of a specific volume to be listed. N All volumes.
pool Object name Name of a specific Pool whose volumes are to be listed. N Volumes in all Pools.
cg Object name List all the volumes in this Consistency Group. N All Consistency Groups.
This command lists volumes according to:
  • Volume name
  • Pool
  • Consistency Group
If no parameter is indicated, the command lists all available volumes. In addition, the command indicates whether the volume is mirrored.
This command displays the following VAAI fields (available on the XML output format):
  • enable_VAAI
  • user_disabled_VAAI
This command displays the following snapshot format field (available on the XML output format):
  • snapshot_format
IdNameDescriptionDefault Position
name Name 1
size Size (GB) 2
size_MiB Size (MiB)
master_name Master Name 3
cg_name Consistency Group 4
pool_name Pool 5
creator Creator 6
capacity Capacity (blocks)
modified Modified
sg_name Snapshot Group Name
delete_priority Deletion Priority
locked Locked
serial Serial Number
snapshot_time Snapshot Creation Time
snapshot_time_
on_master
Master Copy Creation Time
snapshot_of Snapshot of
sg_snapshot_of Snapshot of Snap Group
wwn WWN
mirrored Mirrored
locked_by_pool Locked by Pool
used_capacity Used Capacity (GB) 7
used_capacity_MiB Used Capacity (MiB)
short_lived_io Short Live IO
enable_VAAI VAAI enabled
user_disabled_VAAI VAAI disabled by user
snapshot_format Snapshot Format

Example:

vol_list

Output:

Name                Size (GB) Master Name Pool      Creator  Used Capacity (GB)
DBLog               3006                  MainPool  admin    0
Dev                 2010                  MainPool  admin    0
Marketing           1013                  MainPool  admin    0
Dev.snapshot_00001  2010      Dev         MainPool  admin
Dev.snapshot_00002  2010      Dev         MainPool  admin
Dev.snapshot_00003  2010      Dev         MainPool  admin
            

 

 

 

 

icon phone
Téléphone/Whatsapp : +33 (0)6 83 84 85 74
icon phone