lsmp
lsmp
-
lsmp
La commande 'lsmp' permet d'afficher les informations sur les groupes de disques miroir d'un groupe de volumes.
Cela est important lorsque vous manipulez des groupes de disques se trouvant sur des baies de stockage séparées.
Ainsi, lorsque vous demandez du miroir, le système sait qu'il doit prendre 2 disques dans des groupes distincts pour protéger de la perte d'une baie.
La syntaxe pour lister est la suivante :
Usage:
lsmp [-L] [-A] [-n DescriptorPhysicalVolume] [-m MirrorPoolName] VGnameExemple :
# lsmp toolvg
VOLUME GROUP: toolvg Mirror Pool Super Strict: no
#
POur n'afficher que les information d'un groupe de disque dans ce VG, il est possible d'utiliser l'option '-m nom_MP' où 'nom_MP' est le nom du groupe demandé.
Dans le cas ci-dessus, il n'y a pas de groupe défini pour ce groupe de volumes.
ATTENTION, il faut que le groupe de volume soit de type 'Scalable' pour permettre cette fonctionnalité.
Pour modifier un groupe de disques, il faut utiliser la commande 'chmp'.
Purpose
Displays mirror pool information.
Description
The lsmp command displays mirror pool information for a volume group.
Note: The volume group must be varied on to list the mirror pool information. If the volume group is varied off, you must specify the source disk name using the -n flag to list the information.Flags
Item Description -A Displays information specific to asynchronous mirroring, if it exists. -L Specifies no waiting to obtain a lock on the volume group. Note: If the volume group is being changed, using the -L flag gives unreliable data.-m mirrorpoolname Displays mirror pool information only for the mirror pool that is specified by the mirrorpoolname parameter. If you do not specify the flag, information for all mirror pools that belong to the volume group is displayed. -n descriptorphysicalvolume Accesses information from the descriptor area that is specified by the descriptorphysicalvolume variable. The information might not be current because the information accessed with the -n flag has not been validated for the logical volumes. If you do not use the -n flag, the descriptor area from the physical volume that holds the validated information is accessed, and therefore the current information is displayed. The volume group does not need to be active when you use the -n flag. Parameters
Item Description vgname Specifies the volume group name. Examples
- To display all mirror pool information for a volume group, enter the following command:
The following output is displayed:lsmp vg1
VOLUME GROUP: vg1 Mirror Pool Super Strict: no MIRROR POOL: mp1 Mirroring Mode: SYNC MIRROR POOL: mp2 Mirroring Mode: SYNC
- To display all mirror pool information for a volume group and include asynchronous mirroring information in the output, enter the following command:
The following output is displayed:lsmp -A glvm_vg
VOLUME GROUP: glvm_vg Mirror Pool Super Strict: yes MIRROR POOL: mp_bvr Mirroring Mode: ASYNC ASYNC MIRROR STATE: inactive ASYNC CACHE LV: mp_pok_lv ASYNC CACHE VALID: yes ASYNC CACHE EMPTY: yes ASYNC CACHE HWM: 60 ASYNC DATA DIVERGED: no MIRROR POOL: mp_pok Mirroring Mode: ASYNC ASYNC MIRROR STATE: active ASYNC CACHE LV: bvr_pok_lv ASYNC CACHE VALID: yes ASYNC CACHE EMPTY: no ASYNC CACHE HWM: 90 ASYNC DATA DIVERGED: no
- To display information for the mirror pool mp_pok from the glvm_vg volume group and include asynchronous mirroring information in the output, enter the following command:
The following output is displayed:lsmp -A –m mp_pok glvm_vg
VOLUME GROUP: glvm_vg Mirror Pool Super Strict: yes MIRROR POOL: mp_pok Mirroring Mode: ASYNC ASYNC MIRROR STATE: active ASYNC CACHE LV: bvr_pok_lv ASYNC CACHE VALID: yes ASYNC CACHE EMPTY: no ASYNC CACHE HWM: 90 ASYNC DATA DIVERGED: no
Parent topic: lRelated information:
chmp command - To display all mirror pool information for a volume group, enter the following command: