IBM SVC (San Volume Controller) commands
Click on the headings to sort
Command | Common Arguments & Description | Command Description |
---|---|---|
svcinfo lscluster | Displays cluster members id, name, location, ip-address etc | Display info about clusters |
svcinfo lscontroller | Displays controllers id, name etc | Display info about controllers visible to the system |
svcinfo lsfabric | Displays remote_wwpn, remote_nportid, id, node_name, local_wwpn, local_port etc | Display connectivity between nodes and other controllers and hosts |
svcinfo lshost | Displays controllers id, name etc | Display info about controllers visible to the system |
svcinfo lshostvdiskmap | host1 (Obtain a list of the virtual disks that are mapped (visible) to host1, including vdisk_id, vdisk_name, wwpn etc) | Obtain a list of the virtual disks that are mapped (visible) to a given host |
svcinfo lsmdisk | Displays id, name, status, mode, mdisk_grp_name etc for all MDisks | Display info about MDisks visible to the cluster |
svcinfo lsmdiskgrp | Displays id, name, status, mdisk_count, vdisk_count, used and FREE capacity etc for all MDisk groups | Display info about MDisk groups visible to the cluster |
svcinfo lsrcconsistgrp | app_CG1 (Displays a detailed view of consistency group app_CG1 including state, status and sync attributes) | Displays a detailed view of Metro or Global Mirror consistency groups visible to the cluster |
svcinfo lsrcrelationship | Displays id, name, master_cluster_name, master_vdisk_name, consistency_group_name etc for all remote copy relationships | Display information about all the Metro Mirror relationships visible to the cluster |
svcinfo lsrcrelationship | host1_data_1 (Displays id, name, master_cluster_name, master_vdisk_name, consistency_group_name, state, sync progress, status etc for remote copy relationship host1_data_1) | Display information about all the Metro Mirror relationships visible to the cluster |
svcinfo lsvdisk | Displays id, name, io_group_name, status, mdisk_grp_id, mdisk_grp_name, capacity etc for all VDisks | Display information about VDisks recognized by the cluster |
svcinfo lsvdisk | vdisk1 (Displays detailed information about vdisk1 including mdisk_grp_name and remote copy relationship RC_name) | Display detailed information about a specific VDisk recognized by the cluster |
svctask chrcrelationship | -force rc_host1_data_1 (Remove rc relationship rc_host1_data from its consistency group, -force specifies that the system is to remove the relationship from a consistency group making the relationship a stand-alone relationship.) | Remove a remote copy (RC) relationship from a consistency group |
svctask mkrcrelationship | -master master_vdisk_name -aux aux_vdisk_name -cluster cluster_name -name data_1 (Creates a new rc relationship named data_1) | Creates a new Metro or Global Mirror relationship with virtual disks (VDisks) |
svctask mkvdisk | -mdiskgrp 0 -iogrp 0 -size 50 -vtype striped -unit gb -name app1_1 (Create a vdisk named app1_1) | Create a sequential, striped of image mode Vdisk |
svctask mkvdiskhostmap | -host host1 -scsi 1 app1_1 (Create a new mapping between vdisk app1_1 and host1 assigning SCSI LUN ID 1 to app1_1 on host1) | Create a new mapping between a virtual disk and a host making the vdisk accessible for I/O to the specified host |
svctask rmrcconsistgrp | host1_CG1 (Delete consistency group host1_CG1, use the -force option to delete a consistency group that is not empty.) | Delete an existing Metro Mirror or Global Mirror consistency group |
svctask rmrcrelationship | rc_host1_data_1 (Remove remote copy relationship rc_host1_data, this only deletes the logical relationship between the two virtual disks, it does not affect the virtual disks themselves) | Delete an existing Metro Mirror or Global Mirror relationship |
svctask rmvdisk | vdisk1 (Delete volume vdisk1. vdisk1 can be an existing managed mode volume or an existing image mode volume, the extents belonging to vdisk1 are returned to the pool of free extents) | Delete a volume |
svctask startrcconsistgrp | -primary master -force rc_rel_app1 (Start the consistency group copy process for relationship rc_rel_app1, specifying the copy direction (the master becomes the primary) even if the copy process leads to a temporary loss of consistency during synchronisation (-force)) | Start the Metro or Global Mirror consistency group copy process |
svctask startrcrelationship | rc_rel_app1 (Start the remote copy relationship for relationship name rc_rel_app1) | Starts the Metro Mirror or Global Mirror relationship copy process |
svctask stoprcconsistgrp | -access app_CG1 (Stops the copy process for consistency group app_CG1 and allows write access to consistent secondary VDisks in app_CG1 (-access)) | Stops the copy process for a Metro Mirror or Global Mirror consistency group |