Command Line Interface
Command Line Interface
Command Line Interface
Command-line interface
Command-line interface
Note: Before using this information and the product it supports, read the information in Notices on page 711.
Thirtieth Edition (March 2009) Copyright International Business Machines Corporation 2004, 2009. US Government Users Restricted Rights Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
Contents
Tables . . . . . . . . . . . . . . . vii Notices and publication information . . ix
Safety notices . . . . . . . . Environmental notices . . . . . Product recycling and disposal . Battery return program . . . . How to send your comments . . . ix . ix . ix . . . . . . x . . . . . . xii . . . . . . . . . . . . . . .
Chapter 1. Command-line interface . . . 1 Chapter 2. Operating systems that support the DS command-line interface . 3 Chapter 3. Upgrading your system to use DS CLI . . . . . . . . . . . . . 5 Chapter 4. DS CLI operational limitations 7 Chapter 5. Installing the DS CLI . . . . 9
DS CLI preinstallation information . . . . . . . 9 Mounting the DS CLI installation CD . . . . . . 11 Installing the DS CLI application using the graphical mode . . . . . . . . . . . . . . . . 13 Installing the DS CLI using the console mode . . . 16 Installing the DS CLI using the unattended (silent) mode . . . . . . . . . . . . . . . . 20 Correcting the Java Virtual Machine Not Found Error . . . . . . . . . . . . . . . . 21 Installing DS CLI on an OpenVMS system . . . . 23 Preparing to install the DS CLI on an OpenVMS System . . . . . . . . . . . . . . . 23 Installing the DS CLI on your OpenVMS system 24 Using the DS CLI on an OpenVMS system . . . 28
iii
Viewing the array disk drive module status . . 92 Viewing array status . . . . . . . . . . 93 Viewing properties for one array . . . . . . 94 Removing arrays from a storage configuration or a rank assignment . . . . . . . . . . . 95 Adding a rank to an extent pool . . . . . . 96 Modifying a rank . . . . . . . . . . . 97 Viewing rank status . . . . . . . . . . 98 Viewing properties for one rank . . . . . . 99 Correcting a rank-related configuration error . . 99 Removing ranks from a storage configuration 100 Modifying a logical control unit . . . . . . 101 Viewing logical control unit status . . . . . 102 Viewing properties for one logical control unit 103 Removing logical control units from a CKD storage configuration . . . . . . . . . . 103
105
105 105 106 107 108 109 111 111 112 114 115 116 117 118 119 119 120 120 122 122 124 125 126 127 128 129 130 133 134 135 135 136 137
FlashCopy functions . . . . . . . . . . . Creating a FlashCopy relationship . . . . . Creating a persistent FlashCopy relationship Viewing information about FlashCopy relationships. . . . . . . . . . . . . Deleting FlashCopy relationships . . . . . . Creating remote FlashCopy transactions . . . Resynchronizing FlashCopy relationships . . . Reversing a FlashCopy relationship . . . . . Applying the FlashCopy revertible option to existing FlashCopy relationships . . . . . . Starting a background copy of a FlashCopy relationship . . . . . . . . . . . . . Preventing write operations on FlashCopy target volumes . . . . . . . . . . . . . . Creating a FlashCopy target volume on an existing Metro Mirror source volume . . . . Discarding changes to FlashCopy target volumes . . . . . . . . . . . . . . Committing data to FlashCopy target volumes Metro Mirror functions . . . . . . . . . . Displaying the status of established paths . . . Displaying the WWNN of a storage unit . . . Creating remote mirror and copy paths. . . . Correcting a path-related configuration error Removing paths . . . . . . . . . . . Creating a Metro Mirror relationship . . . . Creating a Metro Mirror consistency group . . Resuming a Metro Mirror relationship . . . . Pausing a Metro Mirror relationship . . . . . Creating a Global Copy relationship . . . . . Deleting a Metro Mirror relationship . . . . Modifying logical subsystem timeout values . . Defining a path that has the consistency option enabled . . . . . . . . . . . . . . Monitoring Remote Mirror and Copy paths . . Performing a failover recovery operation . . . Performing a failback recovery operation . . . Viewing information about Metro Mirror relationships. . . . . . . . . . . . . Converting Global Copy volume pairs to synchronous. . . . . . . . . . . . .
Determining which I/O ports are available for paths . . . . . . . . . . . . . . . Deleting a single volume Metro Mirror relationship . . . . . . . . . . . . . Copy Services functions across a 2105 and DS8000 or DS6000 model . . . . . . . . Creating a Metro Mirror volume pair between a DS8000 model or a DS6000 model and a 2105 . Global Mirror functions . . . . . . . . . . Adding volumes to a session (Global Mirror) Modifying the tuning parameters of a Global Mirror session . . . . . . . . . . . . Modifying the topology of a Global Mirror session . . . . . . . . . . . . . . Viewing a Global Mirror session . . . . . . Querying Global Mirror processing . . . . . Pausing Global Mirror processing . . . . . Resuming Global Mirror processing . . . . . Starting Global Mirror processing . . . . . Ending Global Mirror processing (script mode) Ending Global Mirror processing (no script) . . Setting up the Global Mirror Environment. . . Removing a Global Mirror environment . . .
137 139 140 141 143 143 144 146 148 149 149 150 151 151 152 153 159
Chapter 11. Recovery scenarios for planned and unplanned outages using Metro/Global Mirror . . . . . . . . . 189
Setting up a Metro/Global Mirror environment . . 189 Failover and restore operations to the intermediate site during a planned outage . . . . . . . . 193
iv
Failover and restore operations to the intermediate site during an unplanned outage . . . . . . . Failover and restore operations at the remote site during a planned outage . . . . . . . . . Failover and restore operations at the remote site during an unplanned outage . . . . . . . . Using forced failover and failback during a planned Metro/Global Mirror outage . . . . . Using forced failover and failback during an unplanned Metro/Global Mirror outage . . . . Discarding changes or committing changes to consistency groups . . . . . . . . . . . Recovery scenario using incremental resynchronization in a Metro/Global Mirror configuration . . . . . . . . . . . .
| | | | |
247
| | | | | | | | | | |
lskeymgr . . . . . . . . . . . . . mkkeygrp . . . . . . . . . . . . rmkeygrp . . . . . . . . . . . . lskeygrp . . . . . . . . . . . . . showkeygrp . . . . . . . . . . . . Physical enclosure information commands. . . lsstgencl . . . . . . . . . . . . . lsframe . . . . . . . . . . . . . Physical resource information commands . . . lsda . . . . . . . . . . . . . . lshba . . . . . . . . . . . . . . lsddm . . . . . . . . . . . . . . Storage complex configuration commands . . . chsp . . . . . . . . . . . . . . setvpn . . . . . . . . . . . . . . lsvpn . . . . . . . . . . . . . . showsp . . . . . . . . . . . . . Storage unit configuration commands . . . . chsu . . . . . . . . . . . . . . lssu. . . . . . . . . . . . . . . showsu . . . . . . . . . . . . . Storage image configuration commands . . . chsi. . . . . . . . . . . . . . . diagsi . . . . . . . . . . . . . . lsserver . . . . . . . . . . . . . lssi . . . . . . . . . . . . . . . showsi . . . . . . . . . . . . . I/O port and host connection configuration commands . . . . . . . . . . . . . Storage image I/O port commands . . . . Host connection commands . . . . . . Network ports . . . . . . . . . . . . setnetworkport . . . . . . . . . . . lsnetworkport . . . . . . . . . . . shownetworkport . . . . . . . . . . Storage configuration commands . . . . . . Array site specific commands . . . . . . Array specific commands . . . . . . . Rank specific commands . . . . . . . Extent pool specific commands . . . . . Address group specific commands . . . . Logical control unit specific commands. . . CKD logical volume specific commands . . Logical subsystem specific commands . . . Fixed block logical volume specific commands Volume group specific commands . . . . Advanced operation commands . . . . . Space-efficient storage commands . . . . Copy Services commands . . . . . . . . FlashCopy commands . . . . . . . . Remote FlashCopy commands. . . . . . Remote Mirror and Copy path commands . . Remote Mirror and Copy pair commands . . Global Mirror commands . . . . . . . Audit commands . . . . . . . . . . . offloadauditlog . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
343 344 345 346 347 349 349 353 354 354 357 359 363 363 365 366 367 369 369 371 373 375 376 377 378 380 382 385 385 397 421 421 423 426 428 428 433 443 455 468 470 480 507 511 540 550 553 568 568 593 614 628 661 687 687
| | | |
Contents
Removing the DS CLI using the console mode . Removing the DS CLI from your system using graphical mode. . . . . . . . . . . . Removing the DS CLI from an OpenVMS system Removing the DS CLI from a System i model . Removing the DS CLI using your System i model directly . . . . . . . . . . . Removing the DS CLI from your System i model using the remote method . . . . .
. 709
Notices . . . . . . . . . . . . . . 711
Accessibility . . . . . . . . . . . . . Trademarks . . . . . . . . . . . . . Terms and conditions. . . . . . . . . . Electronic emission notices . . . . . . . . Federal Communications Commission (FCC) statement. . . . . . . . . . . . . Industry Canada compliance statement . . . European Union EMC Directive conformance statement. . . . . . . . . . . . . Japanese Voluntary Control Council for Interference (VCCI) class A statement . . . Korean Ministry of Information and Communication (MIC) statement . . . . . Taiwan class A compliance statement . . . . . . . 712 713 714 715
Index . . . . . . . . . . . . . . . 719
vi
Tables
|
1. User Group capabilities . . . . . . . . 43 2. Profile variables . . . . . . . . . . . 46
vii
viii
Safety notices
Complete this task to find information about safety notices.
CAUTION: A caution notice indicates the presence of a hazard that has the potential of causing moderate or minor personal injury. 1001 2. Find the number that matches in the IBM System Storage Solutions Safety Notices for IBM Versatile Storage Server and IBM System Storage Enterprise Storage Server, GC26-7229.
Environmental notices
This section identifies the environmental guidelines that pertain to this product.
| |
ix
Notice: This mark applies only to countries within the European Union (EU) and Norway. Appliances are labeled in accordance with European Directive 2002/96/EC concerning waste electrical and electronic equipment (WEEE). The Directive determines the framework for the return and recycling of used appliances as applicable throughout the European Union. This label is applied to various products to indicate that the product is not to be thrown away, but rather reclaimed upon end of life per this Directive. In accordance with the European WEEE Directive, electrical and electronic equipment (EEE) is to be collected separately and to be reused, recycled, or recovered at end of life. Users of EEE with the WEEE marking per Annex IV of the WEEE Directive, as shown above, must not dispose of end of life EEE as unsorted municipal waste, but use the collection framework available to customers for the return, recycling and recovery of WEEE. Customer participation is important to minimize any potential effects of EEE on the environment and human health due to the potential presence of hazardous substances in EEE. For proper collection and treatment, contact your local IBM representative.
f2c00425
For Taiwan:
Batteries or packaging for batteries are labeled in accordance with European Directive 2006/66/EC concerning batteries and accumulators and waste batteries and accumulators. The Directive determines the framework for the return and recycling of used batteries and accumulators as applicable throughout the European Union. This label is applied to various batteries to indicate that the battery is not to be thrown away, but rather reclaimed upon end of life per this Directive. Les batteries ou emballages pour batteries sont tiquets conformment aux directives europennes 2006/66/EC, norme relative aux batteries et accumulateurs en usage et aux batteries et accumulateurs uss. Les directives dterminent la marche suivre en vigueur dans lUnion Europenne pour le retour et le recyclage des batteries et accumulateurs uss. Cette tiquette est applique sur diverses batteries pour indiquer que la batterie ne doit pas tre mise au rebut mais plutt rcupre en fin de cycle de vie selon cette norme.
In accordance with the European Directive 2006/66/EC, batteries and accumulators are labeled to indicate that they are to be collected separately and recycled at end of life. The label on the battery may also include a chemical symbol for the metal concerned in the battery (Pb for lead, Hg for mercury and Cd for cadmium). Users of batteries and accumulators must not dispose of batteries and accumulators as unsorted municipal waste, but use the collection framework available to customers for the return, recycling and treatment of batteries and accumulators. Customer participation is important to minimize any potential effects of batteries and accumulators on the environment and human health due to the potential presence of hazardous substances. For proper collection and treatment, contact your local IBM representative. Spain This notice is provided in accordance with Royal Decree 106/2008 of Spain: The retail price of batteries, accumulators and power cells includes the cost of the environmental management of their waste.
svc00065
xi
Perchlorate Material - California Special handling may apply. See http://www.dtsc.ca.gov/hazardouswaste/ perchlorate for more information. The foregoing notice is provided in accordance with California Code of Regulations Title 22, Division 4.5 Chapter 33. Best Management Practices for Perchlorate Materials. This product, part or both may include a lithium manganese dioxide battery which contains a perchlorate substance.
xii
| |
v Individual Copy Services tasks in the Copy Services CLI are replaced by individual DS CLI commands. Saving a DS CLI command to a shell script is the equivalent of saving a 2105 Copy Services task. v Grouped Copy Services tasks can be replaced by built-in DS CLI scripts that use the -script parameter. This works even in environments that do not have command line shells. The grouped tasks can also be replaced by shell scripts in environments that support command line shells. v Shell scripts that are used to invoke saved 2105 Copy Services tasks must be rewritten to invoke the equivalent DS CLI commands and scripts. v In a mixed ESS 2105 and DS8000 environment, only the DS CLI can perform Copy Services functions between the ESS and the DS models. ESS CLI to DS CLI The ESS CLI that came with the ESS 2105 cannot be replaced with the DS CLI. Logical configuration commands for the 2105 are not supported in the DS CLI and you must use the existing 2105 ESS CLI for this purpose.
| | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Supported Host Systems Linux (Red Hat 3.0 Advanced Server [AS] and Enterprise Server [ES]), RHEL 4, RHEL 5 Note: See the additional instructions following this table. SUSE Linux SLES 8, SLES 9, SUSE 8, SUSE 9, SLES10 Note: See the additional instructions following this table. Sun Solaris (7, 8, 9) HP Tru64 (5.1, 5.1A) Novell NetWare 6.5 System i i5/OS 5.3 OpenVMS 7.3-1 (or newer)
IMAGES\HMC\Disk1\InstData\Linux\ NoVM\dsclisetup.bin
IMAGES\HMC\Disk1\InstData\Solaris\ NoVM\dsclisetup.bin IMAGES\HMC\Disk1\InstData\HPUX\ NoVM\dsclisetup.bin IMAGES\HMC\Disk1\InstData\Windows\ NoVM\dsclisetup.exe IMAGES\HMC\Disk1\InstData\Windows\ NoVM\dsclisetup.exe See the topic group that describes how to install, use, and remove the DS command-line interface in an OpenVMS environment. IMAGES\HMC\Disk1\InstData\Linux\ NoVM\dsclisetup.bin IMAGES\HMC\Disk1\InstData\Windows\ NoVM\dsclisetup.exe
VMware ESX v3.0.1 Console Windows 2000, Windows Datacenter, Windows 2003, Windows Vista, Windows Server 2008, and Windows XP
v You must have installed Java 1.4.1 or later on your system. The installation program checks for this requirement during installation and does not install the DS CLI if you do not have Java 1.4.1 or later. The DS CLI installation CD contains Java 1.4.2, which you can install if your system is not equipped with this version of Java. v For an AIX installation: The LIBPATH environment variable can interfere with the installation of the DS CLI and can result in the display of the Java Virtual Machine Not Found Error. To avoid this interference, you must disable the LIBPATH environment variable before you install the DS CLI. After the installation of the DS CLI, you must enable the LIBPATH environment variable so that it can be used with other applications. Run the following commands to sequentially disable the LIBPATH environment variable, install the DS CLI, and restore the LIBPATH environment variable:
| | | | |
export LIBSAVE=$LIBPATH unset LIBPATH AIX/NoVM/dsclisetup.bin LAX_VM /opt/ibm-Java-whatever/java/bin/java export LIBPATH=$LIBSAVE unset LIBSAVE
v For a System i model installation: Note: The installation of DS CLI on a System i model is done remotely from a Windows platform. You cannot run the DS CLI installer directly on a System i model.
10
The System i model and i5/OS must meet the following requirements before the DS CLI can be installed: Prerequisites: - The latest Java group program temporary fixes (PTF) - i5/OS 5722-SS1 option 34 - Digital certificate manager - Licensed product 5722-AC3 option *base - Crypto Access Provider 128 bit - Licensed product i5/OS 5722-DG1option *base - IBM HTTP Server - Licensed product 5722-JV1 options 6 - Java Developer Kit 1.4 - The latest cumulative PTF package that is installed on the i5/OS If you are installing onto a System i model, ensure that the workstation that you are installing from is network-attached to the iSeries server. During the installation of the DS CLI application onto a System i model, you must provide the following information: - The name of the iSeries server to which you are installing the DS CLI application. - The user name and password that is used to access the designated iSeries server. When you install onto a System i model, a _uninst folder is created on the Windows desktop. Save this folder for uninstallation in the future. v The installation process installs the DS CLI in the following default directories: AIX /opt/ibm/dscli
| |
HPUX /opt/ibm/dscli Linux /opt/ibm/dscli Sun Solaris /opt/ibm/dscli Windows C:\Program Files\IBM\dscli HP Tru64 /opt/ibm/dscli iSeries /ibm/dscli VMware /opt/ibm/dscli Novell NetWare SYS:\IBM\dscli v Regardless of the operating system and DS series that you use, you must activate your license activation codes (part of DS Storage Manager postinstallation instructions) before you can use the CLI commands that are associated with Copy Services functions.
11
Create a file system for the CD-ROM by issuing the following command:
crfs -v cdrfs -p ro -d cd0 -m /cdrom
where cd0 represents the CD-ROM drive. Mount the CD-ROM file system by issuing the following command:
mount /cdrom
HPUX Mount the CD-ROM file system using the path name for your environment by issuing the following commands:
ioscan -funC disk | more mount /dev/dsk/c?t?d? /<cdrom>
Note: The device name /dev/dsk/c0t6d0s2 is the default name for Sun Solaris. The device name might be different on your system depending on your hardware configuration. Windows You are not required to mount the CD if you are using this operating system. HP Tru64 Issue the following command:
mount -t cdfs -o noversion /dev/rznn /mnt
where nn represents the number of CD-ROM drives. Novell NetWare You are not required to mount the CD if you are using this operating system. 4. Navigate to your CD drive and proceed with either the unattended (silent), console, or graphic installation.
12
The machine that you are installing from must be connected to the i5/OS through an IP connection.
13
You can install the DS CLI application using the graphical mode with the help of an installation wizard. Before you can use the DS CLI, some operating systems require that you restart your system after the installation is complete. Or, you might be required to open a new command prompt window to start a DS CLI session. Note: After you install the new version of DS CLI, your old DS CLI sessions might be unusable. Perform the following steps to install the DS CLI application using the graphical mode: 1. Start the setup file that is appropriate for your operating system. You can find the setup file on the installation cd by navigating to IMAGES\HMC\Disk1\ InstData, and then selecting your platform to find the appropriate setup file. For example, in Windows the path would be IMAGES\HMC\Disk1\InstData\ Windows\NoVM\dsclisetup.exe. The Introduction window is displayed. Initially (for all types of installation), the DS CLI installer checks your standard directories for the correct version of Java. If the correct version of Java is not found, you receive one of the following messages: v If you are using Windows, the following message is displayed:
LaunchAnywhere Error: Could not find a valid Java virtual machine to load. You may need to reinstall a supported Java virtual machine.
| | | | | | | |
The manner in which you respond to this message depends on your operating system and your installation environment settings. If the installation fails because the correct version of Java is not found, see Correcting the Java Virtual Machine Not Found Error on page 21. | 2. Click Next on the Introduction window to continue or Cancel to exit the installation. When you click Next the License Agreement window is displayed. 3. Select I accept the terms of the License Agreement and click Next to continue. Select I do not accept the terms of the License Agreement and Cancel to exit the installation. In Windows, when you accept the agreement and click Next, the Select Target System window is displayed (See Step 4. Otherwise proceed to step 5 on page 15. 4. (Windows, Novell NetWare, or OS/400 installation) Select the target system (Windows, Novell NetWare, or OS/400) where you want the DS CLI installed, and then click Next to continue or Cancel to exit the installation. a. Select Windows as your target system for all systems except Novell NetWare and OS/400. When you select Windows and click Next, the Choose Install Folder window is displayed. b. When you select Novell NetWare and click Next, the Novell Location window is displayed. Go to Step 6 on page 15 to continue the installation. c. When you select OS/400 and click Next, the OS/400 System Information window is displayed. Go to Step 7 on page 15 to continue the installation process.
| |
| |
| | |
14
| |
5. Verify that the directory name that is shown in the Choose Install Folder window is the directory where you want to install the DS CLI application. If it is not the correct directory, enter the directory path in the input field. Click Next to continue the installation. Click Cancel to exit the installation. When you click Next to continue the installation, the Pre-Installation Summary window is displayed. Go to Step 8 to continue the installation process. Note: If you are installing onto a System i system, a window that asks for the directory where Java is installed on the i5/OS is displayed when you click Next. Go to Step 7 to continue the installation process. 6. (Novell NetWare installation) When you select Novell NetWare and click Next, the Choose Install Folder window is displayed. Click Next to continue. Complete the information on the Set Novell NetWare Configuration window. You are asked to supply the location where the Windows drive is mapped and where the Java home directory that contains the version of Java you want to use is located. Click Next to continue the installation. Click Cancel if you want to exit the installation. When you click Next to continue the installation, the Pre-Installation Summary window is displayed. Go to Step 8 to continue the installation process. 7. (OS400 installation) On the OS/400 System Information window, confirm that any previous versions of the CLI have been uninstalled and then click Next. On the Enter Sign On Credentials window, enter the iSeries system name, user name, and password. Click Next to continue. The Pre-Installation Summary window is displayed. Go to Step 8 to continue the installation process. 8. (Pre-Installation Summary window) Verify that the displayed information is accurate. This window provides the location where the command-line interface will be installed and specifies how much space it will occupy on your drive. Click Install to continue or Cancel to exit the installation. You can change the installation directory by clicking the Previous button. When you click Install to continue the installation process, the Installation progress window is displayed. 9. (Installation progress window) This window provides the progress bar that reflects the progress of the installation as the files are installed. After the installation is complete, click Next to continue or Cancel to exit the installation. When you click Next to continue the installation process, the Important Information window is displayed. 10. (Important Information window) This window provides you with the opportunity to read the README file. Click Done to complete the installation.
| | | | |
| | | | | | | |
| | |
| | | |
What to do next
Notes: 1. You can verify that the command-line interface has installed correctly for Windows by reviewing the CLI.CFG file in the lib/ directory. 2. The DS CLI application is installed in the following two places in i5/OS: v IFS directory IBM/DS_CLI. This directory contains the profiles, .EXE files, Java .JAR files, readme files, and so forth. v The QDSCLI library. This library contains executable code.
Chapter 5. Installing the DS CLI
15
3. Before you can invoke the DS CLI application from the i5/OS, you must add the QDSCLI library to the i5/OS library list. 4. You can check the following directories to verify that the DS CLI application has been installed for your operating system AIX /opt/ibm/dscli
HPUX /opt/ibm/dscli Linux /opt/ibm/dscli Sun Solaris /opt/ibm/dscli Windows C:\Program Files\IBM\dscli HP Tru64 /opt/ibm/dscli iSeries /ibm/dscli Novell NetWare SYS:\IBM\dscli
16
installer from a command prompt on a Windows operating system. The console mode installer displays its various screens as text. Before you can use the DS CLI, some operating systems require that you restart your system after the installation is complete. Or, you might be required to open a new command prompt window to start a DS CLI session. Perform the following steps to install the DS CLI using the console mode: 1. Insert the DS CLI Installation CD into the CD drive. 2. Open a command prompt and navigate to the location of the dsclisetup file on the DS CLI CD. You can find the setup file by navigating to IMAGES\HMC\Disk1\InstData, and then selecting your platform to find the appropriate setup file. For example, in Windows the path would be IMAGES\HMC\Disk1\InstData\Windows\NoVM\dsclisetup.exe. 3. Type the following command on the command line: dsclisetup<.exe | .bin> -i console. For example, for Windows, type: dsclisetup.exe -i console or, for Linux, type: dsclisetup.bin -i console. For an installation onto an OS/400 system from a Windows operating system, type: setupwin32console.exe -os400. The Introduction screen is displayed. Notes: a. You can use the -i flag to specify any user interface mode when installing the DS CLI: -i [swing | console | silent]. The default mode for installing Windows is swing. The default for UNIX and Linux is console mode. You do not have to specify the mode in the command unless you want to use something other than the default mode. b. While in console mode, you can type back to return to the previous screen, or quit to exit the installation.
| | | | | | | | |
Preparing CONSOLE Mode Installation... ========================================================== IBM System Storage DS Command Line Interface(created with InstallAnywhere by Macrovision) ------------------------------------------------------------
=========================================================== Introduction -----------InstallAnywhere will guide you through the installation of IBM System Storage DS Command Line Interface. It is strongly recommended that you quit all programs before continuing with this installation. Respond to each prompt to proceed to the next step in the installation. If you want to change something on a previous step, type 'back'. You may cancel this installation at any time by typing 'quit'. PRESS <ENTER> TO CONTINUE:
| |
17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
=============================================================================== License Agreement ----------------Installation and Use of IBM System Storage DS Command Line Interface Requires Acceptance of the Following License Agreement: Use of the IBM System Storage DS Command Line Interface (CLI) is governed by the IBM Agreement for Licensed Internal Code, a copy of which has been provided with your DS Machine. Copyright 2008 International Business Machines Corporation All rights reserved.
5. Type Y and press Enter to accept the terms of the license agreement. If you are running the installer on Windows, the Select Target System screen is displayed.
Select Target System -------------------Please select the appropriate target system: ->1- Windows 2- Novell NetWare ENTER THE NUMBER FOR YOUR CHOICE, OR PRESS ENTER TO ACCEPT THE DEFAULT:
6.
If you are installing on a Windows operating system, type 1. If you are installing on a Novell NetWare operating system, type 2. Press Enter if you want to select the default operating system, or press Enter after you have typed in your selection. The Choose Install Folder screen is displayed.
Choose Install Folder --------------------Where would you like to install? Default Install Folder: C:\Program Files\IBM\dscli ENTER AN ABSOLUTE PATH, OR PRESS ENTER TO ACCEPT THE DEFAULT :
7. Enter the path where you would like to install the DS CLI, or press Enter to accept the default location. The confirmation message below is displayed.
INSTALL FOLDER IS: C:\Program Files\IBM\dscli IS THIS CORRECT? (Y/N):
8. Type Y and press Enter to continue installing the DS CLI in the specified location. Type N and press Enter to change the location. Type Y to confirm that the location is correct, and press Enter. a. If you are installing on Windows, the Pre-Installation Summary window is displayed.
18
Pre-Installation Summary -----------------------Please Review the Following Before Continuing: Product Name: IBM System Storage DS Command Line Interface Install Folder: C:\Program Files\IBM\dscli Disk Space Information (for Installation Target): Required: 28,988,352 bytes Available: 80,796,971,008 bytes PRESS ENTER TO CONTINUE:
b. If you are installing the CLI on a Novell NetWare system, the Set Novell NetWare Configuration window is displayed. Enter the Novell location where the Windows drive is installed and press Enter. The Set Novell NetWare Configuration screen is displayed. Enter the location of the JAVA directory that you would like to use and press Enter. The Pre-Installation Summary screen is displayed.
==================================================== Set Novell NetWare Configuration -------------------------------Please indicate the Novell location: Novell location(volume:directory) (DEFAULT: SYS:):
| | | | | | | | | | | | | | | | | | | | | | | |
=============================================================================== Installation Result ------------------Congratulations. IBM System Storage DS Command Line Interface has been successfully installed to: C:\Program Files\IBM\dscli PRESS <ENTER> TO CONTINUE:
10. Press Enter to continue. Important information about the README file is displayed.
19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Important Information --------------------Please read the information below. IBM(R) System Storage(R) DS Command Line Interface for Microsoft(R) Windows 2000(R), Windows 2003(R) Host Systems README --------------------------------------------------------Contents 1.0 1.1 1.2 2.0 3.0 4.0 5.0 About this README file Who should read this README file Help contacts Where to find more information Contents of Windows CLI package Notices Trademarks and service marks
This README file tells you where to find user information about the IBM System Storage DS Command Line Interface (CLI) User's Guide and lists PRESS <ENTER> TO CONTINUE:
11. Press Enter to continue reading until you reach the end of the important information. When you finish reading the important information, the CLI installation is complete.
What to do next
You can verify that the command-line interface has installed correctly by reviewing the CLI.CFG file in the lib subdirectory of the install directory that you specified.
20
| |
v Silent mode installation on OS/400 and Novell NetWare systems is not supported.
| | | | | | |
| | | | | | | | |
If you receive this message, see Correcting the Java Virtual Machine Not Found Error.
What to do next
You can verify that the command-line interface has installed correctly by reviewing the CLI.CFG file in the lib/ subdirectory of the installation directory.
21
Java 1.4.2 is available on the DS CLI installation CD for installation on some systems. After ensuring that Java 1.4.1 or higher is installed, perform one of the following actions to correct the Java Virtual Machine Not Found error: v Run the DS CLI installer again from the console, and provide the path to the JVM using the LAX_VM option. The following examples represent paths to the correct version of Java: For a Windows system, specify the following:
dsclisetup.exe LAX_VM "C:\Program Files\java-whatever\jre\bin\java.exe"
Note: Because there is a space in the Program Files directory name, you are required to add quotes around the file name. For a Unix or Linux system, specify the following:
dsclisetup.bin LAX_VM /opt/ibm-Java-whatever/java/bin/java
Note: If you use this argument, the installer attempts to use whatever JVM that you specify. You must use a supported version. Continue with the installation of the DS CLI application. v (For Unix or Linux) Add the Java virtual machine location to your PATH environment variable by running the following command:
export PATH=$PATH:/opt/ibm-Java-whatever/java/bin
22
| | | | | | | | | |
Then, run the dsclisetup.bin program to install the DS CLI. v (AIX only) Run the following commands to sequentially disable the LIBPATH environment variable, install the DS CLI, and restore the LIBPATH environment variable:
export LIBSAVE=$LIBPATH unset LIBPATH dsclisetup.bin LAX_VM/opt/ibm-Java-whatever/java/bin/java export LIBPATH=$LIBSAVE unset LIBSAVE
23
To download these ECOs, use the HP IT Resource Center (ITRC) database to perform a search for the patches from which you can select. These download steps are described at the Java SDK v1.4.2 patch installation page.
For a SCSI CD device DKA nnn, type the following command: MOUNT /NOASSIST /OVERRIDE=IDENTIFICATION /MEDIA_FORMAT=CDROM DKAnnn: where nnn represents the number that is assigned by the OpenVMS system to your CD device. 4. Enter the following command: DIRECTORY/FULL DQA0:[000000]IBM-AXPVMSDSCLI-*.PCSI and press Enter to access the command-line interface installation package in the root directory of the CD. Output similar to the following is displayed.
24
Directory DQA0:[000000] IBM-AXPVMS-DSCLI-V0500-01F96-1.PCSI;1 File ID: (4,7,0) Size: 55.79MB/55.80MB Owner: [0,0] Created: 9-MAR-2005 04:07:22.25 Revised: 9-MAR-2005 04:09:43.98 (1) Expires: None specified Backup: No Backup record Effective: None specified Recording: None specified Accessed: None specified Attributes: None specified Modified: None specified Linkcount: 1 File organization: Sequential Shelved state: Online Caching attribute: Writethrough File attributes: Allocation: 114282, Extend: 0, Global buffer count: 0 Version limit: 0, Backups disabled Record format: Undefined, maximum 0 bytes, longest 0 bytes Record attributes: None RMS attributes: None Journaling enabled: None File protection: System:RWED, Owner:RWED, Group:RWED, World:RWED Access Cntrl List: None Client attributes: None
5. Enter the following command and press Enter to extract the command-line interface for OpenVMS release notes: PRODUCT EXTRACT RELEASE_NOTES DSCLI /SOURCE=DQA:[000000] /FILE=filespec Note: If you do not use the /FILE qualifier, the release notes are written to the DEFAULT.PCSI$RELEASE_NOTES file in your current default directory. Read the release notes before continuing to ensure that you are equipped with the information that you need to complete your installation successfully. 6. Enter the following command and press Enter to invoke the command-line interface installation process: PRODUCT INSTALL DSCLI /SOURCE=DQA0:[000000] /DESTINATION=devicename:[directoryname] /RECOVERY_MODE. A message similar to the following is displayed.
The following product has been selected: IBM AXPVMS DSCLI V5.0-1F96 Layered Product
The /DESTINATION qualifier can be omitted from the command. However, IBM recommends that you use the optional /RECOVERY_MODE qualifier. For a detailed description of all PRODUCT INSTALL command qualifiers and parameters, see the HP OpenVMS System Management Utilities Reference Manual or the OpenVMS online help. 7. Press Enter to continue the installation process. The following message is displayed.
25
Configuration phase starting ... You will be asked to choose options, if any, for each selected product and for any products that may be installed to satisfy software dependency requirements. IBM AXPVMS DSCLI V5.0-1F96: IBM DS Command Line Interface (DS CLI) (C) Copyright IBM Corp. 1999, 2005. All Rights Reserved. International Business Machines Corporation (IBM) No PAK Do you want the defaults for all options? []
8. Enter No and press Enter to review the installation options. Note: You can enter Yes if you have decided to install with the default options. The following CLI license message is displayed after typing Yes or No.
License Agreement IBM System Storage DS Command-line Interface Copyright 2005 International Business Machines Corporation All rights reserved. Use of the IBM System Storage DS Command-line Interface (DS CLI) is governed by the IBM Agreement for Licensed Internal Code, a copy of which has been provided with your DS Machine. Answer "Yes" to install the DS CLI code. By installing this code, you are certifying that you have read and accept the IBM DS CLI License agreement. Answer "No" to terminate and exit the IBM DS CLI installation. Do you want to continue? [YES]
9. Press Enter to accept the DS CLI license agreement. The following Java license message is displayed.
26
License Agreement HP Java Run-Time Environment for OpenVMS The IBM DS CLI requires the Java 1.4.2 Java Runtime Environment (JRE). Installing the DS CLI program automatically installs the required JRE. The installed JRE is the intellectual property of and licensed by Hewlett-Packard Company. You can view the license agreement on the World Wide Web at: http://h18012.www1.hp.com/java/download/ovms/1.4.2/ rte1.4.2_license.html Answer "Yes" to install the Java code. By installing this code, you are certifying that you have read and accepted the HP Java License agreement. Answer "No" to terminate and exit the IBM DS CLI installation.
10. Press Enter to accept the Java license agreement. The command-line interface requires Java 1.4.2 on an OpenVMS Alpha host system. If you answer No, the installation process automatically ends and exits. The following library update warning message is displayed.
WARNING: By default the system Help and Message libraries will be updated. The IBM DS CLI program provides local Help and Help Message library files. By default, the CLI installation integrates these local libraries into the OpenVMS system Help and Help Message libraries. To prevent the system libraries from being modified chose to review the installation options and answer "No" when prompted to update the libraries.
11. Press Enter to continue the installation process. The following configuration question is displayed.
Would you like the local IBM DS CLI Help and Help Message libraries to be integrated into the OpenVMS system libraries? If you answer "Yes", the following OpenVMS libraries will be updated: SYS$COMMON:[SYSHLP]HELPLIB.HLB SYS$COMMON:[SYSHLP]MSGHLP$LIBRARY.MSGHLP$DATA If you answer "No", OpenVMS system libraries will not be modified. In every case, local libraries are available under: IBMDSCLI$HELP:IBMDSCLI_OVR.HLB IBMDSCLI$HELP:IBMDSCLI_MESSAGES.MSGHLP$DATA
12. Press Enter to confirm the library update option (or type No and press Enter to deny the library update option). The following confirmation message is displayed:
Chapter 5. Installing the DS CLI
27
13. Press Enter to confirm and accept all selections. The following installation message with completion status is displayed.
Execution phase starting ... The following product will be installed to destination: IBM AXPVMS DSCLI V5.0-1F96 DISK$V732_ALPHA:[VMS$COMMON.] Portion done: 0%...10%...20%...30%...60%...70%...80%...90%...100% The following product has been installed: IBM AXPVMS DSCLI V5.0-1F96
Layered Product
14. Review the Installation Verification Procedure (IVP) report, which is similar to the following output, and check for possible errors.
%PCSI-I-IVPEXECUTE, executing test procedure for IBM AXPVMS DSCLI V5.0-1F96 ... dscli ver IBM DSCLI Version: 5.0.1.96 %PCSI-I-IVPSUCCESS, test procedure completed successfully
15. Ensure that the installation completes. When the Polycenter Software Installation utility finishes the command-line interface installation process, a message similar to the following is displayed.
IBM AXPVMS DSCLI V5.0-1F96: IBM DS Command Line Interface (DS CLI) Insert the following lines in SYS$MANAGER:SYSTARTUP_VMS.COM: @PCSI$DESTINATION:[IBMDSCLI.MGR]IBMDSCLI$STARTUP.COM Insert the following lines in SYS$MANAGER:SYSHUTDWN.COM: @IBMDSCLI$MANAGER:IBMDSCLI$SHUTDOWN.COM Users of this product require the following lines in their login command procedure: @IBMDSCLI$MANAGER:IBMDSCLI$LOGIN.COM Release notes for IBM DS CLI available in IBMDSCLI$HELP
What to do next
The command-line interface provides program startup, login, and shutdown procedures in the [destinationdir.IBMDSCLI.MGR] directory. The installation process runs the startup and login procedures immediately before invoking the IVP procedure. But for persistent setup, you must integrate the startup, login, and shutdown procedures.
28
integrate the optional IBMDSCLI$SHUTDOWN.COM procedure. This integration is accomplished when you use the OpenVMS persistent setup procedure.
29
30
31
v Interactive v Script Notes: | | v DS CLI logs are created on the system running the DS CLI application. The location of the logs is under the user home directory at dscli/log/. This location cannot be changed. For example, on Windows the logs for the Administrator user are created under the directory C:\Documents and Settings\Administrator\dscli\log. On UNIX the logs are created under the directory ~/dscli/log. v You must not start more than 100 DS CLI sessions simultaneously. Starting more than 100 DS CLI sessions simultaneously can result in connection problems.
HPUX /opt/ibm/dscli Linux /opt/ibm/dscli Sun Solaris /opt/ibm/dscli Windows C:\Program Files\IBM\dscli HP Tru64 /opt/ibm/dscli iSeries /ibm/dscli Novell NetWare SYS:\IBM\dscli
32
User Name Specify the name of the user account. The default account for the first login is admin. Password Specify the user password. The default password for the admin account is admin. However, this password is only good for your first login. Note: Because the password for the admin account expires after you log in for the first time, you must change the password before you can perform any other DS CLI command function. Use the chuser command to change your password. The first time that you log in to the DS CLI, you can specify this information using either of the following two methods: v Ensure you are in the directory where you installed the DS CLI application and enter the dscli command at the command prompt. Supply all the log in information with the command. For example: dscli -hmc1 mtc032h.storage.tucson.ibm.com -user admin -passwd topn0t. Use this command when you use the single-shot mode for the first time and when the DS CLI application is not active on your system. In addition, when you use the single-shot mode, you must include the command that you want to process. For example, if you want to process the lssi command, and you have not activated the DS CLI application, and if you are using the single-shot mode, enter: dscli -hmc1 9.1.12.123 -user admin -passwd my_password lssi. v When you log into the DS CLI application (from the directory where you installed the DS CLI application) by entering dscli, you are prompted to supply the information for HMC1, user name, and password. Notes: 1. Entering a DS CLI command at the dscli command prompt requires that you continue entering all the parameters and values until the command is complete. This can result in an automatic line wrap if your command has many parameters and values. 2. You cannot force a line break or wrap by hitting the Enter key and then entering the rest of the command on a second line. The DS CLI application interprets the use of the Enter key as an end to the function and begins to process whatever is contained on the line, ignoring the second line. 3. The DS CLI command examples that are provided in this guide are often shown with line wraps that would not occur during your input. These examples are displayed for clarity and other formatting considerations.
33
1. Use the following command format to enter a DS CLI session (Windows operating system):
dscli -hmc1 9.1.23.456 -user admin -passwd my_password lssi -s -fullid -hdr off
Here is an example of this same command in i5/OS without the report delimiters:
DSCLI SCRIPT(*NONE) HMC1('9.1.23.456') USER(admin) PASSWORD(my_password) DSCL(lssi)
This command demonstrates the use of the lssi command with the -s parameter. Use this command to view the storage image IDs for your storage complex. The storage image ID consists of the manufacture name (IBM), the machine type (2107 or 1750), and the serial number. Notes: a. The command example uses the -fullid DS CLI command flag. The -fullid command flag generates fully qualified IDs, which include the storage image ID, for every ID that is displayed in the command output. b. The command example also uses the -hdr off command flag which turns off the header that is generally associated with the report that is generated from the lssi command. c. Almost every DS CLI command requires the use of the storage image ID. You can set it as an environment variable by setting devid in the profile file, or by setting devid using the setenv command. If you choose not to set it, the dscli will set a default devid on systems where the management console is aware of only one storage image. If you provide the -dev (storage_image_ID) parameter in commands, the value that you type takes priority over the devid environment variable. If you specify a full id that contains the storage image id, the storage image id that you specify takes priority over the value from the -dev (storage_image_ID) parameter and over the devid environment variable. 2. Wait for the command to process. The following type of report is generated that lists the storage image IDs that are associated with the storage complex.
IBM.2107-75FA111 IBM.2107-75FA112 IBM.2107-75FA120
| | | | | | | | | | |
34
| | |
v You can set the echo environment variable using the dscli profile file or you can use the setenv command to specify that the dscli command name is displayed before the command output. Note: It is not the intent of this instruction to tell you how to write a script. An example script is displayed for your use as a guide.
Note: If you are using i5/OS and have already logged on to the DS CLI application, you invoke the script mode using the following format:
DSCLI SCRIPT('/myscript') USER(admin) OUTPUT('/outfile')
2. Wait for the script to process and provide a report regarding the success or failure of the process.
Example
The following is an example of a script, for a DS8000 model, that could be used to establish remote mirror and copy relationships for volume pairs. Note: The script for a DS6000 model is the same except that the storage image ID is different.
mkpprc mkpprc mkpprc mkpprc mkpprc mkpprc mkpprc -dev -dev -dev -dev -dev -dev -dev IBM.2107-1303561 IBM.2107-1303561 IBM.2107-1303561 IBM.2107-1303561 IBM.2107-1303561 IBM.2107-1303561 IBM.2107-1303561 -remotedev -remotedev -remotedev -remotedev -remotedev -remotedev -remotedev IBM.2107-7504491 IBM.2107-7504491 IBM.2107-7504491 IBM.2107-7504491 IBM.2107-7504491 IBM.2107-7504491 IBM.2107-7504491 -type -type -type -type -type -type -type mmir 1000-103F:2300-233F gcp 1100-113F:2340-237F mmir 1800-187F:2800-287F gcp 1200-127F:2500-257F mmir 1040-1054:2700-2714 gcp 1055-107F:2400-242A mmir 1140-117F:2600-263F
35
Note: Many of the DS CLI commands have a feature that allows you to specify a dash (-) for the parameter and the specified value is read from standard input. However, you cannot use the dash (-) while in the DS CLI interactive command mode. Perform the following steps to use the DS CLI in the interactive command mode: 1. Log on to the DS CLI application at the directory where it is installed. 2. Provide the information that is requested by the information prompts. The information prompts might not appear if you have provided this information in your profile file. The command prompt switches to a dscli command prompt. 3. Begin using the DS CLI commands and parameters. You are not required to begin each command with dscli because this prefix is provided by the dscli command prompt. Tip: Issue the setoutput command to control how the reports that are generated by the list commands are displayed on your computer. The setoutput command allows you to set or display command output format options. For example, you can specify that the reports be displayed in one of the following formats: v delim = displays output in a table format and sets the column delimiter to a single character v xml = displays output in XML format v stanza = displays output in stanza (vertical table) format See the setoutput command for more details.
Example
To use the DS CLI history function that is associated with the interactive command mode, perform the following steps: 1. Issue an exclamation mark (!) to display CLI commands that you have used in the current session. For example: dscli>! results in a list of commands such as the following:
[4] [3] [2] [1] lsarraysite -dev IBM.2107-1300771 lsarray -dev IBM.2107-1300771 lsextpool -dev IBM.2107-1300771 lsextpool -dev IBM.2107-1300771
2. Issue dscli>!1 to retry the last command. Or, issue dscli>!3 to retry command [3].
Obtaining the serial (storage image ID) number using the DS CLI
Almost every DS CLI command requires the use of the storage image ID. If you add your target storage image ID into your profile file under the devid designation, you are not required to provide the storage image ID when you issue each command.
36
To obtain a list of the storage image ID numbers, perform the following steps. The storage image ID consists of the manufacture name (IBM), the machine type (2107 or 1750), and the serial number. 1. Log into the DS CLI application in interactive command mode (if you are not already logged in). 2. Enter the following command format at the dscli command prompt to obtain the storage image IDs.
dscli>lssi -s -hdr off
3. Wait for the command to process. The following type of report is generated, which lists the storage image IDs that are associated with the storage complex.
IBM.2107-75FA111 IBM.2107-75FA112 IBM.2107-75FA120
Displays the brief description for the command name. Displays the usage statement for the command name.
Note: You cannot use the -s and -l parameters with the following help command flags: -h, -help, and -?.
Examples
The following examples represent the type of information that is displayed when you use various parameters with the help command. Each of these examples start at the dscli command prompt. Note: Much of the information that is associated with the help command is displayed in list format. You can include the page (-p on) and row (-r
Chapter 6. Completing DS CLI postinstallation
37
number) controls; for example, dscli>help -p on -r 20. This command pauses your page listing after 20 entries and prompts you to press any key to continue. Example 1
dscli>help
This line of input provides the entire list of DS CLI commands. Only the command names are displayed. No other details are provided. Example 2
dscli>help -s
This line of input provides the entire list of DS CLI commands and a short description for each command. The short description explains what each command accomplishes. Example 3
dscli>help -l
This line of input provides the entire list of DS CLI commands and the syntax for each command. In addition, you see all the help syntax and formatting parameters, which can make your reading of the help difficult. For example, you can see something similar to the following for each command:
lsextpool [ { -help|-h|-? } ] [ { -l (long)|-s (short) } ] [-fmt default|xml|delim|stanza] [-p on|off] [-delim char] [-hdr on|off] [-bnr on|off ] [-r #] [-v on|off] [-fullid] -dev storage_image_ID [-stgtype fb|ckd] [-rankgrp 0|1] [Extent_Pool_ID ... | -]
The following line is the syntax output for the help lsextpool command: lsextpool -dev storage_image_ID [-stgtype fb|ckd] [-rankgrp 0|1][Extent_Pool_ID ... | -] Example 4
dscli>lssi dscli>lssi dscli>lssi dscli>help -h -help -? lssi
Any of the previous lines of input generates the entire help page that is associated with the lssi command. This is the same information that is found in the DS Command-line Users Guide or in the Information Center for the lssi command. Example 5
dscli>help -s lssi
This line of input provides the short description that is associated with the designated command. For instance, you might see the following:
lssi The lssi command displays a list of storage images in a storage complex. You can use this command to look at the status of each storage image in the list. The storage image worldwide node name (WWNN) is displayed when this command is used. You must use the storage image WWNN when using the lsavailpprcport and mkpprcpath commands.
Example 6
38
dscli>help -l lssi
This line of input displays the entire reference page found in both the DS Command-line Users Guide and in the Information Center for the lssi command.
3 4
Authentication Error
Application Error
Perform the following steps to obtain, interpret and use the DS CLI exit codes. 1. (Script mode) Retrieve the most recent exit code. For a Windows operating system, use %ERRORLEVEL% to retrieve the most recent exit code. For a UNIX or Linux operating system, use $? to retrieve the most recent exit code.
39
The following examples demonstrate the retrieval commands. The first part of the example shows the command that failed and the second part of the example shows the code to obtain the DS CLI exit code. Windows operating system
C:\Program Files\ess\cli>dscli test CMMCI9013E Command: test was not found. Tip: Enter help for a list of available commands. C:\Program Files\ess\cli>echo %ERRORLEVEL% 2
2. Use the previous table to interpret the value that is associated with the code and correct the command according to the exit code description.
Results
Processing that determines your next course of action Based on the interpretation of the exit code value and the following processing description that is associated with a failed DS CLI transaction, you can determine your next course of action. Single-shot mode The following processing is associated with a single-shot mode transaction: v All operations of the DS CLI transaction that can be processed are processed even though an error has occurred with one or more of the processed parameters that are associated with the transaction. v A report on all successful completions is generated. v A report on all failures is generated. Script mode The following processing is associated with a script mode transaction: 1. A DS CLI failure exit code is issued. 2. The script mode is automatically exited with no additional processing.
40
v IBM HyperPAV (DS8000 only) v IBM FlashCopy SE (DS8000 only) There are multiple codes that are associated with these features. To obtain the information that you need to activate these licenses and features in your storage unit, go to the IBM Disk Storage Feature Activation (DSFA) Web site at: http://www.ibm.com/storage/dsfa/ Download your codes onto a diskette in XML format. You can then import the codes from the XML file when you process the DS CLI applykey command. Notes: 1. For DS8000, in most situations, the DSFA application can locate your 2244 license authorization record when you enter the DS8000 (2107) serial number and signature. However, if the 2244 license authorization record is not attached to the 2107 record, you must assign it to the 2107 record in the DSFA application. In this situation, you need the 2244 serial number (which you can find on the License Function Authorization document). 2. For DS6000, in most situations, the DSFA application can locate your order confirmation code (OCC) when you enter the DS6000 (1750) serial number and signature. However, if the OCC is not attached to the 1750 record, you must assign it to the 1750 record in the DSFA application. In this situation, you must have the OCC (which you can find on the License Function Authorization document).
4. Verify that the keys have been activated for your storage unit by issuing the DS CLI lskey command as follows: lskey -dev IBM.2107-75FA120 5. Press Enter and the following type of report is displayed:
Sun Apr 09 02:23:49 PST 2006 IBM DS CLI
41
Activation Key Operating Environment (OEL) Remote mirror and copy (RMC) Metro Mirror (MM) Global Mirror (GM) Metro/Global Mirror (MGM) Remote mirror for z/OS (RMZ) Point in time copy (PTC) Parallel access volumes (PAV) IBM HyperPAV IBM FlashCopy SE
Scope All All All All All CKD All CKD CKD All
42
service The service user group includes monitor authority, plus access to all management console server service methods and resources, such as performing code loads and retrieving problem logs. monitor The monitor user group allows access to list and show commands. It provides access to all read-only, nonsecurity management console server service methods and resources. no_access The no_access user group does not allow access to any service methods or storage image resources. By default, this user group is assigned to any user account in the security repository that is not associated with any other user group. | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Table 1. User Group capabilities Service Copy Operator Physical Logical Services (DS6000 No Access Operator Operator Operator Monitor only)
Capability User account management Access audit log Update storage complex Power on/off storage image Update storage unit Update storage image Warmstart storage image Manage arrays, ranks, extent pools I/O port configuration Configuration recovery services (unfence volumes, discard pinned tracks, repair ranks,...) Host configuration Logical subsystem configuration Volume configuration Add or remove volume group
Admin X X X X X X X
X X X X X
X X
X X
X X
43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Table 1. User Group capabilities (continued) Service Copy Operator Physical Logical Services (DS6000 No Operator Operator Operator Monitor only) Access
Capability Assign or unassign volume group to host connection Add or remove volumes to volume group Manage Copy Services (FlashCopy, PPRC, Global Mirror) Set Copy Services timeout values Update user account password Query FRUs and enclosures Query configuration Query Copy Services FRU management Problem management Validate communication paths Activate code load Create a new PE package Manage storage unit IP addresses
Admin
X X X X X X X
X X X X X X X X X X X
X X X X X X X X X X X X X X X
X X X
X X
X X
In addition to assigning users to one or more user groups, you also must assign a default password to each user. When you notify users of their group assignment and default password, indicate that the default password is only good for the initial log on. Users must change the password at the time of their initial log on. Also, remind all users to record their password in a safe place, because there is no way that the administrator or the application can retrieve a password. Note: You must change the default password for an account, including the admin account, to be able to use any CLI command other than the one to change the password. See the chuser command for more information.
44
| |
45
environment variable %USERPROFILE%. As a result, your personal profile is C:\Documents and Settings\username\dscli\profiles\dscli.profile. UNIX or Linux operating system For an UNIX or Linux operating system, the property value defaults to the environment variable $HOME. As a result, your personal profile is ~/dscli/profile/dscli.profile. OpenVMS system For an OpenVMS operating system, the property value defaults to the logical name SYS$LOGIN. As a result, your personal profile is [.dscli.profile]dscli.profile. Note: The values of the Java system properties can be redefined by JRE options. If you are having problems, check to see if you have an environment setting like the following on your local system:
_JAVA_OPTIONS=-Duser.home=...
When you install the command-line interface software, the default profile is installed in the profile directory with the software. The file name is dscli.profile. For example. c:\Program Files\IBM\DSCLI\profile\dscli.profile. Example profile file modification: The following steps represent a typical modification process for some of the key items. Making these changes before you begin using DS CLI commands could save you time. 1. Click the DSCLI icon on your desktop (a DOS window opens) 2. Enter edit dscli.profile at the command prompt. The profile configuration file is displayed. 3. Scroll down to the # sign in front of HMC1: and remove the # sign. 4. Enter the correct IP address of your management console. 5. Scroll down to the # sign in front of DEVID and remove the # sign. 6. Enter the serial number of your machine type (include the values for manufacture, machine type, and serial number). 7. Save the file. 8. Enter cd.. at your command prompt. 9. Enter DSCLI at your command prompt and the DS CLI applications starts. You are asked to provide only your user ID and password and not the address of your management consoles. Table 2 provides the list of profile variables that you can use to create the profile.
Table 2. Profile variables Variable banner: on|off Description Enables or disables the banner that appears before the command output. This variable is equivalent to the command option -bnr. The command option -bnr overrides this default value. Specifies a delimiter character for the format: delim variable. The default character is a comma. This variable is equivalent to the command option -delim. The command option -delim overrides this default value. Specifies the storage image ID that is the target for the command. This value is equivalent to the command option -dev. The command option -dev overrides this default value.
delim
devid
46
Table 2. Profile variables (continued) Variable Description Specifies whether or not the command is printed before it is executed. Specify one of the following formats: v on: Specifies that the command is printed before it is executed. v off: Specifies that the command is not printed before it is executed. echoprefix Specifies the command prefix to print before a command is executed. v echoprefix: Specifies the prefix to print before a command is executed. If echo is on and echoprefix is specified, then its value will be printed on the line before the echoed command. v none: Specifies that no prefix will be printed before an echoed command. format Specifies the output format for list commands. Specify one of the following formats: v default: Specifies default output. v xml: Specifies XML format. v delim: Specifies columnar format. Columns are delimited with the character that you must specify with the delim variable. v stanza: Specifies a vertical table. This variable is equivalent to command option -fmt. The command option -fmt overrides this default value. fullid header: on|off Specifies that IDs display in fully qualified format, which includes the storage image ID. Enables or disables the headers that display with the columns of data in the list commands. This variable is equivalent to the command option -hdr. The command option -hdr overrides this default value. Specifies the primary Storage Manager IP address. This variable is equivalent to the command option -hmc1. The command option -hmc1 overrides this default value. Specifies the secondary Storage Manager IP address. This variable is equivalent to the command option -hmc2. The command option -hmc2 overrides this default value.
| | | | | | | | | | | | |
echo
hmc1
hmc2
47
Table 2. Profile variables (continued) Variable locale Description Specifies the language for the output on the local computer. v ar: Arabic v be: Byelorussian v bg: Bulgarian v ca: Catalan v cs: Czech v da: Danish v de: German v el: Greek v en: English v es: Spanish v et: Estonian v fi: Finnish v fr: French v gu: Gujarati v hi: Hindi v hr: Croatian v hu: Hungarian v in: Indonesian v is: Icelandic v it: Italian v iw: Hebrew v ja: Japanese v kk: Kazakh v kn: Kannada v ko: Korean v lt: Lithuanian v lv: Latvian (Lettish) v mk: Macedonian v mr: Marathi v ms: Malay
48
Table 2. Profile variables (continued) Variable locale, continued Description v nl: Dutch v no: Norwegian v pa: Punjabi v pl: Polish v pt: Portuguese v ro: Romanian v ru: Russian v sa: Sanskrit v sh: Serbo-Croatian v sk: Slovak v sl: Slovenian v sq: Albanian v sr: Serbian v sv: Swedish v ta: Tamil v te: Telugu v th: Thai v tr: Turkish v uk: Ukrainian v vi: Vietnamese v zh: Chinese paging: on|off Controls the display of output. If paging is enabled, a limited number of lines of output displays when a command is issued. The lines do not scroll. You must set the number of lines per page with the rows variable. This variable is equivalent to command option -p. The command option -p overrides this default value. Set timeout value of client/server synchronous communication. The unit of the value is second. The default value is 420 seconds. You can set this timeout if the processing of a command ends by timeout due to network or client/server performance issue. Note: The command timeout value can be longer than this value because one command can consist of multiple client/server requests. Set timeout value to establish client or server connection. The unit of this value is seconds. The timeout value must be greater than zero. System default socket timeout value is used if the value is set to zero. The default value is 20 seconds. Notes: 1. If the DS CLI returns a connection error, check for the following conditions: v Is there a secure physical connection between the client and server? v Is the default timeout value too short to establish a connection? 2. Setting a connection timeout value too short can cause unexpected connection problems.
timeout
timeout.connection
49
Table 2. Profile variables (continued) Variable remotedevid Description Specifies the remote storage image ID. This variable is equivalent to the command option -remotedev. The command option -remotedev overrides this default value. Specifies the number of rows per page of output if the paging variable is enabled. This variable is equivalent to command option -r. The command option -r overrides this default value. Enables or disables verbose output. This variable is equivalent to the command option -v. The command option -v overrides this default value.
rows
verbose: on|off
Example
# # DS CLI Profile # # # Management Console/Node IP Address(es) # hmc1 and hmc2 are equivalent to -hmc1 and -hmc2 command options. #hmc1: 127.0.0.1 #hmc2: 127.0.0.1 # # Default target Storage Image ID # "devid" and "remotedevid" are equivalent to # "-dev storage_image_ID" and "-remotedev storage_image_ID" command options, # respectively. #devid: IBM.2107-AZ12341 #remotedevid: IBM.2107-AZ12341 # # locale # Default locale is based on user environment. #locale: en # Timeout value of client/server synchronous communication in second. # DSCLI command timeout value may be longer than client/server communication # timeout value since multiple requests may be made by one DSCLI command # The number of the requests made to server depends on DSCLI commands. # The default timeout value is 420 seconds. #timeout: 900 # Socket connection timeout value in seconds. # The timeout value must be greater than zero. # System default socket timeout value is used if timeout value is set to zero. # The default connection timeout value is 20 seconds. #timeout.connection: 20 # Output settings # # ID format of objects: # on: fully qualified format # off: short format fullid: off # # # # # # Paging and Rows per page. paging enables/disables paging the output per line numbers specified by "rows". "paging" is equivalent to "-p on|off" option. on : Stop scrolling per output lines defined by "rows". off : No paging. (default) "rows" is equivalent to "-r #" option.
50
paging: off #rows: 24 # Output format type for ls commands, which can take one of the following values: # default: Default output # xml : XML format # delim : delimit columns using a character specified by "delim" # stanza : Horizontal table format # "format" is equivalent to option "-fmt default|xml|delim|stanza". #format: default # delimiter character for ls commands. #delim: | # Display banner message. "banner" is equivalent to option "-bnr on|off". # on : Banner messages are displayed. (default) # off : No Banner messages are displayed. banner: on # # Display table header for ls commands. "header" is equivalent # to option "-hdr on|off". # on : Table headers are displayed. (default) # off : No table headers are displayed. header: on # # Display verbose information. "verbose" is equivalent to option "-v on|off". # on : Display verbose information. # off : No verbose information. verbose: off # Echo each dscli command. # on : Echo commands to standard out prior to execution. Passwords within command line arguments will be hidden. # off : No command echo. (default) #echo:on # If echo is on and echoprefix is specified, its value will be printed on the line before the echoed command. #echoprefix:dscli> # End of Profile
51
52
53
54
IBMDSCLI_Messages.msghlp$data A message help data file with messages for facility IBMDSCLI. You can add this data file to the searchlist for message help files in your OpenVMS system by defining the logical name MSGHLP$LIBRARY accordingly. If you do not want the installation process to modify the OpenVMS system libraries, you can use these OpenVMS default logical names to integrate the DS CLI help information manually.
55
56
Configuring the DS8000 (using DS CLI) for use with the TotalStorage Productivity Center Replication Manager
Complete this task to configure the DS8000 for use with the TotalStorage Productivity Center Replication Manager using the DS command-line interface.
57
v Gateway TCP/IP address for the designated port v Primary DNS TCP/IP address for the designated port v Secondary DNS TCP/IP address for the designated port Note: The User ID and password that you use to allow the IBM TotalStorage Productivity Center for Replication software program to access the DS8000 are as follows: User ID - tpcruser Password - image ID (for example, 75BZFA1). This is not the unit number. The letters within the password value must be entered as caps otherwise the login fails. You can configure your Ethernet cards at any time. However, you cannot test the connection until at least one LSS or one LCU has been configured on your DS8000. Perform the following steps to configure your Ethernet cards and establish a connection with the IBM TotalStorage Productivity Center for Replication software program: 1. Obtain the key information from your network administrator. 2. Log in to the DS CLI application in interactive mode. 3. Follow the configuration steps to create at least one LSS or one LCU. Note: You can skip this step if storage is already configured on your DS8000. The configuration steps include the following tasks: a. Create extent pools b. Create arrays c. Create a rank d. Create a logical control unit (CKD only) e. f. g. h. Create volumes Create volume groups (Open systems only) Configure your fibre-channel I/O ports Create the SCSI host port connections (Open systems only)
Note: All of these steps are considered part of the initial configuration process and they are explained in the DS8000 Information Center command-line interface topic Configuring and managing logical storage. 4. Issue the lsnetworkport command using the -l parameter to generate a report that lists the different network ports that are available in the specified storage unit. In addition, the report displays the Port ID values for the ports that you will configure using the setnetworkport command. The following types of information are displayed on this report: State Specifies whether a port is enabled or in some other state.
Location Specifies the network port location using the format: Utttt.mmm.ppsssss-Pn-Cn-Tn, where v Utttt.mmm.ppsssss identifies the location of the processor complex. v Pn identifies the planer number. v Cn identifies the card number. v Tn identifies the port number.
58
5. Issue the setnetworkport command to configure the Ethernet cards for the DS8000 after you have configured at least one LSS. Enter the setnetworkport command at the dscli command prompt with the following parameters and variables:
dscli>setnetworkport -dev storage_image_id -ipaddr IP_address -subnet IP_mask -gateway IP_address -primary IP_address -secondary IP_address port_ID
Example
dscli>setnetworkport -dev IBM.2107-75FA120 -ipaddr 9.11.555.555 -subnet 255.555.555.0 -gateway 9.11.555.0 -primary 5.5.5.5 -secondary 5.0.5.0 I9801
Notes: a. Only those ports whose ID ends with a value of 01 (for example, I9801) should be configured using the setnetworkport command. Do not attempt to configure the ports that end with a value of 02. (The list of port IDs was provided in the report generated by the lsnetworkport -l command.) b. Values for the -ipaddr, -subnet, and -gateway parameters are required. c. You can optionally configure the primary and secondary DNS addresses. d. The specified IP addresses do not respond to network ping commands. e. You must process the setnetworkport command once for each ethernet adapter that is installed. This equates to entering the command twice for a single SFI machine, or either twice or four times for a dual-SFI machine (depending on whether the cards are installed for both SFIs or not). 6. Set up the communication link on the server that contains the IBM TotalStorage Productivity Center for Replication software program. a. Log in to TotalStorage Productivity Center Replication Manager program and follow the menu path Storage Subsystem Add Subsystem ESS/DS b. Fill in the applicable information which consists of the following: v IP addresses for the two Ethernet cards. v User ID (tpcruser) and password (storage image unit ID) that allow the TotalStorage Productivity Center Replication Manager program to access the DS8000. Notes: 1) The password is the image ID of the storage unit not the unit number (for example, you might have a unit number of 75BZFA0 and the associated image ID is 75BZFA1. The image ID is the password.) 2) You can use the lssi command to verify the value that you must use for the password. The following example shows the report that is generated when you type lssi at the dscli command line: Note: The table format displayed for the report is not how the actual report is displayed. The format is simply used for clarity.
dscli> lssi
Chapter 8. Configuring and managing logical storage
59
Date/Time: September 15, 2006 10:39:32 AM MST DS CLI Version: 5.2.200.404 Name ID IBM.21071301371 Storage Unit IBM.21071301370 Model 921 WWNN 5005076303 FFC04E
State Online
ESSNet Enabled
The value that is highlighted in the above report (1301371) is the password that is used on the specified server. 3) Ensure that all alphabetic characters that are a part of your password are entered as caps otherwise the login will fail. Click OK to process the transaction. The Storage Subsystems panel is displayed. 7. Verify that the connection link has been established between the DS8000 and the server that contains the IBM TotalStorage Productivity Center for Replication software program. The Local Server connection column displays a green checked dot and the word Connected when the connection has been made.
60
Creating extent pools for fixed block volumes using the DS CLI
Complete this task to create fixed block volume extent pools. This is the first step in configuring new fixed block storage. You can use the DS CLI commands to create extent pools for fixed block volumes.
Number of LBAs 16 777 216 34 275 328 68 681 728 137 822 208 275 644 416
Extents 8 17 33 66 132
61
Extents 263
Note: Only Ax2, Ax4 and Ax5 models are supported as external LSU LUNs.
Example
dscli>mkextpool -dev IBM.2107-75FA120 -rankgrp 0 -stgtype fb P0
where P0 represents the extent pool name that you assign. This name can be 16 double-byte characters. 2. Press Enter. A successful process displays the following message:
Sun Aug 11 02:23:49 PST 2004 IBM DS CLI Version: 5.0.0.0 DS: IBM.2107-75FA120 Extent pool P0 successfully created.
Note: The unique name that you assigned to the extent pool does not display in the process message. However, when you issue the lsextpool command, the extent pool name is displayed. 3. Repeat Step 1 for each extent pool that you want to create. Try to evenly distribute rank and extent pool allocations in order to keep the storage server workloads balanced. 4. Verify the extent pool assignments by issuing the lsextpool command when you are done creating the extent pools. Use the -l parameter to display a full report for the extent pools that are assigned to the storage unit. Enter the lsextpool command at the dscli command prompt with the following parameters and variables:
dscli>lsextpool -dev storage_image_ID -l
Example
dscli>lsextpool dev IBM.2107-75FA120 -l
62
Note: If this is your first time creating fixed block volumes, all the arrays are displayed with a state of unassigned. 2. Press Enter. A report of unassigned array sites is displayed. Use the list to identify unassigned array site capacity, rpm, and device adapter (DA) pair attributes. Record the RAID type for each array site. 3. Issue the mkarray command to create an array from either one or two array sites (DS6000) or one array site (DS8000) with the status unassigned. Enter the mkarray command at the dscli command prompt with the following parameters and variables:
dscli>mkarray -dev storage_image_ID -raidtype [5 | 6 | 10] -arsite array_site
63
For DS8000, v Specify one array site with identical capacity, rpm, interface, and DA pair attributes. v The new array inherits the capacity, rpm, interface, and DA pair characteristics of its parent array site. v The state of the array remains unassigned until it is assigned to a rank. For DS6000, v Specify one or two array sites with identical capacity, rpm, interface, and DA pair attributes. v The new array inherits the capacity, rpm, interface, and DA pair characteristics of its parent array sites. v The state of the array remains unassigned until it is assigned to a rank. 4. Repeat Step 3 until all unassigned array sites have been assigned to an array. 5. Verify that the array-to-array site assignment is recognized and complete by issuing either the lsarray or lsarraysite command with the -l parameter.
64
2. Issue the mkrank command to assign a rank to rank group 0 or 1 according to the rank group number of the assigned extent pool ID. Enter the mkrank command at the dscli command prompt with the following parameters and variables:
mkrank -dev IBM.2107-75FA120 -array A44 -stgtype fb -extpool P1
Notes: a. You can specify either the -wait or the -extpool parameter when you use the mkrank command. Either of these parameters allows you to be notified if the rank configuration has failed for any reason. b. If you use the -wait parameter, you cannot issue other commands until the entire transaction has processed. 3. Press Enter to display a report of rank assignments for your entire storage unit. Because the process of creating the rank involves formatting drives, it could take some time before the process finishes. If you want to check on the process, you can issue the lsrank command from a different DS CLI session. A successful process displays the following type of message:
Sun Aug 11 02:23:49 PST 2004 IBM DS CLI Device: IBM.2107-75FA120 Rank IBM.2107-75FA120/R44 successfully created.
4. Repeat Step 2 until all unassigned arrays are assigned a rank and an extent pool. 5. Issue the lsrank command to verify that ranks and extent pools have been assigned. Enter the lsrank command at the dscli command prompt with the following parameters and variables:
dscli>lsrank -dev IBM.2107-75FA120 -l
6. Press Enter to display a report of the rank assignments for your entire storage unit.
65
available, issue the lsextpool command to obtain the list of extent pool IDs. Enter the lsextpool command at the dscli command prompt with the following parameters and variables:
dscli>lsextpool -dev IBM.2107-13AAD7A -stgtype fb -l
Extent pool attributes determine the size and quantity of volumes that can be created. The extent pool ID (even/odd) indicates the storage server (0|1), which dictates that the LSS ID component of the volume ID must be an even or an odd number. 2. Issue the lsaddressgrp command to find unassigned and available address groups. Enter the lsaddressgrp command at the dscli command prompt with the following parameters and variables: dscli> lsaddressgrp -dev IBM.2107-75FA120 -l An address group refers to a group of LSSs. Up to 16 LSSs can be grouped into one address group. All LSSs in an address group must be of the same format (CKD or fixed block). Note: If this is your first time creating fixed block volumes, all the address groups are displayed with a state of unassigned. 3. Analyze the address group list to determine which LSSs can be used to make fixed block volumes. Consider the following conditions when doing your analysis: v If the address group list is empty, then all address groups are available to be defined (0 - 3). v If an undefined address group is used to create new fixed block volumes, select the lowest numbered address group. v If you are adding new fixed block volumes to an existing fixed block address group, use the lslss command to identify LSSs that are already defined in the target address group. 4. Issue the mkfbvol command to create fixed block volumes for the specified LSS. Enter the mkfbvol command at the dscli command prompt with the following parameters and variables:
dscli>mkfbvol -dev IBM.2107-75FA120 -extpool P1 -name finance#d -cap 8.6 0100-010F
Consider the following conditions with regard to the command example in this step: v All volumes will have the same type and capacity attributes. v The -extpool parameter identifies a fixed block extent pool containing available data extents. v The -name parameter allows you to assign an easy-to-use label or nickname to the volume. The volume name parameter can include a wild card (#d or #h) that inserts a decimal or hexadecimal volume ID value into the volume name. Note: The decimal designation does not apply to the volume ID number or the number of volumes that were created by the command. It only applies to the unique name that you have assigned. Also, when you process this command, the volume name that you have assigned does not appear in the confirmation message. To view the volume name that you have assigned, issue the lsfbvol or showfbvol command. v The -cap (capacity) parameter is 8.6 GB. The default is binary GB where 1 GB = 1 073 741 824 (2^30 bytes)
66
v The example provides a range of numbers (0100 - 010F) for the number of volumes to be created. Because volumes are created using the hexadecimal numbering system, the range in the example creates 16 volumes. The actual number of volumes that can be created is 255 per LSS based on the following criteria: The volume ID is a 32 bit number that can be represented as 4 hexadecimal digits in the form of XYZZ where: XY (for a DS8000 model) Specifies the logical subsystem number, 00 - FE. XY (for a DS6000 model) Specifies the logical subsystem number, 00 - 1E. ZZ (for DS6000 and DS8000 models) Specifies the volume number, 00 - FF. X (for DS6000 and DS8000 models) Specifies the address group, 0 - 1. For DS8000, you can define up to 255 LSSs in a storage unit. LSSs are either CKD or fixed block. Even numbered LSSs have an association with storage unit server 0. Odd numbered LSSs have an association with storage unit server 1. DS6000 has a 16 384 volume address space that is partitioned into 64 logical subsystem (LSS) units, where each LSS contains 256 logical volume numbers. The 64 LSS units are assigned to one of 4 address groups, where each address group contains 16 LSSs, or 4096 volume addresses. All of the LSSs in one address group must be of the same type (CKD or fixed block). 5. Repeat step 4 for all of the required logical volumes for each LSS. 6. Issue the lsfbvol command to display a report you can use to confirm the status of your fixed block volumes. Enter the lsfbvol command at the dscli command prompt with the following parameters and variables:
dscli>lsfbvol -dev IBM.2107-75FA120 -l -volgrp V2,V20
Note: It is possible that the report will display that there was a configuration error that is associated with one or more of your mkfbvol transactions.
67
When you create volumes, you must designate the logical subsystem (LSS) that a particular volume belongs to. After you assign a volume ID, use the first two digits to designate the LSS. For example, if you specify a volume ID of 1900, the volume then belongs to LSS 19. Consider the following specifications before you create your fixed block LUN volumes: v Volumes that belong to an even numbered rank group (cluster) must be in an even numbered LSS; volumes that belong to an odd numbered rank group (cluster) must be in an odd numbered LSS. The cluster that a volume belongs to is determined by specifying the extent pool that the volume is assigned to. v LSS numbers FF (DS8000) and 1F (DS6000) is reserved for internal use and must not be used as a volume ID. v You must define each volume as protected or unprotected. This is simply a notification to i5/OS; it does not mean that the volume is protected or unprotected. In reality, all LUNs are protected, either by RAID 5, RAID 6 or RAID 10. Defining a volume as unprotected means that it is available for i5/OS to mirror that volume to another internal or external volume of equal capacity. Unless you intend to use i5/OS (host based) mirroring, define your logical volumes as protected. Under some circumstances, you might want to mirror the i5/OS internal Load Source Unit (LSU) to a LUN in the DS6000 or the DS8000. In this case, define only one LUN volume as unprotected; otherwise, i5/OS attempts to mirror all unprotected volumes. v In general, it is best to use one LSS for volumes from one rank. Perform the following steps to create fixed block LUN volumes: Note: You can issue the commands that are described in the steps either for a DS8000 model or for a DS6000 model, but for the DS6000 model the storage image ID is different. 1. View your list of fixed block extent pool IDs and determine which extent pool IDs that you want to use as the source for the fixed block logical volumes. You obtained this list when you first created your extent pools. If this list is not available, issue the lsextpool command to obtain the list of extent pool IDs. Enter the lsextpool command at the dscli command prompt with the following parameters and variables:
dscli>lsextpool -dev IBM.2107-75FA120 -stgtype fb -l
Extent pool attributes determine the size and quantity of volumes that can be created. The extent pool ID (even | odd) indicates the storage server (0 | 1), which dictates that the LSS ID component of the volume ID must be an even or an odd number. 2. Issue the mkfbvol command to create fixed block LUN volumes for the specified LSS. Enter the mkfbvol command at the dscli command prompt with the following parameters and variables:
dscli>mkfbvol -dev IBM.2107-75FA120 -extpool p0 -os400 A05 -name i5_unprot_#h 1001-1002
Consider the following conditions with regard to the command example in this step: v The -extpool parameter identifies a fixed block extent pool containing available data extents.
68
v The -os400 parameter allows you to designate the size and protection of a LUN volume by specifying the volume model. The example shows LUN volumes of protected model type A05 with a size of 35.1 decimal gigabytes. v The -name parameter allows you to assign an easy-to-use label or nickname to the volume. The volume name parameter can include a wildcard (#d or #h) that inserts a decimal or hexadecimal volume ID value into the volume name. Note: The hexadecimal designation does not apply to the volume ID number or the number of volumes that were created by the command. It only applies to the unique name that you have assigned. Also, when you process this command, the volume name that you have assigned does not appear in the confirmation message. To view the volume name that you have assigned, issue the lsfbvol or showfbvol command. v The example provides a range of numbers (0101 - 0102) for the number of volumes to be created. The actual number of volumes that can be created is 255 per LSS based on the following criteria: The volume ID is a 32 bit number that can be represented as 4 hexadecimal digits in the form of XYZZ where: XY (for a DS8000 model) Specifies the logical subsystem number, 00 - FE. XY (for a DS6000 model) Specifies the logical subsystem number, 00 - 1E. ZZ (for DS6000 and DS8000 models) Specifies the volume number, 00 - FF. X (for DS6000 and DS8000 models) Specifies the address group, 0 - 1. You can define up to 255 (for DS8000) or 31 (for DS6000) LSSs in a storage unit. Even numbered LSSs have an association with storage unit server 0. Odd numbered LSSs have an association with storage unit server 1. LSS numbers FF (DS8000) and 1F (DS6000) is reserved. 3. Repeat step 2 for all of the required logical volumes for each LSS. 4. Issue the lsfbvol command to display a report you can use to confirm the status of your LUN volumes. Enter the lsfbvol command at the dscli command prompt with the following parameters and variables:
dscli>lsfbvol -dev IBM.2107-75FA120 -l
69
A status of configuration error specifies that the configuration process did not complete successfully. This state reflects an internal error condition and is not an indication that there was a user input error. You might want to gather additional information about what caused the error, which can help you determine how to correct it. Generally, to correct this error state, you must delete the designated volume configuration and submit a new transaction request. Perform the following steps to obtain additional information about the configuration error and to correct this error condition. 1. Add the -v (verbose) command flag to your mkfbvol command, and reissue the command for the transactions that show the configuration error designation. Note: You can also turn on the verbose mode in your profile file, and reissue the command. If you designate the verbose mode, the display of extra output includes the error code that is generated when the create rank transaction fails. 2. Issue the rmfbvol command to delete the designated volume configurations if you do not want to obtain additional information about what caused the configuration error. Note: In the majority of instances, this is the only method for correcting a configuration error.
70
Notes: a. You can use the -hosttype parameter with the mkvolgrp command. This parameter is an easier way of specifying the type of volume group. If you do not use the -hosttype parameter, it is assumed that the volume group type is scsimask. b. You cannot use the -type parameter and the -hosttype parameter together. c. If your volume group is not scsimask type and you do not want to use the -hosttype parameter, use the -type parameter. scsimask as the default value of the -type parameter; you can also specify scsimap256 or os400mask as your volume group type. Because you need to know the criteria that is associated with these volume group types, see the mkvolgrp command for more information. d. Volume IDs must meet the following criteria: v ID ranges must be separated by a comma (displayed as 0001-0010,0120 in the example). v For scsimap256, the array or ranges cannot exceed 256 volume ID entries. Otherwise, up to 64 384 entries are allowed. v Use the -type 0s400mask parameter if the volume group is limited to fixed block volume OS400-protected or OS400-unprotected types. Otherwise, the volume group is limited to the fixed block volume type DS8000 or DS6000 machine type. v The volume group name (my_nickname in the example command) must be unique within the scope of the specified storage image. 2. Issue the lsvolgrp command to create a list of assigned volume group IDs. Enter the lsvolgrp command at the dscli command prompt with the following parameters and variables:
dscli>lsvolgrp -dev IBM.2107-75FA120 -l
Notes: a. The lsvolgrp command with the -l parameter displays a report with the following 3 values: v Name (the unique name that you assigned to the volume group) v Volume group ID v Type (the configured volume group type) b. You can narrow the scope of the report by requesting a specific type of volume. See the lsvolgrp command for information about the -type parameter.
71
v If you are using a multipath connection, a volume group is assigned to two or more i5 fibre-channel adapters. Each fibre-channel adapter provides one path to volumes in the volume group. v If you are using an external load source, you create a volume group that contains one volume. After a partition is initially loaded from the external load source, you can add more volumes to this volume group so that the i5/OS recognizes them and can use them. When you create a volume group for i5/OS, you should specify the -hosttype iSeries parameter as part of the mkvolgrp command. The -hosttype iSeries parameter saves some processing time because this parameter automatically supplies information that would have to be specified separately. For example, the i5/OS uses a logical blocksize of 520, and volumes that are created for i5/OS use a blocksize of 520 bytes. By specifying the -hosttype iSeries parameter, you also denote that the logical size of the blocks in the volumes is 520 bytes. Perform the following steps to create and view volume groups for System i models: Note: You can issue the commands that are described in the steps either for a DS8000 model or for a DS6000 model, but for the DS6000 model the storage image ID is different. 1. Issue the mkvolgrp command to create a volume group. Enter the mkvolgrp command at the dscli command prompt with the following parameters and variables: Note: Repeat this step for each volume group that you want to create. The following two examples provide the commands that you can use to create volume groups depending on whether you use the external load source. The first example creates a volume group that contains one unprotected volume if you do use an external load source. (If you are using an external load source, you can initially only have one volume in the volume group.) The second example creates a volume group that contains all volumes if you do not use an external load source. Example 1 (using an external load source)
dscli>mkvolgrp -dev IBM.2107-13ABVDA -hosttype iSeries -volume 1000 blue
Date/Time: July 5, 2005 11:57:50 PM GMT+01:00 IBM DSCLI Version: 5.0.4.32 DS: IBM.2107-13ABVDA CMUC00030I mkvolgrp: Volume group V14 successfully created.
Notes: a. The confirmation message for the end process shows that the created volume group is automatically assigned an ID that is different from the name of the volume group that you specify in the command. You will see the name that you assigned associated with the volume group when you use the lsvolgrp and showvolgrp commands. However, if you want to work specifically with the volume group, you must reference the volume group ID.
72
b. This volume group is also referred to as SCSI520-MASK. When an error message is displayed for the OS400 MASK, SCSI520-MASK is referenced instead. c. If you do not use an external load source, it is a good practice to create a volume group that contains all the volumes that will be assigned to the i5 fibre-channel adapter. d. Some System i models only support 32 device addresses per volume group. 2. Issue the lsvolgrp command to create a list of assigned volume group IDs. Enter the lsvolgrp command at the dscli command prompt with the following parameters and variables:
dscli>lsvolgrp -dev IBM.2107-13ABVDA -l
Notes: a. The lsvolgrp command with the -l parameter displays a report with the following three values: v Name (the unique name that you assigned to the volume group) v Volume group ID (the identification number of the volume group) v Type (the configured volume group type) b. You can narrow the scope of the report by requesting a specific type of volume. See the lsvolgrp command for information about the -type parameter. 3. Verify your host type information by issuing the lshosttype command using the following command format at the dscli command prompt:
dscli>lshosttype -type os400mask
Note: You can obtain the same results if you use the -type os400all parameter.
73
Note: Designate this topology for System i models using i5/OS level V5R3M5 and above. ficon (coded as ficon in the setioport command) Enables the FICON ULP with a point-to-point or switched fabric topology. PPRC path I/O operations are not supported for FICON ULP.
A detailed report is displayed that lists the fibre-channel I/O ports. 2. Analyze the report and determine which I/O port IDs that you want to access the fixed block volumes. Configure a minimum of four I/O ports for SCSI host I/O operations. Select ports with physical locations on different host bus adapter (HA) cards. If possible, locate the HA cards in different I/O enclosures. 3. Set the I/O ports that you have identified to enable the FC-AL (fibre-channel arbitrated loop), SCSI-FCP, or FICON topology. The following example shows how to enable the FC-AL topology by typing the following command format at the dscli command prompt: Note: I/O ports are automatically set to the offline state and returned to the online state after configuration changes are applied.
dscli>setioport -dev IBM.210775FA120 0012 0013 0112 0113 -topology fc-al
4. Press Enter. A successful process returns a confirmation message indicating that the port IDs have been successfully configured.
74
75
AddrDiscovery reportlun
LBS 512
Description IBM pSeries, RS/6000 and RS/6000 SP Servers (AIX) IBM zSeries Servers (Linux) IBM iSeries Servers (System i)
lunpolling reportlun
512 520
Note: Volume group type is one of the following designations (use a separate command for each choice): v ficonall v scsiall v scsimask v scsimap256 v os400all v os400mask The same results are displayed when you specify os400all or os400mask or when you specify scsiall and scsimask or scsimap256. 2. Create SCSI host ports by issuing the mkhostconnect command. Enter the mkhostconnect command at the dscli command prompt with the following parameters and variables:
dscli>mkhostconnect -dev storage_image_ID -wwname wwpn -hosttype host_type -volgrp volume_group_ID -ioport port_ID host_name
Notes: a. The -wwname parameter specifies the 16-character worldwide name that is assigned to the host system fibre-channel adapter port. This WWPN value is validated each time that the host system port logs into an I/O port. b. The -hosttype parameter specifies fibre-channel communications layer characteristics that might be unique according to the host system manufacturer, operating system, or version of the system. Typical specifications are iSeries, pSeries, an so on. c. The -volgrp parameter specifies the volume group ID that this host port can access. Host port objects might be created prior to creating volume groups, in which case you must use the chhostconnect command to add volume group ID assignments at a later time. d. The -ioport all specifies SCSI host port (WWPN) access into all IO ports that are configured for the FC-AL or SCSI-FCP topology. e. host_name specifies the SCSI host system nickname that you have assigned. 3. Repeat Step 2 for each SCSI host system port that will access LUN volumes.
76
4. Verify that all SCSI host ports have been configured and that they are recognized by the storage unit according to your specifications by issuing the lshostconnect command with the -l parameter.
77
where IBM.2107-75FA120 is the name of the storage image ID. 2. Analyze the extent pool listing for the following information: v Does the minimum set of extent pools exist? There must be one extent pool for rank group 0 and one extent pool for rank group 1. Note: If this is the first time that the extent pools are created, the minimum number of extent pools does not already exist. v Does each extent pool have a rank group that is assigned to it and are they balanced? Note: If this is the first time the extent pools are created, there are no rank assignments. v Are additional extent pools required? 3. Issue the mkextpool command to create the extent pools. The following are examples of the commands that you can type in the dscli command prompt: Remember: You must create a minimum of two extent pools. There must be one extent pool for rank group 0 and one extent pool for rank group 1.
78
mkextpool -dev IBM.2107-75FA120 rankgrp 0 -stgtype ckd extent_pool_name mkextpool -dev IBM.2107-75FA120 rankgrp 1 -stgtype ckd extent_pool_name
where extent_pool_name is the name that you want to assign to the extent pool. This is a required parameter. The name cannot be longer than 16 characters. Create additional extent pools for each of the following conditions: v Each RAID type (5, 6 or 10) v Each disk drive module (DDM) size v Each CKD volume type (3380, 3390) v Each logical control unit (LCU) address group 4. Press Enter. Note: The unique name that you assigned to the extent pool does not display in the process message. However, when you issue the lsextpool command, the extent pool name is displayed. The following is an example of the message that is displayed for a successful process:
Sun Aug 11 02:23:49 PST 2004 IBM DS CLI Version: 5.0.0.0 DS: IBM.2107-75FA120 Extent pool P1 successfully created.
5. Repeat step 2 on page 78 for each extent pool that you want to create. Remember: To keep the storage server workloads balanced, evenly distribute rank and extent pool allocations. 6. After you have created the extent pools, issue the lsextpool command to verify the extent pool assignments. Use the -l parameter to display a full report for the extent pools that are assigned to the storage unit. The following is an example of the command that you can type in the dscli command prompt:
lsextpool dev IBM.2107-75FA120 -l
7. Optionally, print the list of extent pools so that you can refer to this list when you create CKD volumes.
79
identical capacity, rpm, and interface characteristics, and an interface to a common DA pair.
Note: If this is your first time creating volumes, you will see all the arrays with a state of unassigned. 2. Press Enter. A report of unassigned array sites is displayed. Use the list to identify unassigned array site capacity, rpm, and device adapter (DA) pair attributes. Record the RAID type for each array site. 3. Issue the mkarray command to create an array from each site with the status unassigned. Enter the mkarray command at the dscli command prompt with the following parameters and variables:
dscli>mkarray -dev storage_image_ID -raidtype [5 | 6 | 10] -arsite array_site
Repeat this command until all unassigned array sites have been assigned to an array. Notes: a. You can specify one or two array sites for DS6000. If there are two array sites, both sites must be associated with a common DA pair ID. Two array sites must be separated by commas with no blank space in between. Example: S10,S11. b. The new array site inherits the capacity, rpm, interface, and DA pair characteristics of its parent array site or sites depending on the machine type. The state of the array is unassigned until it is assigned to a rank.
80
2. Issue the mkrank command to assign a rank to rank group 0 or 1 according to the rank group number of the assigned extent pool ID. Enter the mkrank command at the dscli command prompt with the following parameters and variables:
dscli>mkrank -dev IBM.2107-75FA120 -array A44 -stgtype ckd -extpool P1
Notes: a. You can specify either the -wait or the -extpool parameter when you use the mkrank command. Either of these parameters allows you to be notified if the rank configuration has failed for any reason. b. Be aware that when you use the -wait parameter, you cannot issue any other commands until the entire transaction has processed. 3. Press Enter to create the ranks. The process of making the rank involves formatting drives. It can take a little time before the process finishes. To check on the process, issue the lsrank command from a different DS CLI session. A successful process generates the following type of message:
Sun Aug 11 02:23:49 PST 2004 IBM DS CLI Device: IBM.2107-75FA120 Rank IBM.2107-75FA120/R44 successfully created.
4. Repeat Step 2 and step 3 until all unassigned arrays are assigned a rank and an extent pool.
81
5. Issue the lsrank command to verify that ranks and extent pools have been assigned. Enter the lsrank command at the dscli command prompt with the following parameters and variables:
dscli>lsrank -dev IBM.2107-75FA120 -l
6. Press Enter. A report of the rank assignments for your entire storage unit is displayed.
This command displays a report on the status of the address groups within your storage unit. 2. Analyze the report to identify all of the address groups that are available to be defined. Use the following criteria: v If the list is empty, all of the address groups are available to be defined. v A defined address group with the storage type fb (fixed block) is not available to be defined. v A defined address group with the storage type ckd and with fewer than 16 LSSs is available for LCU definition. v If you are using an undefined address group to make new LCUs, select the lowest numbered address group that is not defined.
82
v If you are defining a new LCU in an existing CKD address group, use the lslcu command to identify LCUs that are already defined in the target address group. 3. Make the LCU logical subsystem objects by issuing the mklcu command. Type the command using the following format at the dscli command prompt:
dscli>mklcu dev IBM.2107-75FA120 -qty 16 -id 00 -ss 0010 -lcutype 3390-3
In this example, the values specify the following: qty Specifies the number of LCU IDs to be created. id Specifies the LCU ID to be created, or the first LCU ID in a sequence of LCU IDs to be created. ss Specifies the subsystem ID that you have assigned. If multiple LCU IDs are being created, then the SSID value increments for each additional LCU ID that is created. If 16 LCUs are created, starting with SSID 0x10, then the SSID values are 0x0010 0x001F. lcutype Specifies the type of LCU to be created. You can specify the following types: v 3390-3 v 3990-tp v 3990-6 v bs2000 4. Press Enter. A successful process displays a confirmation message listing each LCU ID number that has been successfully created. 5. Verify that the LCUs are recognized in the storage unit by issuing the lslcu command at the dscli command prompt as follows:
dscli>lslcu -dev IBM.2107-75FA120 -l
Using the -l parameter displays a more detailed report for each LCU that is associated with your storage unit.
83
Note: You can issue the commands that are described in the steps either for a DS8000 model or for a DS6000 model, but for the DS6000 model the storage image ID is different. 1. View your list of CKD extent pool IDs and determine which extent pool IDs that you want to use as the source for the CKD volumes to be created. You obtained this list when you first created your extent pools. If this list is not available, you can issue the lsextpool command to obtain the list of extent pool IDs. Extent pool attributes determine the size and quantity of volumes that can be created. The extent pool ID (even/odd) indicates the storage server (0|1), which dictates that the logical control unit (LCU) ID component of the volume ID must be an even or an odd number. 2. Issue the mkckdvol command to make 128 base volumes for each LCU. Enter the mkckdvol command at the dscli command prompt with the following parameters and variables:
dscli>mkckdvol dev IBM.2107-75FA120 -extpool p1 cap 3339 name finance#d 0000-007F
The following considerations affect the command example in this step: v The -extpool parameter identifies a CKD extent pool that contains available data extents. v The -cap parameter specifies the quantity of CKD cylinders that are allocated to this volume. v The -name parameter allows you to assign an easy-to-use label or nickname to the volume. The volume name parameter can include a wild card (#d or #h) that inserts a decimal or hexadecimal volume ID value into the volume name. Note: The decimal designation does not apply to the volume ID number or the number of volumes that were created by the command. It only applies to the unique name that you have assigned to the volume. When you process the mkckdvol command, the volume name that you have assigned does not appear in the confirmation message. To view the volume name that you have assigned, issue the lsckdvol or showckdvol command. v Volume ID 0000 - 007F specifies 128 volumes, starting at CKD address group (0), LCU ID (00), and volume number (00). You must specify volume IDs that have not been previously defined as CKD or fixed block volumes. 3. Press Enter to create the volumes. A confirmation message is displayed that lists the successful creation of each volume. 4. Repeat Steps 2 and 3 until all required logical volumes for all LCUs have been created. 5. Issue the mkaliasvol command to make 128 alias volumes for each LCU. Enter the mkaliasvol command at the dscli command prompt with the following parameters and variables:
dscli>mkaliasvol dev IBM.2107-75FA120 base 0000-004F -order decrement -qty 2 00FF
Consider the following conditions with regard to the command example in this step: v The -base 0000 - 004F parameter specifies that alias volumes are assigned to existing base volume IDs 0000 - 004F. Base and alias volumes must be associated with a common LCU ID.
84
v The -order parameter specifies the order in which alias volume IDs are assigned. v The -qty parameter specifies the number of alias volumes that are assigned to each base volume. v The volume ID (00FF) parameter specifies that the alias volumes are assigned, starting at a CKD address group (0), LCU ID (00) and volume number (FF). You are responsible for specifying the volume ID values that have not been previously defined as CKD or fixed block volume types. As a result, alias volumes 00FF and 00FE are created for base volume 0000, 00FD and 00FC for 0001, and so on. 6. Repeat Step 5 until you have defined all required logical volumes for all the LCUs. 7. Press Enter to create the alias volumes. A confirmation message is displayed that lists the successful creation of each volume. 8. Issue the lsckdvol command to display a report that you can use to confirm the status of your CKD volumes. Enter the lsckdvol command at the dscli command prompt with the following parameters and variables:
dscli>lsckdvol -dev IBM.2107-1300861 -l 1410
Note: It is possible that the report will display that there was a configuration error that is associated with one or more of your mkckdvol transactions. In the majority of instances, the only way to correct this error is to issue the rmckdvol command.
85
Note: You can also turn on the verbose mode in your profile file and reissue the command. If you designate the verbose mode, the display of extra output includes the error code that is generated when the create CKD volume transaction fails. 2. Issue the rmckdvol command to delete the designated volume configurations if you do not want to obtain additional information about what caused the configuration error. Note: In the majority of instances, this is the only method for correcting a configuration error.
86
Note: You can issue the commands that are described in the steps either for a DS8000 model or for a DS6000 model, but for the DS6000 model the storage image ID is different. 1. View a list of fibre-channel port IDs by typing the following command format at the dscli command prompt:
dscli>lsioport -dev IBM.210775FA120 -l -type fc
A detailed report is displayed that lists the fibre-channel I/O ports. 2. Analyze the report and determine which I/O port IDs that you want to access the fixed block volumes. Configure a minimum of four I/O ports for SCSI host I/O operations. Select ports with physical locations on different host bus adapter (HA) cards. If possible, locate the HA cards in different I/O enclosures. 3. Set the I/O ports that you have identified to enable the FC-AL (fibre-channel arbitrated loop), SCSI-FCP, or FICON topology. The following example shows how to enable the FC-AL topology by typing the following command format at the dscli command prompt: Note: I/O ports are automatically set to the offline state and returned to the online state after configuration changes are applied.
dscli>setioport -dev IBM.210775FA120 0012 0013 0112 0113 -topology fc-al
4. Press Enter. A successful process returns a confirmation message indicating that the port IDs have been successfully configured.
87
v You have completed the initial configuration from the server from which you did your installation. For example, you have activated your licenses, created your arrays, ranks, extent pools, host attachments, and logical volumes on the DS8000 or DS6000. v You have configured the DS CLI profile as appropriate. To edit the profile file, perform the following: 1. Enter EDTF /ibm/dscli/profile/dscli.profile at the i5/OS command line. 2. Update the following two lines when the profile file displays: HMC IP address field and remove the comment from this command line Dev ID field and remove the comment from this command line v You have performed an IPL to System i5.
2. The DSCLI displays the following screen where you can specify a DS CLI script for DS CLI commands and a DS CLI profile. In this example, a default profile is specified. The profile is not configured so the value of *DEFAULT is used. If you are not using a script, specify *None and press Enter. After you press Enter, more fields appear in the screen as shown in step 3.
Run DSCLI Functions (DSCLI) Type choices, press Enter. Script: *NONE or name Profile . . . . . *NONE___ *DEFAULT
. . . . . . . . . . . .
F5=Refresh
F12=Cancel
88
Run DSCLI Functions (DSCLI) Type choices, press Enter. Script: *NONE or name Profile . . . . . > *NONE *DEFAULT *PROFILE *PROFILE admin '/ibm/dscli' *int
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Bottom F3=Exit F4=Prompt F24=More keys F5=Refresh F12=Cancel F13=How to use this display
Consider the following fields and values: v If you are using a DS CLI script for DS CLI commands, enter the name in the Script field. Otherwise, specify *None. v If you use default profile, leave the value *DEFAULT in the field Profile. If you use another file as a profile, specify the name and path of this file in the field Profile. v Enter the hardware management console (also known as the management console) user in the User field. Typically, it is Admin. v Enter the password of the user (typically the administrators password). v Enter *INT (for interactive session) in the DSCLI CMD field. The screen shown in step 4 displays. 4. Specify the DS CLI commands to invoke storage configuration or Copy Services functions.
Date/Time: July 8, 2005 2:55:20 PM MST IBM DSCLI Version: 5.0.4.32 DS: IBM.1750-13ABVDA
F9=Retrieve
89
v extent threshold percentage Perform the following steps to modify the extent pool properties. 1. Issue the lsextpool command to generate a report that identifies the status of your extent pools by storage type (fixed block or count key data). Enter the lsextpool command at the dscli command prompt with the following parameters and variables:
dscli>lsextpool -dev storage_image_ID -l -stgtype (fb | ckd)
Note: The -stgtype parameter must be designated as either fb (fixed block) or ckd (count key data). The storage type allows you to limit the list of extent pools for issues such as which ones to rename or to change the limit or threshold percentages. 2. Issue the chextpool command to change the name that is assigned to the extent pool or to change the percentages that are allocated for extent and threshold limits. Enter the chextpool command at the dscli command prompt with the following parameters and variables:
dscli>chextpool -dev storage_image_ID -name new_extent_pool_name -extentlimit [on | off] -limit extent_limit_percentage -threshold extent_threshold_percentage -extentpool_ID
Notes: a. The new extent pool name can include up to sixteen characters. b. The -extentpool_ID parameter is required but does not need to be specified as a separate entry. You can add it to the storage_image_ID parameter. For example: IBM.2107-75FA120/P21, with P21 being the extent pool ID. Extent pool IDs are specified as 4-digit values with no leading zeros, and they are preceded by the letter P. c. The unique name that you assigned to the extent pool does not display in the output message of the chextpool command. However, when you issue the lsextpool command, the extent pool name is displayed. 3. Issue the lsextpool command to verify that your changes have been processed.
90
Notes: 1. Use the -l parameter if you want to see the list and status for all the extent pools (fixed block and CKD) in your storage unit. A full report is displayed. 2. Use the -s parameter if you just want to see only a list of the extent pools in your storage unit. No additional information is provided.
2. (For performance metrics information) Issue the showextpool command. Enter the showextpool at the dscli command-line prompt with the following parameters and variables:
dscli>showextpool -dev storage_image_ID -metrics extentpool_ID
Notes: a. All performance metrics are an accumulation since the most recent counter wrap or counter reset. b. The extent pool performance counters are reset on the following occurrences: v When the storage unit is turned on. v When a server has failed, and the failover and failback sequence is performed.
91
v The volumes associated with the extent pool must be removed. v (CKD volume configuration only) The logical control units (LCUs) that are associated with the extent pool must be removed. v The ranks that are assigned to the extent pool must be unassigned or removed. v The arrays that are assigned to the extent pool must be removed.
2. Analyze the list and determine which extent pools can be deleted. 3. Issue the rmextpool command to delete the designated extent pools. Enter the rmextpool command at the dscli command prompt with the following parameters and variables:
dscli>rmextpool -dev storage_image_ID extentpool_ID
Note: If you are deleting several extent pools, you can add the -quiet parameter to your command. This parameter turns off the confirmation message that is generated for each deletion transaction. 4. Issue the lsextpool command after the deletion processing has completed to verify that the extent pools have been deleted.
92
sites per storage enclosure pair. All array sites of a storage enclosure pair have identical capacity, rpm, and interface characteristics, and an interface to a common DA pair. The DDMs of a storage enclosure are partitioned into array sites. The creation of arrays is based on the array sites that are associated with the storage unit. Before and after creating an array you might want to check on the status of the DDMs. Perform the following steps to view the DDM status: 1. Issue the lsddm command to obtain a list and status of the DDMs currently associated with the storage unit. Enter the lsddm command at the dscli command prompt with the following parameters and variables:
dscli>lsddm -l storage_image_ID
2. Issue the showarraysite command after you have created an array using the DDMs. Enter the showarraysite command at the dscli command prompt with the following parameters and variables:
dscli>showarraysite storage_image_ID -fullid site_ID
Notes: a. The storage image ID is optional. You do not have to specify it but, if you choose not to use it, you need to provide a fully qualified site_ID which includes the manufacture, model type, and serial number information. b. The site-ID parameter is a four-digit number preceded by the letter S with no leading zeros. c. The -showarraysite command provides the following DDM information that is associated with the DDM after the array has been created: v DDM serial number v Spares - Identifies, if any, the number of spare DDMs that are allocated from the array site. v Data DDM - Specifies the number of data DDMs. This value is based on the number of DDMs minus the number of spares.
93
1. Issue the lsarraysite command to generate a list of all the array sites and their status. Enter the lsarraysite command at the dscli command prompt with the following parameters and variables:
dscli>lsarraysite -dev storage_image_ID -l
The state column of the report might be of interest as it specifies the following state of the array site and conditions that require attention: For DS8000, v Assigned - The array site has been defined as an array. v Unassigned - The array site is available to be defined as an array. For DS6000, v Assigned - The array site has been defined as an array. v Unassigned - The array site is available to be defined as an array. v Unavailable - Specifies that the designated array site is unassigned and at least one disk is not in the normal state. Also, the array site is not in the initializing state. v Initializing - Specifies that the array site is unassigned and all disks are either in the normal or initializing state. Also, at least one disk is in the initializing state. 2. Issue the lsarray command to generate a list of all the arrays and their status. Enter the lsarray command at the dscli command prompt with the following parameters and variables:
dscli>lsarray -dev storage_image_ID -l
Note: You might want to analyze the state and data column information for the arrays. Some of the reported conditions require further action. See the lsarray command for additional information.
94
Notes: a. The site ID is a four-digit number that is preceded by the letter S with no leading zeros. b. The site ID does not specify a physical location. It is, however, an identifier for the array site ID. c. The array site state shows a value of assigned if you have created the array. 2. Issue the showarray command to generate the properties report for the specified array. Enter the showarray command at the dscli command prompt with the following parameters and variables:
dscli>showarray -dev storage_image_ID array_ID
95
Notes: a. You might have to issue the lsarray command several times before you observe that the arrays are in a state that allows them to be removed or reassigned. b. Specify the -state unassigned parameter to narrow your list to just the array IDs that are not assigned to a rank ID. c. If you issue the lsarray command without using the -state unassigned parameter, you might see a list of arrays that have a state of unavailable. This is generally a good indication that the ranks have not been removed and that the arrays are still formatting. You must wait until the ranks have been removed and the arrays have been formatted before you can proceed. d. Proceed to the next step (remove arrays) only after all the arrays that you want to remove or reassign are displayed with a state of unassigned. 2. Issue the rmarray command to delete the unassigned arrays so that the array sites can be redefined as new arrays. Enter the rmarray command at the dscli command prompt with the following parameters and variables:
dscli>rmarray -dev storage_image_ID array_ID
Notes: a. You can remove one or many arrays as long as you designate the range of arrays using a hyphen and separate each range of arrays or a single array with a space before the next array designation. For example, A44-A48 A51 designates a range of arrays and a single array. b. If you are removing several arrays, you might want to designate the -quiet parameter in your command. This parameter turns off the deletion confirmation message that is generated after each array is deleted.
96
Notes: a. The report that is generated by this example provides a list of all unassigned ranks; however, the storage type is mixed between fixed block and CKD. b. You can narrow your report information to a specific storage type by adding the -stgtype [fb | ckd] parameter to your command. 2. Issue the chrank command to add (reassign) a rank or ranks to an extent pool. Enter the chrank command at the dscli command prompt with the following parameters and variables:
dscli>chrank -dev storage_image_ID -extpool extentpool_ID rank_ID
Notes: a. The rank ID is a 4-digit number with the prefix R and with no leading zeros. You can specify a range of rank IDs by using a hyphen between the beginning and ending values of the range. For example: R102-R105 b. You can specify multiple rank IDs or rank ID ranges, but you must leave a space between each designation. For example: R102 R105 R107-R109
Modifying a rank
Complete this task to modify a rank using the DS CLI
Notes: a. The report that is generated by this example provides a list of all ranks; however, the storage type is mixed between fixed block and CKD. b. You can narrow your report information to a specific storage type by adding the -stgtype [fb | ckd] parameter to your command. 2. Use the report to determine the rank or ranks you want to modify. The report contains details about the ranks that you must use to issue the chrank command for modifications. 3. Issue the chrank command to implement one of the following types of modifications:
97
a. To designate a rank as reserved, enter the chrank command at the dscli command prompt with the following parameters and variables:
dscli>chrank -dev storage_image_ID -reserve rank_ID
Changing the rank configuration state to reserved designates that the extents that are associated with the rank are not eligible for allocation to a logical volume. However, the existing allocations remain in effect until the configuration state is changed to normal. In other words, the characteristics that the rank inherited from its parent array when it was originally assigned remain intact. Notes: 1) You can specify a range of rank IDs or multiple rank IDs as long as you match the command usage criteria. 2) You cannot change the configuration state of a reserved rank to unassigned without first releasing it. b. To release a rank from its reserved configuration state, enter the chrank command at the dscli command prompt with the following parameters and variables:
dscli>chrank -dev storage_image_ID -release rank_ID
When a rank is released from the configuration state of reserved, it is designated with a configuration state of normal. c. To remove a rank from its current extent pool and array assignment but not delete it, enter the chrank command at the dscli command prompt with the following parameters and variables:
dscli>chrank -dev storage_image_ID -unassign rank_ID
Notes: 1) A rank must have a configuration state of normal before it can be changed to a configuration state of unassigned. 2) A rank that is unassigned can be assigned to an array and extent pool of another storage configuration as long as the storage type is compatible: all fixed block or all CKD.
98
Issue the lsrank command to generate a list of all the ranks and their status. Enter the lsrank command at the dscli command prompt with the following parameters and variables:
dscli>lsrank -dev storage_image_ID -l
The state and datastate column information for the ranks contains reported conditions that can require further action. See the lsrank command for an explanation of the action designations.
Notes: 1. Because the showrank command requires the use of a specific rank ID, you can issue the lsrank command first to obtain the specific rank IDs. 2. The state and datastate column information for the ranks contains reported conditions that can require further action. See the showrank command for an explanation of the action designations.
99
You might want to gather additional information about what caused the error, which can help you determine how to correct it. Generally, to correct this error state, you must delete the designated rank configuration and submit a new transaction request. Perform the following steps to obtain additional information about the configuration error and to correct this error condition. 1. Obtain additional information about the transaction by implementing one of the following methods: v Add the -v (verbose) command flag to your mkrank command and reissue the command for the transactions that show the configuration error designation. Note: You can also turn on the verbose mode in your profile file and reissue the command. Designating the verbose mode allows the display of extra output that includes the error code that is generated when the create rank transaction fails. v Add the -extpool parameter to your mkrank command and reissue the command for the transactions that show the configuration error. You might consider using this parameter if you have not yet assigned your ranks to the extent pools. If the transaction fails, a message states the reason for a failure. 2. Issue the rmrank command to delete the designated rank configurations if you do not want to obtain additional information about what caused the configuration error. Note: In the majority of instances, this is the only method for correcting a configuration error.
100
Perform the following steps to remove ranks from a storage configuration: 1. Issue the lsrank command to obtain a list of the ranks that are associated with the storage configuration that is being deleted. Enter the lsrank command at the dscli command prompt with the following parameters and variables:
dscli>lsrank -dev storage_image_ID -l -stgtype [fb | ckd]
2. Look at the list and ensure that the ranks are in a state that allows them to be deleted. All the ranks need to have a data and configuration state of normal. 3. Issue the rmrank command to delete the ranks from the storage configuration. Enter the rmrank command at the dscli command prompt with the following parameters and variables:
dscli>rmrank -dev storage_image_ID rank_ID
Notes: a. If you have multiple ranks that are being deleted, you might want to include the -quiet parameter in your command. This parameter suppresses the confirmation message that is issued for each rank that is deleted. b. Deleting a rank or many ranks is a lengthy process because the array and extent pool assignments are unassigned and the disk drives are formatted. When a rank is unassigned from the array and extent pool, a confirmation messages is issued that indicates that the rank has been deleted. However, because of the formatting, the process is not complete. You cannot initiate any action on the arrays or extent pools until the formatting is completed.
2. Use the report to determine the LCU or LCUs that you want to modify. The report contains details about the LCUs that you must use to issue the chlcu command for modifications. 3. Issue the chlcu command to implement one of the following types of modifications:
Chapter 8. Configuring and managing logical storage
101
a. To maintain the unique identity that is associated with your logical subsystem within your Copy Services domain, you can change your subsystem ID (SSID). Enter the chlcu command at the dscli command prompt with the following parameters and variables:
dscli>chlcu -dev storage_image_ID -ss new_ss_ID lcu_ID
Note: The new SSID that you specify replaces the existing SSID value in the initial target LCU ID. b. To provide your system a format that allows you to process DS CLI transactions. Enter the chlcu command at the dscli command prompt with the following parameters and variables:
dscli>chlsu -dev storage_image_ID -lcutype [3990-3 | 3990-tpf | 3990-6 | bs2000] lcu_ID
Notes: 1) The target LCUs are changed to the LCU type that you designate 2) When you designate multiple LCUs, separate multiple IDs and multiple ID ranges with a space. Separate your LCU range with a dash (-) between the first and last number of the range. c. To modify the concurrent copy timeout value using the chlcu command, see Modifying the Concurrent Copy timeout value on page 130. d. To modify the consistency group timeout value, see Modifying the consistency group timeout value on page 131. e. To modify the critical mode (Administrator authority only), see Modifying the critical mode setting on page 132. f. To modify the z/OS Global Mirror timeout value for DS8000, see Modifying the z/OS Global Mirror timeout value on page 131.
Notes: 1. Issue the lsaddressgrp command first if you decide to refine your search to include just the LCUs that are associated with a specific
102
address group. The lsaddressgrp command provides a list of address groups that you can then use with the -addrgrp parameter of the lslcu command. 2. To specify a range of LCU IDs, separate the LCU IDs with a dash (-). You must separate multiple LCU IDs or ranges of LCU IDs with a blank space between each ID or range of IDs.
Note: The LCU ID is a 2-digit hexadecimal number in the range of 00 - FE for DS8000 or 00 - 1F for DS6000.
103
2. Look at the list to ensure that the LCUs are in a state to be removed. They are ready if there are no volumes that are assigned to the LCU (zeros are displayed for each LCU in the Confgvols column of the list). 3. Issue the rmlcu command to delete the LCUs from the storage configuration. Enter the rmlcu command at the dscli command prompt with the following parameters and variables:
dscli>rmlcu -dev storage_image_ID lcu_ID
Notes: a. If you have multiple LCUs that are being deleted, you can include the -quiet parameter in your command. This parameter suppresses the confirmation message that is issued for each LCU that is deleted. b. You must separate multiple LCU IDs or ranges of LCU IDs with a blank space between each ID or range of IDs. Each range of LCU IDs must be separated by a dash (-) between the first ID and the last ID of the range.
104
FlashCopy functions
This topic provides a list of tasks that help you create, monitor, and manage your FlashCopy operations using DS CLI commands.
105
Notes: a. Specify the storage unit for the -dev storage_image_ID parameter. This parameter is required if you do not specify a fully qualified ID for the source and target volumes and you do not specify a value for the devid variable in your profile file. If the management console has an IP connection to the specified storage unit, the command works. If the IP connection is not established, you can use the mkremoteflash command if there is a PPRC Path established between the storage unit from which you issue the command and the (remote) storage unit where the FlashCopy volumes are located. b. For further information, including optional parameters, see the mkflash and mkremoteflash commands. A confirmation message is issued for each successful FlashCopy pair that is created. 2. Issue the lsflash command to check the status information for each FlashCopy relationship. A detailed report (when you use the -l parameter) is displayed for each FlashCopy relationship. Enter the lsflash command at the dscli command prompt with the following parameters and variables: dscli>lsflash -dev storage_image_ID -l SourceVolumeID:TargetVolumeID.
dscli>lsflash -dev IBM.2107-75FA150 -l 0100:0100
Use the -l parameter to provide a more detailed report about the FlashCopy relationships. Note: If you used the mkremoteflash command, you must enter the lsremoteflash command to perform a status check.
106
Date/Time: Sun Aug 11 02:23:49 PST 2004 IBM DS CLI Version: 5.0.0.0 DS: IBM.2107-75FA120 FlashCopy pair 0100:0200 successfully created.
The resulting output Note: The following tables display the output that is associated with the lsflash command using the -l parameter. A separate example is not shown for the DS6000 because the information is the same for both. The only difference is the machine type designation, 2107 versus 1750.
Date/Time: Sun Aug 11 02:23:49 PST 2004 DS CLI Version: 5.0.0.0 DS: IBM.2107-75FA120 Sequence SrcLSS Num 01 01 01 01 10 10 11 11 Timeout (secs) 120 120 120 120
107
SourceWriteEnabled Enabled
TargetWriteEnabled Disabled
BackgroundCopy Disabled
CopyIndicator Yes
OutOfSyncTracks 0
DateCreated 12/01 /2003 02:20 :00 12/01 /2003 02:20:00 12/01 /2003 02:20 :00 12/01 /2003 02:20 :00
DateSynced 12/01 /2003 02:23 :47 12/01 /2003 02:23:47 12/01 /2003 02:23 :47 12/01 /2003 02:23 :47
Enabled
Disabled
Disabled
Yes
Enabled
Disabled
Disabled
Yes
Enabled
Disabled
Disabled
Yes
Use the -l parameter to provide a more detailed report about the FlashCopy relationships. Note: If you have originally used the mkremoteflash command to create your FlashCopy relationships, you must enter the lsremoteflash command to perform a status check.
108
2. Analyze the list of volumes and ensure that these are the volumes from which the FlashCopy relationship must be removed. 3. Issue the rmflash command to remove the FlashCopy volume relationships. Enter the rmflash command at the dscli command prompt with the following parameters and variables: dscli>rmflash -dev storage_image_ID SourceVolumeID:TargetVolumeID Example
dscli>rmflash -dev IBM.2107-75FA120 0001:0004 0003:00FF 0008:000C
Notes: a. The example shows the use of multiple FlashCopy pair IDs. Ensure that you separate multiple FlashCopy pair IDs with spaces. b. If you used the mkremoteflash command to create your FlashCopy relationships, you must enter the rmremoteflash command to remove the FlashCopy relationships. 4. A confirmation message is displayed for each FlashCopy relationship that you want to remove. Enter Y in response to each message that requests that you confirm that you want to remove the specified FlashCopy pair. A message similar to the following appears for each FlashCopy pair being removed when you process the rmflash command.
Are you sure you want to remove the FlashCopy pair 0001:0004? [y/n]: Y FlashCopy pair 0001:0004 successfully removed.
109
1. Create paths between the source LSS and the target LSS. For example, IBM.2107-1300861 and IBM.2107-1300871 You need to know which volumes are available for use before you can issue the request to establish the path. 2. Create Metro Mirror volume pairs from the source LSS to the target LSS. For example, volume 2200 (IBM.2107-1300861/2200) from LSS22 and volume 2A00 (IBM.2107-1300871/2A00) from LSS22. 3. Enable a Remote FlashCopy operation at the target site using volume B as the source volume and volume C as the target volume. Assume that the target site network connection is lost. You can create the FlashCopy relationship from volume B to volume C (both volumes at the target site). However, you cannot use the DS Storage Manager for this step because connections to the target site are lost.
Example
Assume that you performed Step 1 and Step 2 from the DS Storage Manager (connections to both storage units at the source and target sites were available at that time) and the Metro Mirror relationship between the volume pair still exists. To create the Remote FlashCopy operation, you must perform Step 3 from the DS CLI using the following command as an example. (You must be logged into the DS CLI in interactive command mode.) Note: Use LSS 22 on the local site as a conduit LSS for the new remote Flash Copy relationship on the remote storage unit that will use volume 2A00 as the source. The target can be any other volume on the remote storage unit (in this example 2A01) dscli>mkremoteflash -dev IBM.2107-1300871 -conduit IBM.2107-1300861/22 2A00:2A01 where: -dev Specifies the storage image ID, which includes manufacturer, machine type, and serial number.
-conduit LSS_ID (Required) Identifies the source LSS of an existing remote mirror and copy relationship that is used as a conduit for communicating with the target storage image. The source volume IDs that are specified in source_volume_ID:target_volume_ID must be the target volumes in a remote mirror and copy relationship in which one of the conduit LSS volumes acts as a source volume. You can specify a fully qualified LSS ID, which includes the storage image ID. source_volume_ID:target_volume_ID (Required) Establishes a remote FlashCopy relationship for the source and target volume pairs with the specified IDs. You can specify fully qualified volume IDs, which includes storage image IDs, or a shortened version without storage image IDs if the -dev parameter is specified. Separate the IDs of the FlashCopy relationships with spaces. This report is displayed if your command input is correct. Date/Time: February 7, 2005 4:29:42 PM IST IBM DSCLI Version: 5.0.0.0 DS: IBM.2107-1300871 FlashCopy Pair ID 2A00:2A01 successfully initiated. Use the lsremoteflash command to determine copy completion.
110
Verify that the transaction has processed successfully by issuing the following command: dscli>lsremoteflash -dev IBM.2107-1300871 -conduit IBM.2107-1300861/22 2A00:2A01
111
112
113
Date/Time: Sun Aug 11 02:23:49 PST 2004 IBM DS CLI Version: 5.0.0.0 DS: IBM.2107-75FA120 FlashCopy volume pair 0100:0200 successfully made revertible.
Note: Specify the storage unit for the -dev storage_image_ID parameter. This parameter is required if you do not specify a fully qualified ID for the source and target volumes and you do not specify a value for the devidvariable in your profile file. A confirmation message is issued for each successful FlashCopy pair that is created.
114
2. Issue the lsflash command to check the status information for each FlashCopy relationship. A detailed report (when you use the -l parameter) is displayed for each FlashCopy relationship. Enter the lsflash command at the dscli command prompt with the following parameters and variables: dscli>lsflash -dev storage_image_ID -l SourceVolumeID:TargetVolumeID. Example
dscli>lsflash -dev IBM.2107-75FA150 -l 0100:0100
Use the -l parameter to provide a more detailed report about the FlashCopy relationships.
A confirmation message is issued for each successful FlashCopy pair that is created.
115
A confirmation message is issued for each successful FlashCopy pair that is created. Note: The tgtpprc parameter can also be used with the resyncflash command. When you issue a resyncflash command to a FlashCopy relationship, only the new write operations to the source since the last resynchronization are copied to the target. This minimizes the data that is copied to the remote site when you also use the tgtpprc parameter. The specified parameters in the resyncflash command replace the parameters in the existing relationship. In order to keep the initial record, persist, and tgtpprc parameters, the record, persist, and tgtpprc parameters must be specified in the resyncflash command. v Issue the resyncflash command with the tgtpprc parameter to resynchronize FlashCopy relationships and create a FlashCopy target volume on an existing Metro Mirror source volume. Enter the resyncflash command at the dscli command prompt with the following parameters and variables: dscli>resyncflash -dev storage_image_ID -record -persist -tgtpprc sourcevolumeID:targetvolumeID Example
dscli>resyncflash dev IBM.2107-75FA120 -record -persist -tgtpprc 0100:0200
116
Date/Time: Sun Aug 11 02:23:49 PST 2004 IBM DS CLI Version: 5.0.0.0 DS: IBM.2107-75FA120 FlashCopy pair 0100:0200 successfully incremented.
117
Notes: 1. Remember that storage_image_ID is the value for the remote server that has been designated the primary server until the original primary server is again available for use. 2. Global Mirror operations have performed the establish FlashCopy revertible processing but might have failed to form a consistency group before the disaster occurred. If your analysis, through use of the lsflash command, has determined that a revertflash command is needed, there is no need to issue a new mkflash command. A confirmation message like the following one is generated for each FlashCopy relationship that has been successfully reset.
FlashCopy pair 0100:0200 successfully reverted to the previous consistency.
118
Note: You can issue the commands that are described in the steps either for a DS8000 model or for a DS6000 model, but for the DS6000 model the storage image ID is different. Issue the commitflash command to correct the FlashCopy relationships and commit them to the consistency group that was being formed before the disaster occurred. Enter the commitflash command at the dscli command prompt with the following parameters and variables: dscli>commitflash -dev storage_image_ID SourceVolumeID Example
dscli>commitflash -dev IBM.2107-75FA150 0100
Note: v Remember that storage_image_ID is the value for the remote server that has been designated the primary server until the original primary server is again available for use. v Global Mirror operations have performed the establish FlashCopy revertible processing and might have failed to form a consistency group before the disaster occurred. If your analysis, through use of the lsflash command, has determined that a commitflash command is needed, there is no need to issue a new mkflash command. A confirmation message like the following one is generated for each FlashCopy relationship that has been successfully reset.
FlashCopy pair 0100:0200 successfully committed.
119
Issue the lspprcpath command to display the list of established paths. You can issue the lspprcpath command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model the storage image ID is different. Enter the lspprcpath command at the dscli command prompt with the following parameters and variables: dscli>lspprcpath -dev storage_image_ID Source_LSS_ID. Example
dscli>lspprcpath -dev IBM.2107-75FA120 10
Note: You can specify multiple LSS IDs, but they must be separated with spaces.
2. Review the output that displays the WWNN of the storage unit. This information is required when you establish a path.
120
121
Example
dscli>mkpprcpath -dev IBM.2107-75FA120 -remotedev IBM.2107-75FA150 -srclss 01 -tgtlss 00 remotewwnn 12341234000A000F I1A10:I2A20
2. Issue the lspprcpath command to review the list of established remote mirror and copy paths,
2. Obtain the correct values for the remote WWNN or target LSS ID and reissue the mkpprcpath command followed by issuing the lspprcpath command to verify that your transaction has processed correctly.
Removing paths
Complete this task to remove paths between the LSSs on the source storage unit and the target LSSs on the target storage units.
122
The report that displays from this command provides the worldwide node name (WWNN) that is used with the rmpprcpath command. 2. Issue the rmpprcpath command to remove the paths between all source and target pairs. Enter the rmpprcpath command at the dscli command prompt with the following parameters and variables: dscli>rmpprcpath -dev storage_image_ID -remotedev storage_image_ID -remotewwnn wwnn source_LSS_ID:target_LSS_ID Example
dscli>rmpprcpath -dev IBM.2107-75FA120 -remotedev IBM.2107-75FA150 -remotewwnn 12341234000A000F 01:01
Note: v The -remotedev parameter specifies the ID of the secondary storage unit. v The -remotewwnn parameter must specify the WWNN of the secondary storage unit. If you specify the WWNN of the primary storage unit, the command fails. v If you do not specify the fully qualified -dev and -remotedev parameters, you must use the fully qualified source_LSS_ID:target_LSS_ID value. For example: IBM.2107-75FA120/01:IBM.2107-75FA150/01. The fully qualified source_LSS_ID:target_LSS_ID value must be the last parameter in your command. A confirmation message is displayed for each path that is being removed. 3. Enter Y to confirm that you want to remove the specified remote mirror and copy path. A message similar to the following appears for each remote mirror and copy path that is being removed when you process the rmpprcpath command.
Are you sure you want to delete PPRC path (whatever was designated)? [y/n]: Y PPRC path (designated in the command) successfully deleted.
Chapter 9. Copy Services functions
123
4. Repeat Step 2 for all the remote mirror and copy paths that you want removed from the same source LSS to a different target LSS.
124
v The shortened version of the SourceVolumeID:TargetVolumeID parameter is shown (value = 0100:0100) because the example uses the fully qualified -dev storage_image_ID and -remotedev storage_image_ID parameters. If the fully qualified -dev and -remotedev parameters were not used, you must use the fully qualified SourceVolumeID:TargetVolumeID value. For example IBM.2107-75FA120/0100:IBM.2107-75FA150/0100. Example
dscli>mkpprc -dev IBM.2107-75FA120 -remotedev IBM.2107-75FA150 -type mmir 0100:0100
A confirmation message is issued for each successful Metro Mirror volume association that is created. 3. Issue the lspprc command to view the status information of each Metro Mirror relationship in the list. Enter the lspprc command at the dscli command prompt with parameters and variables as follows: dscli>lspprc -dev storage_image_ID -remotedev storage_image_ID -s SourceVolumeID:TargetVolumeID.
dscli>lspprc -dev IBM.2107-75FA120 -remotedev IBM.2107-75FA150 -s 0100:0100 0101:0101
125
associated with a DS6000 model or a DS8000 model and target volumes that are associated with an ESS 2105 Model 800 or 750. Perform the following step to define a path that has enabled the consistency group option for the volume pairs that are associated with the LSS volume pair. The example commands in this task are shown in two formats. The first format shows the type of information that the command requires. The second format provides the command with values declared for the variables. Note: The examples make reference to a DS8000 model however, the command is the same for a DS6000 model with the exception being the value for the storage ID. 1. Issue the mkpprcpath command to create a consistency group for the remote mirror and copy volume pairs. Enter the mkpprcpath command with the -consistgrp parameter at the dscli command prompt with the following parameters and variables: dscli>mkpprcpath -dev storage_image_ID -remotedev storage_image_ID -srclss source_LSS_ID -tgtlss target_LSS_ID remotewwnn wwnn -consistgrp source_port_ID:target_port_ID Example
dscli>mkpprcpath -dev IBM.2107-75FA120 -remotedev IBM.2107-75FA150 -srclss 01 -tgtlss 01 remotewwnn 12341234000A000F -consistgrp I0100:I0100
2. View the current consistency group state setting status of the consistency group by issuing the showlss command. You can also use the chlss command to change the default consistency group timeout value. dscli>showlss -dev storage_image_ID LSS_ID Example
dscli>showlss IBM.2107-75FA120/10
126
first format shows the type of information that the command requires. The second format provides the command with declared values for the variables. Issue the resumepprc command to continue Metro Mirror processing after it has been suspended (paused). You can issue the resumepprc command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model the storage image ID is different. Enter the resumepprc command at the dscli command prompt with the following parameters and variables: dscli>resumepprc -dev storage_image_ID -remotedev storage_image_ID -type [mmir, gcp] SourceVolumeID:TargetVolumeID Notes: 1. The -remotedev parameter specifies the ID of the secondary storage unit. 2. Specify the -type parameter when you use the resumepprc command. Otherwise, the command fails. 3. If you do not specify the fully qualified -dev and -remotedev parameters, you must use the fully qualified SourceVolumeID:TargetVolumeID value. For example: IBM.2107-75FA120/01:IBM.2107-75FA150/01 (DS8000) or IBM.1750-68FA120/01:IBM.1750-68FA150/01 (DS6000) Example
dscli> resumepprc -dev IBM.2107-75FA120 -remotedev IBM.2107-75FA150 -type mmir 0100:0100
127
v If you do not specify the fully qualified -dev and -remotedev parameters, you must use the fully qualified SourceVolumeID:TargetVolumeID value. For example: IBM.2107-75FA120/01:IBM.2107-75FA150/01. Example:
dscli> pausepprc -dev IBM.2107-75FA120 -remotedev IBM.2107-75FA150 0100:0100
A confirmation message is displayed that indicates that processing for the specified volume pair has been paused.
What to do next
After making your changes, you can resume processing by issuing the resumepprc command.
128
dscli>mkpprc -dev storage_image_ID -remotedev storage_image_ID -type gcp -mode full SourceVolumeID:TargetVolumeID Notes: a. The -remotedev parameter specifies the ID of the secondary storage unit. b. The -type gcp parameter specifies that one or more Metro Mirror volume relationships be established. Global Copy creates the remote mirror and copy relationship in an asynchronous manner. c. The shortened version of the SourceVolumeID:TargetVolumeID parameter is shown (value = 0100:0100) because the example uses the fully qualified -dev storage_image_ID and -remotedev storage_image_ID parameters. If the fully qualified -dev and -remotedev parameters were not used, you must use the fully qualified SourceVolumeID:TargetVolumeID value. For example: IBM.2107-75FA120/0100:IBM.2107-75FA150/0100. This value must be placed at the end of your command line. Example
dscli>mkpprc -dev IBM.2107-75FA120 -remotedev IBM.2107-75FA150 -type gcp -mode full 0100:0100
A confirmation message is issued for each successful Global Copy volume association that is created. 3. Issue the lspprc command to view the status information of each Metro Mirror relationship in the list. Enter the lspprc command at the dscli command prompt with the following parameters and variables: dscli>lspprc -dev storage_image_ID -remotedev storage_image_ID -s SourceVolumeID:TargetVolumeID.
dscli>lspprc -dev IBM.2107-75FA120 -remotedev IBM.2107-75FA150 -s 0100:0100 0101:0101
129
1. Issue the lspprc command to generate a report of Metro Mirror relationships. This can help you determine which Metro Mirror relationship that you want to delete. Enter the lspprc command at the dscli command prompt with the following parameters and variables: dscli>lspprc -dev storage_image_ID -state -remotedev storage_image_ID SourceVolumeID:TargetVolumeID Example
dscli>lspprc -dev IBM.2107-75FA120 -l -remotedev IBM.2107-75FA150 0100:0100 0101:0101
2. Issue the rmpprc command to delete the Metro Mirror relationship between the source and target volume. Enter the rmpprc command at the dscli command prompt with the following parameters and variables: dscli>rmpprc -dev storage_image_ID -remotedev SourceVolumeID:TargetVolumeID Example
dscli>rmpprc -dev IBM.2107-75FA120 -remotedev IBM.2107-75FA150 0100:0100
Notes: a. If you delete a Metro Mirror volume pair with the source LSS and the process runs successfully, the source and the target volume go into the simplex state. b. If you delete a Metro Mirror volume pair with the target LSS and the process runs successfully, the source volume is in the suspended state, and the target volume is in the simplex state. This option is useful in a disaster situation when the source (local) site has failed.
130
Issue the chlcu command to modify a Concurrent Copy timeout value. You can issue the chlcu command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model the storage image ID is different. Enter the chlcu command at the dscli command prompt with the following parameters and variables: dscli>chlcu -dev storage_image_ID -ccsess timeout LCU_ID Example
dscli>chlcu -dev IBM.2107-75FA120 -ccsess 190 00-0F
A confirmation message is displayed for each LCU that has been modified.
131
The long-busy condition occurs because the system data mover cannot copy data when the volume (or z/OS Global Mirror session) is not able to accept additional data. The value of this timeout is associated with a z/OS Global Mirror session when the session is created. Perform the following step to modify the z/OS Global Mirror timeout value. The example command in this task are shown in two formats. The first format shows the type of information that the command requires. The second format provides the command with values declared for the variables. Issue the chlcu command to modify the z/OS Global Mirror timeout value. You can issue the chlcu command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model the storage image ID is different. Enter the chlcu command at the dscli command prompt with the following parameters and variables: dscli>chlcu -dev storage_image_ID -xrcsess timeout LCU_ID Example
dscli>chlcu -dev IBM.2107-75FA120 -xrcsess 175 00-0F
132
Note: Use the -critmode parameter only for log devices, not for devices that the system requires. In extreme cases, the host system might have to be IPLed in order to recover a device that is write inhibited. Whenever possible, use the freezepprc command as an alternative to using the -critmode parameter. This parameter cannot be used with Global Copy or remote copy and mirror cascading volumes. This parameter only applies to S/390 or System z volumes. The following table presents an overview of how the critical volume mode works.
Critical Mode Normal LCU, Critical Heavy Disabled or Enabled mkpprc critmode Disabled Description v Suspends the primary volume. v Allows write operations to the primary volume. Critical Volume Disabled Enabled v Suspends primary volume when the last path to the secondary volume has failed. v Inhibits write operations to the primary volume. Critical Heavy Enabled Enabled v Suspends the primary volume when the secondary volume cannot be updated for any reason. v Inhibits write operations to the primary volume.
133
volumes on a single LSS pairing when an error occurs to one of the volumes in the group (source or target), or when a total link failure is detected between the source and target LSS volume pair. This process describes how to define paths that have enabled the consistency group option. This means that when an error occurs on any volume pairs or on the links that are associated with these LSS pairs, an alert is issued and I/O to all duplex remote mirror and copy volumes on LSS pairs will be queued either until a consistency group creation operation is run or the consistency group timeout time expires. This allows external automation to use the consistency group created operation to create a dependent write consistent set of target volumes over any number of LSS and disk storage units. Perform the following step to define a path that has enabled the consistency group option for the volume pairs that are associated with the LSS volume pair. The example commands in this task are shown in two formats. The first format shows the type of information that the command requires. The second format provides the command with values declared for the variables. Issue the mkpprcpath command to create a consistency group for the remote mirror and copy volume pairs. You can issue the failoverpprc command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model the storage image ID is different. Enter the mkpprcpath command with the -consistgrp parameter at the dscli command prompt with the following parameters and variables: dscli>mkpprcpath -dev storage_image_ID -remotedev storage_image_ID -srclss source_LSS_ID -tgtlss target_LSS_ID remotewwnn wwnn -consistgrp source_port_ID:target_port_ID Example
dscli>mkpprcpath -dev IBM.2107-75FA120 -remotedev IBM.2107-75FA150 -srclss 01 -tgtlss 01 remotewwnn 12341234000A000F -consistgrp I0100:I0100
134
135
The failback processing that is described in this task can be issued against any remote mirror and copy volume that is in a primary suspended state. The failback processing copies the required data from the source volume to the target volume in order to resume mirroring. Perform the following step to perform a failback recovery operation. The example commands in this task are shown in two formats. The first format shows the type of information that the command requires. The second format provides the command with declared values for the variables. Note: You can issue the commands that are described in the steps either for a DS8000 model or for a DS6000 model, but for the DS6000 model the storage image ID is different. 1. Issue the failbackpprc command to perform a failback recovery operation. Enter the failbackpprc command at the dscli command prompt with the following parameters and variables: dscli>failbackpprc -dev storage_image_ID -remotedev storage_image_ID SourceVolumeID:TargetVolumeID Example
dscli>failbackpprc -dev IBM.2107-75FA120 -remotedev IBM.2107-75FA150 0100-0103:0100-0103
2. Issue the lspprc command to check the status information of each Metro Mirror relationship in the list. Enter the lspprc command at the dscli command prompt with the following parameters and variables: dscli>lspprc -dev storage_image_ID -remotedev storage_image_ID -s SourceVolumeID:TargetVolumeID Example
dscli>lspprc -dev IBM.2107-75FA120 -remotedev IBM.2107-75FA150 -s 0100:0100 0200:0200 0300:0300
136
137
v The remote mirror and copy license key is installed and enabled to allow operations to be performed. v The fibre-channel I/O ports are configured. . v The I/O ports that will be used for paths are available and identified. . v The WWNN of the storage unit is identified because it is a required parameter for this task.
138
The fully qualified source_LSS_ID:target_LSS_ID value must be placed after the -remotewwnn value in your command line. For example, your command line would look like the following:
dscli>lsavailpprcport l remotewwnn 12341234000A000F IBM.2107-75FA120/01:IBM.2107-75FA150/01
Example
dscli>lsavailpprcport l dev IBM.2107-75FA120 -remotedev IBM.2107-75FA150 remotewwnn 12341234000A000F 01:01
2. Analyze the output that is generated and select from the available I/O ports to create the path. The information that is displayed shows available I/O ports combinations between the source LSSs and the target LSSs and the output depends on the current selection of adapters.
139
2. Issue the rmpprc command to delete the pair relationship that the volume still maintains. Enter the rmpprc command at the dscli command prompt with the following parameters and variables: Source volume
dscli>rmpprc -dev storage_image_ID -at src -unconditional SourceVolumeID
Example
dscli>rmpprc -dev IBM.2107-75FA120 -at src -unconditional 0100
Target volume
dscli>rmpprc -dev storage_image_ID -at tgt -unconditional TargetVolumeID
Example
dscli>rmpprc -dev IBM.2107-75FA150 -at tgt -unconditional 0100
Notes: a. The -dev parameter must contain the value of the secondary server when you are removing the pair relationship from a target volume. b. The management console must be able to communicate with the secondary server for this command to succeed.
140
user name and password on the management console that is connected to the DS8000 or DS6000 model. Otherwise, you must add them using either the DS Storage Manager or DS CLI as part of the procedure for adding a 2105 Copy Services domain to the storage complex. v To manage Copy Services across the 2105 and a DS8000 or DS6000 model, you must install licensed internal code version 2.4.2 or later on the 2105. v The 2105 and DS6000 model does not support remote mirror and copy (formerly PPRC) operations with an ESCON link. If you want to configure a remote mirror and copy relationship between the DS8000 or DS6000 model and a 2105, you must use a FCP link.
Creating a Metro Mirror volume pair between a DS8000 model or a DS6000 model and a 2105
Complete this task to create a Metro Mirror volume pair using volumes from a DS8000 or a DS6000 model and a 2105.
141
Note: If the source is a Copy Services 2105 domain, the Metro Mirror task is performed on the source domain. However, if you perform a Suspend at target action, the suspension occurs at the target domain. Perform the following steps to create a Metro Mirror pair between a DS8000 or a DS6000 model and a 2105. For this task, the source domain is a 2105 Model 800 or 750 and the target is a DS8000 or a DS6000 model. You can use this task if the target domain is a 2105 Model 800 or 750 and the source is a DS8000 or a DS6000 model by switching the device IDs in the volume pairs. The example commands in this task are shown in two formats. The first format shows the type of information that the command requires. The second format provides the command with declared values for the variables. 1. Issue the lsavailpprcport command to list all of the available ports to the remote system to create a connection. It is recommended that you use ports that are not mapped to hosts for PPRC for increased performance, but sharing host ports with PPRC ports is supported. Specify the remote WWPN and device ID for the target cluster. Enter the lsavailpprcport command at the dscli command prompt with the following parameters and variables: dscli>lsavailpprcport -dev storage_image_ID -remotedev storage_image_ID -remotewwnn wwnn Source_LSS_ID:Target_LSS_ID Example
dscli>lsavailpprcport -dev IBM.2107-13AB7DA -remotedev IBM.2105-18602 -remotewwnn 5005076300C08642 10:10
2. Issue the mkpprcpath command to create a path between LSSs on the DS8000 or the DS6000 model to the ESS 800. You associate an LSS on the DS8000 or the DS6000 model to the ESS 800 and specify specific ports. You can list multiple ports. You should create redundant port paths from both controllers of the DS8000 or the DS6000 model to both clusters of the ESS 800. Enter the mkpprcpath command at the dscli command prompt with the following parameters and variables: dscli>mkpprcpath -dev storage_image_ID -remotedev storage_image_ID -srclss source_LSS_ID -tgtlss target_LSS_ID remotewwnn wwnn -consistgrp source_port_ID:target_port_ID Example
dscli>mkpprcpath -dev IBM.2107-75FA120 -remotedev IBM.2105-18602 -srclss 01 -tgtlss 01 remotewwnn 12341234000A000F -consistgrp I0100:I0100
3. Issue the lspprcpath command to display the created paths and their status. Success indicates that the path is valid, failure indicates that the path did not create correctly, or that the relationship has become separated. Enter the lspprcpath command at the dscli command prompt with the following parameters and variables: dscli> lspprcpath -dev IBM.2107-75FA120 10 Example
dscli>lspprcpath -dev storage_image_ID Source_LSS_ID
4. Issue the rmpprcpath command to remove a path. You must specify both the source and target device IDs and the source and destination LSS. Enter the rmpprcpath command at the dscli command prompt with the following parameters and variables: dscli>rmpprcpath -dev storage_image_ID -remotedev storage_image_ID source_LSS_ID:target_LSS_ID Example
142
5. Issue the mkpprc command to create a relationship between a source and target volume. The volumes must be type ESS and be exactly the same size or the attempt to create the volume pair will fail. Enter the mkpprc command at the dscli command prompt with the following parameters and variables: dscli>mkpprc -dev storage_image_ID -remotedev storage_image_ID -type mmir SourceVolumeID:TargetVolumeID Example
dscli>mkpprc -dev IBM.2107-75FA120 -remotedev IBM.2105-18602 -type mmir 1001:1001
6. Issue the lspprc command to list the pairs that are in existence. Upon creation, the volumes will be in the copy pending state. When the initial copy is complete, the volumes will show as full duplex on the primary and target full duplex on the secondary. If something interrupts the connection, the primary volumes indicate suspended, but the target volumes still show full duplex. You can specify a range of volumes to list multiple pairs 1001 - 10ff. Enter the lspprc command at the dscli command prompt with the following parameters and variables: dscli>lspprc -dev storage_image_ID SourceVolumeID:TargetVolumeID Example
dscli>lspprc -dev IBM.2107-75FA120 1001-10ff
143
Perform the following steps to add volumes to a Global Mirror session. The example commands in this task are shown in two formats. The first format shows the type of information that the command requires. The second format provides the command with declared values for the variables. Note: You can issue the commands that are described in the steps either for a DS8000 model or for a DS6000 model, but for the DS6000 model the storage image ID is different. 1. Issue the lspprc command to obtain a list of the Global Copy volumes that you can add to the Global Mirror session. A detailed report is displayed (if you use the -l parameter) that allows you to see the available volumes. Enter the lspprc command at the dscli command prompt with the following parameters and variables: dscli>lspprc -dev storage_image_ID -remotedev storage_image_ID -l SourceVolumeID:TargetVolumeID. Example
dscli>lspprc -dev IBM.2107-75FA120 -remotedev IBM.2107-75FA150 -l 0100:0100
2. Issue the chsession command to add the available volumes to a Global Mirror session. Enter the chsession command at the dscli command prompt with the following parameters and variables: dscli>chsession -dev storage_image_ID -lss LSS_ID -action add -volume volume_ID session_ID Example
dscli>chsession -dev IBM.2107-75FA120 -lss 10 -action add -volume 0100-010F 01
A confirmation message indicates that the session has been modified successfully. 3. Issue the lssession command to query the status of all volumes being processed including the volumes that you added to the session. Enter the lssession command at the dscli command prompt with the following parameters and variables: dscli>lssession dev storage_image_ID -l LSS_ID
dscli>lssession dev IBM.2107-75FA120 -l 01
When you use the -l parameter, a detailed report displays a list of Global Mirror sessions for the specified logical subsystem (LSS) and information about the volumes of each session in the list.
144
v Maximum consistency drain time There are two specific occasions when you might want to modify the tuning parameters: v After the initial setup of your session and your analysis of Global Mirror processing indicates that these parameters should be adjusted. v After you have stopped (not just paused) Global Mirror processing. When you restart Global Mirror processing, the values for the tuning parameters revert to their DS CLI default values. Perform the following steps to modify the tuning parameters of a Global Mirror session. The example commands that are displayed in this task are shown in two formats. The first format shows the type of information that the command requires. The second format provides the command with declared values for the variables. Note: You can issue the commands that are described in the steps either for a DS8000 model or for a DS6000 model, but for the DS6000 model the storage image ID is different. 1. Issue the pausegmir command to pause Global Mirror processing on the specified logical subsystem and the specified session within the logical subsystem. Enter the pausegmir command at the dscli command prompt using the following parameters and variables: dscli>pausegmir -dev storage_image_ID -lss LSS_ID -session session_ID Master_Control_Path_LSS_ID:Subordinate_Control_Path_LSS_ID Example
dscli>pausegmir -dev IBM.2107-75FA120 -lss 10 -session 01 IBM.2107-75FA120/00:IBM.2107-75FA150/00
A confirmation message indicates that the session has been paused after all buffered write operations to the target have been processed. 2. Issue the showgmir command to receive a report that provides the current properties or performance metrics for a Global mirror logical subsystem ID. Enter the showgmir command at the dscli command prompt with the following parameters and variables: For a detailed properties report: dscli>showgmir -dev storage_image_ID LSS_ID For a performance metrics report: dscli>showgmir -dev storage_image_ID -metrics LSS_ID Example These commands are entered as follows when you add values:
dscli>showgmir -dev IBM.2107-75FA120 10 dscli>showgmir -dev IBM.2107-75FA120 -metrics 10
3. Analyze the report and determine which if any of the Global Mirror tuning parameters must be changed. 4. Issue the resumegmir command with the values for all three tuning parameters. Enter the resumegmir command at the dscli command prompt with the following parameters and variables: dscli>resumegmir -dev storage_image_ID -lss ID -cginterval seconds -coordinate milliseconds -drain seconds -session session_ID Master_Control_Path_LSS_ID:Subordinate_Control_Path_LSS_ID Example
145
The example command shows all three tuning parameters with new values. You must specify a value for all three tuning parameters even if only one value has changed. The values for the two unchanged tuning parameters would be the DS CLI default values.
dscli>resumegmir -dev IBM.2107-75FA120 -lss 10 -cginterval 10 -coordinate 60 -drain 35 -session 01 IBM.2107-75FA120/00:IBM.2107-75FA150/00
Notes: a. The -cginterval parameter specifies the consistency group interval time, in seconds. The value specifies how long to wait between the formation of consistency groups. If this value is set to zero, consistency groups are formed continuously. The DS CLI default value is 0. b. The -coordinate parameter specifies the maximum coordination interval, in milliseconds. This value indicates the maximum time that Global Mirror processing queues Primary/Host/IO to start forming a consistency group. The DS CLI default value is 50 milliseconds. c. The -drain parameter specifies the maximum amount of time that writes (in seconds) are inhibited to the remote site before the current consistency group must stop. The DS CLI default value is 30 seconds.
146
Note: You can issue the commands that are described in the steps either for a DS8000 model or for a DS6000 model, but for the DS6000 model the storage image ID is different. 1. Issue the showgmir command to display a detailed properties or performance metrics report for a Global Mirror logical subsystem ID. Enter the showgmir command at the dscli command prompt with the following parameters and variables: For a detailed properties report: dscli>showgmir -dev storage_image_ID -fullid LSS_ID For a performance metrics report: dscli>showgmir -dev storage_image_ID -metrics LSS_ID These commands are entered as follows when you add values:
dscli>showgmir -dev IBM.2107-75FA120 -fullid 10 dscli>showgmir -dev IBM.2107-75FA120 -metrics 10
2. Use the report as a guide to see what is currently being processed and to determine what topology values you want to change. 3. Issue the rmgmir command to stop Global Mirror processing. Enter the rmgmir command at the dscli command prompt with the following parameters and variables: dscli>rmgmir -dev storage_image_ID -lss ID -session session_ID Master_Control_Path_LSS_ID:Subordinate_Control_Path_LSS_ID Example
dscli>rmgmir -dev IBM.2107-75FA120 -lss 10 -session 01 IBM.2107-75FA120/00:IBM.2107-75FA150/00
Notes: a. This command can interrupt the formation of a consistency group. If this command does not complete, an error code is issued. If this occurs, examine the error code and follow your local procedures for problem determination. In most cases, if you correct the error, you can successfully reissue the rmgmir command. If, however, the reissued rmgmir command fails and Global Mirror processing must be stopped, reissue the rmgmir command with the -force parameter. b. You cannot use the rmgmir command to stop a script that involves Global Mirror processing. The only way to stop a script is to press the Ctrl C keys on your keyboard. This action stops the DS CLI session. However, it does not stop the microcode that is processing Global Mirror transactions. To stop the microcode processing, you must log back into the DS CLI session and issue the rmgmir command. 4. Enter Y to confirm that you want to stop Global Mirror processing for the specified session. The message is displayed as follows:
Are you sure you want to stop Session ID (xx)? [y/n]: Y Global Mirror for Session ID 01 successfully stopped.
5. Issue the mkgmir command with your updated master and subordinate LSS changes to start Global Mirror processing. Enter the mkgmir command at the dscli command prompt with the following parameters and variables: dscli>mkgmir -dev storage_image_ID -lss ID -session session_ID -cginterval seconds -coordinate milliseconds -drain seconds Master_Control_Path_LSS_ID:Subordinate_Control_Path_LSS_ID
Chapter 9. Copy Services functions
147
Example
dscli>mkgmir -dev IBM.2107-75FA120 -lss 10 -session 01 -cginterval 0 -coordinate 40 -drain 35 IBM.2107-75FA120/00:IBM.2107-75FA150/00
Notes: a. You can change your mind and decide not to change any of the topology values. However, you must still issue the mkgmir command to resume Global Mirror processing after you have stopped the processing. Because the resumegmir command is used only with the pausegmir command, you cannot issue the resumegmir command to restart the processing. b. When you stopped the Global Mirror session, the values for the tuning parameters become invalid. You must specify values for these parameters (-cginterval, -coordinate, -drain) when you restart your Global Mirror session.
Note: v Use the -l parameter if you want to see a detailed report. The report provides the following information: State of the session status. For example, whether the consistency group of the session is in progress or the increment process is in progress. The status of each volume in the session. Whether the first cycle of the volume in the global mirror relationship has ended. This value is displayed as true or false. v Use the -s parameter if you only want to see the volumes (with no details) that are associated with each session within the LSS.
148
149
Note: You can issue the commands that are described in the steps either for a DS8000 model or for a DS6000 model, but for the DS6000 model the storage image ID is different. 1. Issue the pausegmir command to pause Global Mirror processing. Enter the pausegmir command at the dscli command prompt using the following parameters and variables: dscli>pausegmir -dev storage_image_ID -lss LSS_ID -session session_ID Master_Control_Path_LSS_ID:Subordinate_Control_Path_LSS_ID Example
dscli>pausegmir -dev IBM.2107-75FA120 -lss 10 -session 01 IBM.2107-75FA120/00:IBM.2107-75FA150/00
2. Use the showgmir command to verify that your changes are correct. When you are ready to resume Global Mirror processing, issue the resumegmir command to continue with the Global Mirror processing. Do not issue the start (mkgmir) command to start Global Mirror processing.
Note: If you are making changes to your tuning parameters, your command looks like the following:
150
In this example the -cginterval parameter was changed while the -coordinate and -drain parameters maintained their DS CLI default values. However, because the -cginterval parameter was changed, all the parameters and their corresponding values must be listed in your command. Otherwise, the command fails.
Note: Issuing the mkgmir command requires that you specify the tuning parameters. The values for the tuning parameters are not retained when you end Global Mirror processing. So, in the case where you must change the Global Mirror topology parameters, resubmit the tuning parameters when you restart Global Mirror processing.
151
152
1. Issue the rmgmir command to end Global Mirror processing. Enter the rmgmir command at the dscli command prompt using the following parameters and variables: dscli>rmgmir -dev storage_image_ID -lss LSS_ID -session session_ID Master_Control_Path_LSS_ID:Subordinate_Control_Path_LSS_ID Example
dscli>rmgmir -dev IBM.2107-75FA120 -lss 10 -session 01 IBM.2107-75FA120/00:IBM.2107-75FA150/00
2. Enter Y in response to each message that requests that you confirm that you want the specified session stopped. A message similar to the following appears when you process the rmgmir command.
Are you sure you want to close Session ID 01? [y/n]: Y Global Mirror for Session ID 01 closed successfully.
153
Note: You can issue the commands that are described in the steps either for a DS8000 model or for a DS6000 model, but for the DS6000 model the storage image ID is different. 1. Obtain the worldwide node name of the secondary storage unit. This information is needed when you do the next step. Enter the lssi or showsi at the dscli command prompt as follows:
dscli>lssi -l
This is the entire command. there are no additional variables needed. The showsi command does contain a variable and a command flag: dscli>showsi storage_image_id -fullid Example
dscli>showsi -fullid IBM.210775FA120
Notes: a. Use the lssi command if you want to display a list of all the storage image instances for a storage-complex and status information for each storage image in the list. b. Use the showsi command if you want to display the detailed properties of a specific storage unit. c. Use the -fullid DS CLI command flag with the showsi command to display fully qualified IDs, which include the storage image ID, for every ID that is displayed in the command output. d. Record the worldwide node name for the secondary (target) storage unit so that it can be used when you issue the mkpprcpath command. 2. Issue the lsavailpprcport command to display a list of fibre-channel I/O ports that can be defined as remote mirror and copy paths. Enter the lsavailpprcport command at the dscli command prompt with the parameters and variables shown as follows: dscli>lsavailpprcport -dev storage_image_ID -remotedev storage_image_ID -remotewwnn wwnn source_LSS_ID:target_LSS_ID Example
dscli>lsavailpprcport l dev IBM.2107-75FA120 -remotedev IBM.2107-75FA150 remotewwnn 12341234000A000F 01:01
Notes: a. The -remotedev parameter specifies the ID of the secondary storage unit. b. The -remotewwnn parameter must specify the worldwide node name of the secondary storage unit. If you make a mistake and specify the worldwide node name of the primary storage unit, the command fails. c. The shortened version of the source_LSS_ID:target_LSS_ID parameter is shown (value = 01:01) because the example uses the fully qualified -dev storage_image_ID and -remotedev storage_image_ID parameters. If the fully qualified -dev and -remotedev parameters were not used, you must use the fully qualified source_LSS_ID:target_LSS_ID value. For example: IBM.2107-75FA120/01:IBM.2107-75FA150/01.
154
The fully qualified source_LSS_ID:target_LSS_ID value must be placed after the -remotewwnn value in your command line. For example, your command line would look like the following:
dscli>lsavailpprcport l remotewwnn 12341234000A000F IBM.2107-75FA120/01:IBM.2107-75FA150/01
3. Issue the mkpprcpath command to create the fibre-channel paths between all Global Mirror source and target pairs and between the Master and subordinate storage units. Enter the mkpprcpath command at the dscli command prompt with the following parameters and variables as follows: dscli>mkpprcpath -dev storage_image_ID -remotedev storage_image_ID -remotewwnn wwnn -srclss source_LSS_ID -tgtlss target_LSS_ID source_port_ID:target_port_ID Example
dscli>mkpprcpath -dev IBM.2107-75FA120 -remotedev IBM.2107-75FA150 -remotewwnn 12341234000A000F -srclss IBM.2107-75FA120/00 -tgtlss IBM.2107-75FA150/01 I1A10:I2A20
Notes: a. The -remotedev parameter specifies the ID of the secondary storage unit. b. The -remotewwnn parameter must specify the worldwide node name of the secondary storage unit. If you make a mistake and specify the worldwide node name of the primary storage unit, the command fails. c. The shortened version of the -srclss parameter is shown (value = 00) because the example uses the fully qualified -dev storage_image_ID parameter. If the fully qualified -dev parameter was not used, you must use the fully qualified -srclss source_LSS_ID value. For example: -srclss IBM.2107-75FA120/00. d. The shortened version of the -tgtlss parameter is shown (value = 01) because the example uses the fully qualified -dev storage_image_ID parameter. If the fully qualified -dev parameter was not used, you must use the fully qualified -tgtlss target_LSS_ID value. For example: -tgtlss IBM.2107-75FA120/01. e. The shortened version of the source_port_ID:target_port_ID parameter is shown (value = I1A10:I2A20) because the example uses the fully qualified -dev storage_image_ID and -remotedev storage_image_ID parameters. If the fully qualified -dev and -remotedev parameters were not used, you must use the fully qualified source_port_ID:target_port_ID value. For example: IBM.2107-75FA120/I1A10:IBM.2107-75FA150/I2A20. The fully qualified source_port_ID:target_port_ID parameter is positional on your command line. It must be placed after the -tgtlss parameter and value. For example:
dscli>mkpprcpath -srclss 00 -tgtlss 01 IBM.2107-75FA120/I1A10:IBM.2107-75FA150/I2A20
155
Example
dscli>mkpprc -dev IBM.2107-75FA120 -remotedev IBM.2107-75FA150 -type gcp 0100:0100
Notes: a. The -remotedev parameter specifies the ID of the secondary storage unit. b. The -type gcp parameter specifies that one or more remote mirror and copy Global Copy volume relationships be established. Global Copy maintains the remote mirror and copy relationship in a nonsynchronous manner. A confirmation message is issued for each successful Global Copy volume association that is created. 2. Issue the lspprc command to check the status information for each remote mirror and copy volume relationship in the list. Enter the lspprc command at the dscli command prompt with the following parameters and variables:
dscli>lspprc -dev storage_image_ID -l SourceVolumeID:TargetVolumeID -remotedev storage_image_ID
Example
dscli>lspprc -dev IBM.2107-75FA120 -remotedev IBM.2107-75FA150 -l 0100:0100
Use the -l parameter to provide a more detailed report about the Global Copy volume relationships.
What to do next
It is recommended that you wait until the Global Copy pair process has completed its first pass before you begin creating the FlashCopy relationships.
156
Note: Global Copy source volumes are not in the active Global Mirror session until the volumes have been added to the session and the session has started.
Example
dscli>mkflash -dev IBM.2107-75FA150 -tgtinhibit -record -persist -nocp 0001:0004
Notes: a. Specify the storage image ID of the secondary storage unit for the -dev storage_image_ID parameter. If the management console has an IP connection to the specified remote site, the command works. If the IP connection is not established, issue the mkremoteflash command with all the same parameters as displayed in the example. b. Specify the -tgtinhibit parameter to prevent writes to the target volume. c. Specify the -record parameter to activate the change recording function on the volume pair. d. Specify the -persist parameter to retain the FlashCopy relationship after the background copy completes. e. Specify the -nocp parameter to prevent creating a background copy.
157
A confirmation message is issued for each successful FlashCopy pair that is created. 2. Issue the lsflash command to check the status information for each FlashCopy relationship at the remote site. Enter the lsflash command at the dscli command prompt with the following parameters and variables:
dscli>lsflash -dev storage_image_ID -l SourceVolumeID:TargetVolumeID -l 0100:0100
Example
dscli>lsflash -dev IBM.2107-75FA150
Use the -l parameter to provide a more detailed report about the FlashCopy relationships. Note: If you used the mkremoteflash command, you must enter the lsremoteflash command to perform a status check.
2. Repeat Step 1 for each LSS. You must make a session for each LSS. However, you can associate each LSS with the same session. For example: You have LSS 08 and it contains volumes 0800 - 0810. You create a session and assign it to session 08. You also have LSS
158
09 and it contains volumes 0900 - 0910. You create a session and assign it to session 08. When you start Global Mirror processing, the volumes for LSS 8 and LSS 9 are processed in the same session (session 08).
159
impact on your processing. If you intend to use the volumes in a different configuration, you must remove the pair and path associations. Removing a volume from a Global Mirror session does not remove the pair and path associations. Perform the following steps to remove volumes from a Global Mirror session. The example commands in this task are shown in two formats. The first format shows the type of information that the command requires. The second format provides the command with declared values for the variables. Note: You can issue the commands that are described in the steps either for a DS8000 model or for a DS6000 model, but for the DS6000 model the storage image ID is different. 1. Issue the lssession command to query the status of all volumes that are associated with the sessions of a specified logical subsystem. Enter the lssession command at the dscli command prompt with the following parameters and variables: dscli>lssession dev storage_image_ID -l LSS_ID
dscli>lssession dev IBM.2107-75FA120 -l 01
When you use the -l parameter, a detailed report displays a list of Global Mirror sessions for the specified logical subsystem (LSS) and information about the volumes of each session in the list. 2. Analyze the report and determine which volumes that you want to remove. 3. Issue the chsession command to remove the specified volumes from the specified Global Mirror session. Enter the chsession command at the dscli command prompt with the following parameters and variables: dscli>chsession -dev storage_image_ID -lss LSS_ID -action remove -volume volume_ID session_ID Example
dscli>chsession -dev IBM.2107-75FA120 -lss 10 -action remove -volume 0100-010F,0180-018F,0120 01
A confirmation message indicates that the session has been modified successfully. Note: A volume ID range is defined by two volume IDs that are separated by a hyphen. Multiple volume IDs or volume ID ranges must be separated by a comma.
What to do next
After the volumes have been removed from the Global Mirror session, you must end the volume associations for the removed volumes (FlashCopy, Global Copy pair, and remote mirror and copy path) if you plan to use the volumes in a different configuration.
160
Note: For the circumstance described in this task, it is better to issue the -s parameter. The -s parameter creates a report with the following three items of information: v LSSID v Session number v Volume numbers 2. Print the report or record the session numbers that need to be ended. 3. Issue the rmsession command to end the specified session. Enter the rmsession command at the dscli command prompt with the following parameters and variables: dscli>rmsession -dev storage_image_ID -lss ID session_ID Example
dscli>rmsession -dev IBM.2107-75FA120 -lss 10 01
4. Enter Y to respond to the message that requests that you confirm that you want to end the specified session. A message similar to the following is displayed when you process the rmsession command.
Are you sure you want to close Session ID 01? y/n Y Global Mirror Session ID 01 closed successfully.
161
v Remove the volumes that are associated with each Global Mirror session you have closed. v End the Global Mirror sessions that are part of your Global Mirror environment. If you attempt to remove the FlashCopy relationships (as part of removing the Global Mirror environment) before doing the first two tasks, this task fails.
Use the -l parameter to provide a more detailed report about the FlashCopy relationships. Note: If you originally used the mkremoteflash command to create your FlashCopy relationships, you must enter the lsremoteflash command to perform a status check. 2. Analyze the list of volumes that have been part of your Global Mirror environment and ensure that these are the volumes from which the FlashCopy relationship must be removed. 3. Issue the rmflash command to remove the FlashCopy volume relationships. Enter the rmflash command at the dscli command prompt with the parameters and variables shown as follows: dscli>rmflash -dev storage_image_ID SourceVolumeID:TargetVolumeID Example
dscli>rmflash -dev IBM.2107-75FA120 0001:0004 0003:00FF 0008:000C
Note: v The example shows the use of multiple FlashCopy pair IDs. Ensure that you separate multiple FlashCopy pair IDs with spaces. v If you used the mkremoteflash command to create your FlashCopy relationships, you must enter the rmremoteflash command to remove the FlashCopy relationships.
162
4. Enter Y in response to each message that requests that you confirm that you want the specified FlashCopy pair removed. A message similar to the following appears for each FlashCopy pair being removed when you process the rmflash command.
Are you sure you want to remove the FlashCopy pair 0001:0004? [y/n]: Y FlashCopy pair 0001:0004 successfully removed.
Use the -l parameter to provide a more detailed report about the Global Copy volume relationships. 2. Analyze the list of volumes that have been part of your Global Mirror environment, and ensure that these are the volumes from which the Global Copy relationships must be removed.
163
3. Issue the rmpprc command to remove the Global Copy volume relationships. Enter the rmpprc command at the dscli command prompt with the following parameters and variables: dscli>rmpprc -dev storage_image_ID -remotedev storage_image_ID SourceVolumeID:TargetVolumeID Example
dscli>rmpprc -dev IBM.2107-75FA120 -remotedev IBM.2107-75FA150 0100:0100
4. Enter Y in response to each message to confirm that you want to remove the specified Global Copy pair. A message similar to the following is displayed for each Global Copy pair that is being removed when you process the rmflash command.
Are you sure you want to remove PPRC pair 0100:0100? [y/n]: Y Remote Mirror and Copy pair IBM.2107-75FA120/0100:0100 successfully removed.
5.
Repeat Steps 3 and 4 for all the volumes that have Global Copy relationships in the LSSs that were part of your Global Mirror environment.
164
1. Issue the lspprcpath command to display a list of existing remote mirror and copy path definitions. Enter the lspprcpath command at the dscli command prompt with the following parameters and variables: dscli>lspprcpath -dev storage_image_ID source_LSS_ID Example
dscli>lspprcpath l dev IBM.2107-75FA120 01
Note: The report that is displayed from this command provides the worldwide node name that is used with the rmpprcpath command. 2. Record the path information to use when you issue the rmpprcpath command. 3. Issue the rmpprcpath command to remove the fibre-channel paths between all Global Mirror source and target pairs and between the master and subordinate storage units. Do this for each path that must be removed. Enter the rmpprcpath command at the dscli command prompt with the following parameters and variables: dscli>rmpprcpath -dev storage_image_ID -remotedev storage_image_ID -remotewwnn wwnn source_LSS_ID:target_LSS_ID Example
dscli>rmpprcpath -dev IBM.2107-75FA120 -remotedev IBM.2107-75FA150 -remotewwnn 12341234000A000F 01:01
4. Enter Y in response to each message to confirm that you want to remove the specified remote mirror and copy path. A message similar to the following is displayed for each remote mirror and copy path that is being removed.
Are you sure you want to delete the Remote Mirror and Copy path (whatever was designated)? [y/n]: Y Remote Mirror and Copy path (designated in the command) successfully deleted.
Note: Use of the -quiet parameter with the rmpprcpath command turns off the confirmation question for each path that is being removed. 5. Repeat Step 3 for all the remote mirror and copy paths per LSS that were part of your Global Mirror environment.
What to do next
After this task is complete, you can create your new Global Mirror environment and configuration.
165
166
167
6. Use the commitflash command to correct FlashCopy relationships. See Using the commitflash command to correct FlashCopy relationships on page 175for additional substeps. 7. Initiate the fast reverse restore process. See Using fast reverse restore processing to create consistency on page 176 for additional substeps. 8. Wait for the background copy to complete. See Waiting for the background copy to complete on page 177 for additional substeps. 9. Reestablish the FlashCopy relationships, B volumes to C volumes. See Reestablishing the FlashCopy relationships between B volumes and C volumes on page 178 for additional substeps. 10. Prepare to reinstate production at the local site. See Preparing to reinstate production at the local site on page 179 for additional substeps. 11. Resynchronize the volumes. See Resynchronizing the volumes on page 180 for additional substeps. 12. Query for first pass and drain time out-of-synch zero value and quiesce your system. See Querying, quiescing, and querying on page 182 for additional substeps. 13. Reestablish the remote mirror and copy paths, A site to B site. See Reestablishing remote mirror and copy paths (site A to site B) on page 183 for additional substeps. 14. Perform Global Copy failover processing to the A volumes. See Performing Global Copy failover processing to the A volumes on page 185 for additional substeps. 15. Perform Global Copy failback processing for the A volumes. See Performing Global Copy failback processing for the A volumes on page 186 for additional substeps. 16. Resume Global Mirror processing at site A. See Resuming Global Mirror processing at site A on page 186 for additional substeps.
168
you must end Global Mirror processing by pressing the CTRL C buttons on your keyboard because there is no pause feature when running a script. Because this is a rolling disaster, you might have time to log back into your DS CLI session on the local server and query the status of the Global Mirror processing before it was ended. v Your sites local server is affected by the disaster immediately and you have no time to end Global Mirror processing or issue a status query. If possible, you want to end Global Mirror processing. Perform the following step to end Global Mirror processing. Issue the rmgmir command to end Global Mirror processing or press the CTRL C buttons when you are using a DS CLI script and then issue the rmgmir command.
What to do next
After Global Mirror processing has been ended, you are ready for the next step in the Global Mirror failover recovery process.
169
1. If your primary server is still operational, issue the lssession and lspprc commands to obtain reports that allow you to determine the status of your Global Mirror transactions. If your primary server is not available, go to the next step. 2. Gain access to your remote server and navigate to the directory where you installed the DS CLI application. 3. Log in to a DS CLI session. 4. Issue the lspprc command to provide a report that allows you to determine the status of your Global Mirror transactions. Enter the lspprc command at the dscli command prompt with the following parameters and variables: dscli>lspprc -dev storage_image_ID -remotedev storage_image_ID -l SourceVolumeID:TargetVolumeID Example
dscli>lspprc -dev IBM.2107-75FA120 -remotedev IBM.2107-75FA150 -l 0100-0103:0100-0103 0200:0200 0300-0303:0300-0303
Note: The report displays your Global Copy pairs with a suspended state.
What to do next
After you obtain your reports, you are ready for the next step in the Global Mirror disaster recovery process, which is to issue the failover command.
170
first format shows the type of information that the command requires. The second format provides the command with declared values for the variables. Note: You can issue the commands that are described in the steps either for a DS8000 model or for a DS6000 model, but for the DS6000 model the storage image ID is different. Issue the failoverpprc command to change the Global Copy state on the B volumes from secondary, target pending to primary, suspended. Enter the failoverpprc command at the dscli command prompt with the following parameters and variables: dscli>failoverpprc -dev storage_image_ID -remotedev storage_image_ID SourceVolumeID:TargetVolumeID Example
dscli>failoverpprc -dev IBM.2107-75FA150 -remotedev IBM.2107-75FA120 0100:0100 0101:0101 0102:0102 0103:0103
Note: Unlike most other commands, the storage_image_ID and SourceVolumeID:TargetVolumeID values are reversed for the failoverpprc command, because the command is issued directly to the remote server. You must place the values for the remote server first and the values for the original primary server second. This reversal (where the remote server is no longer the primary server) can have the following results: v The source volumes become suspended v The target volumes become suspended and they are available for mounting An information message like the following one is generated for each Global Copy pair that is changed and moved to a suspended state.
Remote Mirror and Copy pair IBM.2107-75FA150/0100:IBM.2107-75FA120/0100 successfully suspended.
All B volumes must successfully process the failoverpprc command before you can move on to the next step which involves analyzing the FlashCopy relationships and initiating the appropriate commands.
171
Remember that at this point your remote server has become your primary server. 2. Analyze your report to determine the state of the consistency group between the B volume and C volume. You are looking primarily at the FlashCopy relationships and your analysis determines your next step in the recovery process. The following provides the types of FlashCopy relationships that might exist and a reference to the action that must be taken: v The FlashCopy relationships are nonrevertible and all the sequence numbers are equal. Action: No further action is necessary and the set of C volumes is consistent and a complete copy.
172
v The FlashCopy relationships are revertible and all the sequence numbers are equal. Action: Issue the revertflash command to revert the FlashCopy pairs to the last consistency group. v All the FlashCopy sequence numbers are equal and at least one of the FlashCopy relationships is nonrevertible. Action: Issue the commitflash command to commit the data to a target volume to form a consistency group between the source and target. v The FlashCopy relationships appear as follows: a. Some of the FlashCopy relationships completed processing so that a consistent group was created. These FlashCopy relationships are no longer revertible. b. Some of the FlashCopy relationships have not completed creating a new consistency group formation. They are still in a revertible state. c. All the FlashCopy relationships have the same FlashCopy sequence number. This indicates that all the FlashCopy relationships were involved in the very same consistency group. Action: Issue the commitflash command to commit the data of the FlashCopy relationships that have not completed creating a new consistency group so that a consistency group is formed. v There is a group of FlashCopy pairs that are all revertible and another group of FlashCopy pairs that are all nonrevertible. In addition, all the FlashCopy sequence numbers are not equal. However, the following conditions exists: a. The FlashCopy sequence number for all revertible pairs is equal. b. The FlashCopy sequence number for all nonrevertible pairs is equal. Action: Issue the revertflash command to revert the FlashCopy pairs to the last consistency group. v The FlashCopy sequence numbers are not equal for all FlashCopy relationships in the concerned consistency group and either a or b in the previous bullet was not true. This indicates that the consistency group is corrupted. Action: Contact your IBM service representative. Note: When you know the state of all the FlashCopy relationships, you might want to initiate a tape backup of the C volume.
What to do next
After determining the state of the FlashCopy relationships, issue the revertflash or commitflash commands, as appropriate.
173
v The FlashCopy relationships are revertible and all the sequence numbers are equal. v There is a group of FlashCopy pairs that are all revertible and another group of FlashCopy pairs that are all nonrevertible. In addition, all the FlashCopy sequence numbers are not equal. However, the following conditions exist: The FlashCopy sequence number for all revertible pairs is equal. The FlashCopy sequence number for all nonrevertible pairs is equal.
Notes: 1. Remember that the storage_image_ID is the value for the remote server that has been designated the primary server until the original primary server is available for use. 2. Global Mirror operations have performed the establish FlashCopy revertible processing as it was trying to form a consistency group before the disaster occurred. If your analysis, through use of the lsflash command, has determined that a revertflash command is needed, then there is no need to issue a new mkflash command. A confirmation message like the following one is generated for each FlashCopy relationship that has been successfully reset.
FlashCopy pair 0100:0200 successfully reverted to the previous consistency.
What to do next
After all the FlashCopy relationships have been corrected, you are ready to use the fast reverse restore process, which is the next step in the Global Mirror disaster recovery process.
174
Notes: 1. Remember that the storage_image_ID is the value for the remote server that has been designated the primary server until the original primary server is available for use.
175
2. Global Mirror operations have performed the establish FlashCopy revertible processing as the Global Mirror operations were trying to form a consistency group before the disaster occurred. If your analysis, through use of the lsflash command, has determined that a commitflash command is required, then there is no need to issue a new mkflash command. A confirmation message like the following one is generated for each FlashCopy relationship that has been successfully reset.
FlashCopy pair 0100:0200 successfully committed.
What to do next
After all the FlashCopy relationships have been corrected, you are ready to use the fast reverse restore process, which is the next step in the Global Mirror disaster recovery process.
176
Issue the reverseflash command to create the same consistency on the B volumes that you have on the C volumes. Enter the reverseflash command at the dscli command prompt with the following parameters and variables: dscli>reverseflash -dev storage_image_ID -fast -tgtpprc source_volume_ID:target_volume_ID Example
dscli>reverseflash -dev IBM.2107-75FA150 -fast -tgtpprc 0200:0100
Notes: 1. The -fast parameter determines that the reverseflash command is processed before the background copy completes. 2. The source volume ID is the value that is specified for the C volume. The data from this volume is copied to the target volume ID, which is the B volume. 3. The -tgtpprc parameter allows the FlashCopy target volume (B volume) to be a Remote Mirror and Copy source volume. 4. The storage_image_ID parameter is the value that is assigned to the remote storage unit, which has become the primary storage unit as a result of the failover action. 5. You must wait for the background copy to complete before you can go on to the next process.
177
1. Issue the lsflash command to check the existence of FlashCopy relationships between the B volume and the C volume. Enter the lsflash command at the dscli command line prompt with the following parameters and variables: dscli>lsflash -dev storage_image_ID -s target_volume_ID Example
dscli>lsflash -dev IBM.2107-75FA150 -s 0200
Notes: a. The storage_image_ID is the manufacture, storage unit type, and serial number value of the remote storage unit that has become the primary unit because of the disaster. b. The -s parameter limits the report information that is returned only to the FlashCopy pair relationships that still exist. c. By designating only the target volume ID, you are further limiting the report to display just the target side of the FlashCopy pair relationship. When the report returns a blank screen, it indicates that background copy has completed and that no FlashCopy relationships exist between the B volume and the C volume. 2. Repeat Step one periodically until no FlashCopy relationships exist between the B volume and the C volume.
What to do next
After the fast reverse restore and the background copy operations have completed, you can proceed to the next task which is reestablishing the FlashCopy relationship between the B volume and the C volume.
178
Notes: a. Specify the secondary storage unit MTS (which has become the primary storage unit because of the disaster) for the -dev storage_image_ID parameter. b. Use the -tgtinhibit parameter to inhibit writes on the target volume. c. Use the -record parameter to activate change recording on the volume pair. d. Use the -persist parameter to retain the FlashCopy relationship after the background copy completes. e. Use the -nocp parameter to inhibit the background copy. f. The source_volume_ID is the value associated with the B volumes and the target_volume_ID is the value associated with the C volumes. 2. Use the lsflash command to check the status of the FlashCopy relationships after you have processed the mkflash command.
What to do next
After you have reestablished the FlashCopy relationships, you can start host I/O processing at the remote site on the B volumes. The production operation on the remote site, in this configuration, remains until you are ready to return production to the local site.
179
2. You can issue the commands that are described in the steps either for a DS8000 model or for a DS6000 model, but for the DS6000 model the storage image ID is different. 1. Issue the lssi command against the Site A storage unit to obtain its worldwide node name. A report is displayed that provides the specific information about the Site A storage unit. Enter the lssi command at the dscli command prompt with the following parameters and variables: dscli>lssi -l storage_image_ID Example
dscli>lssi -l IBM.2107-75FA120
Record the worldwide node name because it is used in the next step. 2. Issue the mkpprcpath command to create the fibre-channel paths from Site B to Site A and between the specific LSSs. Enter the mkpprcpath command at the dscli command prompt with the following parameters and variables: dscli>mkpprcpath -dev storage_image_ID -remotedev storage_image_ID -remotewwnn wwnn -srclss source_LSS_ID -tgtlss target_LSS_ID source_port_ID:target_port_ID Example
dscli>mkpprcpath -dev IBM.2107-75FA150 -remotedev IBM.2107-75FA120 -remotewwnn 12341234000A000A -srclss IBM.2107-75FA150/00 -tgtlss IBM.2107-75FA120/01 I1A20:I2A10
Notes: a. The -dev parameter specifies the ID of your source storage unit. At this point in time, your source is the Site B storage unit. b. The -remotedev parameter specifies the ID of the secondary storage unit. At this point in time, the remote storage unit is your Site A storage unit. c. The -remotewwnn parameter must specify the worldwide node name of the secondary storage unit (Site A at this point in time). If you specify the worldwide node name of the primary storage unit (Site B), the command fails. d. The -srclss parameter refers to Site B storage unit as the source. e. The -tgtlss parameter specifies the Site A storage unit as the target. f. The source_port_ID:target_port_ID value has the Site B port ID as the source and the Site A port ID as the target.
What to do next
After you have established the paths, you are ready to move on to the second step on the failback recovery process which involves issuing the failbackpprc command from the B volume to the A volume.
180
Notes: 1. The -dev parameter specifies the ID of your source storage unit. At this point in time, your source is the Site B storage unit. 2. The -remotedev parameter specifies the ID of the target storage unit. At this point in time, the remote storage unit is your Site A storage unit. 3. The source_volume_ID:target_volume_ID value has the Site B volume ID as the source and the Site A volume ID as the target.
181
What to do next
After submitting this command for processing, you must track the progress of the transaction until it completes its first pass. So, querying for first pass completion is the next step in the failback recovery process.
Notes: a. The -dev parameter specifies the ID of your source storage unit. At this point, your source is the Site B storage unit. b. The -remotedev parameter specifies the ID of the target storage unit. At this point, the remote storage unit is your Site A storage unit. c. The source_volume_ID:target_volume_ID value has the Site B volume ID as the source and the Site A volume ID as the target. 2. Quiesce your I/O and unmount your file systems at the B site to preserve the integrity of your file system. Note: Unmounting your file systems flushes the host cache and ensures that you actually copy valid data sets.
182
3. Reissue the lspprc on page 636 command periodically to identify when the remaining bits completely drain from the B site. This is indicated when the out-of-sync (OOS) tracks equal zero. Depending on the number of transactions that you have, some period of time elapses. Enter the lspprc command at the dscli command prompt with the following parameters and variables: dscli>lspprc -dev storage_image_ID -remotedev storage_image_ID -l SourceVolumeID:TargetVolumeID Example
dscli>lspprc -dev IBM.210775FA150 -remotedev IBM.210775FA120 1000:1000
What to do next
After this task is completed, you are ready to establish the remote mirror and copy paths from Site A to Site B.
This is the entire command. No additional variables are needed. The showsi command does contain a variable and a command flag: dscli>showsi storage_image_id -fullid
Chapter 10. Recovering from a disaster using Global Mirror
183
Example
dscli>showsi -fullid IBM.210775FA120
Notes: a. Use the lssi command if you want to display a list of all the storage image instances for a storage complex and the status information for each storage image in the list. b. Use the showsi command if you want to display the detailed properties of a specific storage unit. c. Use the -fullid DS CLI command flag with the showsi command to display fully qualified IDs, which include the storage image ID, for every ID that is displayed in the command output. d. Record the worldwide node name for the secondary (target) site B storage unit so that you can use it when you issue the mkpprcpath command. 2. Issue the mkpprcpath command to create the remote mirror and copy paths between all Global Mirror source and target pairs and between the master and subordinate storage units. Enter the mkpprcpath command at the dscli command prompt with the following parameters and variables as follows: dscli>mkpprcpath -dev storage_image_ID -remotedev storage_image_ID -remotewwnn wwnn -srclss source_LSS_ID -tgtlss target_LSS_ID source_port_ID:target_port_ID Example
dscli>mkpprcpath -dev IBM.2107-75FA120 -remotedev IBM.2107-75FA150 -remotewwnn 12341234000A000F -srclss 00 -tgtlss 01 I1A10:I2A20
Notes: a. The -remotedev parameter specifies the ID of the secondary storage unit. b. The -remotewwnn parameter must specify the worldwide node name of the secondary storage unit. If you make a mistake and specify the worldwide node name of the primary storage unit, the command fails. c. The shortened version of the -srclss parameter is shown (value = 00) because the example uses the fully qualified -dev storage_image_ID parameter. If the fully qualified -dev parameter is not used, you must use the fully qualified -srclss source_LSS_ID value. For example: -srclss IBM.2107-75FA120/00. d. The shortened version of the -tgtlss parameter is shown (value = 01) because the example uses the fully qualified -dev storage_image_ID parameter. If the fully qualified -dev parameter is not used, you must use the fully qualified -tgtlss target_LSS_ID value. For example: -tgtlss IBM.2107-75FA120/01. e. The shortened version of the source_port_ID:target_port_ID parameter is shown (value = I1A10:I2A20) because the example uses the fully qualified -dev storage_image_ID and -remotedev storage_image_ID parameters. If the fully qualified -dev and -remotedev parameters are not used, you must use the fully qualified source_port_ID:target_port_ID value. For example: IBM.2107-75FA120/I1A10:IBM.2107-75FA150/I2A20 .
184
The fully qualified source_port_ID:target_port_ID parameter is positional on your command line. It must be placed after the -tgtlss parameter and value. For example:
dscli>mkpprcpath -srclss 00 -tgtlss 01 IBM.2107-75FA120/I1A10:IBM.2107-75FA150/I2A20
Note: The SourceVolume_ID is the A volume and the TargetVolume_ID is the B volume. A confirmation message like the following is generated for each Global Copy pair that has been changed and moved to a state of suspended.
PPRC pair IBM.2107-75FA120/0100:IBM.2107-75FA150/0100 successfully suspended.
Note: All A volumes must successfully process the failoverpprc command before you can move on to the next step.
185
Notes: 1. The -dev parameter specifies the ID of your source storage unit. Your source is the Site A storage unit. 2. The -remotedev parameter specifies the ID of the target storage unit. The remote storage unit is your Site B storage unit. 3. The SourceVolume_ID:TargetVolume_ID value has the Site A volume ID as the source and the Site B volume ID as the target.
186
Example
dscli>mkgmir -dev IBM.2107-75FA120 -lss 10 -cginterval 0 -coordinate 50 -drain 30 -session 01 IBM.2107-75FA120/00:IBM.2107-75FA150/00
Note: Issuing the mkgmir command requires that you specify the tuning parameters. The values for the tuning parameters are not retained when you end Global Mirror processing. So, in the case where you need to change the Global Mirror topology parameters, you need to resubmit the tuning parameters when you restart Global Mirror processing. 2. Issue the resumegmir command to continue Global Mirror processing after you have paused Global Mirror processing. Enter the resumegmir command at the dscli command prompt using the following parameters and variables: dscli>resumegmir -dev storage_image_ID -lss LSS_ID -session session_ID Master_Control_Path_LSS_ID:Subordinate_Control_Path_LSS_ID Example
dscli>resumegmir -dev IBM.2107-75FA120 -lss 10 -session 01 IBM.2107-75FA120/00:IBM.2107-75FA150/00
Note: You might want to change or maintain the values that you had on your B site for the tuning parameters. You must restate these values before you process the resumegmir command. You cannot state a value for just one of the tuning parameters. You must restate all of the values (-cginterval, -coordinate, and -drain). The following example shows how to enter the resumegmir command to provide these values:
dscli>resumegmir -dev IBM.2107-75FA120 -lss 10 -cginterval 5 -coordinate 50 -drain 30 -session 01 IBM.2107-75FA120/00:IBM.2107-75FA150/00
187
188
Chapter 11. Recovery scenarios for planned and unplanned outages using Metro/Global Mirror
This section describes a Metro/Global Mirror environment (DS8000 only) that uses failover and failback operations to switch applications to an alternate site during planned outages such as maintenance updates or unplanned outages such as disasters: Note: The steps in these scenarios are examples. Other configurations might be possible but might not be supported by IBM. v Setting up a Metro/Global Mirror environment v Failover and restore operations to the intermediate (B) site v Failover and restore operations to the remote (C) site
189
Perform the following steps to set up your Metro/Global Mirror environment. The command parameters and output are provided as examples. 1. Ensure that the storage units are configured, assigned, and operating in a normal state. 2. Identify all volumes that will participate in a session. Identify which volumes are to be source and target volumes for Metro Mirror, Global Copy, and FlashCopy relationships, and the storage unit that you will designate as the master storage unit. 3. At each site, establish fibre-channel paths. a. Determine that there are I/O ports available for paths between the source and the target LSSs using the lsavailpprcport command. See Determining which I/O ports are available for paths on page 137 for more information. b. Set up paths between local and intermediate sites for the Metro Mirror volume pairs. Enter the mkpprcpath command at the dscli command prompt with the following parameters and variables:
dscli> mkpprcpath -dev IBM.2107-130165X -remotedev IBM.2107-75ALA2P -remotewwnn 5005076303FFC550 -srclss 61 -tgtlss 63 -consistgrp I0102:I0031 I0002:I0102
Ensure that you create the paths with the PPRC consistency group option (using the -consistgrp parameter) for the A and B volume pairs in Metro Mirror relationships. Specifying the consistency group option ensures that volume pairs from the specified LSSs that share the same paths belong to this consistency group. When an error occurs that affects any of these volumes in the consistency group, the volumes in the consistency group become suspended and enter a long-busy state until a consistency group operation is run. See Defining a path that has the consistency option enabled on page 133 for more information. c. Set up paths between the intermediate and remote sites for the Global Copy volume pairs. Enter the mkpprcpath command at the dscli command prompt with the following parameters and variables:
dscli> mkpprcpath -dev IBM.2107-75ALA2P -remotedev IBM.2107-1831760 -remotewwnn 5005076303FFC220 -srclss 62 -tgtlss 64 I0033:I0303
See Creating remote mirror and copy paths on page 120 for more information. d. Use the lspprcpath command to view the newly created paths. See Displaying the status of established paths on page 119 for more information. 4. At the intermediate site, create Global Copy volume pairs between the intermediate and remote sites. Create the pairs from the intermediate storage unit to the remote storage unit using the previously established paths. Ensure that you specify the -cascade parameter to allow the source volume in a Global Copy relationship to be eligible to be a target volume for another relationship at the same time. Enter the mkpprc command at the dscli command prompt with the following parameters and variables:
190
dscli> mkpprc -dev IBM.2107-75ALA2P -remotedev IBM.2107-1831760 -type gcp -mode nocp -cascade 0700-075f:1200-125f
See Creating a Global Copy relationship on page 128 for more information. 5. At the local site: a. Establish Metro Mirror volume pairs between the local and intermediate sites, with the Incremental Resynchronization option enabled. Create the pairs from the local storage unit to the intermediate storage unit using the previously established paths. Enter the mkpprc command at the dscli command prompt with the following parameters and variables:
dscli> mkpprc -dev IBM.2107-130165X -remotedev IBM.2107-75ALA2P -mode full -incrementalresync enable 0700-075f:1200-125f -type mmir
See Creating a Metro Mirror relationship on page 124 for more information. 6. At the remote site, create FlashCopy relationships. Create the relationships at the remote site between volume C (the FlashCopy source volume that is also the target volume of the Global Mirror session) and volume D (the FlashCopy target volume). Note: It is recommended that initial FlashCopy operations be delayed until the Global Copy pairs have completed their first pass of the copying process. Enter the mkflash command at the dscli command prompt with the following parameters and variables:
dscli> mkflash -dev IBM.2107-75ALAG1 -tgtinhibit -record -persist -nocp 1200-125f:1900-195f
When you create FlashCopy relationships, select the following options: Enable Change Recording Select this option to activate the change recording feature on the volume pair that is participating in a FlashCopy relationship. Note: The Persistent FlashCopy option is automatically selected because it is required with the Enable Change Recording option. Inhibit writes to target volume Select this option to ensure that updates cannot be made to the target
Chapter 11. Recovery scenarios using Metro/Global Mirror
191
volume. This ensures data consistency on the target volume. If you select the Inhibit writes to target option, the change recording feature is not active on the target volume. Attention: Do not select the Initiate background copy option. This ensures that data is copied from the source volume to the target volume only if a track on the source volume is modified. See Creating FlashCopy relationships (Global Mirror setup) on page 157 for more information. 7. At the intermediate site: a. Define the Global Mirror session. Define the same session on the LSS that contains the master and on every LSS that contains volumes to be added to the Global Mirror session. Enter the mksession command at the dscli command prompt with the following parameters and variables:
dscli> mksession -lss 07 1
See Creating the Global Mirror session on page 158 for more information. b. Add volumes to the Global Mirror session. Enter the chsession command at the dscli command prompt with the following parameters and variables:
dscli> chsession -lss 07 -action add -volume 0700-075f 1
See Adding volumes to a session (Global Mirror) on page 143 for more information. Note: If you have many volumes that you want to add to a new or existing Global Mirror session, you might consider adding them to the session in stages. When you add a large number of volumes at once to an existing Global Mirror session, the available resources for Global Copy processing within the affected ranks might be used by the initial copy pass of the new volumes. New volumes on the same ranks as existing volumes can use all the processing resources for the initialization of the new volumes. To avoid too much impact on your processing, you might consider adding new volumes to a Global Mirror session in small numbers per rank and wait until the first pass has completed before adding more volumes. c. Start the Global Mirror session. The master storage unit begins forming consistency groups for the specified Global Mirror session. Enter the mkgmir command at the dscli command prompt with the following parameters and variables:
dscli> mkgmir -lss 07 -session 1
See Starting Global Mirror processing on page 151 for more information.
192
d. Issue a query to confirm that the session exists. Confirm that the individual LSS sessions are populated with the appropriate volumes. See Querying Global Mirror processing on page 149 for more information. Enter the showgmir command at the dscli command prompt with the following parameters and variables:
dscli> showgmir 07
The following represents an example of the output (in table format for clarity):
CG Interval Time (seconds) Coord. Time (milliseconds) 50 Max CG Drain Time (seconds) 30
Fatal Reason
Successful CG Percentage 50
Subordinate Count 0
Failover and restore operations to the intermediate site during a planned outage
Use this process to perform failover and restore operations (DS8000 only) to the intermediate (B) site during an unplanned outage.
193
HyperSwap can do this transparently (without any system outage for systems running at the intermediate site) through the use of a single script statement for planned outages and autonomically for unplanned outages. Complete these tasks for failover and restore operations at the intermediate site: (The steps in this scenario are examples.) 1. At the local site, ensure that data consistency is achieved between the A to B volume pairs. This process helps coordinate the A volumes and B volumes consistency and allows consistent data to be copied to the remote site. You can use either of the following methods to create data consistency: v Quiesce I/O processing to the A volumes at the local site. Continue to step 2 on page 195. v Freeze write activity to the Metro Mirror primary volumes by performing the following steps: a. Freeze updates to the A volumes in Metro Mirror relationships across the affected LSSs. Enter the freezepprc command at the dscli command prompt with the following parameters and variables:
dscli> freezepprc -dev IBM.2107-130165X -remotedev IBM.2107-75ALA2P 07-12
This process ensures that the B volumes are consistent at the time of the freeze. (One command per storage unit or LSS is required.) As a result of the freeze action, the following actions are taken: v The established paths between the logical subsystem (LSS) pairs are deleted. v The volume pairs that are associated with the source and target LSSs are suspended. During this time, the storage unit collects data that is sent to the A Metro Mirror volumes. v I/O processing to the Metro Mirror volume pairs is temporarily queued during the time that updates are frozen. b. If desired, you can view the state of the pair status at the local site after the freezepprc command has been processed. Enter the lspprc command at the dscli command prompt with the following parameters and variables:
dscli> lspprc -dev IBM.2107-130165X -remotedev IBM.2107-75ALA2P -fmt default 0700-075f
The following represents an example of the output: Notes: 1) The command example uses the command flag -fmt default. This command flag specifies that the output be set to a space-separated plain text table. 2) The following table format is presented for clarity. The actual report is not displayed in this format. 3) The report example represents the information that is reported on when you do not specify the -l parameter. See Viewing information about Metro Mirror relationships on page 136 for more information.
194
SourceLSS 07 07 07
Timeout (secs)
Critical Mode
c. Resume operations following a freeze. Issue the unfreezepprc command to allow I/O processing to resume for the specified volume pairs. Enter the unfreezepprc command at the dscli command prompt with the following parameters and variables: Note: This activity is sometimes referred to as a thaw operation.
dscli> unfreezepprc -dev IBM.2107-130165X -remotedev IBM.2107-75ALA2P 07:12
2. Issue a failover command to the B to A volume pairs. This process detects that the B volumes are cascaded volumes at the intermediate site. When the command processes, the B volumes remain as primaries in a duplex pending state and secondaries to the A volumes. The B volumes remain nonexistent (or unavailable) secondary volumes to the A volumes in a Metro Mirror relationship. In other words, in a cascaded relationship, the B volumes cannot be primary volumes in a Metro Mirror and Global Copy relationship at the same time. When the direction of the volumes are switched and I/O processing is directed to the new primary B volumes, it is essential that the primary volumes (the A volumes) be the same size as the secondary volumes (the B volumes). See Performing a failover recovery operation on page 135 for more information. Enter the failoverpprc command at the dscli command prompt with the following parameters and variables:
dscli> failoverpprc -dev IBM.2107-75ALA2P -remotedev IBM.2107-130165X -type gcp -cascade 1200-125f:1a00-1a5f
3. Redirect host I/O processing to the B volumes. Changes are recorded on the B volumes until the A volumes can be resynchronized with the B volumes. 4. When the A volumes are ready to return to production, pause the Global Mirror session between the B to C volumes. Direct this command to the same LSS that you used to start the session. This step is needed to later change the direction of the B volumes and restore the A volumes. Enter the pausegmir command at the dscli command prompt with the following parameters and variables:
dscli> pausegmir -dev IBM.2107-75ALA2P -quiet -lss 07 -session 1
195
See Pausing Global Mirror processing on page 149 for more information. 5. Suspend (pause) the B to C volume pairs. Because the site B volumes cannot be source volumes for Metro Mirror and Global Copy relationships, you must suspend the B to C volumes so that B to A volumes can be established. This step stops all incoming write I/O operations to the affected B and C volume pairs and helps prepare for a later resynchronization of the A volumes with the current operating B volumes. Enter the pausepprc command at the dscli command prompt with the following parameters and variables:
dscli> pausepprc -dev IBM.2107-75ALA2P -remotedev IBM.2107-1831760 1200-125f:0700-075f
See Pausing a Metro Mirror relationship on page 127 for more information. 6. Establish paths between the local site LSS and intermediate site LSS that contain the B to A Metro Mirror volumes. Enter the mkpprcpath command at the dscli command prompt with the following parameters and variables:
dscli> mkpprcpath -dev IBM.2107-130165X -remotedev IBM.2107-75ALA2P -remotewwnn 5005076303FFC550 -srclss 07 -tgtlss 12 -consistgrp I0102:I0031 I0002:I0102
See Creating remote mirror and copy paths on page 120 for more information. 7. Issue a failback command to the B volumes (with A volumes as secondaries). Host I/O processing continues uninterrupted to the B volumes as the A volumes are made current. This command copies the changes back to the A volumes that were made to the B volumes while hosts are running on the B volumes. (In a DS CLI environment, where the local and intermediate sites use different management consoles, you have to use a different DS CLI session for the management console of the B volumes at the intermediate site.) See Performing a failback recovery operation on page 135 for more information. Enter the failbackpprc command at the dscli command prompt with the following parameters and variables:
dscli> failbackpprc -dev IBM.2107-75ALA2P -remotedev IBM.2107-130165X -type gcp 1200-125f:1a00-1a5f
8. Wait for the copy process of the B to A volumes to reach full duplex status (all out-of-sync tracks have completed copying). Host writes are no longer tracked. You can monitor when the number of out-of-sync tracks reaches zero by querying the status of the volumes. See Viewing information about Metro Mirror relationships on page 136 for more information.
196
Enter the lspprc command at the dscli command prompt with the following parameters and variables:
dscli> lspprc -l 1200-125f:1a00-1a5f
ID 1200:1a00 1201:1a01
Reason -
Source LSS 10 10
Timeout (secs)
Crit Mode
9. Quiesce host I/O processing to the B volumes. 10. Issue a failover command to the A to B volume pairs. This process ends the B to A volume relationships and establishes the A to B volume relationships. Enter the failoverpprc command at the dscli command prompt with the following parameters and variables:
dscli> failoverpprc -dev IBM.2107-130126X -remotedev IBM.2107-75ALA2P -type mmir 1a00-1a5f:1200-125f
See Performing a failover recovery operation on page 135 for more information. 11. After the failover operation, you can view the status of the volumes with the lspprc command. Enter the lspprc command at the dscli command prompt with the following parameters and variables:
dscli> lspprc -dev IBM.2107-130126X -remotedev IBM.2107-75ALA2P -fmt default 1a00-1a5f
The following represents an example of the output: Notes: a. The command example uses the command flag -fmt default. This command flag specifies that the output be set to a space-separated plain text table. b. The following table format is presented for clarity. The actual report is not displayed in this format. c. The report example represents the information that is reported on when you do not specify the -l parameter.
197
SourceLSS 1A 1A 1A
Timeout (secs)
Critical Mode
12. Reestablish paths (that were disabled by the freeze operation) between the local site LSS and intermediate site LSS that contain the B to A Metro Mirror volume pairs. Enter the mkpprcpath command at the dscli command prompt with the following parameters and variables:
dscli> mkpprcpath -dev IBM.2107-130165X -remotedev IBM.2107-75ALA2P -remotewwnn 5005076303FFC550 -srclss 07 -tgtlss 12 -consistgrp I0102:I0031 I0002:I0102
SeeReestablishing remote mirror and copy paths (site A to site B) on page 183 for more information. 13. Issue a failback command to the A to B volumes. This failback command completes the restoration of the A to B volume relationships (the B volume becomes the target). The replication of the data starts immediately when the command is finished. Depending on how many tracks have changed during the disaster recovery test, resynchronization might take a long time. Note: At this point, you can resume host I/O processing to the local site if optimizing host availability is critical. However, new host I/O that is written to the A volumes at the local site is not fully protected by Global Mirror processing until the Global Mirror operation is restored in step 16 on page 199. Enter the failbackpprc command at the dscli command prompt with the following parameters and variables:
dscli> failbackpprc -dev IBM.2107-130165X -remotedev IBM.2107-75ALA2P -type mmir 1a00-1a5f:1200-125f
14. Reestablish Global Copy relationships between the B to C volumes with the -cascade option. When the failback operation has been done, Global Copy relationships can be recreated. Enter the mkpprc command at the dscli command prompt with the following parameters and variables:
dscli> mkpprc -dev IBM.2107-75ALA2P -remotedev IBM.2107-1831760 -type gcp -mode nocp -cascade 1200-125f:0700-075f
198
CMUC00153I mkpprc: Remote Mirror and Copy volume pair relationship 1200:0700 successfully created. CMUC00153I mkpprc: Remote Mirror and Copy volume pair relationship 1201:0701 successfully created.
15. Wait until the first pass of the Global Copy copying processing of the B to C volume pairs has completed. You can monitor this activity by querying the status of the volumes. Enter the lspprc command at the dscli command prompt with the following parameters and variables:
dscli> lspprc -dev IBM.2107-75ALA2P -remotedev IBM.2107-1831760 -l -fmt default 1200-125f:0700-075f
Reason -
Source LSS 07 07 07
Timeout (secs)
Crit Mode
16. Resume Global Mirror. Now that the original infrastructure has been restored, you can resume the Global Mirror session. Enter the resumegmir command at the dscli command prompt with the following parameters and variables:
dscli> resumegmir -dev IBM.2107-75ALA2P -session 1 -lss 07
See Resuming Global Mirror processing on page 150 for more information. 17. Resume host I/O processing to the A volumes. Direct host I/O processing back to the A volumes in preparation for resuming host I/O on the A volumes. 18. Verify that consistency group are forming successfully. Enter the showgmir -metrics command at the dscli command prompt with the following parameters and variables:
dscli> showgmir -metrics 07
199
See Querying Global Mirror processing on page 149 for more information.
Total Failed CG Count 0 Total Successful CG Count 55 Successful CG Percentage 100 Failed CG after Last Success 0 Last Successful CG Form Time 02/20/ 2006 11:38:25 MST Coord. Time (milliseconds) 50 CG Interval Time (seconds) 0
Failover and restore operations to the intermediate site during an unplanned outage
Use this process to perform failover and restore operations (DS8000 only) to the intermediate (B) site during an unplanned outage.
200
time of the freeze process. (One command per LSS is required.) Enter the freezepprc command at the dscli command prompt with the following parameters and variables: dscli> freezepprc -dev IBM.2107-130165X -remotedev IBM.2107-75ALA2P 07-12 The following represents an example of the output:
CMUC00161W freezepprc: Remote Mirror and Copy consistency group 07:12 successfully created.
As a result of the freeze action, the following actions processing occurs: v The established paths between the LSS pairs are deleted. v The volume pairs that are associated with the source and target LSSs are suspended. During this time, the storage unit collects data that is sent to the A volumes in Metro Mirror relationships. v I/O to the Metro Mirror volume pairs is temporarily queued during the time that updates are frozen. b. Resume operations following a freeze. Issue the unfreezepprc command to allow I/O activity to resume for the specified volume pairs. Enter the unfreezepprc command at the dscli command prompt with the following parameters and variables: Note: This activity is sometimes referred to as a thaw operation.
dscli> unfreezepprc -dev IBM.2107-130165X -remotedev IBM.2107-75ALA2P 07:12
2. Issue a failover command to the B to A volumes. This process detects that the B volumes are cascaded volumes at the intermediate site. Enter the failoverpprc command at the dscli command prompt with the following parameters and variables:
dscli> failoverpprc -dev IBM.2107-75ALA2P -remotedev IBM.2107-130165X -type gcp -cascade 1200-125f:1a00-1a5f
See Performing a failover recovery operation on page 135 for more information. When the direction of the volumes are switched and I/O processing is directed to the new primary B volumes, it is essential that the primary volumes (the A volumes) be the same size as the secondary volumes (the B volumes). 3. Redirect host I/O processing to the B volumes. Changes are recorded on the B volumes until the A volumes can be resynchronized with the B volumes. 4. When the A volumes are ready to return, pause the Global Mirror session between the B to C volumes. Direct this command to the same LSS that you used to start the session. This step is needed to later change the direction of the B volumes and restore the A volumes. Enter the pausegmir command at the dscli command prompt with the following parameters and variables:
Chapter 11. Recovery scenarios using Metro/Global Mirror
201
-lss 07 -session 1
See Pausing Global Mirror processing on page 149 for more information. 5. Suspend the B and C volume pairs. Because the site B volumes cannot be source volumes for Metro Mirror and Global Copy relationships, you must suspend the B volumes to C volumes so that B volumes to A volumes can be established. This step stops all incoming write I/Os to the affected B and C volume pairs and helps prepare for a later resynchronization of the A volumes with the current operating B volumes. Enter the pausepprc command at the dscli command prompt with the following parameters and variables:
dscli> pausepprc -dev IBM.2107-75ALA2P -remotedev IBM.2107-1831760 1200-125f:0700-075f
See Pausing a Metro Mirror relationship on page 127 for more information. 6. Establish paths between the local and intermediate sites that contain the B to A Metro Mirror volumes. Enter the mkpprcpath command at the dscli command prompt with the following parameters and variables:
dscli> mkpprcpath -dev IBM.2107-75ALA2P -remotedev IBM.2107-130165X -remotewwnn 5005076303FFC550 -srclss 61 -tgtlss 63 -consistgrp I0102:I0031 I0002:I0102
See Creating remote mirror and copy paths on page 120 for more information. 7. Issue a failback command to the B volumes (with A volumes as secondaries): Host I/O processing continues uninterrupted to the B volumes as the A volumes are made current. This command copies the changes back to the A volumes that were made to the B volumes while hosts are running on the B volumes. (In a DS CLI environment, where the local and intermediate sites use different management consoles, you have to use a different DS CLI session for the management console of the B volumes at the intermediate site.) Enter the failbackpprc command at the dscli command prompt with the following parameters and variables:
dscli> failbackpprc -dev IBM.2107-75ALA2P -remotedev IBM.2107-130165X -type gcp 1200-125f:1a00-1a5f
See Performing a failback recovery operation on page 135 for more information.
202
8. Wait for the copy process of the B to A volumes to reach full duplex (all out-of-sync tracks have completed copying). Host writes are no longer tracked. Monitor this activity by issuing queries to determine when the B to A volumes reach full duplex status (the number of out-of-sync tracks reaches zero). Enter the lspprc command at the dscli command prompt with the following parameters and variables:
dscli> lspprc -dev IBM.2107-75ALA2P -remotedev -remotedev IBM.2107-75ALA2P -l -fmt default 1200-125f:1a00-1a5f
See Viewing information about Metro Mirror relationships on page 136 for more information. 9. Quiesce host I/O processing to the B volumes. 10. Issue a failover command to the A to B volumes. This process ends the B to A volume relationships and establishes the A to B volume relationships. Enter the failoverpprc command at the dscli command prompt with the following parameters and variables:
dscli> failoverpprc -dev IBM.2107-130126X -remotedev IBM.2107-75ALA2P -type mmir 1a00-1a5f:1200-125f
See Performing a failover recovery operation on page 135 for more information. 11. Reestablish paths (that were disabled by the freeze operation) between the local site LSS and intermediate site LSS that contain the B to A Metro Mirror volume pairs. Enter the mkpprcpath command at the dscli command prompt with the following parameters and variables:
dscli> mkpprcpath -dev IBM.2107-130165X -remotedev IBM.2107-75ALA2P -remotewwnn 5005076303FFC550 -srclss 61 -tgtlss 63 -consistgrp I0102:I0031 I0002:I0102
See Reestablishing remote mirror and copy paths (site A to site B) on page 183 for more information. 12. Issue a failback command to the A to B volumes. This failback command completes the restore of the A to B volume relationship (the B volume becomes the target). The replication of the data starts immediately when the command is finished. Depending on how many tracks have changed during the disaster recovery test, resynchronization might take a long time. Note: At this point, you can resume host I/O processing to the local site if optimizing host availability is critical. However, new host I/O that is copied to the A volumes at the local site is not fully protected by Global Mirror processing until the Global Mirror operation is restored in step 15 on page 204. Enter the failbackpprc command at the dscli command prompt with the following parameters and variables:
dscli> failbackpprc -dev IBM.2107-130165X -remotedev IBM.2107-75ALA2P -type mmir 1a00-1a5f:1200-125f
Chapter 11. Recovery scenarios using Metro/Global Mirror
203
See Performing a failback recovery operation on page 135 for more information. 13. Reestablish Global Copy relationships between the B and C volumes with the Resync and Cascade options. When the failback operation has been done, Global Copy relationships can be recreated. Enter the mkpprc command at the dscli command prompt with the following parameters and variables:
dscli> mkpprc -dev IBM.2107-75ALA2P -remotedev IBM.2107-1831760 -type gcp -mode nocp -cascade 1200-125f:0700-075f
See Creating a Global Copy relationship on page 128 for more information. 14. Wait until the first pass of the Global Copy processing of the B and C volumes has completed. You can monitor this activity by querying the status of the B to C volume pairs in Global Copy relationships. Enter the lspprc command at the dscli command prompt with the following parameters and variables:
dscli> lspprc -dev IBM.2107-75ALA2P -remotedev IBM.2107-75ALA2P -fmt default 1200-125f:0700-075f -l
15. Resume Global Mirror. Now that the original infrastructure has been restored, you can resume the Global Mirror session. Enter the resumegmir command at the dscli command prompt with the following parameters and variables:
dscli> resumegmir -dev IBM.2107-75ALA2P -session 1 -lss 07
See Resuming Global Mirror processing on page 150 for more information. 16. Resume host I/O processing to the A volumes. Direct host I/O back to the A volumes in preparation for resuming host I/O on the A volumes. 17. Verify that consistency group are forming successfully. Enter the showgmir -metrics command at the dscli command prompt with the following parameters and variables:
dscli> showgmir -metrics 07
204
See Querying Global Mirror processing on page 149 for more information.
Failover and restore operations at the remote site during a planned outage
Use this process to perform failover and restore operations (DS8000 only) to your remote (C) site during a planned outage. Because Global Mirror is not used at the intermediate site, E volumes were not included in this scenario.
205
Note: For planned and unplanned outages at the local site and for certain disaster scenarios, GDPS HyperSwap can reset and restart systems using data from the B volumes following a failover operation. GDPS HyperSwap does this transparently (without any system outage for systems running at the intermediate site) through the use of a single script statement. Complete these steps for failover and restore operations at the remote site: (The steps in this scenario are examples.) 1. At the local site, ensure that data consistency is achieved between the A and B volume pairs. This process will help coordinate the A and B volumes consistency and allow consistent data to be copied to the C volumes at the remote site. You can use either one of the following methods: v Quiesce host I/O to the A volumes at the local site. v Freeze write activity to the Metro Mirror primary volumes. If you quiesce I/O processing to the A volumes at the local site, continue to step 2 on page 207. If you freeze write activity to the Metro Mirror primary volumes, perform the following steps: a. Freeze updates to the A volumes in Metro Mirror relationships across the affected LSSs. This process ensures that the B volumes will be consistent at the time of the freeze. (One command per LSS is required.)
freezepprc -dev IBM.2107-130165X -remotedev IBM.2107-75ALA2P 07:12
As a result of the freeze action, the following processing occurs: v I/O processing to the Metro Mirror volume pairs is temporarily queued during the time that updates are frozen. v The volume pairs that are associated with the source and target LSSs are suspended. During this time, the storage unit collects data that is sent to the A volumes that are in Metro Mirror relationships. v The established paths between the LSS pairs are disabled. b. If desired, you can view the state of the pair status at the local site after the freezepprc command has been processed. Enter the lspprc command at the dscli command prompt with the following parameters and variables:
dscli> lspprc -dev IBM.2107-130165X -remotedev IBM.2107-75ALA2P -fmt default 0700-075f
The following represents an example of the output: Notes: 1) The command example uses the command flag -fmt default. This command flag specifies that the output be set to a space-separated plain text table. 2) The following table format is presented for clarity. The actual report is not displayed in this format. 3) The report example represents the information that is reported on when you do not specify the -l parameter.
206
SourceLSS 07 07 07
Timeout (secs)
Critical Mode
c. Resume operations following a freeze. Issue the unfreezepprc command to allow I/O activity to resume for the specified volume pairs. Enter the unfreezepprc command at the dscli command prompt with the following parameters and variables: Note: This activity is sometimes referred to as a thaw operation.
dscli> unfreezepprc -dev IBM.2107-130165X -remotedev IBM.2107-75ALA2P 07:12
2. Verify that the last data from the local site has been included in a Global Mirror consistency group. Monitor this activity to determine when at least two consistency groups have formed since I/O processing was quiesced or freeze commands were issued to the local site. The Total Successful CG Count field from the query output displays this information. At this point, data on the B, C, and D volumes is consistent. Enter the showgmir -metrics command at the dscli command prompt with the following parameters and variables:
dscli> showgmir -metrics 10
207
3. End the Global Mirror session between the B and C volume pairs. Enter the rmgmir command at the dscli command prompt with the following parameters and variables:
dscli> rmgmir -quiet -lss 10 -session 31
See Ending Global Mirror processing (script mode) on page 151 or Ending Global Mirror processing (no script) on page 152 for more information. 4. Verify that the Global Mirror session has ended. Consistency groups will not be forming when Global Mirror processing is stopped. Enter the showgmir command at the dscli command prompt with the following parameters and variables:
dscli> showgmir -metrics 10
208
5. Delete the relationships between the B and C volume pairs between the intermediate and remote sites. This prepares for reversing the direction of the volume pair from the remote site to the intermediate site. The cascaded relationship ends as well. Note: When the relationships between the B and C volumes are deleted, the cascade parameter is disabled for the B volumes and the B volumes are no longer detected as being in cascaded relationships. Enter the rmpprc command at the dscli command prompt with the following parameters and variables:
dscli> rmpprc -quiet -dev IBM.IBM.2107-75ALA2P -remotedev IBM.2107-1831760 1200-125f:0700-075f CMUC00155I rmpprc: Remote Mirror and Copy volume pair 1200:0700 relationship successfully withdrawn. CMUC00155I rmpprc: Remote Mirror and Copy volume pair 1201:0701 relationship successfully withdrawn. CMUC00155I rmpprc: Remote Mirror and Copy volume pair 1202:0702 relationship successfully withdrawn.
6. Issue a failover command to the B and A volume pairs, with the Cascade option. With this process, updates are collected using the change recording feature, which allows for the resynchronization of the B and A volumes. Enter the failoverpprc command at the dscli command prompt with the following parameters and variables:
dscli> failoverpprc -dev IBM.2107-75ALA2P -remotedev IBM.2107-130165X -type gcp -cascade 1200-125f:1a00-1a5f
The resulting The following represents an example of the output: (a shortened version) is displayed:
CMUC00196I failoverpprc: Remote Mirror and Copy pair 1200:1A00 successfully reversed. CMUC00196I failoverpprc: Remote Mirror and Copy pair 1201:1A01 successfully reversed. CMUC00196I failoverpprc: Remote Mirror and Copy pair 1202:1A02 successfully reversed.
7. Create Global Copy relationships using the C and B volume pairs. Specify the NOCOPY option. You can specify the NOCOPY option with the following command because the B and C volumes contain exact copies of data. Enter the mkpprc command at the dscli command prompt with the following parameters and variables:
dscli> mkpprc -dev IBM.2107-1831760 -remotedev IBM.2107-75ALA2P -type gcp -mode nocp 0700-075f:1200-125f
8. Start I/O processing at the remote site. Continue in this mode until production is ready to return to the local site.
Chapter 11. Recovery scenarios using Metro/Global Mirror
209
9. When you are ready to return production to the local site, quiesce I/O processing at the remote site. This process is used to begin the transition back host I/O to the A volumes. 10. Wait for the number of out-of-sync tracks on the C and B volume to reach zero. You can monitor this activity by querying the status of the C and B volumes. As soon as the number of out-of-sync tracks reaches zero, all data has been copied and the data on the C and B volumes is equal. All updates that are needed to resynchronize the A volumes are recorded at the B volumes. Enter the lspprc command at the dscli command prompt with the following parameters and variables:
dscli> lspprc -dev IBM.2107-1831760 -remotedev IBM.2107-75ALA2P -l -fmt default 0700-075f
Reason -
Source LSS 07 07 07
Timeout (secs)
Crit Mode
11. Reestablish paths (that were disabled by the freeze operation) between the local site LSS and intermediate site LSS that contain the B to A Metro Mirror volume pairs. Enter the mkpprcpath command at the dscli command prompt with the following parameters and variables:
dscli> mkpprcpath -dev IBM.2107-130165X -remotedev IBM.2107-75ALA2P -remotewwnn 5005076303FFC550 -srclss 61 -tgtlss 63 -consistgrp I0102:I0031 I0002:I0102
See Creating remote mirror and copy paths on page 120 for more information. 12. Issue a failback command to the B to A volume pairs. This command copies the changes back to the A volumes that were made to the B volumes while hosts were running on the B volumes. The A volumes are now synchronized with the B volumes. (In a DS CLI environment, where the local and intermediate sites use different management consoles, you have to use a different DS CLI session for the management console of the B volumes at the intermediate site.) Enter the failbackpprc command at the dscli command prompt with the following parameters and variables:
210
See Performing a failback recovery operation on page 135 for more information. 13. Wait for the copy process of the B and A volume pairs to reach full duplex (all out-of-sync tracks have completed copying). You can monitor this activity by querying the status of the B and A volumes. As soon as the number of out-of-sync tracks reaches zero, all data has been copied and the data on the B and A volumes is equal. At this point, the data on volumes A, B, and C is equal. Enter the lspprc command at the dscli command prompt with the following parameters and variables:
dscli> lspprc -dev IBM.2107-75ALA2P -remotedev IBM.2107-130165X -l -fmt default 1200-125f:1a00-1a5f
14. Delete the Global Copy relationships between the C and B volume pairs between the intermediate and remote sites. Deleting the Global Copy relationships between the C to B volume pairs prepares for restoring to the original Global Copy relationships between the B to C volume pairs. Enter the lspprc command at the dscli command prompt with the following parameters and variables:
dscli> rmpprc -quiet -dev IBM.2107-1831760 -remotedev IBM.2107-75ALA2P 0700-075f:1200-125f
15. Issue a failover command to the A and B volume pairs. This process ends the Metro Mirror relationships between the B and A volumes and establishes the Metro Mirror relationships between the A and B volumes. Enter the failoverpprc command at the dscli command prompt with the following parameters and variables:
dscli> failoverpprc -dev IBM.2107-130165X -remotedev IBM.IBM.2107-75ALA2P -type mmir 1a00-1a5f:1200-125f
16. Reestablish paths (that were disabled by the freeze operation) between the local site LSS and the intermediate site LSS that contain the B to A Metro Mirror volume pairs. Enter the mkpprcpath command at the dscli command prompt with the following parameters and variables:
dscli> mkpprcpath -dev IBM.2107-130165X -remotedev IBM.2107-75ALA2P -remotewwnn 5005076303FFC550 -srclss 61 -tgtlss 63 -consistgrp I0102:I0031 I0002:I0102
Chapter 11. Recovery scenarios using Metro/Global Mirror
211
See Creating remote mirror and copy paths on page 120 for more information. 17. Issue a failback command to the A to B volumes. This command copies the changes back to the A volumes that were made to the B volumes in Metro Mirror relationships while hosts were running on the B volumes. The A volumes are now synchronized with the B volumes. (In a DS CLI environment, where the local and intermediate sites use different management consoles, you have to use a different DS CLI session for the management console of the B volumes at the intermediate site.) Enter the failbackpprc command at the dscli command prompt with the following parameters and variables: Enter the failbackpprc command at the dscli command prompt with the following parameters and variables:
dscli> failbackpprc -dev IBM.2107-130165X -remotedev IBM.2107-75ALA2P -type mmir 1a00-1a5f:1200-125f
See Performing a failback recovery operation on page 135 for more information. 18. Reestablish the B to C volume pairs in Global Copy relationships. Specify the NOCOPY option and the Cascade options. Enter the mkpprc command at the dscli command prompt with the following parameters and variables:
dscli> mkpprc -dev IBM.2107-75ALA2P -remotedev IBM.2107-1831760 -type gcp -mode nocp -cascade 1200-125f:0700-075f
See Creating a Global Copy relationship on page 128 for more information. 19. Use FlashCopy to create a copy of C source volumes to the D target volumes. Enter the mkflash command at the dscli command prompt with the following parameters and variables. This creates a backup copy of the consistency group.
dscli> mkflash -dev IBM.2107-1831760 -tgtinhibit -record -persist -nocp 1300-125f:1900-195f
212
See Creating FlashCopy relationships (Global Mirror setup) on page 157 for more information. 20. Resume Global Mirror processing. Enter the resumegmir command at the dscli command prompt with the following parameters and variables:
dscli> resumegmir -dev IBM.2107-75ALA2P -session 31 -lss
See Resuming Global Mirror processing on page 150 for more information. 21. Resume host I/O processing to the A volumes.
Failover and restore operations at the remote site during an unplanned outage
Use this process to perform failover and restore operations (DS8000 only) at your remote (C) site during an unplanned outage, using E volumes at the intermediate site.
213
As a result of the freeze action, the following processing occurs: v The established paths between the LSS pairs are deleted. v The volume pairs that are associated with the source and target LSSs are suspended. During this time, the storage unit collects data that is sent to the A volumes that are in Metro Mirror relationships. v I/O processing to the Metro Mirror volume pairs is temporarily queued during the time that updates are frozen. b. Resume operations following a freeze. Issue the unfreezepprc command to allow I/O activity to resume for the specified volume pairs. Enter the unfreezepprc command at the dscli command prompt with the following parameters and variables: Note: This activity is sometimes referred to as a thaw operation.
dscli> unfreezepprc -dev IBM.2107-130165X -remotedev IBM.2107-75ALA2P 07:12
2. Verify that the last data from the local site has been included in a Global Mirror consistency group. Monitor this activity by querying the B and C volumes to determine when at least two successful consistency groups have formed. The Total Successful CG Count field from the query output displays this information. Note: When you use the showgmir command with the -metrics parameter, you can monitor the progress of the consistency group formation. When Global Mirror is running, the number of consistency groups is steadily growing each time you issue the showgmir command. Enter the showgmir -metrics command at the dscli command prompt with the following parameters and variables:
dscli> showgmir -metrics 10
214
3. Stop the Global Mirror session from which the B and C volume pairs are included. Enter the rmgmir command at the dscli command prompt with the following parameters and variables:
dscli> rmgmir -quiet -lss 10 -session 31
See Ending Global Mirror processing (script mode) on page 151 or Ending Global Mirror processing (no script) on page 152 for more information. 4. Verify that the Global Mirror session has ended. Consistency groups do not form when Global Mirror processing is stopped. See Querying Global Mirror processing on page 149 for more information. Enter the showgmir command at the dscli command prompt with the following parameters and variables:
dscli> showgmir 10
Master Count -
Master Session ID -
Copy State -
Fatal Reason -
Current Time -
215
CG Time -
Successful CG Percentage -
Master ID -
Subordinate Count -
5. Delete the Global Copy relationships between the B and C volume pairs at the intermediate and remote sites. When the relationships between the B and C volumes are deleted, the cascade parameter is disabled for the B volumes and the B volumes are no longer detected as being in cascaded relationships. Enter the rmpprc command at the dscli command prompt with the following parameters and variables:
dscli> rmpprc -quiet -dev IBM.2107-75ALA2P -remotedev IBM.2107-1831760 1200-125f:0700-075f
See Deleting a Metro Mirror relationship on page 129 for more information. 6. Issue a failover command to the B volumes with the Cascade option. With this process, updates are collected using the change recording feature, which allows the later resynchronization of the B to A volumes. Enter the failoverpprc command at the dscli command prompt with the following parameters and variables:
dscli> failoverpprc -dev IBM.2107-75ALA2P -remotedev IBM.2107-130165X -type gcp -cascade 1200-125f:1a00-1a5f
See Performing a failover recovery operation on page 135 for more information. 7. Create Global Copy relationships using the C and B volume pairs. Specify the NOCOPY option. Enter the mkpprc command at the dscli command prompt with the following parameters and variables: Note: You can specify the NOCOPY option with the following commands because the B and C volume pairs contain exact copies of data.
dscli> mkpprc -dev IBM.2107-1831760 -remotedev IBM.2107-75ALA2P -type gcp -mode nocp 0700-075f:1200-125f
216
See Creating a Global Copy relationship on page 128 for more information. 8. Use FlashCopy to create a copy of B source volumes to E target volumes. Specify the following options: Persistent and Start Change Recording. This creates a backup copy of the consistency group. Enter the mkflash command at the dscli command prompt with the following parameters and variables:
dscli> mkflash -dev IBM.2107-75ALA2P 1200-125f:1900-195f -tgtinhibit -record -persist -nocp
See Creating FlashCopy relationships (Global Mirror setup) on page 157 for more information. 9. Create a Global Mirror session using the C volumes. Enter the mksession command at the dscli command prompt with the following parameters and variables:
dscli> mksession -lss 07 1
See Creating the Global Mirror session on page 158 for more information. 10. Start the Global Mirror session from which the C, B and E volumes are included. Enter the mkgmir command at the dscli command prompt with the following parameters and variables:
dscli> mkgmir -lss 07 -session 1
See Starting Global Mirror processing on page 151 for more information. 11. Verify that the Global Mirror session has started. Enter the showgmir command at the dscli command prompt with the following parameters and variables:
dscli> showgmir 07
Master Count 1
Copy State
Fatal Reason
217
Subordinate Count 0
12. Allow the I/O to run and monitor the formation of the consistency groups. Enter the showgmir command at the dscli command prompt with the following parameters and variables:
dscli> showgmir 07
Master Count 1
Copy State
Fatal Reason
Subordinate Count 0
13. When the local site is ready to return, issue a failback command to the B and A volumes. Before the applications are started at the local site, data at the local site has to be copied from the intermediate site. Issue the failbackpprc command to start copying data from the B volumes at the intermediate site to the A volumes at the local site while hosts are running on the B volumes. When all data is copied, the A volumes are synchronized with the B volumes. Note: In a DS CLI environment, where the local and intermediate sites use different management consoles, you have to use a different DS CLI session for the management console of the B volumes at the intermediate site. Enter the failbackpprc command at the dscli command prompt with the following parameters and variables:
dscli> failbackpprc -dev IBM.2107-130165X -remotedev IBM.2107-75ALA2P -type gcp -cascade 1200-125f:1a00-1a5f
218
CMUC00197I failbackpprc: Remote Mirror and Copy pair 1200:1A00 successfully failed back. CMUC00197I failbackpprc: Remote Mirror and Copy pair 1201:1A01 successfully failed back. CMUC00197I failbackpprc: Remote Mirror and Copy pair 1202:1A02 successfully failed back.
See Performing a failback recovery operation on page 135 for more information. 14. Wait for the copy operation of the B and A volumes to reach full duplex status (all out-of-sync tracks have completed copying). You can monitor this activity by querying the status of the B and A volume pairs. Enter the lspprc command at the dscli command prompt with the following parameters and variables:
dscli> lspprc -dev IBM.2107-75ALA2P -remotedev IBM.2107-130165X -l -fmt default 1200-125f
Reason -
Source LSS 12 12 12
Timeout (secs)
Crit Mode
15. End I/O processing to the C volumes.. Enter the rmgmir command at the dscli command prompt with the following parameters and variables:
dscli> rmgmir -quiet -lss 07 -session 1
See Ending Global Mirror processing (script mode) on page 151 or Ending Global Mirror processing (no script) on page 152 for more information. 16. Verify that at least two consistency groups have formed. Assuming that the consistency groups formed successfully, the A, B, C, and E volumes contain consistent data. (Data at the remote site is consistent to the last successful consistency group formed by the master storage unit.)See Querying Global Mirror processing on page 149 for more information. Enter the showgmir -metrics command at the dscli command prompt with the following parameters and variables:
dscli> showgmir -metrics 07
219
17. End the Global Mirror session between the C, B, and E volumes. Enter the rmgmir command at the dscli command prompt with the following parameters and variables:
dscli> rmgmir -quiet -lss 07 -session 1
See Ending Global Mirror processing (script mode) on page 151 or Ending Global Mirror processing (no script) on page 152 for more information. 18. Verify that the Global Mirror session that includes the C, B, and E volumes has stopped. Enter the showgmir command at the dscli command prompt with the following parameters and variables. showgmir 07 The following represents an example of the output:
Total Failed CG Count 23 Total Successful CG Count 139 Successful CG Percentage 85 Failed CG after Last Success 0 Last Successful CG Form Time 02/20/ 2006 11:33:56 MST Coord. Time (milliseconds) 50 CG Interval Time (seconds) 0
220
See Querying Global Mirror processing on page 149 for more information. 19. At the remote site, remove the C volumes (or Global Copy secondary volumes) from the Global Mirror session that includes the C, B, and E volumes. Enter the chsession command at the dscli command prompt with the following parameters and variables:
dscli> chsession -dev BM.2107-75ALA2P -action remove -volume 1200-125f -lss 07 1
See Removing volumes from a session (Global Mirror) on page 159 for more information. 20. Delete the Global Copy relationships between the C to B volumes between the intermediate and remote sites. Deleting the Global Copy relationships between the C to B volume pairs prepares for restoring to the original Global Copy relationships between the B to C volume pairs. The cascaded relationship ends, as well. Enter the rmpprc command at the dscli command prompt with the following parameters and variables:
dscli> rmpprc -quiet -dev IBM.2107-1831760 -remotedev IBM.2107-75ALA2P 0700-075f:1200-125f CMUC00155I rmpprc: Remote Mirror and Copy volume pair 0700:1200 relationship successfully withdrawn. CMUC00155I rmpprc: Remote Mirror and Copy volume pair 0701:1201 relationship successfully withdrawn. CMUC00155I rmpprc: Remote Mirror and Copy volume pair 0702:1202 relationship successfully withdrawn.
See Deleting a Metro Mirror relationship on page 129 for more information. 21. Issue a failover command to the A to B volumes. This process ends the Metro Mirror relationships between the B and A volumes and establishes the
221
Metro Mirror relationships between the A and B volume pairs. Enter the failoverpprc command at the dscli command prompt with the following parameters and variables:
failoverpprc -dev IBM.2107-130165X -remotedev IBM.2107-75ALA2P -type mmir 1a00-1a5f:1200-125f
22. Reestablish paths that were disabled by the freeze operation between the local site LSS and intermediate site LSS that contain the B to A Metro Mirror volume pairs. Enter the mkpprcpath command at the dscli command prompt with the following parameters and variables:
dscli> mkpprcpath -dev IBM.2107-75ALA2P -remotedev IBM.2107-130165X -remotewwnn 5005076303FFC550 -srclss 61 -tgtlss 63 -consistgrp I0102:I0031 I0002:I0102
See Reestablishing remote mirror and copy paths (site A to site B) on page 183 for more information. 23. Issue a failback command to the A and B volumes. This command copies the changes back to the A volumes that were made to the B volumes in Metro Mirror relationships while hosts were running on the B volumes. The A volumes are now synchronized with the B volumes. (In a DS CLI environment, where the local and intermediate sites use different management consoles, you have to use a different DS CLI session for the management console of the B volumes at the intermediate site.) Enter the failbackpprc command at the dscli command prompt with the following parameters and variables:
dscli> failbackpprc -dev IBM.2107-130165X -type mmir 1a00-1a5f:1200-125f -remotedev IBM.2107-75ALA2P
24. Establish the B and C volume pairs in Global Copy relationships. Enter the mkpprc command at the dscli command prompt with the following parameters and variables:
dscli> mkpprc -dev IBM.2107-75ALA2P -remotedev IBM.2107-1831760 -type gcp -mode nocp -cascade 1200-125f:0700-075f
222
See Creating a Global Copy relationship on page 128 for more information. 25. Optionally, you can issue a FlashCopy operation to create a backup copy of all the C, B, and E volumes from which the last consistency group was created. If you need to preserve data from the set of volumes (or consistency group) that was created using the E volumes, allow the background copy from the FlashCopy process to complete before you continue to the next step, which describes removing the FlashCopy relationship between the B to E volume pairs. Enter the mkflash command at the dscli command prompt with the following parameters and variables:
dscli> mkflash -dev IBM.2107-75ALA2P 1200-125f:1900-195f -tgtinhibit -record -persist -nocp
See Creating FlashCopy relationships (Global Mirror setup) on page 157 for more information. 26. Delete the FlashCopy relationship between the B and E volume pairs to end the relationship at the intermediate site. Enter the rmflash command at the dscli command prompt with the following parameters and variables:
dscli> rmflash -dev IBM.2107-75ALA2P -quiet 1200-125f:1900-195f
See Removing FlashCopy relationships on page 161 for more information. 27. Resume Global Mirror at the intermediate site. This starts Global Mirror processing for the B, C , and D volumes. Enter the resumegmir command at the dscli command prompt with the following parameters and variables:
dscli> resumegmir -dev IBM.2107-75ALA2P -session 10 -lss 31
See Resuming Global Mirror processing on page 150 for more information. 28. Resume I/O on A volumes. 29. Verify that consistency groups are forming successfully. Enter the showgmir -metrics command at the dscli command prompt with the following parameters and variables:
dscli> showgmir -metrics 10
223
Successful CG Percentage 97
See Querying Global Mirror processing on page 149 for more information.
Using forced failover and failback during a planned Metro/Global Mirror outage
Use this process to perform failover operations (DS8000 only) from the local (A) site to the intermediate (B) site during a planned outage.
224
The command examples use the following site identifiers: v Site A is identified as 2107-130165X v Site B is identified as 2107-75ALA2P v Site C is identified as 2107-183176O
As a result of the freeze action, the following processing occurs: v The established Remote Mirror and Copy paths between the LSS pairs are deleted. v The volume pairs that are associated with the source and target LSSs are suspended. During this time, the storage unit collects data that is sent to the A volumes in Metro Mirror relationships. v I/O to the Metro Mirror volume pairs is temporarily queued. b. Resume operations following a freeze. This operationalso called a thaw operationallows I/O processing to resume for the specified volume pairs. Enter the unfreezepprc command at the dscli command prompt with the following parameters and variables:
dscli> unfreezepprc -dev IBM.2107-130165X -remotedev IBM.2107-75ALA2P 07:12
225
2.
Create a relationship from the C volumes to the A volumes, using the -force and -cascade parameters. No validation is done at site C to determine that site C is a secondary of site A. Note: For this step to succeed you must ensure that the Remote Mirror and Copy paths between all Global Mirror source and target pairs and between the Master and subordinate storage units have been created. Enter the failoverpprc command at the dscli prompt with the following parameters and variables:
dscli>failoverpprc -dev storage_image_ID -remotedev storage_image_ID -type gcp -cascade -force SourceVolumeID:TargetVolumeID
Example
dscli> failoverpprc -dev IBM.2107-183176O -remotedev IBM.2107-130165X -type gcp -cascade -force 1200-125f:1A00-1A5f
3. End the Metro Mirror relationship between the A to B volumes at the B volumes intermediate site. Enter the rmpprc command at the dscli command prompt with the following parameters and variables:
dscli>rmpprc -dev storage_image_ID -remotedev storage_image_ID -at tgt -unconditional -quiet TargetVolumeID
Example
dscli>rmpprc -dev IBM.2107-75ALA2P -remotedev IBM.2107-130165X -at tgt -unconditional -quiet 1200-125f
4. Redirect host I/O processing to the B volumes. Changes are recorded on the B volumes until the A volumes can be resynchronized with the B volumes. Also, Global Mirror continues to operate from site B to site C. Note: You can run in this configuration until the A site has recovered and you want to restore operations there. Begin the next step after the A volumes have been recovered and youre still in production on the B volumes. 5. Copy changes from site C back to site A, using the -force parameter. Host I/O processing continues uninterrupted to the B volumes while the A volumes are made current. (In other words, the data is still flowing from B to C, so any changes made to B are being transferred to C and therefore will get from C to A.) This command copies the changes back to the A volumes that were made to the B volumes while hosts were running on the A volumes. (In a DS CLI environment, where the local and remote sites are not using the same management console, you have to use the management console of the remote site.) Enter the failbackpprc command at the dscli command prompt with the following parameters and variables:
dscli>failbackpprc -dev storage_image_ID -remotedev storage_image_ID -type gcp -force SourceVolumeID:TargetVolumeID
Example
dscli> failbackpprc -dev IBM.2107-183176O -remotedev IBM.2107-130165X -type gcp -force 1200-125f:1A00-1A5f
226
6. Wait for the first pass copy to complete from site C to site A. Issue the lspprc command if you want to monitor this activity and determine when the first pass status changes to True. Enter the lspprc command at the dscli command prompt with the following parameters and variables:
dscli>lspprc -dev storage_image_ID -remotedev storage_image_ID -l SourceVolumeID:TargetVolumeID
Example
dscli>lspprc -dev IBM.2107-183176O -remotedev IBM.2107-75130165X 1200-125f:1A00-1A5f -l
The following represents the first two lines of the report generated by the lspprc command:
SourceLSS Timeout (secs) Critical Mode Disabled First Pass Status True
ID
State
Reason -
IBM.2107- Copy 183176O Pend/2101: ing IBM.2107130165X /2101 IBM.2107- Copy 183176O Pend/2100: ing IBM.2107130165X /2100
Global Copy
Disabled
True
7. Modify Global Copy relationships between the B and C volume pairs. Specify the NOCOPY option and initiate incremental resynchronization without initialization. Enter the mkpprc command at the dscli command prompt with the following parameters and variables:
dscli>mkpprc -dev storage_image_ID -remotedev storage_image_ID -type gcp -incrementalresync enablenoinit -mode nocp SourceVolumeID:TargetVolumeID
Example
dscli> mkpprc -dev IBM.2107-75ALA2P -remotedev IBM2107-183176O -type gcp -incrementalresync enablenoinit -mode nocp 1200-125f:1A00-1A5f
8. Begin the process to return production to site A. First, the Global Mirror session at site B must be stopped.
227
Enter the rmgmir command at the dscli command prompt with the following parameters and variables:
dscli>rmgmir -dev storage_image_ID -lss LSS_ID -session session_ID Master_Control_Path_LSS_ID:Subordinate_Control_Path_LSS_ID
Example
dscli> rmgmir -dev IBM.2107-75ALA2P -quiet -lss 07 -session 1
9. Verify that the Global Mirror session has ended. Enter the showgmir command at the dscli command prompt with the following parameters and variables:
dscli> showgmir -dev storage_image_ID LSS_ID
Example
dscli> showgmir -dev IBM.2107-75ALA2P 10
In the resulting report, the output indicates in the Copy State field whether the session has stopped. 10. Suspend the B to C volume pairs. This step stops the transfer of data between the B and C volume pairs. Enter the pausepprc command at the dscli command prompt with the following parameters and variables:
dscli> pausepprc -dev storage_image_ID_-remotedev storage_image_ID SourceVolumeID:TargetVolumeID
Example
dscli> pausepprc -dev IBM.2107-75ALA2P -remotedev IBM.2107-183176O 1200-125f:0700-075f
11. Wait until all of the out-of-sync (OOS) tracks have drained from the C and A volume pairs and the OOS count at C is zero. If you want to monitor this process, issue the lspprc command to query the status of the C to A volume pairs in Global Copy relationships. Enter the lspprc command at the dscli command prompt with the following parameters and variables:
dscli>lspprc -dev storage_image_ID -remotedev storage_image_ID -l SourceVolumeID:TargetVolumeID
Example
dscli> lspprc -dev IBM.2107-183186O -remotedev IBM.2107-75ALA2P 1200-125f:0700-075f -l
12. Suspend the C and A volume pairs. Enter the pausepprc command at the dscli command prompt with the following parameters and variables:
dscli> pausepprc -dev storage_image_ID_-remotedev storage_image_ID SourceVolumeID:TargetVolumeID
Example
dscli> pausepprc -dev IBM.2107-183176O -remotedev IBM.2107-130165X 1200-125f:0700-075f
228
CMUC00157I pausepprc: Remote Mirror and Copy volume pair 1200:0700 relationship successfully paused. CMUC00157I pausepprc: Remote Mirror and Copy volume pair 1201:0701 relationship successfully paused.
13. End the Global Copy relationship between the B to C volumes at the C remote volume site. Enter the rmpprc command at the dscli command prompt with the following parameters and variables:
dscli>rmpprc -dev storage_image_ID -remotedev storage_image_ID -at tgt -unconditional -quiet TargetVolumeID
Example
dscli>rmpprc -dev IBM.2107-75ALA2P -remotedev IBM.2107-183176O -at tgt -unconditional -quiet 1A00-1A5f
14. Reverse the direction by making the site A volumes a suspended primary site. Use the failoverpprc command for A to C with cascading allowed and specifying Global Copy mode. Enter the failoverpprc command at the dscli command prompt with the following parameters and variables:
dscli>failoverpprc -dev storage_image_ID -remotedev storage_image_ID -type gcp -cascade SourceVolumeID:TargetVolumeID
Example
dscli> failoverpprc -dev IBM.2107-130165X -remotedev IBM.2107-183176O -type gcp -cascade 1A00-1A5f:1200-125f
15. Resynchronize the A to C relationships. Enter the failbackpprc command at the dscli command prompt with the following parameters and variables:
dscli>failbackpprc -dev storage_image_ID -remotedev storage_image_ID -type gcp SourceVolumeID:TargetVolumeID
Example
dscli> failoverpprc -dev IBM.2107-130165X -remotedev IBM.2107-183176O -type gcp -cascade 1A00-1A5f:1200-125f
16. Establish Metro Mirror relationships between the A to B volumes using the incremental resynchronization function and the override option. As a result of this step, the relationship verification is bypassed and the incremental resynchronization function stops. The system determines which data to copy, so a full volume copy is bypassed and only changes are copied from the A to B Metro Mirror volume pairs. Enter the mkpprc command at the dscli command prompt with the following parameters and variables:
dscli>mkpprc -remotedev storage_image_ID -dev storage_image_ID type mmir -mode nocp -incrementalresync override SourceVolumeID:TargetVolumeID
Example
dscli>mkpprc -remotedev IBM.2107-75ALA2P -dev IBM.2107-130165X -type mmir -mode nocp -incrementalresync override 2100-2107:2100-2107
Chapter 11. Recovery scenarios using Metro/Global Mirror
229
17. Start incremental resynchronization with the initialization option on the B volumes in Metro Mirror relationships. Issue the mkpprc command at the intermediate site with the -incrementalresync enable parameter specified. Enter the mkpprc command at the dscli command prompt with the following parameters and variables:
dscli>mkpprc -dev storage_image_ID -remotedev storage_image_ID -type mmir -mode nocp -incrementalresync enable SourceVolumeID:TargetVolumeID
Example
dscli>mkpprc -dev IBM.2107-130165X -remotedev 2107-75ALA2P -type mmir -mode nocp -incrementalresync enable 2100-2107:2100-2107
18. Wait for the B to A volume pairs to reach the full duplex state. Issue the lspprc command if you want to monitor this activity. Enter the lspprc command at the dscli command prompt with the following parameters and variables:
dscli>lspprc -dev storage_image_ID -remotedev storage_image_ID -l SourceVolumeID:TargetVolumeID
Example
dscli>lspprc -dev IBM.2107-75ALA2P -remotedev IBM.2107-130165X 1200-125f:1A00-1A5f -l
19. Start the Global Mirror session at the local site. Enter the mkgmir command at the dscli command prompt with the following parameters and variables (from the local site):
dscli>mkgmir -dev storage_image_ID -lss LSS_ID -session session_ID
Example
dscli>mkgmir -remotedev IBM.2107-75ALA2P -lss 07 -session 31
When this step is processed, the Metro/Global Mirror operations are running from site B to site A to site C. You are now ready to transition back to your original configuration, where site A is your production site. 20. Quiesce host I/O processing to the B volumes. 21. Suspend the B to A processing. Enter the pausepprc command at the dscli command prompt with the following parameters and variables:
dscli> pausepprc -dev storage_image_ID_-remotedev storage_image_ID SourceVolumeID:TargetVolumeID
Example
dscli> pausepprc -dev IBM.2107-75ALA2P -remotedev IBM.2107-130165X 1200-125f:0700-075f
230
CMUC00157I pausepprc: Remote Mirror and Copy volume pair 1200:0700 relationship successfully paused. CMUC00157I pausepprc: Remote Mirror and Copy volume pair 1201:0701 relationship successfully paused.
22. Create a relationship from the C volumes to the A volumes using the failoverpprc command with the -force and -cascade parameters specified. Enter the failoverpprc command at the dscli prompt with the following parameters and variables:
dscli>failoverpprc -dev storage_image_ID -remotedev storage_image_ID -type gcp -cascade -force SourceVolumeID:TargetVolumeID
Example
dscli> failoverpprc -dev IBM.2107-183176O -remotedev IBM.2107-75ALA2P -type gcp -cascade -force 1200-125f:1A00-1A5f
23. End the Global Copy relationships between the B and A volume pairs at the local site. Enter the rmpprc command at the dscli command prompt with the following parameters and variables:
dscli>rmpprc -dev storage_image_ID -remotedev storage_image_ID -at tgt -unconditional -quiet TargetVolumeID
Example
dscli>rmpprc -dev IBM.2107-130165X -remotedev IBM.2107-75ALA2P -at tgt -unconditional -quiet 1A00-1A5f
24. Resume host I/O processing to the A volumes. 25. Copy changes from site C back to site A, using the -force parameter. Enter the failbackpprc command at the dscli command prompt with the following parameters and variables:
dscli>failbackpprc -dev storage_image_ID -remotedev storage_image_ID -type gcp -force SourceVolumeID:TargetVolumeID
Example
dscli> failoverpprc -dev IBM.2107-183176O -remotedev IBM.2107-130165X -type gcp -force 1A00-1A5f:1200-125f
Note: Global Mirror processing continues to operate with site A volumes to site C volumes. 26. Wait for the first pass copy to complete from site C to site B. Issue the lspprc command if you want to monitor this activity and determine when the first pass status changes to True.
Chapter 11. Recovery scenarios using Metro/Global Mirror
231
Enter the lspprc command at the dscli command prompt with the following parameters and variables:
dscli>lspprc -dev storage_image_ID -remotedev storage_image_ID -l SourceVolumeID:TargetVolumeID
Example
dscli>lspprc -dev IBM.2107-183176O -remotedev IBM.2107-75ALA2P 1200-125f:1A00-1A5f -l
27. Modify Global Copy relationships between the A and C volume pairs. Specify the NOCOPY option and initiate incremental resynchronization without initialization. Enter the mkpprc command at the dscli command prompt with the following parameters and variables:
dscli>mkpprc -dev storage_image_ID -remotedev storage_image_ID -type gcp -incrementalresync enablenoinit -mode nocp SourceVolumeID:TargetVolumeID
Example
dscli> mkpprc -dev IBM.2107-130165X -remotedev IBM2107-183176O -type gcp -incrementalresync enablenoinit -mode nocp 1200-125f:1A00-1A5f
28. Begin the process to include your B site in the 3-site Metro/Global Mirror configuration with production on site A. The Global Mirror session between the A, C, and D volumes must be stopped. Enter the rmgmir command at the dscli command prompt with the following parameters and variables:
dscli>rmgmir -dev storage_image_ID -lss LSS_ID -session session_ID Master_Control_Path_LSS_ID:Subordinate_Control_Path_LSS_ID
Example
dscli> rmgmir -dev IBM.2107-130165X -quiet -lss 07 -session 2
29. Suspend the A to C volume pairs. Enter the pausepprc command at the dscli command prompt with the following parameters and variables:
dscli> pausepprc -dev storage_image_ID_-remotedev storage_image_ID SourceVolumeID:TargetVolumeID
Example
dscli> pausepprc -dev IBM.2107-130165X -remotedev IBM.2107-183176O 1200-125f:0700-075f
30. End the Global Copy relationships between the A to C volumes at the remote site. Enter the rmpprc command at the dscli command prompt with the following parameters and variables:
dscli>rmpprc -dev storage_image_ID -remotedev storage_image_ID -at tgt -unconditional -quiet TargetVolumeID
232
Example
dscli>rmpprc -dev IBM.2107-183176O -remotedev IBM.2107-130165X -at tgt -unconditional -quiet 1A00-1A5f
31. Wait until all of the out-of-sync (OOS) tracks have drained from the C to B volume pairs and the OOS count is zero. If you want to monitor this process, issue the lspprc command to query the status of the C to B volume pairs in Global Copy relationships. Enter the lspprc command at the dscli command prompt with the following parameters and variables:
dscli>lspprc -dev storage_image_ID -remotedev storage_image_ID -l SourceVolumeID:TargetVolumeID
Example
dscli> lspprc -dev IBM.2107-75ALA2P -remotedev IBM.2107-183186O 1200-125f:0700-075f -l
32. Suspend the C to B volume pairs. Enter the pausepprc command at the dscli command prompt with the following parameters and variables:
dscli> pausepprc -dev storage_image_ID_-remotedev storage_image_ID SourceVolumeID:TargetVolumeID
Example
dscli> pausepprc -dev IBM.2107-183176O -remotedev IBM.2107-75ALA2P 1200-125f:0700-075f
33. Reverse the direction by making the site B volumes a suspended primary site. Use the failoverpprc command for B to C specifying the Global Copy mode and that cascading is allowed. Enter the failoverpprc command at the dscli command prompt with the following parameters and variables:
dscli>failoverpprc -dev storage_image_ID -remotedev storage_image_ID -type gcp -cascade SourceVolumeID:TargetVolumeID
Example
dscli> failoverpprc -dev IBM.2107-75ALA2P -remotedev IBM.2107-183176O -type gcp -cascade 1A00-1A5f:1200-125f
34. Resynchronize the C to B relationships. Enter the failbackpprc command at the dscli command prompt with the following parameters and variables:
dscli>failbackpprc -remotedev storage_image_ID -dev storage_image_ID -type gcp SourceVolumeID:TargetVolumeID
233
Example
dscli> failoverpprc -remotedev IBM.2107-183176O -dev IBM.2107-75ALA2P -type gcp -cascade 1A00-1A5f:1200-125f
35. Establish Metro Mirror relationships between the A to B volumes using the incremental resynchronization function and the override option. As a result of this step, the relationship verification is bypassed and the incremental resynchronization function stopped. The system determines which data to copy, so a full volume copy is bypassed and only changes are copied from the A to B Metro Mirror volume pairs. Enter the mkpprc command at the dscli command prompt with the following parameters and variables:
dscli>mkpprc -dev storage_image_ID -remotedev storage_image_ID type mmir -mode nocp -incrementalresync override SourceVolumeID:TargetVolumeID
Example
dscli>mkpprc -dev IBM.2107-130165X -remotedev IBM.2107-75ALA2P -type mmir -mode nocp -incrementalresync override 2100-2107:2100-2107
36. Start incremental resynchronization with the initialization option on the A volumes in the Metro Mirror relationships. Use the mkpprc command at the local site with the -incrementalresync enable parameter specified. Enter the mkpprc command at the dscli command prompt with the following parameters and variables:
dscli>mkpprc -dev storage_image_ID -remotedev storage_image_ID -type mmir -mode nocp -incrementalresync enable SourceVolumeID:TargetVolumeID
Example
dscli>mkpprc -dev IBM.2107-130165X -remotedev IBM.2107-75ALA2P -type mmir -mode nocp -incrementalresync enable 2100-2107:2100-2107
37. Wait for A to B to reach the full duplex state and for the first pass of the Global Copy processing of the B and C volumes to complete. You can monitor this activity by entering the lspprc command to query the status of the B to C volume pairs in Global Copy relationships. Enter the lspprc command at the dscli command prompt with the following parameters and variables:
dscli> lspprc -dev IBM.2107-75ALA2P -remotedev IBM.2107-75ALA2P -fmt default 1200-125f:0700-075f -l
38. Start Global Mirror at the intermediate site. Now that the original infrastructure has been restored, you can resume the Global Mirror session. Enter the mkgmir command at the dscli command prompt with the following parameters and variables:
dscli> mkgmir -dev IBM.2107-75ALA2P -session 1 -lss 07
234
39. Verify that consistency groups are forming successfully. Enter the showgmir -metrics command at the dscli command prompt with the following parameters and variables:
dscli> showgmir -metrics 07
Using forced failover and failback during an unplanned Metro/Global Mirror outage
Use this process to perform failover operations (DS8000 only) from the local (A) site to the intermediate (B) site during an unplanned outage.
235
As a result of the freeze action, the following processing occurs: v The established Remote Mirror and Copy paths between the LSS pairs are deleted. v The volume pairs that are associated with the source and target LSSs are suspended. During this time, the storage unit collects data that is sent to the A volumes in Metro Mirror relationships. v I/O to the Metro Mirror volume pairs is temporarily queued. b. Resume operations following a freeze. This operationalso called a thaw operationallows I/O processing to resume for the specified volume pairs. Enter the unfreezepprc command at the dscli command prompt with the following parameters and variables:
236
2. Create a relationship from the C volumes to the A volumes, using the -force and -cascade parameters. No validation is done at site C to determine that site C is a secondary of site A. Note: For this step to succeed you must ensure that the Remote Mirror and Copy paths between all Global Mirror source and target pairs and between the Master and subordinate storage units have been created. Enter the failoverpprc command at the dscli prompt with the following parameters and variables:
dscli>failoverpprc -dev storage_image_ID -remotedev storage_image_ID -type gcp -cascade -force SourceVolumeID:TargetVolumeID
Example
dscli> failoverpprc -dev IBM.2107-183176O -remotedev IBM.2107-130165X -type gcp -cascade -force 1200-125f:1A00-1A5f
3. End the Metro Mirror relationship between the A to B volumes at the B volumes intermediate site. Enter the rmpprc command at the dscli command prompt with the following parameters and variables:
dscli>rmpprc -dev storage_image_ID -remotedev storage_image_ID -at tgt -unconditional -quiet TargetVolumeID
Example
dscli>rmpprc -dev IBM.2107-75ALA2P -remotedev IBM.2107-130165X -at tgt -unconditional -quiet 1200-125f
4. Redirect host I/O processing to the B volumes. Changes are recorded on the B volumes until the A volumes can be resynchronized with the B volumes. Also, Global Mirror continues to operate from site B to site C. Note: You can run in this configuration until the A site has recovered and you want to restore operations there. Begin the next step after the A volumes have been recovered and youre still in production on the B volumes. 5. Copy changes from site C back to site A, using the -force parameter. Host I/O processing continues uninterrupted to the B volumes while the A volumes are made current. (In other words, the data is still flowing from B to C, so any changes made to B are being transferred to C and therefore will get from C to A.) This command copies the changes back to the A volumes that were made to the B volumes while hosts were running on the A volumes. (In a DS CLI environment, where the local and remote sites are not using the same management console, you have to use the management console of the remote site.) Enter the failbackpprc command at the dscli command prompt with the following parameters and variables:
Chapter 11. Recovery scenarios using Metro/Global Mirror
237
Example
dscli> failbackpprc -dev IBM.2107-183176O -remotedev IBM.2107-130165X -type gcp -force 1200-125f:1A00-1A5f
6. Wait for the first pass copy to complete from site C to site A. Issue the lspprc command if you want to monitor this activity and determine when the first pass status changes to True. Enter the lspprc command at the dscli command prompt with the following parameters and variables:
dscli>lspprc -dev storage_image_ID -remotedev storage_image_ID -l SourceVolumeID:TargetVolumeID
Example
dscli>lspprc -dev IBM.2107-183176O -remotedev IBM.2107-75130165X 1200-125f:1A00-1A5f -l
The following represents the first two lines of the report generated by the lspprc command:
SourceLSS Timeout (secs) Critical Mode Disabled First Pass Status True
ID
State
Reason -
IBM.2107- Copy 183176O Pend/2101: ing IBM.2107130165X /2101 IBM.2107- Copy 183176O Pend/2100: ing IBM.2107130165X /2100
Global Copy
Disabled
True
7. Modify Global Copy relationships between the B and C volume pairs. Specify the NOCOPY option and initiate incremental resynchronization without initialization. Enter the mkpprc command at the dscli command prompt with the following parameters and variables:
dscli>mkpprc -dev storage_image_ID -remotedev storage_image_ID -type gcp -incrementalresync enablenoinit -mode nocp SourceVolumeID:TargetVolumeID
Example
dscli> mkpprc -dev IBM.2107-75ALA2P -remotedev IBM2107-183176O -type gcp -incrementalresync enablenoinit -mode nocp 1200-125f:1A00-1A5f
238
CMUC00153I mkpprc: Remote Mirror and Copy volume pair relationship 1200:1A00 successfully created. CMUC00153I mkpprc: Remote Mirror and Copy volume pair relationship 1201:1A01 successfully created.
8. Begin the process to return production to site A. First, the Global Mirror session at site B must be stopped. Enter the rmgmir command at the dscli command prompt with the following parameters and variables:
dscli>rmgmir -dev storage_image_ID -lss LSS_ID -session session_ID Master_Control_Path_LSS_ID:Subordinate_Control_Path_LSS_ID
Example
dscli> rmgmir -dev IBM.2107-75ALA2P -quiet -lss 07 -session 1
9. Verify that the Global Mirror session has ended. Enter the showgmir command at the dscli command prompt with the following parameters and variables:
dscli> showgmir -dev storage_image_ID LSS_ID
Example
dscli> showgmir -dev IBM.2107-75ALA2P 10
In the resulting report, the output indicates in the Copy State field whether the session has stopped. 10. Suspend the B to C volume pairs. This step stops the transfer of data between the B and C volume pairs. Enter the pausepprc command at the dscli command prompt with the following parameters and variables:
dscli> pausepprc -dev storage_image_ID_-remotedev storage_image_ID SourceVolumeID:TargetVolumeID
Example
dscli> pausepprc -dev IBM.2107-75ALA2P -remotedev IBM.2107-183176O 1200-125f:0700-075f
11. Wait until all of the out-of-sync (OOS) tracks have drained from the C and A volume pairs and the OOS count at C is zero. If you want to monitor this process, issue the lspprc command to query the status of the C to A volume pairs in Global Copy relationships. Enter the lspprc command at the dscli command prompt with the following parameters and variables:
dscli>lspprc -dev storage_image_ID -remotedev storage_image_ID -l SourceVolumeID:TargetVolumeID
Example
dscli> lspprc -dev IBM.2107-183186O -remotedev IBM.2107-75ALA2P 1200-125f:0700-075f -l
12. Suspend the C and A volume pairs. Enter the pausepprc command at the dscli command prompt with the following parameters and variables:
dscli> pausepprc -dev storage_image_ID_-remotedev storage_image_ID SourceVolumeID:TargetVolumeID
Chapter 11. Recovery scenarios using Metro/Global Mirror
239
Example
dscli> pausepprc -dev IBM.2107-183176O -remotedev IBM.2107-130165X 1200-125f:0700-075f
13. End the Global Copy relationship between the B to C volumes at the C remote volume site. Enter the rmpprc command at the dscli command prompt with the following parameters and variables:
dscli>rmpprc -dev storage_image_ID -remotedev storage_image_ID -at tgt -unconditional -quiet TargetVolumeID
Example
dscli>rmpprc -dev IBM.2107-75ALA2P -remotedev IBM.2107-183176O -at tgt -unconditional -quiet 1A00-1A5f
14. Reverse the direction by making the site A volumes a suspended primary site. Use the failoverpprc command for A to C with cascading allowed and specifying Global Copy mode. Enter the failoverpprc command at the dscli command prompt with the following parameters and variables:
dscli>failoverpprc -dev storage_image_ID -remotedev storage_image_ID -type gcp -cascade SourceVolumeID:TargetVolumeID
Example
dscli> failoverpprc -dev IBM.2107-130165X -remotedev IBM.2107-183176O -type gcp -cascade 1A00-1A5f:1200-125f
15. Resynchronize the A to C relationships. Enter the failbackpprc command at the dscli command prompt with the following parameters and variables:
dscli>failbackpprc -dev storage_image_ID -remotedev storage_image_ID -type gcp SourceVolumeID:TargetVolumeID
Example
dscli> failoverpprc -dev IBM.2107-130165X -remotedev IBM.2107-183176O -type gcp -cascade 1A00-1A5f:1200-125f
16. Establish Metro Mirror relationships between the A to B volumes using the incremental resynchronization function and the override option. As a result of this step, the relationship verification is bypassed and the incremental resynchronization function stops. The system determines which data to copy, so a full volume copy is bypassed and only changes are copied from the A to B Metro Mirror volume pairs. Enter the mkpprc command at the dscli command prompt with the following parameters and variables:
240
dscli>mkpprc -remotedev storage_image_ID -dev storage_image_ID type mmir -mode nocp -incrementalresync override SourceVolumeID:TargetVolumeID
Example
dscli>mkpprc -remotedev IBM.2107-75ALA2P -dev IBM.2107-130165X -type mmir -mode nocp -incrementalresync override 2100-2107:2100-2107
17. Start incremental resynchronization with the initialization option on the B volumes in Metro Mirror relationships. Issue the mkpprc command at the intermediate site with the -incrementalresync enable parameter specified. Enter the mkpprc command at the dscli command prompt with the following parameters and variables:
dscli>mkpprc -dev storage_image_ID -remotedev storage_image_ID -type mmir -mode nocp -incrementalresync enable SourceVolumeID:TargetVolumeID
Example
dscli>mkpprc -dev IBM.2107-130165X -remotedev 2107-75ALA2P -type mmir -mode nocp -incrementalresync enable 2100-2107:2100-2107
18. Wait for the B to A volume pairs to reach the full duplex state. Issue the lspprc command if you want to monitor this activity. Enter the lspprc command at the dscli command prompt with the following parameters and variables:
dscli>lspprc -dev storage_image_ID -remotedev storage_image_ID -l SourceVolumeID:TargetVolumeID
Example
dscli>lspprc -dev IBM.2107-75ALA2P -remotedev IBM.2107-130165X 1200-125f:1A00-1A5f -l
19. Start the Global Mirror session at the local site. Enter the mkgmir command at the dscli command prompt with the following parameters and variables (from the local site):
dscli>mkgmir -dev storage_image_ID -lss LSS_ID -session session_ID
Example
dscli>mkgmir -remotedev IBM.2107-75ALA2P -lss 07 -session 31
When this step is processed, the Metro/Global Mirror operations are running from site B to site A to site C. You are now ready to transition back to your original configuration, where site A is your production site. 20. Quiesce host I/O processing to the B volumes. 21. Suspend the B to A processing. Enter the pausepprc command at the dscli command prompt with the following parameters and variables:
dscli> pausepprc -dev storage_image_ID_-remotedev storage_image_ID SourceVolumeID:TargetVolumeID
Example
Chapter 11. Recovery scenarios using Metro/Global Mirror
241
22. Create a relationship from the C volumes to the A volumes using the failoverpprc command with the -force and -cascade parameters specified. Enter the failoverpprc command at the dscli prompt with the following parameters and variables:
dscli>failoverpprc -dev storage_image_ID -remotedev storage_image_ID -type gcp -cascade -force SourceVolumeID:TargetVolumeID
Example
dscli> failoverpprc -dev IBM.2107-183176O -remotedev IBM.2107-75ALA2P -type gcp -cascade -force 1200-125f:1A00-1A5f
23. End the Global Copy relationships between the B and A volume pairs at the local site. Enter the rmpprc command at the dscli command prompt with the following parameters and variables:
dscli>rmpprc -dev storage_image_ID -remotedev storage_image_ID -at tgt -unconditional -quiet TargetVolumeID
Example
dscli>rmpprc -dev IBM.2107-130165X -remotedev IBM.2107-75ALA2P -at tgt -unconditional -quiet 1A00-1A5f
24. Resume host I/O processing to the A volumes. 25. Copy changes from site C back to site A, using the -force parameter. Enter the failbackpprc command at the dscli command prompt with the following parameters and variables:
dscli>failbackpprc -dev storage_image_ID -remotedev storage_image_ID -type gcp -force SourceVolumeID:TargetVolumeID
Example
dscli> failoverpprc -dev IBM.2107-183176O -remotedev IBM.2107-130165X -type gcp -force 1A00-1A5f:1200-125f
Note: Global Mirror processing continues to operate with site A volumes to site C volumes.
242
26. Wait for the first pass copy to complete from site C to site B. Issue the lspprc command if you want to monitor this activity and determine when the first pass status changes to True. Enter the lspprc command at the dscli command prompt with the following parameters and variables:
dscli>lspprc -dev storage_image_ID -remotedev storage_image_ID -l SourceVolumeID:TargetVolumeID
Example
dscli>lspprc -dev IBM.2107-183176O -remotedev IBM.2107-75ALA2P 1200-125f:1A00-1A5f -l
27. Modify Global Copy relationships between the A and C volume pairs. Specify the NOCOPY option and initiate incremental resynchronization without initialization. Enter the mkpprc command at the dscli command prompt with the following parameters and variables:
dscli>mkpprc -dev storage_image_ID -remotedev storage_image_ID -type gcp -incrementalresync enablenoinit -mode nocp SourceVolumeID:TargetVolumeID
Example
dscli> mkpprc -dev IBM.2107-130165X -remotedev IBM2107-183176O -type gcp -incrementalresync enablenoinit -mode nocp 1200-125f:1A00-1A5f
28. Begin the process to include your B site in the 3-site Metro/Global Mirror configuration with production on site A. The Global Mirror session between the A, C, and D volumes must be stopped. Enter the rmgmir command at the dscli command prompt with the following parameters and variables:
dscli>rmgmir -dev storage_image_ID -lss LSS_ID -session session_ID Master_Control_Path_LSS_ID:Subordinate_Control_Path_LSS_ID
Example
dscli> rmgmir -dev IBM.2107-130165X -quiet -lss 07 -session 2
29. Suspend the A to C volume pairs. Enter the pausepprc command at the dscli command prompt with the following parameters and variables:
dscli> pausepprc -dev storage_image_ID_-remotedev storage_image_ID SourceVolumeID:TargetVolumeID
Example
dscli> pausepprc -dev IBM.2107-130165X -remotedev IBM.2107-183176O 1200-125f:0700-075f
30. End the Global Copy relationships between the A to C volumes at the remote site.
Chapter 11. Recovery scenarios using Metro/Global Mirror
243
Enter the rmpprc command at the dscli command prompt with the following parameters and variables:
dscli>rmpprc -dev storage_image_ID -remotedev storage_image_ID -at tgt -unconditional -quiet TargetVolumeID
Example
dscli>rmpprc -dev IBM.2107-183176O -remotedev IBM.2107-130165X -at tgt -unconditional -quiet 1A00-1A5f
31. Wait until all of the out-of-sync (OOS) tracks have drained from the C to B volume pairs and the OOS count is zero. If you want to monitor this process, issue the lspprc command to query the status of the C to B volume pairs in Global Copy relationships. Enter the lspprc command at the dscli command prompt with the following parameters and variables:
dscli>lspprc -dev storage_image_ID -remotedev storage_image_ID -l SourceVolumeID:TargetVolumeID
Example
dscli> lspprc -dev IBM.2107-75ALA2P -remotedev IBM.2107-183186O 1200-125f:0700-075f -l
32. Suspend the C to B volume pairs. Enter the pausepprc command at the dscli command prompt with the following parameters and variables:
dscli> pausepprc -dev storage_image_ID_-remotedev storage_image_ID SourceVolumeID:TargetVolumeID
Example
dscli> pausepprc -dev IBM.2107-183176O -remotedev IBM.2107-75ALA2P 1200-125f:0700-075f
33. Reverse the direction by making the site B volumes a suspended primary site. Use the failoverpprc command for B to C specifying the Global Copy mode and that cascading is allowed. Enter the failoverpprc command at the dscli command prompt with the following parameters and variables:
dscli>failoverpprc -dev storage_image_ID -remotedev storage_image_ID -type gcp -cascade SourceVolumeID:TargetVolumeID
Example
dscli> failoverpprc -dev IBM.2107-75ALA2P -remotedev IBM.2107-183176O -type gcp -cascade 1A00-1A5f:1200-125f
244
Enter the failbackpprc command at the dscli command prompt with the following parameters and variables:
dscli>failbackpprc -remotedev storage_image_ID -dev storage_image_ID -type gcp SourceVolumeID:TargetVolumeID
Example
dscli> failoverpprc -remotedev IBM.2107-183176O -dev IBM.2107-75ALA2P -type gcp -cascade 1A00-1A5f:1200-125f
35. Establish Metro Mirror relationships between the A to B volumes using the incremental resynchronization function and the override option. As a result of this step, the relationship verification is bypassed and the incremental resynchronization function stopped. The system determines which data to copy, so a full volume copy is bypassed and only changes are copied from the A to B Metro Mirror volume pairs. Enter the mkpprc command at the dscli command prompt with the following parameters and variables:
dscli>mkpprc -dev storage_image_ID -remotedev storage_image_ID type mmir -mode nocp -incrementalresync override SourceVolumeID:TargetVolumeID
Example
dscli>mkpprc -dev IBM.2107-130165X -remotedev IBM.2107-75ALA2P -type mmir -mode nocp -incrementalresync override 2100-2107:2100-2107
36. Start incremental resynchronization with the initialization option on the A volumes in the Metro Mirror relationships. Use the mkpprc command at the local site with the -incrementalresync enable parameter specified. Enter the mkpprc command at the dscli command prompt with the following parameters and variables:
dscli>mkpprc -dev storage_image_ID -remotedev storage_image_ID -type mmir -mode nocp -incrementalresync enable SourceVolumeID:TargetVolumeID
Example
dscli>mkpprc -dev IBM.2107-130165X -remotedev IBM.2107-75ALA2P -type mmir -mode nocp -incrementalresync enable 2100-2107:2100-2107
37. Wait for A to B to reach the full duplex state and for the first pass of the Global Copy processing of the B and C volumes to complete. You can monitor this activity by entering the lspprc command to query the status of the B to C volume pairs in Global Copy relationships. Enter the lspprc command at the dscli command prompt with the following parameters and variables:
dscli> lspprc -dev IBM.2107-75ALA2P -remotedev IBM.2107-75ALA2P -fmt default 1200-125f:0700-075f -l
245
38. Start Global Mirror at the intermediate site. Now that the original infrastructure has been restored, you can resume the Global Mirror session. Enter the mkgmir command at the dscli command prompt with the following parameters and variables:
dscli> mkgmir -dev IBM.2107-75ALA2P -session 1 -lss 07
39. Verify that consistency groups are forming successfully. Enter the showgmir -metrics command at the dscli command prompt with the following parameters and variables:
dscli> showgmir -metrics 07
246
required to provide the consistency. The action depends on the current status of the FlashCopy, where the sequence numbers and the revertible state are important. The following options are available to help you determine the action to take: v Discard changes (revert to a previous consistent state). Assume that the sequence numbers of the FlashCopy relationships are different and the copy process has not started for all the volumes. In this case, the FlashCopy data is inconsistent and cannot be used. You must revert changes, which removes all not-committed data from the FlashCopy target and reverts (or is restored) to the last consistency group. Note: You can discard changes to FlashCopy target volumes only if you have modified the FlashCopy relationship using the setflashrevertible command, which changes the Revertible value to Enabled. When you revert a FlashCopy relationship that is in a revertible state, ensure that you specify its associated FlashCopy sequence number. v Commit all FlashCopy relationships in the consistency group to the current level. Assume that the sequence numbers are all equal and there is a mix of revertible and nonrevertible volumes and the copy process to the FlashCopy target volumes has occurred but not completed for some volumes. In this case, the FlashCopy target volumes are usable and the process has to be committed manually. This is done by issuing a commit command to all revertible FlashCopy relationships to commit data to the FlashCopy target volumes and create data consistency between the source and target volumes. The commit process specifies that the last consistency group that has been created by the Global Mirror session is committed to the current state, and reverting to the previous consistency group state is no longer possible. Note: You can commit changes to FlashCopy target volumes only if you have modified the FlashCopy relationship using the setflashrevertible command, which changes the Revertible value to Enabled.
247
Notes: v The following assumptions are made before you initiate the steps in this scenario: You have established all your Remote Mirror and Copy paths before you establish your pairs or initiate any of the incremental resynchronization process. If the paths are not established first, an error condition might result. You have established your Metro Mirror volume pairs to use the incremental resynchronization function on each of the primary volumes when you configured your Metro/Global Mirror configuration. You have specified the -mode full parameter for each of these volume pairs. Notes: v The command parameters and options that are used in this scenario are examples. v Some of the query output is presented in table format for clarity. The actual report is not displayed in this format. v The output for some commands differs depending on the storage unit from which you issue the command. Complete these steps for the recovery operation: 1. Enable the incremental resynchronization option for the A to B Metro Mirror volume pairs. If this is the first attempt to establish the volume pairs, specify -mode full as shown in the mkpprc command example. Otherwise, specify -mode nocp. Enter the mkpprc command at the dscli command prompt with the following parameters and variables:
dscli> mkpprc -dev IBM.2107-130165X -remotedev IBM.2107-75ALA2P -type mmir -mode full -incrementalresync enable 2100-2107:2100-2107
See Creating a Metro Mirror relationship on page 124 for more information. 2. Pause (suspend) all A to B Metro Mirror volume pairs. Some (but not all) volume pairs might have been suspended with the outage of the intermediate site. Note: If the consistency group function is being used, the automation application (such as GPDS) issued the freezepprc command and all devices are suspended. Enter the pausepprc command at the dscli command prompt with the following parameters and variables:
dscli> pausepprc -dev IBM.2107-130165X -remotedev IBM.2107-75ALA2P -unconditional -at src 2100-2107
248
CMUC00157I pausepprc: Remote Mirror and Copy volume pair 2100 relationship successfully paused. CMUC00157I pausepprc: Remote Mirror and Copy volume pair 2101 relationship successfully paused.
See Pausing a Metro Mirror relationship on page 127 for more information. Notes: a. With the volume pairs suspended, updates to the A volumes are marked in the change recording and out-of-synchronization bitmaps on the Metro Mirror A volumes at the local site. b. The master storage unit might have been in the process of using FlashCopy to copy the consistency group to the D volumes when the outage occurred and the consistency group formation was not able to complete. If this is the case, you must verify the consistency group formation. See Querying Global Mirror processing on page 149 for more information. 3. Issue a failover command to the C to B volumes at the remote site, specifying the -cascade option: With the loss of the B volumes at the intermediate site, the state of the C volumes is changed from secondary duplex pending (or suspended) to Suspended Host Source when the command processes. Updates are collected in out-of-sync bitmaps. Enter the failoverpprc command at the dscli command prompt with the following parameters and variables:
dscli> failoverpprc -dev IBM.2107-1831760 -remotedev IBM.2107-75ALA2P -type gcp -cascade 2100-2107:2100-2107
See Performing a failover recovery operation on page 135 for more information. 4. After the failover operation, you can view the status of the volumes to determine the state of the volumes: From the remote site, enter the lspprc command at the dscli command prompt with the following parameters and variables:
dscli> lspprc -l 2100-2107
ID 2100:2100
Reason -
2101:2101
Disabled
Enabled
Date Suspended -
Source LSS 21
249
Date Suspended -
Source LSS 21
5. Attempt to clean up any surviving components of Global Mirror at the intermediate site, if needed. a. End the Global Mirror session at the master storage unit. Enter the rmgmir command at the dscli command prompt with the following parameters and variables (from the intermediate site):
dscli> rmgmir -dev IBM.2107-75ALA2P -quiet -lss 20 -session 31
b. End the Global Mirror session at the subordinate storage units. Reissue the command if the Global Mirror session does not stop because of subordinate storage units still associated to the master storage unit. See Ending a Global Mirror session on page 160 for more information. 6. Verify the Global Mirror consistency group formation: If the intermediate site outage occurred in the middle of consistency group formation, you must determine whether the FlashCopy operations must be committed or reverted. Enter the lsflash command at the dscli command prompt with the following parameters and variables.
dscli> lsflash -l 2100-2107
See Viewing information about FlashCopy relationships on page 107 for more information. The following represents an example of the output:
Sequence Num 44357D55 44357D55 Active Copy Disabled Disabled
ID 2100:2300 2101:2301
SrcLSS 21 21
Revertible Disabled
Date Created
DateSynced
Fri Mar 24 Thu Apr 09:45:54 06 MST 2006 13:42:58 MST 2006 Fri Mar 24 Thu Apr 09:45:54 06 MST 2006 13:42:58 MST 2006
Disabled
Enabled
Disabled
Disabled
1525879
7. Establish Global Copy relationships using the A and C volume pairs with the Incremental Resynchronization recover option: Enter the mkpprc command at the dscli command prompt with the following parameters and variables:
250
dscli> mkpprc -dev IBM.2107-130165X -remotedev IBM.2107-1831760 -type gcp -incrementalresync recover 2100-2107:2100-2107
See Creating a Global Copy relationship on page 128 for more information. The following represents an example of the output:
CMUC00153I mkpprc: Remote Mirror and Copy volume pair relationship 2100:2100 successfully created. CMUC00153I mkpprc: Remote Mirror and Copy volume pair relationship 2101:2101 successfully created.
Notes: a. The C volumes were primary suspended volumes that had Global Copy relationships with the B volumes, which were in Metro Mirror relationships with the A volumes. b. The Incremental Resynchronization function that is running on the A volumes is stopped. The tracks of data in the change recording and out-of-synchronization bitmaps are merged and copied from the A volumes to the C volumes. 8. Wait for the first pass of Global Copy processing to complete between the A to C volumes: You can monitor this activity by querying the status of the volumes. From the local site, enter the lspprc command at the dscli command prompt with the following parameters and variables:
dscli> lspprc dev IBM.2107-130165X remotedev IBM.2107-1831760 2101:2101 2100:2101
ID
State
Reason -
IBM.2107- Copy 130165X Pend/2101: ing IBM.21071831760 /2101 IBM.2107- Copy 130165X Pend/2100: ing IBM.21071831760 /2100
Global Copy
Disabled
True
9. When the first pass of Global Copy processing is completed, start the Global Mirror session on the A volumes. The master storage unit begins forming consistency groups for the specified Global Mirror session. Global Mirror runs from the local site to the remote site until the intermediate site is ready to resume operation. Enter the mkgmir command at the dscli command prompt with the following parameters and variables (from the local site):
mkgmir -dev IBM.2107-130165X -lss 07 -session 31
251
See Starting Global Mirror processing on page 151 for more information. When the intermediate site has been recovered, the volumes at the intermediate site must be resynchronized with the local volumes. During the outage, data was written to the volumes at the local site. After the intermediate site is recovered, the volumes at the intermediate site must be resynchronized. The former Metro/Global Mirror configuration must be cleaned up to reestablish it back to its original configuration. A host connection to the storage unit at the intermediate site is required. 10. Perform the following steps in preparation for a failback operation from the remote site to the intermediate site: a. End the Metro Mirror relationship between the A to B volumes at the intermediate site. Enter the rmpprc command at the dscli command prompt with the following parameters and variables:
dscli> rmpprc -quiet -dev IBM.2107-75ALA2P -unconditional -at tgt 2100-2107 -remotedev IBM.2107-130165X
See Deleting a Metro Mirror relationship on page 129 for more information. b. Pause (suspend) the B to C volume pairs if they are not already suspended. You can query the status of the volumes for this determination. From the remote site, enter the lspprc command at the dscli command prompt with the following parameters and variables:
dscli> lspprc dev IBM.2107-130165X remotedev IBM.2107-1831760 2101:2101 2100:2101
The following represents an example of the output: See Pausing a Metro Mirror relationship on page 127 for more information.
SourceLSS Timeout (secs) Critical Mode First Pass Status True
Reason -
Global Copy
Disabled
True
If necessary, clean up the former Global Mirror configuration at the intermediate site using the following two steps: c. End the Global Mirror session from the master storage unit at the intermediate site.
252
Note: If the Global Mirror session was successfully stopped at the time of the outage, this step might not be necessary and it might generate an error message when the command processes. Enter the rmgmir command at the dscli command prompt with the following parameters and variables (from the intermediate site):
dscli> rmgmir -dev IBM.2107-1301261 -quiet -lss 20 -session 31
See Ending Global Mirror processing (script mode) on page 151 or Ending Global Mirror processing (no script) on page 152 for more information. d. If required, stop the Global Mirror session that is running from any of the subordinates. Enter the rmgmir command at the dscli command prompt with the following parameters and variables:
dscli> rmgmir -quiet -lss 20 -session 31
See Ending Global Mirror processing (script mode) on page 151 or Ending Global Mirror processing (no script) on page 152 for more information. 11. From the remote site, perform a failback Global Copy operation between the C to B volumes: When the failbackpprc command processes, data will be copied from the remote site to the intermediate site. Specify the C volumes as the sources and the B volumes as targets with the failback command. Note: Ensure the availability of the paths from the remote site to the intermediate site with the lspprcpath command. Enter the failbackpprc command at the dscli command prompt with the following parameters and variables:
dscli> failbackpprc -dev IBM.2107-1831760 -remotedev IBM.2107-75ALA2P -type gcp -cascade 2100-2107:2100-2107
See Performing a failback recovery operation on page 135 for more information. 12. Wait for the first pass to complete between the C volumes at the remote site and the B volumes at the intermediate site: You can monitor this activity by querying the status of the volumes. Enter the lspprc command at the dscli command prompt with the following parameters and variables: (from the intermediate site)
dscli> lspprc -dev IBM.2107-1831760 -remotedev IBM.2107-75ALA2P -l -fullid -fmt default 2100-2107
See Querying Global Mirror processing on page 149 for more information.
253
Reason -
Copy Pending
Global Copy
Disabled
Enabled
Date Suspended -
Source LSS
Timeout (secs)
Crit Mode
IBM.2107- Unknown Disabled 1831760 /21 IBM.2107- Unknown Disabled 1831760 /21
Invalid
True
Disabled
Disabled
13. Start the Incremental Resynchronization function without the initialization option on the A volumes: This step allows you to force a resynchronization later between primary (A) volumes at the local site and the volumes at the intermediate site to ensure all updates are copied. Enter the mkpprc command at the dscli command prompt with the following parameters and variables:
dscli> mkpprc -dev IBM.2107-130165X -remotedev IBM.2107-75ALA2P -type gcp -incrementalresync enablenoinit -mode nocp 2100-2107:2100-2107
See Creating a Metro Mirror relationship on page 124 for more information. You are now ready to restore the original configuration Metro/Global Mirror without interrupting production. 14. Stop the Global Mirror session between the A and C volumes between the local and remote sites. During this transition time, the data on the D volumes in FlashCopy relationships might be consistent but not current until the transition is complete. Enter the rmgmir command at the dscli command prompt with the following parameters and variables:
dscli> rmgmir -dev IBM.2107-130165X -quiet -lss 21 -session 31
254
See Ending Global Mirror processing (script mode) on page 151 or Ending Global Mirror processing (no script) on page 152 for more information. 15. Allow the resynchronization of the C to B volumes to complete by performing the following steps: a. Pause (suspend) the A to C volume pairs that were established in Global Copy mode. Enter the pausepprc command at the dscli command prompt with the following parameters and variables:
dscli> pausepprc -dev IBM.2107-130165X -remotedev IBM.2107-1831760 2100-2107:2100-2107
See Pausing a Metro Mirror relationship on page 127 for more information. b. Wait for data to be copied from the C volumes at the remote site to the B volumes at the intermediate site. Enter the lspprc command at the dscli command prompt with the following parameters and variables:
dscli> lspprc -dev IBM.2107-1831760 -remotedev IBM.2107-75ALA2P -l -fmt default 2100-2107
See Querying Global Mirror processing on page 149 for more information. The following represents an example of the output:
Out of Sync Tracks 0 Tgt Read Disabled Src Cascade Enabled
Reason -
Copy Pending
Global Copy
Disabled
Enabled
Date Suspended -
Source LSS
Timeout (secs)
Crit Mode
IBM.2107- Unknown Disabled 1831760 /21 IBM.2107- Unknown Disabled 1831760 /21
Invalid
True
Disabled
Disabled
255
c. End the A and C Global Copy relationship at the remote site. Enter the rmpprc command at the dscli command prompt with the following parameters and variables:
dscli> rmpprc -quiet -dev IBM.2107-1831760 -unconditional -at tgt 2100-2107
See Removing the Global Copy pair relationship on page 163 for more information. Notes: 1) The value for the -dev parameter must be the remote site server (site C). 2) The management console must be able to communicate with the remote server for this command to process successfully. When the command processes, the C volumes at the remote site are no longer the secondary volumes in a Global Copy relationship with the A volumes. This process allows for a later failback operation for the B to C volume pairs. The Global Copy relationship between the A to C volumes was stopped at the remote site, which did not affect the status of the A volumes at the local site. The updates on the A volumes continue until the volumes are again fully synchronized. 16. After data on the C volumes has been copied to the B volumes, pause (suspend) the C to B volume pairs. This step is required before a failback operation can be issued between the B to C volumes, which requires the C volumes to be paused. Enter the pausepprc command at the dscli command prompt with the following parameters and variables:
dscli> pausepprc -dev IBM.2107-1831760 -remotedev IBM.2107-75ALA2P 2100-2107:2100-2107
See Pausing a Metro Mirror relationship on page 127 for more information. 17. At the intermediate site, issue a failover Global Copy operation to the B to C volumes, with the -cascade option: The B volumes are primary suspended volumes. Enter the failoverpprc command at the dscli command prompt with the following parameters and variables:
dscli> failoverpprc -dev IBM.2107-75ALA2P -remotedev IBM.2107-1831760 -type gcp -cascade 2100-2107:2100-2107
256
See Performing a failover recovery operation on page 135 for more information. 18. At the intermediate site, perform a failback Global Copy operation for the B to C volumes, with the -cascade option: Enter the failbackpprc command at the dscli command prompt with the following parameters and variables:
dscli> failbackpprc -dev IBM.2107-75ALA2P -remotedev IBM.2107-1831760 -type gcp -cascade 2100-2107:2100-2107
See Performing a failback recovery operation on page 135 for more information. 19. Establish Metro Mirror relationships between the A to B volumes using the incremental resynchronization function and the override option. As a result, the relationship verification is bypassed and the incremental resynchronization function stopped. The change recording and out-of-synchronization bitmaps that were monitored and tracked on the primary Metro Mirror volumes are merged to determine the data to copy from the A to B Metro Mirror volume pairs. A full volume copy is bypassed and only changes are copied from the A volumes to the B volumes. Enter the mkpprc command at the dscli command prompt with the following parameters and variables:
dscli> mkpprc -dev IBM.2107-130165X -remotedev IBM.2107-75ALA2P -type mmir -mode nocp -incrementalresync override 2100-2107:2100-2107
See Creating a Metro Mirror relationship on page 124 for more information. 20. At local site, start the incremental resynchronization with the initialization option on the A volumes in Metro Mirror relationships. The first pass of copying data between the A to B volumes starts (without a full copy). The B to C volumes data copying can also be in the first pass resulting from the failback operation. Enter the mkpprc command at the dscli command prompt with the following parameters and variables:
dscli> mkpprc -dev IBM.2107-130165X -remotedev IBM.2107-1301261 -type mmir -mode nocp -incrementalresync enable 2100-2107:2100-2107
See Creating a Metro Mirror relationship on page 124 for more information. 21. Wait until the first pass of the A to B volume pairs to reach full duplex: You can monitor this activity by querying the status of the A to B volumes. As soon as the number of out-of-sync tracks reaches zero, all data has been
Chapter 11. Recovery scenarios using Metro/Global Mirror
257
copied and the data on the A to B volumes is equal. Global Mirror processing starts to form consistency groups when the status of the A to B volumes is full duplex. See Viewing information about Metro Mirror relationships on page 136 for more information. 22. Start the Global Mirror session at the intermediate site: Enter the mkgmir command at the dscli command prompt with the following parameters and variables (from the local site):
mkgmir -dev IBM.2107-75ALA2P -lss 07 -session 31
See Starting Global Mirror processing on page 151 for more information.
Results
Your original configuration is restored.
258
259
In the following example, lsrank is the command name. -dev and -l are command parameters. IBM.210775FA120 is the sub parameter for the -dev parameter, and R1, R2, and R3 are a list of command parameters. dscli>lsrank -dev IBM.2107-75FA120 -l R1 R2 R3
Syntax diagrams
Main path line
Begins on the left with double arrowheads (>>) and ends on the right with two arrowheads facing each other (><). If a diagram is longer than one line, each line to be continued ends with a single arrowhead (>) and the next line begins with a single arrowhead. Read the diagrams from left-to-right, top-to-bottom, following the main path line. Keyword
dscli
Represents the name of a command, flag, parameter, or argument. A keyword is not in italics. Spell a keyword exactly as it is shown in the syntax diagram. Required keywords
mkuser -pw password -group group_name [ . . . ] User Name -
Indicate the parameters or arguments you must specify for the command. Required keywords appear on the main path line. Mutually exclusive required keywords are stacked vertically. Optional keywords
-h
-help
-?
Indicate the parameters or arguments you can choose to specify for the command. Optional keywords appear below the main path line. Mutually exclusive optional keywords are stacked vertically. Variable
variable
Represents the value you need to supply for a parameter or argument, such as a file name, user name, or password. Variables are in italics.
260
Special characters
- (minus) or / (slash) sign Flags are prefixed with a - (minus) sign. Flags define the action of a command or modify the operation of a command. You can use multiple flags, followed by parameters, when you issue a command. [ ] square brackets Optional values are enclosed in square brackets. { } braces Required or expected values are enclosed in braces. | vertical bar A vertical bar indicates that you have a choice between two or more options or arguments. For example, [ a | b ] indicates that you can choose a, b, or nothing. Similarly, { a | b } indicates that you must choose either a or b. ... ellipsis An ellipsis signifies the values that can be repeated on the command line or multiple values or arguments. dash A dash indicates that, as an alternative to entering the parameter, a value or values are supplied from stdin. stdin varies depending on your settings and is available when you are using single-shot or script mode. This option is not available when using interactive mode.
List of commands
This is a complete list of the command-line interface commands, alphabetized by command name.
Command applykey Type application key and version Description The applykey command applies the licensed machine code (LMC) activation keys for a storage server. You can enter the LMC keys manually, or you can import the keys from an XML file. The file that contains the LMC keys must be downloaded from an IBM Web site. The chauthpol command changes the general attributes of an authentication policy, such as the policy name and the activation state. General attributes are attributes that apply to every policy type. To change specific attributes that only apply to some policy types, use the setauthpol command. This command is not supported on DS6000 models. The chckdvol command changes the name of a count key data (CKD) base volume.
| | | | | | | | | | |
chauthpol
chckdvol
storage configuration
261
Command chextpool
Description The chextpool command modifies attributes that are associated with an extent pool. The chfbvol command is used to change the name or capacity of a fixed block volume. The chhostconnect command modifies a SCSI host port configuration. The chkeymgr command updates the attributes of the key server entry on the storage complex. This command is not supported on DS6000 models. The chlcu command modifies a logical control unit. The chlss command modifies a logical subsystem. The chpass command changes the password expiration time, and the number of login attempts for a basic user account. The chrank command assigns an unassigned rank to an extent pool, or removes an assigned rank from a extent pool. This command can also be used to change an assigned rank to an unassigned rank. The chsession command allows you to modify a Global Mirror session. The chsestg command changes the space-efficient storage attributes for an extent pool. This command is not supported on DS6000 models. The chsi command modifies a storage image. You can use it to set characteristics such as online or offline state, name, and description. The chsp command modifies a storage complex for items such as notification of the Simple Network Management Protocol (SNMP) traps and e-mail problem notification lists in a storage complex. This command is not supported on DS6000 models. The chsu command modifies a storage unit.
chfbvol
storage configuration
chhostconnect
| | | | |
chkeymgr
|
chrank storage configuration
chsession
Copy Services
chsestg
Space-efficient configuration
chsi
chsp
chsu
262
Command chuser
Description The chuser command modifies and locks or unlocks a DS CLI or a DS Storage Manager basic user account. A CLI user with administrative authority uses this command to update a user account password, to modify user group authority, or to lock or unlock a user account. Users who do not have administrator authority use this command to change an expired password and to create a password that is not known to the administrator who created their account. The chvolgrp command modifies a volume group name and volume members. The clearvol command clears Copy Services relationships for a base logical volume. The closeproblem command modifies the status of a problem in the problem log file to closed. This command is not supported on DS8000 models. The commitflash command is used as part of the recovery from a disaster scenario to complete a partially formed Global Mirror consistency group. The commitremoteflash command sends data to a target volume to form a consistency between the remote source and target FlashCopy pair. The cpauthpol command copies an existing authentication policy to a new policy. You can only copy a policy within the same storage complex. Copying between different storage complexes is not supported. This command is not supported on DS6000 models. The diagsi command is an administrative utility command that a user with administrative or service authority can use for nonroutine diagnostic actions. The dscli command starts DS CLI. Use this command to run DS CLI commands in the interactive, single-shot, or script mode.
chvolgrp
storage configuration
clearvol
storage configuration
closeproblem
commitflash
Copy Services
commitremoteflash
Copy Services
| | | | | | | |
cpauthpol
diagsi
dscli
framework
263
Command exit
Type framework
Description The exit command ends an interactive command-line interface session. The failbackpprc command copies the required data from the source volume to the target volume in order to resume mirroring. This command is used in the disaster recovery processes that are associated with sites using Metro Mirror, Global Mirror, or Metro/Global Mirror processing. The failoverpprc command is used only with disaster recovery processing. This command is used in the disaster recovery processes associated with sites using Metro Mirror, Global Mirror, or Metro/Global Mirror processing. The failoverpprc command succeeds even if the paths are down and the volume at the production site is unavailable or nonexistent. The freezepprc command creates a new remote mirror and copy consistency group. It places the source logical subsystem (LSS) in the long busy state so that no I/Os can be directed to it. It also removes remote mirror and copy paths between the source LSS and target LSS and sets the queue full condition for the primary volume. This causes the host to queue writes to the primary volume until the queue full condition is reset. During the queue full condition, the primary volume reports long busy status. The help command displays a list of commands available in a command-line interface and optionally displays the syntax or brief description of each command. If you specify this command with no parameters, this command displays only a list of available commands. The helpmsg command is used to obtain details about information, warning, and error messages.
failbackpprc
Copy Services
failoverpprc
Copy Services
freezepprc
Copy Services
help
framework
helpmsg
framework (independent)
264
Command initckdvol
Description The initckdvol command releases extents from a space-efficient logical volume. For example, if a space-efficient logical volume is used as a FlashCopy target volume and the data that is stored on these tracks are no longer needed, use the initckdvol command to free the extents that were assigned to this logical volume. This allows the extents to be reused by other space-efficient logical volumes. This command is not supported on DS6000 models. The initfbvol command releases extents from a space-efficient logical volume. For example, if a space-efficient logical volume is used as a FlashCopy target volume and the data that is stored on these tracks are no longer needed, use the initfbvol command to free the extents that were assigned to this logical volume. This allows the extents to be reused by other space-efficient logical volumes. This command is not supported on DS6000 models. The lsaddressgrp command displays a list of address groups for a storage image and the status information for each address group in the list. The lsarray command displays a list of arrays in a storage image and status information for each array in the list. The lsarraysite command displays a list of array sites and status information for each array site in the list. The lsauthpol command displays a list of all the authentication policies on the storage complex. This command is not supported on DS6000 models. The lsavailpprcport command displays a list of ESCON or fibre-channel I/O ports that can be defined as remote mirror and copy (formerly PPRC) paths. The DS8000 models and DS6000 models support only fibre-channel ports. The Enterprise Storage Server (2105 machine type) supports ESCON ports.
initfbvol
storage configuration
lsaddressgrp
storage configuration
lsarray
storage configuration
lsarraysite
storage configuration
| | | | |
lsauthpol
lsavailpprcport
Copy Services
265
Command lsckdvol
Description The lsckdvol command displays a list of count key data (CKD) base and alias volumes in a storage image and status information for each volume in the list. The lsda command displays a list of device adapters (DA) for each storage image. You can use this command to look at the status of each device adapter in the list. This command is not supported on DS6000 models. The lsddm command displays a list of disk drive modules (DDMs) and status information for each DDM in the list. The lshba command displays a list of storage image host adapters and status information for each host adapter in the list. This command is not supported on DS6000 models. The lsextpool command displays a list of extent pools in a storage unit and status information on each extent pool in the list. The lsfbvol command displays a list of fixed block volumes in a storage image and status information for each volume in the list. The lsflash command displays a list of FlashCopy relationships and status information for each FlashCopy relationship in the list. The lsframe command displays a list of frame enclosures for a storage image. This command is not supported on DS6000 models. The lshostconnect command displays a list of host connections for a storage image and the status information for each host connection in the list. You can also use this command to obtain a list of worldwide port numbers (WWPNs) from a system-detected-unknown host port. You can use these WWPNs to create a new host connection using the mkhostconnect command.
lsda
lsddm
lshba
lsextpool
storage configuration
lsfbvol
storage configuration
lsflash
Copy Services
lsframe
lshostconnect
266
Command lshosttype
Description The lshosttype command displays a list of known hosts, their associated port profiles, address discovery, and logical block size values. Use this command to get the available host types for the mkhostconnect command. The lshostvol command displays the mapping of host device names or volume names to machine type 2105, 2107, and 1750 volume IDs. (This command is not supported on the i5/OS.) The lsioport command displays a list of all the I/O ports that are installed on the specified storage image and optionally provides performance metrics for each I/O port that is listed. The lskey command displays the type of LMC activation keys that are installed and are available for use by the storage unit. The lskeygrp command displays a list of the key server encryption key group entries on the specified storage image. This command is not supported on DS6000 models. The lskeymgr command displays a list of the key server entries that are on the storage complex. This command is not supported on DS6000 models. The lslcu command displays a list of logical control units (LCUs) for a storage image and status information for each logical control unit in the list. The lslss command displays a list of logical subsystems (LSSs) for a storage image and status information for each logical subsystem in the list. The lsnetworkport command displays a report that lists all network ports that are installed in the specified storage unit. This command is not supported on DS6000 models.
lshostvol
lsioport
lskey
| | | | | | | | | |
lskeygrp
encryption
lskeymgr
encryption
lslcu
storage configuration
lslss
storage configuration
lsnetworkport
Network ports
267
Command lspe
Description The lspe command is used by a DS6000 user to find previously created PE package files that are ready to send to IBM. These files were created with the mkpe command and must be sent to IBM because there was an error during the original FTP of the PE package file. This command is not supported on DS8000 models. The lsportprof command displays a list of port profiles that are supported on a storage unit and their recommended address discovery and logical block size values. The lspprc command displays a list of remote mirror and copy (formerly PPRC) volume relationships for a storage image, and status information for each remote mirror and copy volume relationship in the list. The lspprcpath command displays a list of existing remote mirror and copy path definitions. The lsproblem command lists problem logs. This command is not supported on DS8000 models. The lsrank command displays a list of defined ranks in a storage image and status information for each rank. The lsremoteflash command displays a list of FlashCopy relationships and status information for each FlashCopy relationship in the list. The lsserver command displays all servers in a storage complex or a list of specified servers and it also displays the status information for each server in the list. The lssession command displays a list of Global Mirror sessions for a logical subsystem (LSS) and information regarding the volumes of each session in the list. The lssestg command displays a list of the track space-efficient storage in the storage unit. This command is not supported on DS6000 models.
lsportprof
lspprc
Copy Services
lspprcpath
Copy Services
lsproblem
lsrank
storage configuration
lsremoteflash
Copy Services
lsserver
lssession
Copy Services
lssestg
Space-efficient configuration
268
Command lssi
Description The lssi command displays a list of storage images in a storage complex. You can use this command to look at the status of each storage image in the list. The storage image worldwide node name (WWNN) is displayed when this command is used. You must use the storage image WWNN with the lsavailpprcport and mkpprcpath commands. The lsss command is used by a DS6000 user to find previously created offloaded statesave files that are ready to send to IBM. These files were created with the offloadss command and must be sent to IBM because there was an error during the original FTP transfer of the statesave file. This command is not supported on DS8000 models. The lsstgencl command displays a list of storage enclosures and status information for each enclosure in the list. The lssu command displays a list of storage units in a storage complex. You can use this command to look at the status and other properties of each storage unit in the list. The lsuser command returns a list of basic user account names and access authority levels. The lsvolgrp command displays a list of volume groups in a storage image and status information for each volume group in the list. The lsvolinit command displays a list of fixed block volumes, either newly created or resized, that are still initializing in the ESS image. CKD volumes are not displayed. This command is not supported on DS6000 models. The lsvpn command displays a report that lists the outbound VPN information such as management consoles and connection status. This command is not supported on DS6000 models. The managehostconnect command modifies the volume group assignment for a SCSI host port.
lsss
DS6000 PE Package
lsstgencl
lssu
lsuser
|
lsvolgrp
| | | | | | |
lsvolinit
storage configuration
lsvpn
managehostconnect
269
Command managepwfile
Description The managepwfile command creates a password file for an existing ESS or DS user account. This command processes the password requirements for the 2105, 2107, and 1750 systems. The mkaliasvol command creates System z CKD alias volumes (generally referred to as parallel access volumes or PAVs) in a storage image. The mkarray command creates one array per command. You can specify two array sites if you are working with a DS6000 machine type, but you can specify only one array site for a DS8000 machine type. The mkauthpol command allows you to create an empty authentication policy. This command is not supported on DS6000 models. The mkckdvol command creates System z count key data (CKD) base or CKD alias volumes in a storage image. The mkesconpprcpath command creates a remote mirror and copy (formerly PPRC) path between source and target logical subsystems over an ESCON connection. The command allows you to specify ESCON direct and ESCON switch connections. Use this command only with IBM System Storage Enterprise Storage Servers (2105, Model 800 and Model 750). The mkextpool command creates a fixed block or count key data (CKD) storage type extent pool. The mkfbvol command creates open systems fixed block (FB) volumes in a storage image. The mkflash command starts a point-in-time copy from source volumes to target volumes. The mkgmir command starts Global Mirror for a specified session.
mkaliasvol
storage configuration
mkarray
storage configuration
| | | | |
mkauthpol
mkckdvol
storage configuration
mkesconpprcpath
Copy Services
mkextpool
storage configuration
mkfbvol
storage configuration
mkflash
Copy Services
mkgmir
Copy Services
270
Command mkhostconnect
Description The mkhostconnect command configures open systems hosts port attachments to fibre-channel ports that are configured for FC-AL or SCSI-FCP topology. Open systems hosts port attachments to fibre-channel ports are configured for identified access mode and SCSI protocol. The mkkeygrp command creates an entry for the key server encryption key group on the storage image. This command is not supported on DS6000 models. The mkkeymgr command creates an entry for the key server on the storage complex. This command is not supported on DS6000 models. The mklcu command creates a logical control unit (LCU) in a storage image. The mkpe command creates and copies PE packages from DS6000 nodes to the destination directory on a management node. The mkpe command is also used to create a PE package from the log and configuration files contained on the storage management console, and the package does not contain any files that are copied from the DS6000 nodes. This command is not supported on DS8000 models. The mkpprc command establishes a remote mirror and copy (formerly PPRC) relationship for a volume pair. The mkpprcpath command establishes or replaces a remote mirror and copy (formerly PPRC) path between source and target logical subsystems (LSSs) over a fibre-channel connection. This is the only supported connectivity for machine types 2107 and 1750. Paths can be established between the following machine types: 2105:2105, 2107:2107, 2107:1750, 2107:2105, 1750:1750, 1750:2105. The mkrank command creates one fixed block or count key data (CKD) rank from one array.
| | | | | | | | |
mkkeygrp
encryption
mkkeymgr
encryption
mklcu
storage configuration
mkpe
DS6000 PE package
mkpprc
Copy Services
mkpprcpath
Copy Services
mkrank
storage configuration
271
Command mkremoteflash
Description The mkremoteflash command initiates a remote point-in-time copy from source volumes to target volumes through a Remote Mirror and Copy relationship. The mksession command opens a Global Mirror session. The mksestg command creates space-efficient storage in an existing extent pool. This command is not supported on DS6000 models. The mkuser command creates a DS CLI or a DS Storage Manager Basic authentication policy user account with a password and user group authority. The mkvolgrp command creates a volume group in a storage image. The offloadauditlog command provides an activity report for a console (identified as smc1 or smc2). The report includes basic information, such as, a list of who logged in, when they logged in, and what they did during their session. In addition, a log of service actions (phone connection started, phone connection ended WebSM session started, WebSM session ended) is appended to the end of the audit log. The offloadss DS6000 command copies state information from nodes to the destination directory on a management node. This command is not supported on DS8000 models. The pausegmir command pauses Global Mirror for the specified session. The pausepprc command pauses an existing Remote Mirror and Copy volume pair relationship or pauses a single volume ID. To use this command with a single volume, you must specify either the -at src parameter option or the -at tgt parameter option. If neither of these options are specified in the command, single volumes are not valid. The quit command ends an interactive command-line interface session.
mksession mksestg
mkuser
| |
mkvolgrp offloadauditlog
offloadss
DS6000 PE package
pausegmir
Copy Services
pausepprc
Copy Services
quit
framework
272
Command resumegmir
Description The resumegmir command resumes Global Mirror processing for a specified session. The resumepprc command resumes a remote mirror and copy (formerly PPRC) relationship for a volume pair. The resyncflash command is a point-in-time copy of an existing FlashCopy pair that was established with the -record and -persist parameters. The resyncflash command only copies the parts of the volume that have changed since the last point-in-time copy. When a pair is established with the -record and -persist parameters, the pair initially synchronizes and a record of all host write operations to the source is maintained in the source volumes. When the resyncflash command is issued on the FlashCopy pair, the new data that is written to the source is copied to the target. The parameters you specify in this command replace the parameters you previously specified for the existing relationship. To keep the -record and -persist parameters, you must specify these parameters in the resyncflash command. The resyncremoteflash command (formerly called the incremoteflash command and associated with the incremental FlashCopy process) increments an existing remote FlashCopy pair that has been established with the -record and -persist parameters. The reverseflash command reverses the FlashCopy relationship. The revertflash command is used as part of the recovery from a disaster scenario to rollback a Global Mirror consistency group that is in the process of forming. The former Global Mirror consistency group is restored.
resumepprc
Copy Services
resyncflash
Copy Services
resyncremoteflash
Copy Services
reverseflash
Copy Services
revertflash
Copy Services
273
Command revertremoteflash
Description The revertremoteflash command is used to restore data on the source volume to its most recent consistency formation. All new write operations to the source since the most recent consistency formation are overwritten with the previous consistency. The rmarray command deletes arrays. The rmauthpol command allows you to remove an authentication policy. This command is not supported on DS6000 models. The rmckdvol command deletes count key data (CKD) base or alias volumes from a storage image. The rmextpool command deletes extent pools from a storage image. The rmfbvol command deletes fixed block volumes from a storage image. The rmflash command removes a relationship between FlashCopy volume pairs. The rmgmir command ends Global Mirror processing for the specified session. The rmhostconnect command removes a SCSI host port connection from a storage image. The rmkeygrp command removes an entry for the key server encryption key group on a specified storage image. This command is not supported on DS6000 models. The rmkeymgr command removes a key server entry on the storage complex. This command is not supported on DS6000 models. The rmlcu command deletes existing logical control units.
rmarray
| | | |
rmauthpol
rmckdvol
storage configuration
rmextpool rmfbvol
rmflash
Copy Services
rmgmir
Copy Services
rmhostconnect
| | | | | | | | | |
rmkeygrp
rmkeymgr
encryption
rmlcu
storage configuration
274
Command rmpprc
Description The rmpprc command removes a Remote Mirror and Copy volume pair relationship or removes a single volume ID. (You can remove a single volume ID when a disaster occurs, which allows you to specify only the available volume and not both the primary and secondary volumes.) You must specify either the -at src parameter option or the -at tgt parameter option when you process a single volume. If neither of these options are specified in the rmpprc command, a single volume cannot be processed. The -unconditional parameter must also be specified when you process a single volume; otherwise, an error occurs and the command process fails. The rmpprcpath command deletes a Remote Mirror and Copy path. The rmrank command deletes ranks from a storage image. The rmremoteflash command removes a relationship between remote FlashCopy volume pairs. The rmsession command closes an existing Global Mirror session. The rmsestg command deletes the space-efficient storage in an extent pool. This command is not supported on DS6000 models. The rmuser command removes a basic user account. Only CLI users with administrative authority can use this command to delete a user account. The rmvolgrp command deletes existing volume groups from a storage image. The sendpe command is used by a DS6000 user with administrator authority to send a previously created PE package to IBM. This might be necessary because there was an error during the original FTP transfer of the package. This command is not supported on DS8000 models.
rmsession rmsestg
rmuser
rmvolgrp
storage configuration
sendpe
DS6000 PE Package
275
Command sendss
Description The sendss command is used by a DS6000 user with administrator authority to send previously created offloaded statesave files to IBM. This might be necessary if there was an error during the original FTP of the statesave file. This command is not supported on DS8000 models. The setcontactinfo DS6000 command provides contact information for your storage system administrator. When you use any of the remote support features, this information is sent to IBM so that an IBM service representative can contact you. This command is not supported on DS8000 models. The setdialhome command activates the Call Home feature. This command is not supported on DS8000 models. The setflashrevertible command modifies a FlashCopy volume pair that is part of a FlashCopy relationship to revertible. The revertible feature allows data to be committed to the target to form a new consistency group or to revert to the last consistency group. This command must be run before the FlashCopy pair can be committed or reverted. The setioport command configures one or more I/O ports for open systems or System z host system connections. This command cannot be used for ESCON ports. The setnetworkport command configures one network port for TCP/IP connections. This command is not supported on DS6000 models. The setauthpol command modifies policy attributes that apply to a specific type of authentication policy, changing the contents of the policy. To change attributes that are independent of the policy type, use the chauthpol command. This command is not supported on DS6000 models.
setcontactinfo
setdialhome
setflashrevertible
Copy Services
setioport
setnetworkport
network ports
| | | | | | | | |
setauthpol
276
Command
Type framework
Description The setenv command allows you to set DS CLI environment variables that are located in the DS CLI profile. The setoutput command sets or displays command output format options. You can use this command to set either default or user-defined output formats. The output format set by this command remains in effect for the duration of the interactive command session unless reset either with a command option or the re-issuance of the setoutput command. Running this command with no parameters displays the current output settings in the default output format. The setplex command allows you to modify the 1750 storage complex settings. You can associate a unique name with the 1750 which allows you to open a secure shell connection to a storage unit for remote support. This command is not supported on DS8000 models. The setremoteflashrevertible command modifies a remote FlashCopy volume pair that is part of a FlashCopy relationship to revertible. When a pair is revertible, the data can be committed to the target to form a new consistency group, or it can be reverted back to the last consistency group. This command must be run before the FlashCopy pair can be committed or reverted. The setrmpw command (DS8000 only) changes the IBM TotalStorage Productivity Center Replication Manager password. Only a person who has administrator authority can invoke this command. On zSeries hosts, data storage and data retrieval errors are recorded and can be offloaded. A service information message (SIM) provides the error information. The setsim command activates the SIM notification feature. This command is not supported on DS8000 models.
| | | |
setenv
setoutput
framework
setplex
setremoteflashrevertible
Copy Services
setrmpw
setsim
277
Command setsmtp
Description The setsmtp DS6000 command modifies the storage image Simple Mail Transport Protocol (SMTP) and activates the e-mail notification settings. This command is not supported on DS8000 models. The setsnmp command activates the Simple Network Management Protocol (SNMP) trap notification feature, which sends notifications using SNMP when a problem occurs on a storage unit. Use the command to set the SNMP addresses for the notifications. This command is not supported on DS8000 models. The setvpn command starts or ends an outbound virtual private network connection (VPN). This command is not supported on DS6000 models. The showarray command displays detailed properties of a specific array. The showarraysite command displays detailed properties of a specific storage image array site. The showauthpol command displays detailed properties of a specified authentication policy. This command is not supported on DS6000 models. The showckdvol command displays detailed properties of an individual count key data volume. This command can also be used to display the performance metrics for an individual volume ID. The showcontactinfo command displays customer contact information for the storage image. This command is not supported on DS8000 models. The showenv command displays the DS CLI environment variables. The showextpool command displays detailed properties or performance metrics of an extent pool.
setsnmp
setvpn
showarray
storage configuration
showarraysite
storage configuration
| | | | |
showauthpol
showckdvol
storage configuration
showcontactinfo
| |
showenv showextpool
278
Command showfbvol
Description The showfbvol command displays detailed properties for an individual volume. This command can also be used to display the performance metrics of a fixed block volume. The showgmir command displays properties and performance metrics for a Global Mirror logical subsystem ID. You can issue this command on either the master storage unit or on any of the subordinate storage units. The report that is generated by this command varies significantly depending on which storage unit that you issue the command and the parameters that you specify. The showgmircg command displays consistency group status for the specified Global Mirror session. The showgmiroos command displays the number of unsynchronized (out of sync) tracks for the specified Global Mirror session. The showhostconnect command displays detailed properties of a storage image host connection. The showioport command displays properties of an I/O port. It optionally displays the performance metrics for a specific I/O port. The showkeygrp command displays detailed information for a specified key server encryption key group entry on the storage image. This command is not supported on DS6000 models. The showlcu command displays the detailed properties of an individual logical control unit (LCU). The showlss command displays detailed properties of a logical subsystem (LSS). The shownetworkport command displays detailed properties of an individual network port ID. This command is not supported on DS6000 models.
showgmir
Copy Services
showgmircg
Copy Services
showgmiroos
Copy Services
showhostconnect
I/O port and host connect configuration I/O port and host connect configuration
showioport
| | | | | |
showkeygrp
encryption
showlcu
storage configuration
showlss
storage configuration
shownetworkport
network port
279
Type user account and security DS6000 remote support and notification
Description The showpass command lists the properties of passwords. The showplex DS6000 command displays detailed properties of a 1750 storage complex. Detailed properties include your names, descriptions, and notification settings for the storage complex. This command is not supported on DS8000 models. The showrank command displays detailed properties or performance metrics of a rank. The showsestg command displays a detailed properties report of the space-efficient storage of an individual extent pool. This command is not supported on DS6000 models. The showsi command displays detailed properties of a storage image. The storage image worldwide node name (WWNN) is displayed when this command is used. You must use the storage image WWNN with the lsavailpprcport and mkpprcpath commands. The showsp command displays a properties report for a storage complex. The report included the properties values for the names, descriptions, and customer account names of the storage complex. This command is not supported on DS6000 models. The showsu command displays detailed properties of an individual storage unit. The showuser command displays details for basic user accounts. A CLI user with administrative authority uses this command to display the properties (group assignment, user account status and number of failed logins) that are associated with a current user account name. The showvolgrp command displays detailed properties of a volume group.
showrank
storage configuration
showsestg
Space-efficient configuration
showsi
showsp
showsu
showuser
showvolgrp
storage configuration
280
Command
Description The testauthpol command allows you to test the specified authentication policy. This command is not supported on DS6000 models. The testcallhome DS6000 command initiates a call home test by creating a test problem record. This command is not supported on DS8000 models. The unfreezeflash command resets a FlashCopy consistency group that was previously established with the -freeze parameter when the mkflash or resyncflash commands were issued. The unfreezepprc command resumes I/O activity on a storage unit where the freezepprc command has been issued. The unfreezepprc command resets the queue full condition for the primary volume. All queued writes to the source volume are written. The ver command displays the versions of the command-line interface, storage management console (HMC or SMC), and licensed machine code. It does not display the version number of the Graphical User Interface (GUI). The whoami command displays authentication information for the current user. This command is not supported on DS6000 models.
| | | | |
testauthpol
testcallhome
unfreezeflash
Copy Services
unfreezepprc
Copy Services
ver
| | | |
whoami
Command flags
You can use these flags with any command-line interface command.
Flag -p Parameters on | off Description Turns paging on or off. Displays 24 rows at a time unless used with the -r flag. The default is off in single-shot mode and on in interactive mode. You can page up or down by pressing any key. You can specify -p on or -p off to turn the paging on or off; but if you specify only-p, you get an error. Note: You can only use this flag with the ls type (for example, lsuser, lskey, lsserver) commands and the help (setoutput) command.
281
Flag -r
Parameters number
Description Specifies the number of rows (1 100) per page. This flag is valid only when the -p flag is set to on. The default value is 24 rows. Note: You can only use this flag with the ls type (for example, lsuser, lskey, lsserver) commands and the help (setoutput) command. Sets the output format to XML. Note: You can use this option only with list (for example, lsuser, lskey, lsserver) commands Sets the output format to stanza. Note: You can use this option only with list (for example, lsuser, lskey, lsserver) commands Sets the output format to a table. You must set the column delimiter to a single character with the -delim flag. Note: You can use this option only with list (for example, lsuser, lskey, lsserver) commands Sets the output to a space-separated plain text table. Note: You can use this option only with list (for example, lsuser, lskey, lsserver) commands Sets the output to delimited output and the delimiter to the single character char. You must enclose char in single or double quotation marks if the character is a shell metacharacter (such as * or \t). If char is not specified, the CLI program returns a syntax error. A blank space, even when it is enclosed within quotation marks, is not a valid character as a delimiter. Note: You can use this option only with list (for example, lsuser, lskey, lsserver) commands Turns the header on or off. The default is on. You can specify -hdr on or -hdr off to turn the header on or off; but if you specify only -hdr, you get an error. Turns the banner on or off. The default is on. You can specify -bnr on or -bnr off to turn the banner on or off; but if you specify only-bnr, you get an error.
-fmt
xml
stanza
delim
default
-delim
char
-hdr
on | off
-bnr
on | off
282
Flag -v
Parameters on | off
Description Turns verbose mode on or off. The default is off. You can specify -v on or -v off to turn verbose mode on or off; but if you specify only-v, you get an error. Provides fully qualified IDs, which include the storage image ID, for every ID that is displayed in the command output. The default value is off. You can specify -fullid on or -fullid off; but if you specify only-fullid, you get an error. Note: You can only use this command flag with list (for example, lsioport, lskey) and show (for example, showsu, showlss) commands.
-fullid
on | off
Command equivalents
Use this list to correlate commands that are supported on the Enterprise Storage Server machine type 2105 to equivalent commands on the DS8000 machine type 2107/242x or the DS6000 machine type 1750.
Enterprise Storage Server machine type 2105 command list server DS8000 machine type 2107/242x or DS6000 machine type 1750 commands lsserver Description
Like the 2105, a 2107/242x storage image contains one pair of servers. A 2107/242x storage image can contain two storage images. See Note 1.
list volumespace
lsextpool, showextpool, lsrank, showrank, lsarray, showarray, showarraysite mkextpool, mkarray, mkrank rmrank, rmarray, rmextpool lsarraysite, showarraysite
Like the 2105 disk group, a 2107/242x or 1750 array site consists of eight storage devices that are made into a RAID array. The 2107/242x does not support the JBOD array configuration.
283
DS8000 machine type 2107/242x or DS6000 machine type 1750 commands lsioport, showioport
Description
Like 2105, the 2107/242x supports fibre-channel and ESCON ports. The 2107/242x does not support parallel SCSI ports. The 1750 does not support ESCON ports. The maximum quantity of host device adapter cards and I/O ports is dependent on 2107/242x model number and on the quantity of installed I/O enclosure features. The 2107/242x CLI lsioport and showioport commands include the -metrics parameter that returns the performance counter values for the respective I/O port IDs. The -metrics parameter provides the means to monitor I/O port performance statistics. For the 2107/242x, an I/O adapter card is assigned to a storage image. For the 1750, the I/O adapter is integrated with the RAID controller.
set port list volume create volume set volume list pav create pav delete pav list volumeaccess create volumeaccess delete volumeaccess list hostconnection
setioport lsfbvol, lsckdvol mkfbvol, mkckdvol chfbvol, chckdvol lsckdvol, showckdvol mkckdvol rmckdvol lsvolgrp, showvolgrp mkvolgrp, chvolgrp rmvolgrp lshostconnect, showhostconnect mkhostconnect rmhostconnect chhostconnect, managehostconnect Not applicable. lskey
See Note 4.
The 2105 and 2107/242x CLI commands are essentially the same, except that the 2107/242x commands include the volume group ID parameter. For the 2107/242x, the hostconnect command concerns SCSI-FCP host port connections to ESS I/O ports that are configured for SCSI-FCP and identified access mode. -The 2107/242x CLI commands can display the installed LIC keys.
284
Enterprise Storage Server machine type 2105 command list webuseraccount create webuseraccount set webuseraccount delete webuseraccount list perfstats
DS8000 machine type 2107/242x or DS6000 machine type 1750 commands Not applicable. Not applicable. Not applicable. Not applicable. --
Description
lsioport, showioport, The 2105 CLI list perfstats commands showrank, showextpool, concern the Specialist facility that showfbvol, showckdvol streams performance counter device adapter to the ESS Expert at predefined intervals. This facility does not exist for the 2107/242x. Use the 2107/242x CLI commands with the -metrics parameter to obtain current performance counter values. Not applicable. Not applicable. ---
285
DS8000 machine type 2107/242x or DS6000 machine type 1750 commands v showsp (DS8000) v showplex (DS6000)
Description
set remotesupport
show email
v For DS8000: The 2105 Specialist remote communication functions are implemented in the 2107/242x as attributes of the storage complex object. The 2107/242x CLI chsp and showsp commands provide methods to view, set, and modify the remote communication attributes. The 2107/242x does not support the pager remote communication function. v For DS6000: The 2105 Specialist remote communication functions are implemented in the 1750 as attributes of the storage complex object. The following 1750 commands provide methods to view, set, and modify the remote communication attributes: setplex, showplex, setsmtp, setsnmp, setsim, setcontactinfo, and showcontactinfo. The setsmtp command activates the e-mail notification feature, which sends notifications using e-mail when a problem occurs. Use the showplex command to see the smtp setting.
create email
delete email
set email
show pager create pager delete pager set pager show snmp
Not applicable. Not applicable. Not applicable. Not applicable. v showsp (DS8000) v showplex (DS6000)
create snmp
set snmp
delete snmp
list problem
show problem
--
286
DS8000 machine type 2107/242x or DS6000 machine type 1750 commands v Not applicable. (DS8000) v closeproblem (DS6000) --
Description
Not applicable. Not applicable. lsflash, lsremoteflash, lspprcpath, lspprc, lsavailpprcport, showgmir
--Unlike the 2105, the 2107/242x CLI Copy Services functions are not task-oriented. The 2107/242x CLI provides a complete set of FlashCopy and remote mirror and copy (formerly PPRC) make, change, remove, list, and show commands. The 2107/242x CLI provides a complete set of FlashCopy, remote mirror and copy (formerly PPRC) commands that can be used in the coding of scripts that emulate 2105 Copy Services tasks. The lshostvol command displays the mapping of host device or volume names to 2107/242x, 2105, 1750 and volume IDs. -These 2107/242x Copy Services CLI commands are equivalent to the respective 2105 CLI commands. The 2107/242x mkflash and mkpprc commands provide a -wait flag that delays command response until copy complete status is achieved.
rsExecuteTask
rsList2105s
lshostvol
rsTestConnection
ver
--
287
Description
Volume space configuration is a primary difference between the 2105 and the 2107/242x. For the 2105, one command configures an array site into a RAID array and rank. For the 2107/242x, one command configures an array site into an array, and a second command configures an array into a rank. For the 2105, a rank is configured as fixed block or CKD, and a CKD rank can contain interleave CKD volumes. For the 2107/242x, a rank is assigned to a user-defined extent pool object, which the user defines as either the fixed block or CKD storage type. The interleave volume construct does not exist for the 2107/242x. For the 2105, a volume is configured from a specific rank, and cannot span rank boundaries. For the 2107/242x, a volume is configured from an extent pool. An extent pool can contain multiple ranks. A 2107/242x volume consists of one or more extents that can be allocated from one or more ranks. A fixed block extent is 1 GB (128 logical blocks). Each block contains 512 bytes of usable data space. A CKD extent is 0.94 GB or 1113 CKD cylinders. For the 2105, a rank is either assigned to server 0 or server 1, dependent on array site location. A 2105 rank is assigned to one of four possible LSS IDs, dependent on device adapter pair location and storage type configuration. For the 2107/242x, an extent pool is assigned to server 0 or server 1. A rank that is configured from any array site can be assigned to a server 0 or 1 extent pool. Array site position and device adapter pairs are not factors for the rank-to-extent-pool assignment. A volume that is created from a server 0 extent pool is assigned to an even-numbered LSS ID. A volume created from a server 1 extent pool is assigned to odd-numbered LSS ID. A user must define at least two extent pools (0 and 1) but can define as many extent pools as there are ranks. For 2105, a user can delete a rank but cannot delete a volume. For the 2107/242x, a user can delete a single volume, rank, or extent pool. The 2107/242x CLI showrank and showextpool commands include a -metrics parameter that returns the performance counter values for a specified rank or extent pool ID. The -metrics parameter provides the means to monitor rank and extent pool performance statistics. Note 2 A 2107/242x ESCON I/O port is used for System z host attachment but cannot be configured as a remote mirror and copy path. Each ESCON I/O port must be assigned to only one address group. An address group is a set of 16 LSS IDs that are configured as CKD LCUs; for example, 0x00 to 0x0F. ESCON I/O port access to 2107/242x CKD volumes is constrained to the address group LCU volumes, up to 4096 volumes. A 2107/242x fibre-channel port is configured for either SCSI-FCP or FICON protocol. Like 2105, a FICON port is restricted to the point-to-point/switched fabric topology setting. A FICON I/O port is used for System z host attachment, but cannot be configured as a remote mirror and copy path. A FICON port must be configured for anonymous access mode, meaning that any System z host system port (WWNN or WWPN) has unrestricted access to all CKD volumes, up to 64 KB volumes. Like the 2105, a 2107/242x fibre-channel SCSI-FCP I/O port can be configured for either the point-to-point/switched fabric or FC-AL connection topologies. A port that uses the point-to-point/switched fabric topology can be simultaneously used for OS host system I/O and for remote mirror and copy path configurations. Like 2105, a 2107/242x fibre-channel SCSI-FCP I/O port allows only identified host system ports to access volumes. A host system port WWPN must be identified (registered) to each I/O port through which volume access is intended. For the 2107/242x, this configuration constraint is defined as I/O port identified access mode. Host system port WWPN identification is accomplished by the CLI mkhostconnect command.
288
Description
A 2107/242x storage image can contain up to 32 000 volumes, whereas a 2105 unit can contain up to 8 000 volumes. Otherwise, the 2105 and 2107/242x volume definitions and characteristics are essentially identical. For 2107/242x CKD PAV volumes, the CLI list and show commands identify both the original base and current base volume assignments. The original and current base concept exists for 2105, but specific relationships are not identified in the output. The 2107/242x CLI provides a specific set of volume commands for each storage type (fixed block or CKD) as a means to clarify input parameter and output device adapter definitions. The 2107/242x CLI showfbvol and showckdvol commands include a -metrics parameter that returns the performance counter values for a specified volume ID. The -metrics parameter provides the means to monitor volume performance statistics. Note 4 The 2105 volume access commands concern volume ID assignment to a SCSI-FCP host port initiator or WWPN. For the 2107/242x, volume IDs are assigned to a user-defined volume group ID (mkvolgrp and chvolgrp). A volume group ID is then assigned to one or more host system ports (mkhostconnect and chhostconnect) as a means to complete the volume access configuration. The volume group construct also exists in the 2105 internal code, but the construct is not externalized by the 2105 Specialist or CLI commands. For the 2107/242x, a user must create a FICON/ESCON-all type volume group. This volume group ID is assigned to each ESCON I/O port and to each FICON I/O port. The volume group ID enables FICON access all storage image CKD volumes, up to 64 KB volumes. The volume group ID enables an ESCON I/O port to access to the storage image CKD Address Group volumes, up to 4 KB volumes. For the 2107/242x fixed block volumes, a volume group must be configured as either SCSI-mask or SCSI-map-256, depending whether the volume group is accessed by a SCSI-FCP host port that uses the report LUNs or poll LUNs access method protocol.
289
Abbreviation addrgrp
Description A set of 16 contiguous logical subsystems (LSSs) or logical control units (LCUs), starting at ID X0. Address group identifier that is assigned to this ESCON I/O port. A set of 16 contiguous logical subsystems (LSSs) or logical control units (LCUs), starting at ID X0. Address group identifier that is assigned to this ESCON I/O port. An array of device drive modules (DDMs). Array identifier that is assigned to a rank. Storage unit identifier followed by an array site identifier. Array site ID does not indicate physical location. Ports to which the host can attach. Storage that is available for a segment pool, in GB. FlashCopy process that copies data from a source volume to a target volume. Lowest number of logical volumes in the address group. Count of bypass cache I/O requests. Count of bytes that are transferred by SCSI read I/O operations, in 128 KB. Count of bytes that are transferred by SCSI write I/O operations, in 128 KB. Count of cache fast-write write I/O operations where data did not move to or from a storage device. Count of cache fast-write read I/O operations where data was not moved to or from a storage device. Count of cache fast-write read I/O operations issued by a host to a volume. Count of cache fast-write write I/O operations issued by a host to a volume. Count of delayed I/O operations from a host to a volume because of insufficient cache space. Quantity of volume logical blocks or cylinders that are available for access by a host system.
Address group
addrgrp
Bytes written
bytewrit
cachfwhits
cachfwrhits
cachfwrreqs
cachfwreqs
cachspdelay
Capacity
cap
290
Description Number of attempts to form a consistency group. The maximum time that writes are inhibited to the remote site before stopping the current consistency group. The interval time between attempts to form a consistency group. The percentage of successful attempts to form consistency groups. The time when the last successful consistency group was formed. Count of I/O operations from a host to a CKD volume that has accessed at least one logical track not described by a regular track format descriptor. Count of irregular track I/O operations where data did not move to or from a storage device. Count of write I/O operations to a volume, where track format descriptor data in cache has promoted at least one track to cache with requiring access to a storage device. Number of logical volumes configured on an address group. Storage unit internal I/O interface configuration: model and feature code dependent. Number of configured volumes. Count of side file additions to a volume from an update to a concurrent copy protected track or an update to an XRC monitored track. Count of remote mirror and copy SCSI control I/O operations that are received from a SCSI source. Count of remote mirror and copy SCSI control I/O operations that are sent to a SCSI target. Default or user-assigned logical control unit type. Global Mirror copy state. Indicates Yes if the CopyIndicator is set for this FlashCopy relationship. Date of creation.
CG interval CG success
CGinterval CGsuccess
CGtime CKDirtrkac
CKDirtrkhits
CKDwrtprohits
confgvol config
confgvols contamwrts
conopsrcd
conopssent
291
Description Status of critical heavy mode, either enabled or disabled. Status of critical heavy mode for remote mirror and copy (formerly PPRC) copy operations, either enabled or disabled. Base and alias volume number. Current number of FICON N-port worldwide node name (WWNN) identifiers that are logged in to this I/O port. Current number of N-ports that are logged in to this I/O port. Current date, time, local time zone, and Daylight Savings Time. Identifier of the device adapter pair that the DDM is associated with. The DA pair indicates I/O enclosure location. Count of logical tracks for a volume that were promoted to cache in full or partial track mode (excluding sequential pre-state). Status of the array data access: normal, degraded, read only, failed, repairing, or inaccessible. Status of data access: normal, degraded, read only, failed, repairing, or inaccessible. Date and time, including time zones and Daylight Savings Time. Current clock setting of date. Minimum disk capacity of DDMs, in GBs. Minimum rate of disk revolutions per minute of the DDMs in an array. User-defined description. Capacity of the DDM, in GBs. Interface type of DDM. Interface rate of DDM, in GBs per second. DDM revolutions per minute. DDM usage in an array site. Counting number of extents that were source of a dynamic relocation. Counting number of extents that were target of a dynamic relocation.
curbasevol curflogs
DASDtrans
Data
data
Data state
datastate
Date Date (85) DDM capacity (GB) DDM RPM (revolutions per minute) Description Disk capacity (GB) Disk interface Disk rate (Gb/Sec) Disk RPM Disk usage
dyreloctarget
292
Output field name EC level E-mail addresses Enclosure # Ending track ESS IO ports EClvl
Abbreviation
Description Engineering change level of the listed enclosure. One or more e-mail addresses that receive service notification. Identifier for an I/O enclosure within a storage unit frame. Ending track address or number. The set of Enterprise Storage Server I/O ports to which a SCSI host port can log in. Status of storage complex ESSNet user interface, either enabled or disabled. Default or user-assigned extended long busy setting, enabled or disabled. Default or user-assigned extended long busy timeout value. Maximum number of possible extents. LSS persistent cache extent number. Extent pool. Identifier for the extent pool of the assigned rank. Name of the extent pool of the assigned rank. Number of logical tracks in an extent. Extent allocation threshold setting that triggers notification. Number of extents in the rank. Number of extents used by this volume ID. Current speed of a fan. Reason code for a fatal error. Identifier code that is used to order the PC enclosure. FICON I/O operations that are enabled for this port. FICON status, enabled or disabled. Identifier for the firmware level that is installed in the hardware management console (HMC) enclosure. Identifier of storage unit frame that contains this I/O enclosure. Frame identifier format is six hexadecimal characters.
ESSNet
ESSnet
xtndlbzactive
Extended long busy timeout (secs) Extent limit Extent number Extent pool Extent pool ID Extent pool name Extent size Extent threshold Extents Extents used Fan speed Fatal reason Feature code FICON FICON enabled Firmware level
xtndlbztimout extlim extentnum extpool extpoolID extpoolnam extsize extthresh exts extused fanspeed fatalrsn FC FICON fenabled firmwarelevel
Frame
frame
293
Abbreviation frameID
Description Identifier of storage unit frame that contains this I/O enclosure. Frame identifier format is six hexadecimal characters. Frame number of a listed enclosure. -SCSI host identifier for an Open Systems host that is associated with this host port. Storage image ID in the following format: manufacturer.type.serial number. Indicates Yes if the ImAcopyBit is set for this FlashCopy relationship. Count of inhibit cache loading I/O requests. FlashCopy arbitrated-loop base address of the storage image enclosure. Identifies four interface IDs that are associated with I/O ports on the HBA. Minimum disk interface rate of the disk in an array, in GBs per second. Host attachment interface type (FC-AL, SCSI-FCP, or FICON). Identifier of three interface ports for the HMC enclosure consisting of four hexadecimal characters. Location of enclosure. Location format is Utttt.mmm.ppsssss. Logical block (512 bytes or 520 bytes). Logical block size. Identifier of logical volumes. Maximum number of N-ports that can log in to this I/O port. Number of logical subsystems in an address group. Quantity of LUNs that are accessible by this host attachment (256 LUNs or 64K LUNs). Quantity of LUNs that are accessible by this host attachment (256 LUNs or 64K LUNs). User-defined name. Count of I/O operations that cause nonvolatile storage (NVS) space allocation.
ID
ID
Interface IDs
interfID
Location Logical block Logical block size Logical vols Login limit LSSs LUN access
LUN capacity
LUNcap
name NVSspallo
294
Output field name NVS space delay Master count Master ID Master session ID Master SSID Memory Migration disk SN MRPD interval
Description Count of I/O operations from a host to a volume. Quantity of master LSS IDs on this storage image ID. Master storage image ID. Global Mirror session ID. LSS subsystem identifier. Amount of processor memory in this PC enclosure, in MB. Migration disk serial number. Number of days between dial home to report machine-reported product data (MRPD). This interval can be 0. Manufacturer, machine type, and sequence number. Number of narrow arrays in a rank. Number of normal read operations where data did not move to or from a storage device. Number of normal read operations issued by a host to a volume. Number of normal write operations where data did not move to or from a storage device. Number of command sequences with at least one write command. Number of normal write operations issued by a host to a volume. Amount of nonvolatile storage (NVS) memory that is assigned to this server, in MB. Current number of valid N-ports that are logged in to this I/O port. Number of logical volumes configured from an extent pool. Number of extents. Number of ranks configured in an extent pool. Original base volume CKD volume identifier. Amount of operating system memory that is assigned to the server, in MB. The number of tracks that are not synchronized for this FlashCopy relationship. Status of persistent FlashCopy, either enabled or disabled.
normrdrqts normwritehits
Number of logins Number of logical vols Number of extents Number of ranks Original base vol OS memory
Out-of-sync tracks
outsynctrks
Persistent
persistent
295
Output field name Persistent cache (MB) Physical bytes read Physical bytes written Physical read Physical write Port Port group Port profile Position Power mode Power state PPRC control operations received PPRC control operations sent PPRC source
Abbreviation pcache phbyteread phbytewrit phread phwrite port portgrp portpro pos pw mode pw state PPRCcntrloprec PPRCcntrlopsent PPRCsce
Description Amount of persistent cache memory that is assigned to a server, in MB. Number of physical bytes read. Number of physical bytes written. Number of physical storage read operations. Number of physical storage write operations. I/O port. Group identifier for host port. Port behavior identification for this SCSI host ID. Position of DDM in an array configuration of DDMs. Current storage unit power control mode. Current storage unit power status. Remote mirror and copy (formerly PPRC) I/O control operations. Remote mirror and copy (formerly PPRC) I/O control operations. Remote mirror and copy (formerly PPRC) source I/O operations that are enabled for this port. Remote mirror and copy (formerly PPRC) target I/O operations that are enabled for this port. Count of logical tracks for a remote mirror and copy (formerly PPRC) primary volume that were transferred to a remote mirror and copy secondary volume. Identifier of processor complex with which the central electronic complex enclosure is associated. Number of processors in the PC enclosure. Number of processors that are assigned to the server. Host port profile. Count of logical tracks for a volume that have been destaged from cache to storage devices. Type and configuration of RAID array. Identifier that the array is assigned to. Rank number consists of storage unit ID and a rank number.
PPRC target
PPRCtgt
PPRC tracks
PPRCtrks
Processor complex
procplex
RAIDtype rank
296
Description Identifier of rank group where segment pool is configured. Array position within the assigned rank. Count of I/O command sequences in one read or search command (but no write commands). Count of read I/O operations. Count of real allocated extents. Count of real extent conversion. Number of gigabytes of real extent pool capacity. Count of real extents. The reason a condition exists. Number of normal record mode read operations where data moved to or from a storage device. Number of normal record mode read operations issued by a host to a volume. FlashCopy - record changed tracks. Number of volume cylinders that are available for host system access. Power control mode when the local/remote switch is set to remote. This is only available for the DS8000 series. Desired state of storage unit: online or offline. Extents that are reserved in an extent pool. Reserved storage in an extent pool, in GB. Revertible to previous Global Mirror state. SCSI host port users of this volume group. SCSI target I/O operations that are enabled for this port. User-defined time that the storage unit powers on. User-defined time that the storage unit powers off. Count of logical tracks for a volume that were promoted to cache because data was moved by sequential pre-stage and required movement from a storage device.
Reads Real allocated extents Real extent conversion Real extent pool capacity Real extents Reason Record cache misses
recmoreads
Requested state Reserved extents Reserved storage (GB) Revertible SCSI host port users SCSI TGT Scheduled on Scheduled off Sequential DASD cache transfers
297
Abbreviation seqreadhits
Description Number of sequential read operations where data did not move to or from a storage device. Number of sequential read operations issued by a host to a volume. Number of sequential write operations that did not require movement of data to or from a storage device before the completion of the operation. Number of command sequences that contain at least one sequential write command. Number of sequential write operations issued by a host to a volume. Internal identifier for the data space of an array. Server or DA group to which the DA is assigned. Unique serial number. One or two IP addresses where the storage complex sends SNMP error messages. Host writes to the source volume are allowed. The current speed of this fan tray. Source volume is enabled to be in a cascading remote mirror and copy (formerly PPRC) relationship. Source volume LSS. Subsystem. The starting track address for the volume pinned data. Storage unit functional status: online, offline, resuming, quiescing, quiesce exception, forced quiescing, or fenced. Current state of the disk drive module. Number of storage devices in an enclosure. Number of slots for storage devices in an enclosure. Extent pool type of the assigned rank. One storage device. Number of logical tracks in a strip.
seqreadreqs
seqwritehits
seqwriteops
seqwritereq
SN server SN SNMPaddr
State (FRU) Storage devices Storage slots Storage type Storage unit Strip size
298
Output field name Stripe size Subordinate count Subordinate ID Subordinate SSID Subsystem Suspended Synced Target write enabled Tgt cascade
Abbreviation strpesize subcount subID subSSID subsys suspended synced tgtwrite tgtcascade
Description Number of logical tracks in a stripe. Count of subordinate associations. Subordinate storage unit ID. Subordinate subsystem identifier. User-assigned or default subsystem identifier. The relationship is suspended. Date the FlashCopy was synchronized. Host write I/O operations to a target volume are allowed. Target volume is enabled to be configured in a cascading remote mirror and copy relationship. Host read I/O operations to a target volume are allowed. Current clock setting of time. Accumulated time of lower interface I/O activity for the volume. Amount of I/O port time for SCSI I/O operations, in seconds. Accumulated time for physical storage read operations. Accumulated time for physical storage write operations. Accumulated time for all read operations. Accumulated time for all write operations. Current clock settings of time zone and Daylight Savings Time. -Amount of storage in an extent pool, in GB. Port topology. Size of the track if the volume is CKD or fixed block. Type of storage unit enclosure. List of unknown SCSI N-port WWPN identifiers that attempted login into this I/O port. Number of extents that are allocated to volumes in a rank. Count of virtual extent conversion.
Tgt read enabled Time Time lower interface activity Time on-channel
timeonchan
Time physical storage read timephread Time physical storage write Time read Time write Time zone Timout active copy recording Total storage (GB) Topology Track size Type Unknown SCSI IDs timephwrite timeread timewrite timez timoutactcpyrec totlstor topo trksize type unkSCSIlog
usedexts virextconv
299
Output field name Virtual extent pool capacity Virtual extents Vol group
Description Number of gigabytes of virtual extent pool capacity. Count of virtual extents. Volume group ID. The unique identifier that is assigned to this volume. Volume group. Number of logical volumes in an address group. Volume type. Number of wide arrays in a rank. Count of write I/O operations. Worldwide node name. Worldwide port name. Global Mirror copy interval.
Volume group Vols Volume type Wide arrays Writes WWNN WWPN XDC interval
300
Framework commands
This section contains the user interface framework commands for the DS command-line interface. The framework commands consist of the following commands: v dscli v exit v help v quit v setoutput The dscli command starts the DS command-line interface (CLI). Use this command to perform storage management tasks from the command-line. The setoutput command generates the format of the reports for the list and show commands during an interactive command session.
301
dscli
The dscli command starts DS CLI. Use this command to run DS CLI commands in the interactive, single-shot, or script mode.
dscli -h -help -? -ver -overview -script file_name -cfg profile -hmc1 HMC1 -hmc2 HMC2
-user
user_name
-passwd
password
-pwfile
passwordfile
command
Parameters
Note: You must not start more than 100 DS CLI sessions simultaneously. Starting more than 100 DS CLI sessions simultaneously can result in connection problems. -help | -h | -? (Optional) Displays a help screen about how to use the DS CLI program. -ver (Optional) Displays the DS CLI version. -overview (Optional) Provides overview information about the DS CLI. -script file_name (Optional) Initiates the script mode so that multiple dscli program commands can be issued consecutively using a saved file. file_name Specifies the file with the stored program commands to be executed. Format options that are specified using the framework setoutput command apply to all commands in the file. Output from successful commands routes to stdout, and output from failed commands routes to stderr. If an error occurs during the processing of one of the commands in the file, the script exits at the point of failure and returns to the system prompt. command Specifies the single command that you want to run. -cfg profile Specifies a profile file. This parameter is not required if you are using default profiles. The default profile file name is dscli.profile, and it is provided as part of the DS CLI package under the profile directory. -hmc1 HMC1 (Optional) Specifies the primary management console IP address or the host name. | | Note: You can connect the DS CLI to the HMC using an IPV6 IP address if your Java virtual machine level supports IPV6. HMC1 The IP address for the primary management console.
302
This parameter is not required if you have established this information as a profile variable. -hmc2 HMC2 (Optional) Specifies the secondary management console IP address or the host name. HMC2 The IP address for the secondary management console. This parameter is not required if you have established this information as a profile variable. Note: The HMC1 and HMC2 values must apply to two different management consoles. -user user_name (Optional) Specifies your user name for issuing DS CLI commands on the command-line. user_name Your user name. This parameter is not required if you have established this information as a profile variable. -passwd password (Optional and not recommended) Specifies the password that you use for issuing DS CLI commands on the command line. password Your password. This parameter is not required or recommended. If you use this method to designate your password, the password is displayed on the screen. Another option is to specify a password file (see the next parameter) that is used when you start the DS CLI application. Also, if you specify this parameter and do not specify the -user parameter, nothing happens. In other words, you are still prompted for a user ID and password before you can log in to the DS CLI application. -pwfile passwordfile Specifies the password file that contains your password. passwordfile Specifies a password file as an alternative to the passwd parameter.
Example
This command invokes the CLI in interactive mode:
>dscli
303
exit
The exit command ends an interactive command-line interface session.
exit -? -h -help
Parameters
-? | -h | -help Displays a detailed description of this command, including syntax, parameter descriptions, and examples. If you specify a help option, all other command options are ignored.
Example
Exit interactive mode
dscli>exit
help
The help command displays a list of commands available in a command-line interface and optionally displays the syntax or brief description of each command. If you specify this command with no parameters, this command displays only a list of available commands.
help -? -h -help -l -s -p off on -r number command_name
Parameters
-? | -h | -help Displays a detailed description of this command, including syntax, parameter descriptions, and examples. If you specify a help option, all other command options are ignored. -l Displays a list of available commands with the syntax diagrams for each. If you specify a command name with this parameter, this command displays the syntax for only the specified command. Displays a list of available commands with a brief description of each. If you specify a command name with this parameter, this command displays a brief description for only the specified command.
-s
-p off | on Specifies whether to display one page of text at a time or all text at once. off Displays all text at one time. This is the default value. on Displays one page of text at a time. Pressing any key displays the next page.
304
-r number Specifies the number of rows per page to display when the -p parameter is on. The default is 24 rows. You can specify a value from 1 to 100. command_name Displays help information for the specified command, including the syntax diagram, parameter descriptions, return codes and errors, descriptions, examples, and miscellaneous remarks.
Example
Invoke help
#dscli>help -s exit
helpmsg
The helpmsg command is used to obtain details about information, warning, and error messages.
helpmsg message_ID
Parameters
Notes: 1. The message information revealed by this command is a snapshot of what is available in your current code version. 2. This command does not work for GUI messages. 3. For the most up-to-date information, see the list of individual messages in the IBM System Storage DS8000 or DS6000 Information Center. message_ID (Required) Specifies the message number that you are querying. You must enter the entire message number (for example, CMUC00246I, CMUC00244W, CMUC00247E). You do not have to enter all caps. Substitute keys are not allowed and cause an error if used.
Example
Invoking the helpmsg command
dscli>helpmsg cmuc00247e
305
Action Retry the create volume task and specify an extent pool and a logical subsystem group that are in the same rank group.
quit
The quit command ends an interactive command-line interface session.
quit -? -h -help
Parameters
-? | -h | -help Displays a detailed description of this command, including syntax, parameter descriptions, and examples. If you specify a help option, all other command options are ignored.
Example
Quit interactive mode
dscli>quit
| | | | |
setenv
setenv
The setenv command allows you to set DS CLI environment variables that are located in the DS CLI profile.
-paging
on off
-rows
-format
-delim
char
| | | | | | | | | |
-header
on off
-verbose
on off
-banner
on off
-devid
storage_image_ID
-remotedevid
storage_image_ID
-echo
on off
-echoprefix
echo_prefix none
Parameters
-paging on | off (Optional) Specifies whether paging is turned on or off.
306
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
-rows # (Optional) Specifies the number of rows per page to display when -paging is set to on. The default is 24 rows. The minimum is 1 row and maximum is 100 rows. The default is 24 rows. -format default | xml | delim | stanza (Optional) Specifies output format. -delim char (Optional) Specifies the delimiter character used in the delim output format. -header on | off (Optional) Specifies whether the header should be turned on or off. -verbose on | off (Optional) Specifies whether verbose mode is turned on or off. -banner on | off (Optional) Specifies whether the banner is turned on or off. -devid storage_image_ID (Optional) Specifies the default devid. -remotedevid storage_image_ID (Optional) Specifies the default remote devid. -echo on | off (Optional) Specifies whether the echo is turned on or off. If it is turned on, each command will be printed before it is executed. -echoprefix echo_prefix | none (Optional) Specifies a prefix to display before each echoed command. -echoprefix none indicates that no prefix should be displayed.
Example
You can issue the setenv command for a DS8000 model. Invoking the setenv command
dscli>setenv -echo on
setoutput
The setoutput command sets or displays command output format options. You can use this command to set either default or user-defined output formats. The output format set by this command remains in effect for the duration of the interactive command session unless reset either with a command option or the re-issuance of the setoutput command. Running this command with no parameters displays the current output settings in the default output format.
setoutput -? -h -help -fmt default delim xml stanza -p off on -hdr on off
307
-delim
char
-r
number -v
off on
-bnr
off on
Parameters
-? | -h | -help (Optional) Displays a detailed description of this command, including syntax, parameter descriptions, and examples. If you specify a help option, all other command options are ignored. -fmt default | delim | xml | stanza (Optional) Specifies the format of the output. You can specify one of the following values: default Specifies that the output be displayed in a tabular format using a space as the delimiter between the columns. This is the default value. delim Specifies that the output format be set to a table and sets the column delimiter to a single character that is specified by the -delim char parameter. xml Specifies that the output be displayed in XML format. stanza Specifies that the output be displayed in a stanza (vertical table) format. -p off | on (Optional) Specifies whether to display one page of text at a time or all of the text at once. off Displays all of the text at one time. This is the default value. on Displays one page of text at a time. Pressing any key displays the next page. -hdr on | off (Optional) Specifies whether to display the table header. on Displays the table header. This is the default value. off Does not display the table header. -delim char (Optional) Specifies that the delimiter character (such as a comma) used in the report. -r number (Optional) Specifies the number of rows per page to display when the -p parameter is on. The default is 24 rows. You can specify a value from 1 to 100. -v off | on (Optional) Specifies whether to enable verbose mode. off Disables verbose mode. This is the default value.
308
on Enables verbose mode. -bnr off | on (Optional) Specifies whether the banner (command header) message is enabled. off Turns the header mode off so that the command header does not display. on Turns the header mode on so that the command header is displayed.
Format Examples
Invoke the setoutput command with no options When you specify the setoutput command with no options, the DS CLI application always displays the current output settings in the default format (space-separated plain text table), regardless of the values of the output settings. Issue the setoutput command as follows:
dscli>setoutput
Invoke the setoutput command using the -delim parameter The following is an example of the commands that you can issue to get (long) output in comma-separated format for an unassigned rank only. Issue the setoutput command to specify the report format and then issue the lsrank command to designate the rank being queried. Note: The only difference between issuing the setoutput command for a DS8000 model and a DS6000 model is the value that is specified for the storage image machine type.
dscli> setoutput -fmt delim delim , dscli> lsrank dev IBM.2107-75FA120 -state unassigned
The resulting output Note: Although this example shows the header turned on, you can choose to turn the header off. To turn off the header, issue the command and include the -hdr off parameter.
ID,Group,State,datastate,Array,RAIDtype,extpoolID,stgtype ========================================================== R0,-,Unassigned,Normal,A0,5,-,fb
Invoke the setoutput command using the -fmt xml parameter The following is an example of the commands that you can issue to get (long) output in XML format for an unassigned rank only. Issue the setoutput command to specify the report format and then issue the lsrank command to designate the unassigned rank that you want to query.
dscli> setoutput -fmt xml dscli> lsrank dev IBM.2107-75FA120 state unassigned
309
Invoke the setoutput command using the -fmt stanza parameter When columns are horizontally long, output can be difficult to visually align. The stanza format option eliminates this problem. The following output is an example of the commands that you can issue to get (long) output in stanza format for an unassigned rank only. Issue the setoutput command to specify the report format and then issue the lsrank command to designate the unassigned rank that you want to query.
dscli> setoutput -fmt stanza dscli> lsrank dev IBM.2107-75FA120 state unassigned
| | | | | | | | | | | | |
showenv
showenv
The showenv command displays the DS CLI environment variables.
Parameters
There are no parameters for this command.
Example
You can issue the showenv command for a DS8000 model. Invoking the showenv command
dscli>showenv
310
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Date/Time: 2008 10 13 IBM DSCLI Version: 0.0.0.0 DS: paging rows format delim header verbose banner devid remotedevid echo echoprefix off 24 default , on off on IBM.2107-1301441 IBM.2107-1301441 off -
echoprefix Specifies that a prefix is displayed before each echoed command. A dash - is shown and no prefix is displayed if echoprefix is not specified.
311
| | | | | | | | | | | | | |
now allows you to use an external authentication service, such as a LDAP server, but still uses the internal authorization service to grant access to resources as defined by the DS8000 user group roles of admin, op_storage, op_volume, op_copy_services, service, and monitor. An authentication policy defines the authentication service to be used, any parameters that are required to connect to and utilize that authentication service, and any mappings from that services user groups to the DS8000 user group roles. It is assumed that any external authentication service will provide tools for user account management, therefore the DS8000 will only manage user accounts defined in the Basic authentication service. Currently, the DS8000 defines two policy types, Basic and SAS (Storage Authentication Service). The Basic policy type uses the DS8000 Basic authentication service, and the SAS policy type uses the authentication service provided by an IBM SSPC (IBM System Storage Productivity Center). The following commands are used to add, modify, delete, and show CLI user accounts and security information:
| |
v v v v v v v v v v v
chauthpol chpass chuser cpauthpol lsauthpol lsuser managepwfile mkauthpol mkuser rmauthpol rmuser
| | | |
v setauthpol v showauthpol v showpass v showuser v testauthpol v whoami The chauthpol command changes the general attributes of an authentication policy, such as the policy name and the activation state. General attributes are attributes that apply to every policy type. The chpass command changes the password expiration time and the number of login attempts for a storage complex. The chuser command modifies and locks or unlocks a DS CLI or a DS Storage Manager user account. Users that do not have administrator authority, use this command to change an expired password and create a password that is not known to the administrator who created their account.
| | | | |
| | |
The cpauthpol command copies an existing authentication policy to a new policy. You can only copy a policy within the same storage complex. Copying between different storage complexes is not supported.
312
| |
The lsauthpol command displays a list of all the authentication policies on the storage complex. The lsuser command generates a report that lists the storage image user account names and access authority levels. The managepwfile command creates a password file for an existing ESS or DS user account. This command processes the password requirements for 2105, 2107/242x, and 1750 systems.
| | | | |
The mkauthpol command allows you to create an empty authentication policy. Use the setauthpol command to set specific policy attributes. The mkuser command creates a DS CLI or a DS Storage Manager Basic authentication policy user account. The rmauthpol command allows you to remove an authentication policy. The rmuser command removes a storage image user account. CLI users with administrative authority use this command to delete a user account file.
| | | |
The setauthpol command modifies policy attributes that apply to a specific type of authentication policy, changing the contents of the policy. The showauthpol command displays detailed properties of a specified authentication policy. The showpass command generates a report that lists the number of days until the password expires and the number of failed logins that are associated with the password. The showuser command generates a report that displays the details for an individual storage image user account.
| | | | | | | | | | | | |
chauthpol
The testauthpol command allows you to test a specified authentication policy. The whoami command displays authentication information for the current user.
chauthpol
The chauthpol command changes the general attributes of an authentication policy, such as the policy name and the activation state. General attributes are attributes that apply to every policy type. To change specific attributes that only apply to some policy types, use the setauthpol command. This command is not supported on DS6000 models.
-name
new_pol_name pol_name
-activate | -
-username
user_name
-pw
password
-quiet
313
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Parameters
-name new_pol_name (Optional) Specifies the new name for the authentication policy. This parameter may not be used with the -activate parameter. -activate (Optional) Activates the specified authentication policy. This parameter requires the -pw and -username parameters, and optionally the -quiet parameter. This parameter may not be used with the -name parameter. You must be logged in with a currently active policy ID and admin authority to use this parameter. -username user_name (Optional) Specifies a valid username in the policy being activated. Note: You must have administrator privileges in the current policy to modify the username in the new policy. This parameter is required when the -activate parameter is specified. -pw password (Optional) Specifies the password of the username that is specified in the -username parameter. Note: You must have administrator privileges in the current policy to modify the password in the new policy. This parameter is required when the -activate parameter is specified. -quiet (Optional) Turns off the confirmation prompt for this command. pol_name | (Required) Specifies the name of the authentication policy. If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode.
Example 1
Invoking the chauthpol command to change the attributes of an authentication policy.
dscli>chauthpol quiet name my_policy1 my_policy_01
Example 2
Invoking the chauthpol command to change the attributes of an authentication policy.
dscli>chauthpol quiet activate username admin pw test2ibm my_policy2
314
| | |
chpass
chpass
The chpass command changes the password expiration time, and the number of login attempts for a basic user account.
-expire
number
-fail
number
-pol
pol_name
Parameters
-expire number (Optional) Specifies the number of days a Storage Manager user account password is valid before it expires. The default number of days is 365. If you do not want the password to expire, enter a value of zero. After the password expires, the user is not allowed to log in unless the password is changed. -fail number (Optional) Specifies the number of login attempts allowed on any given Storage Manager user account. The number of login attempts can be zero to twenty-five. The default number of login attempts is 15. If you do not want a limit on the number of login attempts, enter zero. After the number of login attempts is exceeded, the user account is locked. | | | | | -pol pol_name (Optional) Specifies the name of the basic authentication policy. This parameter is optional if you have authenticated with a basic authentication policy type, but it is required if you are authenticated with another type of authentication policy. This parameter is not supported on DS6000 models.
Example
Invoking the chpass command |
dscli>chpass pol my_policy1 -expire 20 -fail 0
chuser
| The chuser command modifies and locks or unlocks a DS CLI or a DS Storage Manager basic user account. A CLI user with administrative authority uses this command to update a user account password, to modify user group authority, or to lock or unlock a user account. Users who do not have administrator authority use this command to change an expired password and to create a password that is not known to the administrator who created their account.
chuser -pw new_password -lock -unlock -group group_name [ . . . ]
|
-pol pol_name
User Name -
315
Parameters
Note: When a person with administrator authority designates the password, the password is set to expire upon its initial use. The user of the password must use the chuser command to establish a new password before access to the rest of the DS CLI application can be granted. -pw new_password (Optional) Specifies that the new designated password be assigned to the user. Notes: 1. When a person with administrator authority uses this parameter in association with the -unlock parameter, the new password is temporary and expires upon the initial use. 2. When a person without administrator authority uses this parameter, the new password becomes the valid password and replaces the prior password. new_password Indicates the new password. The new password must meet the following criteria: v Be six to 16 characters long. v Must contain five or more letters, and it must begin and end with a letter. v Must contain one or more numbers. v Cannot contain the users user ID. v Is case-sensitive. -lock (Optional) Specifies that a user account be locked. Persons with administrator authority can use this parameter to lock a user account. The affect of this locking action is not enacted until the user authenticates their account. In other words, if a user is already active (authenticated) and is using the DS CLI application, the lock does not take place until they log out of the application. -unlock (Optional) Specifies that a user account be unlocked. A person with administrator authority can use this parameter to unlock a user account when the user can no longer log into the DS CLI application. A person might not be able to log into the DS CLI application for the following reasons: v The user forgot the password and in an attempt to log in went beyond the set number of allowable attempts. Going beyond the set limit locks the user account. Note: When unlocking a user account for this scenario, the administrator must also assign a new password to the user using the -pw parameter. The new password is temporary and immediately expires after its initial use. The administrator must notify the user of this new password. v Someone with administrator authority has locked the user account. -group group_name [. . . ] (Optional) Specifies a users access authority group or groups. A user can be assigned to many groups.
316
group_name [...] The following list provides the list choices that can be assigned to a user. Multiple names must be separated by commas. For example, op_copy_services,service. admin The administrator user group has access to all management console server service methods and all storage image resources. op_storage The storage operator user group has access to physical configuration service methods and resources, including storage complex, storage image, array, rank, and extent pool objects. This user group inherits all the authority of the of the copy services operator and monitor user groups, excluding security methods. op_volume The volume operator user group has access to service methods and resources that relate to logical volumes, hosts, host ports, logical subsystems, logical volumes, and volume groups, excluding security methods. In addition, this user group inherits all authority of the monitor user group. op_copy_services The copy services operator user group has access to all Copy Services service methods and resources, excluding security methods. In addition, this user group inherits all authority of the monitor user group. service The service user group includes monitor authority, plus access to all management console server service methods and resources, such as performing code loads and retrieving problem logs. monitor The monitor user group has access to list and show commands. It provides access to all read-only, nonsecurity management console server service methods and resources. no access The no access user group does not have access to any service methods or storage image resources. By default, this user group is assigned to any user account in the security repository that is not associated with any other user group. | | | | | -pol pol_name (Optional) Specifies the name of the basic authentication policy. This parameter is optional if you have authenticated with a basic authentication policy type, but it is required if you are authenticated with another type of authentication policy. This parameter is not supported on DS6000 models. User Name | (Required) Specifies the user account name. Notes: 1. The administrator inserts the name of the user account that is affected by the changes (that is, group name, lock, or unlocking). 2. Users who are changing their passwords can insert their user account name.
317
If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode.
Example
When you issue the chuser command for a DS8000 model or a DS6000 model, the only difference is the value that is specified for the storage image ID. Invoking the chuser command |
dscli>chuser -pw xy0abcde pol my_policy1 testuser
| | | | | | | | | | | | | | | | | | | | | | | | | |
cpauthpol -name
cpauthpol
The cpauthpol command copies an existing authentication policy to a new policy. You can only copy a policy within the same storage complex. Copying between different storage complexes is not supported. This command is not supported on DS6000 models.
new_pol_name pol_name | -
Parameters
-name new_pol_name (Required) Specifies the new name for the (copied) authentication policy. pol_name | (Required) Specifies the name of the existing authentication policy that is being copied. If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode.
Example
Invoking the cpauthpol command to copy an existing authentication policy to a new policy.
dscli>cpauthpol name my_policy4 my_policy2
lsauthpol
The lsauthpol command displays a list of all the authentication policies on the storage complex. This command is not supported on DS6000 models.
318
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Parameters
-s -l (Optional) Use this parameter to display only the policy name. You cannot use the -s and the -l parameters together. (Optional) Use this parameter to display the default output and additional attributes that are identified as long output. You cannot use the -l and the -s parameters together.
-type pol_type (Optional) Specifies the type of authentication policy that you want to list. For example, SAS. pol_name . . . | (Optional) Specifies the name of the authentication policy that you want to list. If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode.
Example
Invoking the lsauthpol command to display a list of all the authentication policies on the storage complex.
dscli>lsauthpol -l
Location Specifies the URL or the IP address for the authentication server. Multiple locations are separated by commas without spaces.
lsuser
The lsuser command returns a list of basic user account names and access authority levels.
lsuser -pol pol_name
319
Parameters
| | | | | -pol pol_name (Optional) Specifies the name of the basic authentication policy. This parameter is optional if you have authenticated with a basic authentication policy type, but it is required if you are authenticated with another type of authentication policy. This parameter is not supported on DS6000 models.
Example
Note: For this command and all other DS CLI list commands, the results are shown in table format to provide clarity. The actual reports do not display as tables. Invoking the lsuser command |
dscli>lsuser pol my_policy1
| | | | |
mkauthpol
The mkauthpol command allows you to create an empty authentication policy. This command is not supported on DS6000 models.
mkauthpol -type sas pol_name -
320
| | | | | | | | | | | | | | | |
Parameters
-type sas (Required) Specifies the authentication policy type. Currently, SAS (Storage Authentication Service) is the only valid value for this parameter and it is required. pol_name | (Required) Specifies the name of the authentication policy. If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode.
Example
Invoking the mkauthpol command to an empty authentication policy.
dscli>mkauthpol -type sas my_policyname
managepwfile
The managepwfile command creates a password file for an existing ESS or DS user account. This command processes the password requirements for the 2105, 2107, and 1750 systems.
managepwfile -action add remove change
-pwfile
file_name
-mc1
HMC1
password
Parameters
-action (Required) Specifies that a process that is designated by the subparameter be enacted on the password file. add Specifies that an entry for the HMC user name and the specified primary HMC be created in the password file. If the password file does not exist, it will be created. Specifies that the password file entry be removed for the designated user. change Specifies that the password file entry be changed for the designated user. -pwfile file_name (Optional) Specifies the name that you want to use for the password file. You can specify the password file as an absolute path or a relative path. The relative path is obtained from the current working directory. file_name The user-specified ESS or DS password file name.
Chapter 12. Command-line interface commands
remove
321
-mc1 (Optional) Specifies the DNS name or the IP address. Note: You can use the default value that is specified for HMC1 in your profile file, or you can use the value that is specified for the current CLI session connection. HMC1 Designates the primary HMC or 2105 DNS name or IP address. This information along with the -name parameter is used as a key in the password file. -mc2 (Optional) Specifies the DNS name or the IP address of the secondary HMC. Note: You can use the default value that is specified for HMC2 in your profile file, or you can use the value that is specified for the current CLI session connection. HMC2 Designates the secondary HMC or 2105 DNS name or IP address. -name (Optional) Specifies the name that you use to access the DS CLI application. username Designates the user-specified user name. This information along with the mc1 parameter information is used as a key in the password file. -pw password (Required) Specifies a user-assigned password. password Specifies the password that enables user name access to this ESS or DS CLI client installation. The password is case-sensitive. Notes: 1. A password file is created with a users default protection mask. The user can update the protection mask to allow access only to the owner of the file. Also, you must write down the directory name where the password file is contained in case you need to use it later. 2. The password file has a default value of <user_home>/dscli/security.dat. The home directory <user_home> is defined by the Java system property named user.home The location of your password file is determined by your operating system. The following examples are home directories in different operating systems: Windows operating system For a Windows operating system, the property value defaults to the environment variable %USERPROFILE%. As a result, your personal profile is C:\Documents and Settings\<username>\dscli\ security.dat. UNIX or Linux operating system For an UNIX or Linux operating system, the property value defaults to the environment variable $HOME. As a result, your personal profile is ~/dscli/security.dat.
322
i5/OS For the i5/OS, your personal profile is /home/<username>/dscli/ security.dat. OpenVMS system For an OpenVMS operating system, the property value defaults to the logical name SYS$LOGIN. As a result, your personal profile is [.dscli.profile]security.dat. Note: The values of the Java system properties can be redefined by JRE options. If you are having problems, check to see if you have an environment setting similar to the following on your local system:
_JAVA_OPTIONS=-Duser.home=...
Example
When you issue the managepwfile command for a DS8000 model or a DS6000 model the only difference is the value that is specified for the storage image ID. Invoking the managepwfile command
dscli>managepwfile -action add -mc1 myess.ibm.com -name testuser pw AB9cdefg
mkuser
| | |
mkuser -pw
The mkuser command creates a DS CLI or a DS Storage Manager Basic authentication policy user account with a password and user group authority.
password -group group_name [ . . . ] -pol pol_name User Name -
Parameters
pw password (Required) Specifies the password that is assigned to the user that allows their use of the DS CLI command-line function. This password is temporary and expires after the initial use. The user must assign themselves a new password using the chuser command before they can use any other commands in the DS CLI application. password The password that is assigned by the administrator to a user. The password must meet the following criteria: v Be six to 16 characters long. v Must contain five or more letters, and it must begin and end with a letter. v Must contain one or more numbers. v Cannot contain the users user ID. v Is case-sensitive.
Chapter 12. Command-line interface commands
323
-group group_name [...] (Required) Specifies the users access authority group. group_name [...] The following list provides the list choices that can be assigned to a user. Multiple names must be separated by commas; for example, op_copy_services,service. admin The administrator user group has access to all management console server service methods and all storage image resources. op_storage The storage operator user group has access to physical configuration service methods and resources, including storage complex, storage image, array, rank, and extent pool objects. This user group inherits all the authority of the copy services operator and monitor user groups, excluding security methods. op_volume The volume operator user group has access to service methods and resources that relate to logical volumes, hosts, host ports, logical subsystems, logical volumes, and volume groups, excluding security methods. In addition, this user group inherits all authority of the monitor user group. op_copy_services The copy services operator user group has access to all Copy Services service methods and resources, excluding security methods. In addition, this user group inherits all authority of the monitor user group. service The service user group includes monitor authority, plus access to all management console server service methods and resources, such as performing code loads and retrieving problem logs. monitor The monitor user group has access to list and show commands. It provides access to all read-only, nonsecurity management console server service methods and resources. no_access The no_access user group does not have access to any service methods or storage image resources. By default, this user group is assigned to any user account in the security repository that is not associated with any other user group. | | | | | -pol pol_name (Optional) Specifies the name of the basic authentication policy. This parameter is optional if you have authenticated with a basic authentication policy type, but it is required if you are authenticated with another type of authentication policy. This parameter is not supported on DS6000 models. User Name | (Required) The current user account user name. If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode.
324
Example
When you issue the mkuser command for a DS8000 model or a DS6000 model, the only difference is the value that is specified for the storage image ID. Invoking the mkuser command |
dscli>mkuser -pw AB9cdefg -group service,op_copy_services pol my_policy1 testuser
rmauthpol
The rmauthpol command allows you to remove an authentication policy. This command is not supported on DS6000 models.
pol_name . . .
| | | | | | | | | | | | | | | | | | |
Parameters
-quiet (Optional) Specifies that the confirmation prompt be turned off. pol_name . . . | (Required) Specifies the name of the authentication policy that you want to remove. If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode.
Example
Invoking the rmauthpol command to remove an authentication policy.
dscli>rmauthpol my_policy3
rmuser
The rmuser command removes a basic user account. Only CLI users with administrative authority can use this command to delete a user account.
rmuser -quiet -pol pol_name User Name -
Parameters
-quiet (Optional) Specifies that the confirmation prompt be turned off.
Chapter 12. Command-line interface commands
325
| | | | |
-pol pol_name (Optional) Specifies the name of the basic authentication policy. This parameter is optional if you have authenticated with a basic authentication policy type, but it is required if you are authenticated with another type of authentication policy. This parameter is not supported on DS6000 models. User Name | (Required) Specifies the current user account user name. If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode.
Example
When you issue the rmuser command for a DS8000 model or a DS6000 model, the only difference is the value that is specified for the storage image ID. Invoking the rmuser command |
dscli>rmuser pol my_policy1 testuser
| | | | | | | | | | | | |
setauthpol
setauthpol
The setauthpol command modifies policy attributes that apply to a specific type of authentication policy, changing the contents of the policy. To change attributes that are independent of the policy type, use the chauthpol command. This command is not supported on DS6000 models. Depending on the policy type and the action that is selected, all of the other parameters will vary in meaning. Because of this, the syntax diagrams and the parameter descriptions below are separated by policy types and actions. If a parameter is not found under a specific policy type, then it does not apply to that policy type. Note: You must have admin authority in the current policy to use this command.
-action setauthserver addmap rmmap setmap setsasuser settruststore
| | | | |
-loc loc1 [,loc2...]
Each of the following sections shows the options for one of the -action parameters listed above: -action setauthserver
pol_name -
326
| | | | | | | | | | | | | | | | | | | | | | | | |
-action addmap
dsgrp:extgrp[,extgrp...][/dsgrp:extgrp[,extgrp...]...]
dsgrp:extusr[,extusr...][/dsgrp:extusr[,extusr...]...]
-action rmmap
-groupmap
all dsgrp:extgrp[,extgrp...][/dsgrp:extgrp[,extgrp...]...]
-usermap
all dsgrp:extusr[,extusr...][/dsgrp:extusr[,extusr...]...]
pol_name -
-action setmap
-groupmap dsgrp:extgrp[,extgrp...][/dsgrp:extgrp[,extgrp...]...]
-usermap pol_name
dsgrp:extusr[,extusr...][/dsgrp:extusr[,extusr...]...]
-action setsasuser
pol_name -
-username
name
-pw
password
| | |
-pw password -loc loc1
-action settruststore
pol_name -
| | | | | | | | | |
Action parameters
-action setauthserver (Required) Specifies the authentication server used in the policy. -action addmap (Required) Allows you to add to the mappings of external users or groups in the DS8000 authority group roles. -action rmmap (Required) Allows you to remove either all or specific mappings of external users or groups from the DS8000 authority group roles.
Chapter 12. Command-line interface commands
327
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
-action setmap (Required) Allows you to map external users or groups to DS8000 authority group roles. If previous mappings were defined, the setmap action replaces them. Use the addmap action to add new mappings without replacing previous versions. All unspecified roles are unchanged. -action setsasuser (Required) Specifies the storage authentication service (SAS) user. -action settruststore (Required) Specifies the location of the truststore file. You must specify the password to check the integrity of the keystore data, and to set the truststore.
328
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | service
Services service methods and resources, excluding security methods. In addition, this user group inherits all authority of the monitor user group. The service user group includes monitor authority, plus access to all management console server service methods and resources, such as performing code loads and retrieving problem logs. monitor The monitor user group allows access to list and show commands. It provides access to all read-only, nonsecurity management console server service methods and resources. no_access The no_access user group does not allow access to any service methods or storage image resources. By default, this user group is assigned to any user account in the security repository that is not associated with any other user group. extgrp is the external authentication group name mapped to the role. Multiple group names are separated by commas without spaces. A grouped pair consists of a role, a colon (:), followed by one or more groups. Multiple grouped pairs are separated by slashes (/) without spaces. Example: admin:ESS_ds1,ESS_ds2/op_storage:ESS_ds_storage/ monitor:ESS_ds_monitor. -usermap dsgrp:extusr[,extusr...] [/dsgrp:extusr[,extusr...]...] (Optional) This action maps external users in the specified policy to DS8000 authority group roles. For each specified role, the setmap action replaces the existing users with the specified users. Roles that are not specified are not changed. dsgrp is one of the following DS8000 authority group roles: v admin v v v v op_storage op_volume op_copy_services service
v monitor v no_access extusr is the external authentication user name that is mapped to the role. Multiple group names are separated by commas without spaces. A grouped user pair consists of a role, a colon (:), followed by one or more users. Multiple grouped user pairs are separated by slashes (/) without spaces. Example: admin:fred,mary/op_storage:jane/monitor:fred pol_name | (Required) Specifies the name of the authentication policy. If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode. Parameters for -action addmap: -groupmap dsgrp:extgrp[,extgrp...] [/dsgrp:extgrp[,extgrp...]...] (Optional) This action maps external user groups in the specified policy to
Chapter 12. Command-line interface commands
329
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
DS8000 authority group roles. For each specified role, the addmap action adds the specified external groups to the existing group roles. Roles that are not specified are not changed. dsgrp is one of the following DS8000 authority group roles: v admin v op_storage v op_volume v op_copy_services v service v monitor v no_access extgrp is the external authentication group name mapped to the role. Multiple group names are separated by commas without spaces. A grouped pair consists of a role, a colon (:), followed by one or more groups. Multiple grouped pairs are separated by slashes (/) without spaces. Example: admin:ESS_ds1,ESS_ds2/op_storage:ESS_ds_storage/ monitor:ESS_ds_monitor. -usermap dsgrp:extusr[,extusr...] [/dsgrp:extusr[,extusr...]...] (Optional) This action maps external users in the specified policy to DS8000 authority group roles. For each specified role, the addmap action adds the specified users to the existing group roles. Roles that are not specified are not changed. dsgrp is one of the following DS8000 authority group roles: v admin v op_storage v op_volume v v v v op_copy_services service monitor no_access
extusr is the external authentication user name that is mapped to the role. Multiple group names are separated by commas without spaces. A grouped user pair consists of a role, a colon (:), followed by one or more users. Multiple grouped user pairs are separated by slashes (/) without spaces. Example: admin:fred,mary/op_storage:jane/monitor:fred pol_name | (Required) Specifies the name of the authentication policy. If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode. Parameters for -action rmmap: -groupmap dsgrp:extgrp[,extgrp...] [/dsgrp:extgrp[,extgrp...]...] | all (Optional) This action maps external user groups in the specified policy to DS8000 authority group roles. For each specified role, the rmmap action removes the specified external groups from the existing group roles. Selecting all specifies that all external groups will be removed from all group roles. Roles that are not specified are not changed, unless all is specified.
330
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
dsgrp is one of the following DS8000 authority group roles: v admin v op_storage v op_volume v op_copy_services v service v monitor v no_access extgrp is the external authentication group name mapped to the role. Multiple group names are separated by commas without spaces. A grouped pair consists of a role, a colon (:), followed by one or more groups. Multiple grouped pairs are separated by slashes (/) without spaces. Example: admin:ESS_ds1,ESS_ds2/op_storage:ESS_ds_storage/ monitor:ESS_ds_monitor. -usermap dsgrp:extusr[,extusr...] [/dsgrp:extusr[,extusr...]...] | all (Optional) This action maps external users in the specified policy to DS8000 authority group roles. For each specified role, the rmmap action removes the specified external groups from the existing roles. Selecting all specifies that all external users will be removed from all group roles. Roles that are not specified are not changed, unless all is specified. dsgrp is one of the following DS8000 authority group roles: v admin v op_storage v op_volume v op_copy_services v service v monitor v no_access extusr is the external authentication user name that is mapped to the role. Multiple group names are separated by commas without spaces. A grouped user pair consists of a role, a colon (:), followed by one or more users. Multiple grouped user pairs are separated by slashes (/) without spaces. Example: admin:fred,mary/op_storage:jane/monitor:fred pol_name | (Required) Specifies the name of the authentication policy. If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode. Parameters for -action settruststore: -pw password (Optional) Specifies the truststore password. -loc loc1 (Optional) Specifies the local truststore file location. Only one truststore location can be specified. Example: c:\mystore\trust.dat pol_name | (Required) Specifies the name of the authentication policy. If you use the dash
Chapter 12. Command-line interface commands
331
| | | | | | | | | | | | | | | | | | |
(-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode. Parameters for -action setsasuser: -username name (Optional) Specifies the user name that is used internally by SAS (Storage Authentication Service). Only one user name can be specified. -pw password (Optional) Specifies the user name password used internally by SAS. pol_name | (Required) Specifies the name of the authentication policy. If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode.
Example
Invoking the setauthpol command to modify the contents of the policy.
dscli>setauthpol setsasuser username was_user pw test2ibm my_policy1
setrmpw
The setrmpw command (DS8000 only) changes the IBM TotalStorage Productivity Center Replication Manager password. Only a person who has administrator authority can invoke this command.
setrmpw -dev storage_image_ID -server 0 1 both -rmpw RM_password
Parameters
-dev storage_image_ID (Required) Specifies the storage image ID, which consists of the values for manufacturer, machine type, and serial number. The storage image ID is required if you do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. -server 0 | 1| both (Optional) Specifies the server where the password is changed. The default is both. -rmpw RM_password (Required) Specifies the new Replication Manager password. The password must meet the following criteria: v The password must contain a minimum of 5 alphabetic characters and 1 numeric character. v The password must begin and end with an alphabetic character. v The alphabetic characters must be entered in uppercase and the password is case sensitive.
| | |
332
v The password cannot contain the user name of the account that it is for.
Example
Note: If you do not specify the -rmpw parameter on your command line, you are asked twice to supply the Replication Manager password after you have entered the setrmpw command. Invoking the setrmpw command
dscli>setrmpw -dev IBM.2107-75ALA2P -server 0 -rmpw CLI1TIME
| | | | | | | | | | | | | | | | | | | | | | | | | | | | |
showauthpol
The showauthpol command displays detailed properties of a specified authentication policy. This command is not supported on DS6000 models.
showauthpol -map pol_name | -
Parameters
-map (Optional) Displays tables that list the user groups with their authority levels and the users with their authority levels in the specified policy. No table is displayed if there are no mapping relationships in the specified policy. pol_name | (Required) Specifies the name of the authentication policy that you would like to view. If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode.
Example
Invoking the showauthpol command to view the detailed properties of a specified authentication policy.
dscli>showauthpol my_policy1
333
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Location Specifies the names or IP addresses of the Hardware Management Consoles that were used when users logged in. If users logged in from more than one location, a list of locations is displayed, separated by commas. Expire Specifies the number of remaining days before the password expires. Fail Specifies the number of failed login attempts that are allowed before the account is locked.
For a SAS type policy, the following properties are displayed: Name Specifies the name of the authentication policy. Type State Specifies the authentication policy type. Specifies the state of the authentication policy (active or inactive).
Location Specifies the URL for the authentication server. Multiple locations are separated by commas. truststore Specifies the truststore file name. sasuser Specifies the user name used internally by SAS (Storage Authentication Service). GroupMaps The following additional properties are displayed only when the -map parameter is specified. DS_group Specifies the name of the DS8000 authority group. One or more of the following group designations is displayed: v admin v v v v v v op_storage op_volume op_copy_services service monitor no_access
Ext_group Specifies the external groups that are mapped to the selected DS8000 authority group. Multiple external group names are separated by commas. UserMaps
334
| | | | | | | | |
The following additional properties are displayed only when the -map parameter is specified. DS_group Specifies the name of the DS8000 authority group. The user authority group can consist of one or more of the following: admin, op_storage, op_volume, op_copy_services, service, monitor, or no_access. Ext_user Specifies the username for the external users.
showpass
The showpass command lists the properties of passwords.
showpass -pol pol_name
Parameters
| | | | | -pol pol_name (Optional) Specifies the name of the basic authentication policy. This parameter is optional if you have authenticated with a basic authentication policy type, but it is required if you are authenticated with another type of authentication policy.
Example
Invoking the showpass command |
dscli>showpass pol my_policy1
showuser
| The showuser command displays details for basic user accounts. A CLI user with administrative authority uses this command to display the properties (group assignment, user account status and number of failed logins) that are associated with a current user account name.
showuser -pol pol_name User_Name -
Parameters
| | | | | -pol pol_name (Optional) Specifies the name of the basic authentication policy. This parameter is optional if you have authenticated with a basic authentication policy type, but it is required if you are authenticated with another type of authentication policy. This parameter is not supported on DS6000 models. User_Name | (Required) Specifies the user account name.
Chapter 12. Command-line interface commands
335
If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode.
Example
For this command and all other DS CLI show commands, the results are shown in table format for clarity. The actual reports do not display as tables. The following table represents the headers that are displayed on the output reports that are associated with the showuser command. Invoking the showuser command |
dscli>showuser pol my_policy1 testuser
| | | | | | | | | | |
testauthpol
The testauthpol command allows you to test the specified authentication policy. This command is not supported on DS6000 models.
testauthpol -username user_name -pw password pol_name | -
Parameters
-username user_name (Required) Specifies the user name for the authentication policy that is being tested. For example, if the current policy is Policy1 and you want to test Policy2, then you must be logged in with an admin user account in Policy1, and provide a valid user account name and password for Policy2.
336
| | | | | | | | | | | | | | | |
whoami -s -l
-pw password (Required) Specifies the password for the user name in the policy being tested. pol_name | (Required) Specifies the authentication policy that you want to test. If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode.
Example
Invoking the testauthpol command to test a specified authentication policy.
dscli>testauthpol username admin pw test2ibm my_policy2
whoami
The whoami command displays authentication information for the current user. This command is not supported on DS6000 models.
| | | | | | | | | | | | | | | | | | | | | | |
Parameters
-s -l (Optional) Provides the current users user name. The -l and -s flags cannot be used together. (Optional) Provides details about the current user, including user name and authority groups that the user belongs to. The -l and -s flags cannot be used together.
Example
Invoking the whoami command to view authentication information for the current user.
dscli>whoami
337
applykey
The applykey command applies the licensed machine code (LMC) activation keys for a storage server. You can enter the LMC keys manually, or you can import the keys from an XML file. The file that contains the LMC keys must be downloaded from an IBM Web site.
applykey -key key [...] -file file_name storage_image_ID -
Parameters
-key key [...] (Optional) Specifies the LMC key. To specify multiple keys, enter a comma between each key. Do not include a blank space between each key. This parameter is required if the -file parameter is not specified. -file file_name (Optional) Specifies the file name of the LMC activation key file. This parameter is required if the -key parameter is not specified. storage_image_ID | (Required) Specifies the storage image ID where the LMC activation key file is imported. The ID includes manufacturer, machine type, and serial number. If you use the dash (-), the specified value is read from standard input.
Example
You can issue the applykey command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model the storage image ID is different. Invoking the applykey command
dscli>applykey -file keys.xml IBM.2107-75FA120
338
lskey
The lskey command displays the type of LMC activation keys that are installed and are available for use by the storage unit.
lskey storage_image_ID
Parameters
storage_image_ID | (Required) Specifies the storage image ID for which to view a list of activated features. The ID includes manufacturer, type, and serial number. If you use the dash (-), the specified value is read from standard input. However, you cannot use the dash (-) if you are using the DS CLI interactive command mode.
Example
For this command and all other DS CLI list commands, the results are shown in table format for clarity. The actual reports do not display as tables. The following table shows example activation keys. Some activation keys are not listed in the example. The lskey command only displays the keys that are installed. A separate example is not shown for a DS6000 model because the displayed information is the same for both the DS8000 and DS6000 models. The only difference is the value input for the storage_image_ID parameter. An invocation example
dscli>lskey IBM.2107-75FA120
Global Mirror (GM), (not 25 available for DS6000 models) HyperPAV (not available for DS6000 models) Metro/Global Mirror (MGM), On 25
Metro Mirror (MM), (not 25 available for DS6000 models) Remote mirror and copy (RMC) Remote mirror for z/OS (RMZ) Operating Environment (OEL) 25 25.1 45
339
Activation key
IBM FlashCopy SE (not 25 available for DS6000 models) High Performance FICON On for System z (zHPF) (not available for DS6000 models) RMZ Resync (not available for DS6000 models) 25
CKD
ver
The ver command displays the versions of the command-line interface, storage management console (HMC or SMC), and licensed machine code. It does not display the version number of the Graphical User Interface (GUI).
ver -s -l -cli -stgmgr -lmc
Parameters
-s -l (Optional) Specifies that the system displays the version of the command-line interface program. You cannot use the -s and -l parameters together. (Optional) Specifies that the system displays the following version information: v The version of the DS command-line interface v The version of the DS Storage Manager (SMC or HMC) v The version of the licensed machine code You cannot use the -l and -s parameters together. -cli (Optional) Displays the version of the DS Command-line interface program. Version numbers are in the format version.release.modification.fixlevel. -stgmgr (Optional) Displays the HMC code version number. This value is not the version number of the Graphical User Interface (GUI).
340
Example
Invoking the ver command
dscli>ver l
| | | | | | | | | | | | | | | | | | | | | | | | | | | | |
v showkeygrp The mkkeymgr command creates an entry for the key server on the storage complex. The chkeymgr command updates the attributes of the key server entry on the storage complex. The rmkeymgr command removes a key server entry on the storage complex. The lskeymgr command displays a list of the key server entries that are on the storage complex. The mkkeygrp command creates an entry for the key server encryption key group on the storage image. The rmkeygrp command removes an entry for the key server encryption key group on a specified storage image. The lskeygrp command displays a list of the key server encryption key group entries on the specified storage image. The showkeygrp command displays detailed information for a specified key server encryption key group entry on the storage image.
mkkeymgr
The mkkeymgr command creates an entry for the key server on the storage complex. This command is not supported on DS6000 models.
Chapter 12. Command-line interface commands
341
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
-addr
IP_address
key_server_ID -
Parameters
-port port_ID (Optional) Specifies the key server port ID. The key server port ID is four or five decimal characters. For example, 8100 is a valid port ID. -state active | inactive (Optional) Specifies the state of the key server. -addr IP_address (Required) Specifies the IP address for the key server. The IP address can be an IPv4 address, an IPv6 address, or a DNS name. key_server_ID | (Required) Specifies the key server ID. The key server ID is a decimal number that ranges from 1 to N, where N is the maximum number of key servers that the DS8000 can support. Use the showsp command to determine this maximum number. If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode.
Example
An invocation example dscli> mkkeymgr -addr 9.11.56.78 4 The resulting output
Date/Time: Sun Aug 11 02:23:49 PST 2004 IBM DS CLI Version: 5.0.0.0 DS: IBM.210775FA120 The key server 4 has been created successfully.
chkeymgr
The chkeymgr command updates the attributes of the key server entry on the storage complex. This command is not supported on DS6000 models.
chkeymgr -state active inactive key_server_ID -
| | | | | | | |
Parameters
-state active | inactive (Optional) Updates the state of the key server. key_server_ID | (Required) Specifies the key server ID. If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode.
342
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
lskeymgr -s -l rmkeymgr
Example
An invocation example dscli> chkeymgr -state inactive 1 The resulting output
Date/Time: Sun Aug 11 02:23:49 PST 2004 IBM DS CLI Version: 5.0.0.0 DS: IBM.210775FA120 The key server 1 configuration has been changed.
rmkeymgr
The rmkeymgr command removes a key server entry on the storage complex. This command is not supported on DS6000 models.
key_server_ID - . . .
Parameters
key_server_ID . . . | (Required) Deletes the key servers with the specified key server ID. You must separate multiple IDs or ID ranges with a space between each value. If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode.
Example
An invocation example dscli> rmkeymgr 1 The resulting output
Date/Time: Sun Aug 11 02:23:49 PST 2004 IBM DS CLI Version: 5.0.0.0 DS: IBM.210775FA120 Are you sure you want to delete key server entry 1? y/n y The key server 1 has been deleted.
lskeymgr
The lskeymgr command displays a list of the key server entries that are on the storage complex. This command is not supported on DS6000 models.
-port
port_ID
-state
active inactive
-status
-addr
IP_address
key_server_ID -
. . .
343
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
mkkeygrp -dev
Parameters
-s -l (Optional) Displays the attributes that are identified as short output. (Optional) Displays the default output and attributes that are identified as long output.
-port port_ID (Optional) Displays the key servers that use the port ID that you specify. The key server port ID is four or five decimal characters. For example, 8100 is a valid port ID. -state active | inactive (Optional) Displays the key servers that are in the state that you specify. -status normal | hmc1_degraded | hmc2_degraded | failed (Optional) Displays the status of the key server path. -addr IP_address (Optional) Displays the key server that uses the IP address you specify. The IP address can be an IPv4 address, an IPv6 address, or a DNS name. key_server_ID . . . | (Optional) Displays the key servers that use the ID or IDs you specify. To include multiple IDs, separate each ID with a blank space. For example, 1 2 3 4. If you use the ( - ) dash option, this value can be read from standard input.
Example
An invocation example dscli> lskeymgr 1 2 The resulting output
Date/Time: Fri Aug 17 02:23:49 PST 2007 IBM DS CLI Version: 5.0.0.0 DS: IBM.210775FA120 ID state status addr port 1 active normal my_address1 3801 2 active normal my_address2 3801
status The status of the key server path. addr port The IP address of the key server. The key server port ID.
mkkeygrp
The mkkeygrp command creates an entry for the key server encryption key group on the storage image. This command is not supported on DS6000 models.
-label storage_image_ID key_label encryption_group_ID -
344
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
rmkeygrp -dev
Parameters
-dev storage_image_ID (Optional) Specifies the storage image ID, which includes manufacturer, machine type, and serial number. For example, IBM.2107-75FA120. The storage image ID is required if you do not specify a fully qualified encryption group ID, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. -label key_label (Required) Specifies the label for the key. You can enter a maximum of 64 ASCII characters for the label. encryption_group_ID | (Required) Specifies the ID for the encryption group. The encryption group ID is a decimal number that ranges from 1 to N, where N is the maximum number of encryption groups supported by the DS8000. Use the showsi command to determine this maximum number. If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode.
Example
An invocation example dscli> mkkeygrp -dev IBM.2107-75FA120 -label MyCompany 1 The resulting output
Date/Time: Sun Aug 11 02:23:49 PST 2004 IBM DS CLI Version: 5.0.0.0 DS: IBM.210775FA120 The key server encryption key group 1 has been created.
rmkeygrp
The rmkeygrp command removes an entry for the key server encryption key group on a specified storage image. This command is not supported on DS6000 models.
encryption_group_ID storage_image_ID - . . .
| | | | | | | | | | | |
Parameters
-dev storage_image_ID (Optional) Specifies the storage image ID, which includes manufacturer, machine type, and serial number. For example, IBM.2107-75FA120. The storage image ID is required if you do not specify a fully qualified encryption group ID, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. encryption_group_ID (Required) Specifies the ID for the encryption group. If you use the dash (-),
345
| | | | | | | | | | | | | | | |
lskeygrp -dev
the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode.
Example
An invocation example dscli> rmkeygrp -dev IBM.2107-75FA120 1 The resulting output
Date/Time: Sun Aug 11 02:23:49 PST 2004 IBM DS CLI Version: 5.0.0.0 DS: IBM.210775FA120 Are you sure you want to delete the key server encryption group 1? y/n y The key server encryption group 1 has been deleted.
lskeygrp
The lskeygrp command displays a list of the key server encryption key group entries on the specified storage image. This command is not supported on DS6000 models.
storage_image_ID
-s -l
-state
| |
encryption_group_ID . . . -
| | | | | | | | | | | | | | | | | | | | | |
Parameters
-dev storage_image_ID (Optional) Displays key group entries for the specified storage image ID, which includes manufacturer, machine type, and serial number. For example, IBM.2107-75FA120. The storage image ID is required if you do not specify a fully qualified encryption group ID, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. -s -l (Optional). Use this parameter to display only the attributes that are identified as short output. You cannot use the -s and the -l parameters together. (Optional). Use this parameter to display the default output and additional attributes that are identified as long output. You cannot use the -l and the -s parameters together.
-state accessible|inaccessible |rekeying (Optional) Specifies the state of the encryption group. encryption_group_ID. . . | - (Optional) Specifies the ID for the encryption group that you want to view. If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode.
346
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
showkeygrp
Example
An invocation example dscli> lskeygrp -dev IBM.2107-75FA120 0001 The resulting output
Date/Time: Sun Aug 11 02:23:49 PST 2004 IBM DS CLI Version: 5.0.0.0 DS: IBM.210775FA120 ID 1 numranks 1 numpools 1 state accessible label MyCompany
showkeygrp
The showkeygrp command displays detailed information for a specified key server encryption key group entry on the storage image. This command is not supported on DS6000 models.
encryption_group_ID -
-dev
storage_image_ID
Parameters
-dev storage_image_ID (Optional) Displays the properties for the specified storage image ID, which includes manufacturer, machine type, and serial number. For example,
Chapter 12. Command-line interface commands
347
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
IBM.2107-75FA120. The storage image ID is required if you do not specify a fully qualified encryption group ID, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. encryption_group_ID (Required) Specifies the ID for the encryption group.
Example
An invocation example dscli> showkeygrp -dev IBM.2107-75FA120 1 The resulting output
Date/Time: Sun Aug 11 02:23:49 PST 2004 IBM DS CLI Version: 5.0.0.0 DS: IBM.210775FA120 ID numranks numpools state label 1 1 1 accessible MyCompany
348
lsstgencl
The lsstgencl command displays a list of storage enclosures and status information for each enclosure in the list.
lsstgencl -s -l -state normal not_normal storage_image_ID - . . .
Parameters
-s -l (Optional) Displays the storage enclosure ID. You cannot use the -l and the -s parameters together. (Optional) Displays default output, plus the storage enclosure feature code and engineering change level. You cannot use the -l and the -s parameters together.
-state normal| not_normal (Optional) Displays all the storage enclosures that are associated with the specified storage unit that contain a condition of normal or a condition that falls under the category of not normal. storage_image_ID . . . | (Required) Displays storage enclosure information for the specified storage image IDs. A storage image ID consists of manufacturer, machine type, and serial number. You must separate multiple IDs with a space between each ID. Note: You cannot specify an ID range. If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode.
Example
You can issue the lsstgencl command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model the storage image ID is different. For this command and all other DS CLI list commands, the results are shown in table format to provide clarity. The actual reports do not display as tables.
349
The following tables represent the headers that are displayed on the output report that is associated with the lsstgencl command using the -l parameter. There are some differences in the returned values for a DS8000 model versus a DS6000 model. Invoking the lsstgencl command
dscli>lsstgencl -l IBM.2107-75FA120
R1
S12
3221
- (null)
S01
- (Not applicable)
IBM.1750EX1.68FA120 /S01
- (null)
S02
U1750. 511.685FA120
- (Not applicable)
Interadd
Storslot
Stordev 16 16 16 16
350
Enclnum Specifies the identity of a storage enclosure within a storage unit frame. The values displayed for a DS8000 model and a DS6000 model are as follows: For a DS8000 model, the values that are displayed for the enclosure are S11 - S18 or S21 - S28. These values are interpreted as follows: v Enclosures S1x are located in front of the frame. v Enclosures S2x are located in the rear of the frame. v Enclosure Sx1 is located at the top of the frame. v Enclosure Sx8 is located at the bottom of the frame. For a DS6000 model, the values that are displayed for the enclosure are S00 - S03 or S10 - S13. These values are interpreted as follows: v Enclosures S0x are located on DA pair interface 0. v Enclosures S1x are located on DA pair interface 1. Notes: 1. x represents the position of the storage enclosure. For example, the distance from the server enclosure. (0 first, 1 second, 2 third, 3 fourth) 2. The server enclosure contains a storage enclosure element that resides on FC-AL Loop 0, and that is what is returned with the command output. Loc Specifies the storage enclosure location by identifying the storage unit frame that contains the storage enclosure. The location format is Utttt.mmm.ppsssss. Specifies the feature code that was used to order this storage enclosure.
FC
Interfaces Specifies a list of four interface identifiers, one for each DA I/O port. A DA interface ID consists of four hexadecimal characters with the following format: t00 eeeee aaaa pppp, (value is separated for readability), where v v v v t = port type (0 = I/O port, DA ports are always I/O ports) 00 = reserved eeeee = enclosure number aaaa = adapter number
v pppp = port number The values for DS6000 represent the following: Notes: 1. For dual loop 0 enclosures, the DA I/O port values are displayed as 0080, 0081, 0180, 0181. 2. For dual loop 1 enclosures the DA I/O port values are displayed as 0082, 0083, 0182, 0183. Interadd Specifies the FC-AL interface base address assigned to this storage enclosure for DDM access. Storslot Specifies the number of slots for storage devices in this storage enclosure.
Chapter 12. Command-line interface commands
351
Stordev Specifies the number of storage devices that are installed in this storage enclosure. Cap (GB) Specifies the capacity of DDMs in the storage enclosure. Note: This field can contain multiple capacity values separated by a comma when the DDMs with different capacity are installed in the storage enclosure. RPM Specifies the rpm of the DDMs in the storage enclosure. Note: This field can contain multiple RPM values separated by a comma when the DDMs with different capacity are installed in the storage enclosure. State Specifies the condition of the storage enclosure. The condition of the enclosure is either normal or one of the conditions that falls under the category not_normal. The following values can be displayed: normal Indicates that the storage enclosure is not in any failure or transient condition. offline (DS8000 only) Indicates that the storage enclosure is not capable of processing any functions. failed Indicates that the storage enclosure is broken and ready to be removed without impacting the system. Note: For a DS6000 model, this condition changes to inter failed if the storage enclosure is found to be in good condition again. new (DS6000 only) This condition only displays when a storage enclosure is first discovered.
removed (DS6000 only) Indicates that the storage enclosure was removed from the system. inappropriate (DS6000 only) Indicates that the hardware resource cannot be integrated in the system. inter failed (DS6000 only) Indicates that the hardware resource is faulty but still working. PFSed (Prepared for Service) (DS6000 only) Indicates that the storage enclosure is ready to be removed without impacting the system. attention (DS6000 only) Indicates that there is a problem with the storage enclosure; however, it is not known whether it is faulty or not. This condition reverts to normal if the problem is closed. resuming (DS8000 only) Indicates that the storage enclosure is in the process of coming online.
352
quiescing (DS8000 only) Indicates that the storage enclosure is in the process of going offline.
lsframe
The lsframe command displays a list of frame enclosures for a storage image. This command is not supported on DS6000 models.
lsframe -s -l storage_image_ID . . . -
Parameters
-s -l Displays the rack enclosure ID. You cannot use the -l and the -s parameters together. Displays default output and the frame enclosure location. You cannot use the -l and the -s parameters together.
storage_image_ID . . . | Displays frame enclosure information for the specified storage image IDs. A storage image ID includes manufacturer, type, and serial number. You must separate multiple IDs with spaces. Note: ID ranges cannot be specified. If you use the dash (-), the specified value is read from standard input. Note: You cannot use the dash (-) while you are in the DS CLI interactive command mode.
Example
You can issue the lsframe command for a DS8000 model. For this command and all other DS CLI list commands, the results are shown in table format to provide clarity. The actual reports do not display as tables. The following table represents the headers that are displayed on the output report that is associated with the lsframe command. Invoking the lsframe command
dscli>lsframe -l IBM.2107-75FA120
353
Frame Identifies the unique identifier of the storage unit equipment frame that contains the specified frame enclosure. Loc Identifies the frame enclosure location. The location format is Uttt.mmm.ppsssss.
lsda
The lsda command displays a list of device adapters (DA) for each storage image. You can use this command to look at the status of each device adapter in the list. This command is not supported on DS6000 models.
lsda -s -l -encl enclosure_ID -server server_ID -dapair dapair_ID
Parameters
-s (Optional) Displays only device adapter IDs. You cannot use the -l and the -s parameters together.
354
-l
(Optional) Displays the same output as the default output. You cannot use the -l and the -s parameters together.
-encl enclosure_ID (Optional) Displays the device adapters that are associated with the specified processor complex or I/O enclosure. -server server_ID (Optional) Displays only device adapters that are associated with the specified server. -dapair dapair_ID (Optional) Displays only device adapters that are associated with the specified device adapter pair. -state online | offline | failed | loopx (Optional) Displays only device drivers in the specified state. storage_image_ID . . . | (Required) Displays device adapters for the specified storage images. A storage image ID includes a value for the manufacturer, machine type, and serial number. You must separate multiple IDs with spaces. Note: You cannot specify ID ranges. If you use the dash (-), the specified value is read from standard input. Note: You cannot use the dash (-) while you are in the DS CLI interactive command mode.
Example
You can issue the lsda command for a DS8000 model. For this command and all other DS CLI list commands, the results are shown in table format to provide clarity. The actual reports do not display as tables. The following table represents the headers that are displayed on the output report that is associated with the lsda command. Invoking the lsda command
dscli>lsda -l IBM.2107-75FA120
355
Server 00 01 00 01
v Offline Loop 2 v Offline Loop 3 v v v v v Offline Loop 4 Offline Loop 1/2 Offline Loop 3/4 Taking down Loop 1 Taking down Loop 2
v Taking down Loop 3 v Taking down Loop 4 v Taking down Loop 1/2 v Taking down Loop 3/4 v Bring up all loops Loc Specifies the I/O enclosure and the device adapter location. The I/O enclosure location format is Uttt.mmm.ppsssss. The device adapter location format is Pn-Cn where Pn indicates the Planner number (1) and Cn indicates the card number (1 - 6). FC Specifies the feature code that is used to order the specified device adapter.
Server Specifies the server or device adapter group to which the device adapter is assigned. DA pair Specifies the storage unit ID that is followed by the device adapter pair ID that is associated with the specified device adapter. The device adapter
356
pair identifier is a two-digit decimal number, with no leading zeros. Device adapter pairs are located in I/O enclosure pairs. Device adapter pair ID implies I/O enclosure location. An even numbered device adapter pair ID indicates the first device adapter pair in an I/O enclosure pair. An odd numbered device adapter pair ID indicates the second device adapter pair in an IO enclosure pair. Interfs Specifies the four interface IDs that are associated with the FC-AL ports.
lshba
The lshba command displays a list of storage image host adapters and status information for each host adapter in the list. This command is not supported on DS6000 models.
lshba -s -l -encl enclosure_ID -state online offline failed
storage_image_ID . . . -
Parameters
-s -l (Optional) Specifies that the system displays just the host adapter IDs. You cannot use the -l and the -s parameters together. (Optional) Specifies that the system displays the default output plus the host adapter feature code and interface IDs. You cannot use the -l and the -s parameters together.
-encl enclosure_ID (Optional) Specifies that the system displays host adapters that are associated with a common processor complex or I/O enclosure ID. -state online | offline | failed (Optional) Specifies that the system displays host adapters that are in a specified state. storage_image_ID . . . | (Optional) Specifies that the system displays host adapter information for the designated storage image IDs. A storage image ID includes a value for the manufacturer, machine type, and serial number. Notes: 1. Multiple IDs must be separated with spaces. 2. ID ranges cannot be specified. If you use the dash (-), the specified value is read from standard input. Note: You cannot use the dash (-) while you are in the DS CLI interactive command mode.
357
Example
You can issue the lshba command for a DS8000 model. For this command and all other DS CLI show commands, the results are shown in table format to provide clarity. The actual reports do not display as tables. The following table represents the headers that are displayed on the output report that is associated with the lshba command. Invoking the lshba command
dscli>lshba -l IBM.2107-75FA120
interfID Specifies the four interface IDs that are associated with the I/O ports on the host adapter.
358
lsddm
The lsddm command displays a list of disk drive modules (DDMs) and status information for each DDM in the list.
lsddm -s -l -enclosure enclosure_ID -dapair dapair_ID
-arsite
arraysite_ID
-usage
-state
normal not_normal
|
-dualloop 1 2 -encrypt supported unsupported
storage_image_ID . . . -
Parameters
-s -l (Optional) Specifies that the system displays the DDM IDs. You cannot use the -s and -l parameters together. (Optional) Specifies that the system displays the default output. You cannot use the -s and -l parameters together.
-enclosure enclosure_ID (Optional) Specifies that the system displays DDMs that are associated with a common storage enclosure ID. This parameter accepts a fully qualified enclosure ID, which includes either the storage image ID or a shortened version without the storage image ID. The shortened version is a hexadecimal number within the range (00 - 3F). -dapair dapair_ID (Optional) Specifies that the system displays DDMs that are associated with a common device adapter (DA) pair ID. This parameter accepts a fully qualified DA pair ID, which includes either the storage image ID or a shortened version without the storage image ID. The shortened version is a two-digit decimal number with no leading zeros. -arsite arraysite_ID (Optional) Specifies that the system displays DDMs that are associated with a common array site ID. This parameter accepts a fully qualified array site ID, which includes either the storage image ID or a shortened version without the storage image ID. The shortened version is a four-digit decimal number with no leading zeros, prefixed with the letter S. -usage unassigned | unconfigured | spare | not_spare | array_member (Optional) Specifies that the system displays DDMs that are associated with a specified usage. -state normal | not_normal (Optional) Specifies that the system displays DDMs that are associated with a specified state. -dualloop 1 | 2 (Optional) Specifies that the system displays DDMs that are associated with the designated dual loop.
Chapter 12. Command-line interface commands
359
| | |
-encrypt supported | unsupported (Optional) Specifies that the system displays only the ddms that have the specified encryption capability. storage_image_ID . . . | (Required) Specifies that the system displays DDM information for the designated storage image IDs. A storage image ID includes a value for the manufacturer, machine type, and serial number. You can specify multiple IDs and they must be separated with a space between each ID. Note: You cannot specify ID ranges. If you use the dash (-), the specified value is read from standard input. Note: You cannot use the dash (-) while you are in the DS CLI interactive command mode.
Example
You can issue the lsddm command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model the storage image ID is different. For this command and all other DS CLI list commands, the results are shown in table format to provide clarity. The actual reports do not display as tables. The following tables represent the headers that are displayed on the output report that is associated with the lsddm command using the -l parameter. Invoking the lsddm command
dscli>lsddm -l IBM.2107-75FA120
Model S0BE146
DA pair 11
Dualloop 1
S0BE146
U2107.921. 75FA120
3603
11
145
| | | | | | | |
Arsite
Position State 1 2
360
Firmwarelevel Specifies the level of firmware that is installed on the specified DDM. DA pair Specifies the device adapter pair ID. DA pairs are located in I/O enclosure pairs. Note: An even-numbered DA pair ID indicates the first DA pair in an I/O enclosure pair. An odd-numbered DA pair ID indicates the second DA pair in an I/O enclosure pair. Dualloop Specifies the dual loop that the specified DDM resides on. The value is either 1 or 2. Dkcap (10^9B) Specifies the DDM raw capacity in gigabytes. diskrpm Specifies the DDM rpm. One of the following values is displayed: v 10000 v 15000 dkinf Specifies the DDM interface type. One of the following values are displayed: v FC-AL v FC-NL Dkrate (Gb/sec) Specifies the DDM interface rate. dkuse Specifies the DDM usage in an array site. One of the following values are displayed: v unassigned v unconfigured v spare required v spare not required v array member arsite Specifies the array site ID.
Position Specifies the DDM position in an array site configuration of DDMs. State Specifies the current DDM state. One of the following values are displayed: Normal The storage device is operational and functional in its current disk usage.
Chapter 12. Command-line interface commands
361
New Indicates the initial state when a DDM is inserted or first discovered. Installing A new storage device has been identified. Verifying The storage device is made accessible to the device adapter, its characteristics are determined, cabling is checked, and diagnostics are run. Formatting A verified storage device requires low-level formatting and the formatting operation is in progress. Initializing The storage device is being initialized with all zero sectors. Certifying The storage device is read-accessed to determine that all sectors can be read. Rebuilding The storage device is being rebuilt with data from the array that it is associated with. Migration Target DDM migration is migrating another array member storage device to this spare storage device. Migration Source DDM migration is migrating this array member storage device to another spare storage device. Failed The storage device has failed and an immediate repair action is required. Failed - Deferred Service The storage device has failed and a repair action is not immediately required. Removed The storage device is removed from the system and removal has been processed by the system. Inappropriate The storage device is incompatible with the system; for example, a storage device that has the wrong capacity or rpm. The DDM is not failed, because it can be valid for other systems and locations. Inter failed Indicates that the DDM is faulty but still working. PFSed Indicates that the DDM is prepared for service, and ready to be removed without impacting the system. Diskclass Specifies the disk class as either high speed fibre channel disk drives or near-line disk drives. The value displayed is one of the following: v ENT = Specifies enterprise and represents high speed fibre channel disk drives
362
| | | | | | | | Encrypt
v NL = Specifies near-line and represents ATA (FATA) disk drives v SATA = Specifies high capacity SATA disk drives. Specifies the encryption support capability. The displayed value is one of the following: supported The disk drive modules in this rank are capable of encryption. unsupported The disk drive modules in this rank are not capable of encryption.
chsp
The chsp command modifies a storage complex for items such as notification of the Simple Network Management Protocol (SNMP) traps and e-mail problem notification lists in a storage complex. This command is not supported on DS6000 models.
chsp -snmp on off -snmpaddr new_ip_list -emailnotify on off
-emailaddr
new_email_list
-emailrelay
on off
-emailrelayaddr
new_relay_ip_list
-emailrelayhost
new_relay_host_name
-desc
new_sp_description
-name
new_sp_name
363
Parameters
Note: The Storage Manager server domain is a single storage complex. The storage complex object can only be created or deleted by service personnel. -snmp on | off (Optional) Specifies whether the Simple Network Management Protocol (SNMP) trap notification function sends notifications when a problem occurs on a storage complex. SNMP traps that are generated by the storage complex are sent to the IP address that is specified by the -snmpaddr parameter. -snmpaddr new_ip_list (Optional) Specifies a new SNMP trap destination list. This list consists of one or two IP addresses that receive SNMP traps that are generated by the storage complex if SNMP is enabled. Note: Multiple IP addresses must be separated with a comma with no space before or after each comma. -emailnotify on | off (Optional) Specifies whether e-mail notifications are sent to the designated e-mail addresses when a problem occurs on a storage complex. When you enable the -emailnotify and -emailrelay parameters, the e-mail notification is sent directly to the IP address that is associated with the -emailrelayhost hostname parameter. However, if the e-mail relay host name is not specified, the e-mail notification is sent directly to the e-mail relay address. When e-mail notify is enabled and e-mail relay is disabled, the e-mail notification is sent directly to the specified e-mail address. -emailaddr new_email_list (Optional) Specifies the e-mail IP address or addresses where problem notifications are sent. You can specify two IP addresses. Note: Multiple IP addresses must be separated with a comma with no space before or after the comma. -emailrelay on | off (Optional) When you enable the -emailrelay and -emailnotify parameters, the e-mail notification is sent directly to the IP address that is associated with the -emailrelayhost new_relay_host_name parameter. However, if the e-mail relay host name is not specified, the e-mail notification is sent directly to the e-mail relay address. When e-mail notify is enabled and e-mail relay is disabled, the e-mail notification is sent directly to the specified e-mail address. -emailrelayaddr new_relay_ip_list (Optional) Specifies the e-mail relay IP address list. You can specify two IP addresses. Note: Multiple IP addresses must be separated with a comma with no space before or after the comma. -emailrelayhost new_relay_host_name (Optional) Specifies the new e-mail relay host system name. -desc new_sp_description (Optional) Specifies your description of the storage complex. This description is limited to 256 byte or 128 double-byte characters.
364
-name new_sp_name (Optional) Specifies the name that you designate for the storage complex. This name is limited to 32 byte or 16 double-byte characters.
Example
Invoking the chsp command
dscli>chsp -desc "my storage complex"
setvpn
The setvpn command starts or ends an outbound virtual private network connection (VPN). This command is not supported on DS6000 models.
setvpn -vpnaddr smc1 smc2 -action connect disconnect
Parameters
During the installation of the DS8000 product, the hardware management console (HMC) sends a certificate (signed public key) to IBM for server authentication and for SSL encryption of applications using VPN (Internet and modem) connections. You can use the setvpn command to start or stop the session and to create a secure connection. In addition, the IBM VPN server does additional authentication to allow traffic to certain IBM servers only, for the call home feature and remote service. Notes: 1. Only IBM support personnel with special access rights can use the VPN connection. 2. The setvpn command is used when remote access is required by IBM Support personnel and there is no local on-site access to the machine. 3. It can take from 2 to 10 minutes for the secure connection to be established and recognized by the RS3/RS4 server. 4. The secure connection ends automatically when the terminal emulation session ends. However, you also have the ability to end the session earlier by issuing the setvpn -action disconnect command. 5. The -vpnaddr parameter requires that you specify a value for either smc1 or smc2. If you do not specify the -vpnaddr parameter, the storage management console (SMC) for the current connection is used. The SMC address is taken from the profile file or the SMC address that you specify on the DS CLI command line. -vpnaddr smc1 | smc2 (Optional) Specifies the VPN server machine. In addition, you can specify where you want the outbound VPN to start from by designating the following values:
Chapter 12. Command-line interface commands
365
smc1
Identifies the management console (SMC) where you want the outbound VPN to start from. The console that you have specified in your profile for hmc1 starts your DS CLI session, unless you specify a console that is not designated in your profile. In this case, the console that you specify to start your session is the one where the connection is made. Identifies the management console where you want the outbound VPN to start from. The console that you have specified in your profile for hmc2 starts your DS CLI session, unless you specify a console that is not designated in your profile. In this case, the console that you specify to start your session is the one where the connection is made.
smc2
-action connect | disconnect (Required) Specifies that the secure VPN connection be started or disconnected.
Example
Invoking the setvpn command
dscli>setvpn vpnaddr smc1 action connect
lsvpn
The lsvpn command displays a report that lists the outbound VPN information such as management consoles and connection status. This command is not supported on DS6000 models.
lsvpn -s -l -vpnaddr smc1 smc2 -vpnstatus connected disconnected
Parameters
-s -l (Optional) Specifies that the system displays the management console (SMC) and connection status. You cannot use the -l and -s parameters together. (Optional) Specifies that the system displays the management console (SMC) and connection status. You cannot use the -l and -s parameters together.
-vpnaddr smc1 | smc2 (Optional) Specifies the VPN server machine. In addition, you can specify where the outbound VPN was started from by designating the following values: smc1 Identifies the management console (SMC) where the outbound VPN was started from. The console that you have specified in your profile for hmc1 starts your DS CLI session, unless you specify a console that is not designated in your profile. In this case, the console that you specified to start your session is the one that is listed in the report as being where the connection was made. Identifies the management console where the outbound VPN was started from if you did not start it from the management console identified by smc1. The console that you have specified in your profile
smc2
366
for hmc2 starts your DS CLI session, unless you specified a console that is not designated in your profile. In this case, the console that you specified to start your session is the one that is listed in the report as being where the connection was made. Note: The default value is to display the address for smc1 and smc2. If you do not specify the -vpnaddr parameter, the generated report displays both the smc1 and smc2 addresses as they are recorded in your profile. -vpnstatus connected | disconnected (Optional) Specifies that you receive a report that displays only the SMC for the connection status specified. Note: The default value is to display the connection status for all SMCs. The generated report displays all connected and disconnected SMCs.
Example
For this command and all other DS CLI list commands, the results are shown in table format for clarity. The actual reports do not display as tables. The following table represents the headers that are displayed on the output report that is associated with the lsvpn command. Invoking the lsvpn command
dscli>lsvpn -l
showsp
The showsp command displays a properties report for a storage complex. The report included the properties values for the names, descriptions, and customer account names of the storage complex. This command is not supported on DS6000 models.
showsp
Parameters
There are no parameters for this command.
Example
The following table represents the headers that are displayed on the output report that is associated with the showsp command. Invoking the showsp command
Chapter 12. Command-line interface commands
367
dscli>showsp
| | | | | | | | |
eMailrelay
eMailrelayaddr 9.xxx.14.45
eMailrelayhost relay_host
numks supported 1
368
-emailrelayhost hostname parameter. However, if the e-mail relay host name is not specified, the e-mail notification is directed to the e-mail relay address. When -email is enabled and -emailrelay is disabled, the email is sent directly to the specified e-mail address. eMailrelayaddr Specifies one or more e-mail relay IP addresses. These IP addresses represent the addresses through which notification is relayed if service is required when e-mail is enabled. eMailrelayhost Specifies the e-mail relay host system name. | | numkssupported The number of key servers that are supported.
chsu
The chsu command modifies a storage unit. You can also use this command to power-on and power-off a DS8000 storage unit.
chsu -pwrmode manual auto zseries -pwron -pwroff -desc new_su_description
-name
new_su_name
storage_unit_ID -
Parameters
-pwrmode manual | auto | zseries (Optional) (DS8000 only) Sets a requested remote power control mode on the storage unit. manual Specifies that the storage facility power-on and power-off sequences are performed based on the manual power on and off controls.
369
auto A storage facility power-on sequence is performed when external power first becomes available to the first rack of a storage facility (for example, when standby power is first activated to the remote power control cards). zseries Specifies that the power control mode is set to zSeries remote power control. Note: Changing the power mode can take several minutes. Initiating a power-on or power-off request in manual mode can take up to 25 minutes. During a power-on or power-off request, access requests to the storage unit might be queued. This queuing can result in a loss of response on other functions that access the storage unit when accessed by the CLI. -pwron (Optional) (DS8000 only) Turns on power to the storage unit. For DS8000, this parameter is valid if the control mode is set to manual and the switch is set to remote. -pwroff (Optional) Turns off power to the storage unit. For DS8000, this parameter is valid if the control mode is set to manual and the switch is set to remote. -desc new_su_description (Optional) Allows you to specify a description for the storage unit. The description is limited to 256 byte or 128 double-byte characters. -name new_su_name (Optional) Allows you to specify a user-defined name for the storage unit. This name is limited to 32 bytes or 16 double-byte characters. storage_unit_ID | (Required) Accepts the fully qualified storage unit ID. The storage unit ID consists of manufacturer, machine type, and serial number. For example, IBM.2107-75FA120. If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode.
Example
The example displays the input for a DS8000 model. The input for a DS6000 is the same except for the machine type and that you cannot use the pwrmode and the pwron parameters with the DS6000 model. Invoking the chsu command
dscli>chsu -pwrmode manual IBM.2107-75FA120
370
lssu
The lssu command displays a list of storage units in a storage complex. You can use this command to look at the status and other properties of each storage unit in the list.
lssu -s -l -power on off storage_unit_ID . . . -
Parameters
-s -l (Optional) Displays storage unit IDs. You cannot use the -l and the -s parameters together. (Optional) Displays default output and remote mode with scheduled power-on and power-off times, and the storage unit description. You cannot use the -l and the -s parameters together.
-power on | off (Optional) Displays only the storage units in the specified power state. storage_unit_ID . . . | (Optional) Displays storage units with the specified storage unit IDs. A storage unit ID includes manufacturer, machine type, and serial number. You must separate multiple IDs with a space between each ID. Note: You cannot specify ID ranges. If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode.
Example
You can issue the lssu command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model the storage image ID is different. For this command and all other DS CLI list commands, the results are shown in table format to provide clarity. The actual reports do not display as tables. The following table represents the headers that are displayed on the output report that is associated with the lssu command using the -l parameter. Invoking the lssu command
dscli>lssu -l
Name SU 1
ID IBM.210775FA110
Model 921
Desc Test
371
Name SU 2
ID IBM.210775FA120 IBM.210775FA130
Model 921
Pw State On
Pw Mode Local
SU 3
921
On
Local
Model
372
Remote zSeries Power Control Indicates that the SMC local/remote switch is set to remote and that the power control mode is set to zSeries remote power control. Desc Specifies the description that you assigned the storage unit. This value is displayed as a null (-) if no description has been assigned.
showsu
The showsu command displays detailed properties of an individual storage unit.
showsu storage_unit_ID -
Parameters
storage_unit_ID (Required) Specifies the storage unit ID. A storage unit ID consists of manufacturer, machine type, and serial number. If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode.
Example
You can issue the showsu command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model the storage image ID is different. For this command and all other DS CLI show commands, the results are shown in table format to provide clarity. The actual reports do not display as tables. The following table represents the headers that are displayed on the output report that is associated with the showsu command. Invoking the showsu command
dscli>showsu IBM.210775FA120
Pw State On
Pw Mode Local
Processor Memory 1 GB
MTS IBM.242475FA120
373
Model Identifies the model number of the designated storage unit. WWNN Specifies the World Wide Node Name for the listed storage unit. This value is null (-) if the WWNN is not known. Config Specifies the internal I/O interface configuration for the storage unit. One of the following values is displayed: Undefined Indicates that the configuration is undefined. Models that do not use this field will display Undefined. One I/O interface Indicates that there is one dedicated I/O interface between the I/O enclosure pairs and storage enclosures. Two I/O interfaces Indicates that there are two dedicated I/O interfaces between the I/O enclosure pairs and storage enclosures. Four I/O interfaces Indicates that there are four dedicated I/O interfaces between the I/O enclosure pairs and storage enclosures. Six I/O interfaces Indicates that there are six dedicated I/O interfaces between the I/O enclosure pairs and storage enclosures. Pw State Indicates the power status of the listed storage unit. One of the following values is displayed: On Indicates the storage unit power is on. Off Indicates the storage unit power is off. Turning On Indicates the storage unit power is in the process of turning on. Turning Off Indicates the storage unit power is in the process of turning off. Power Exception Indicates that storage unit power is on, but online operation is not possible due to a power fault in one of the storage unit frames. Pw Mode Indicates the power control mode in effect for the listed storage unit. One of the following values is displayed:
374
Local Indicates that the SMC local/remote switch is set to the local power control mode. Remote SMC Manual Indicates that the SMC local/remote switch is set to remote and that the power control mode is set to manual power control. Remote SMC Auto Indicates that the SMC local/remote switch is set to remote and that the power control mode is set to auto-power control. Remote zSeries Power Control Indicates that the SMC local/remote switch is set to remote and that the power control mode is set to zSeries remote power control. Reqpm Indicates the power control mode to apply when the local/remote switch is set to remote power control mode. One of the following values is displayed: v Remote SMC Manual v Remote SMC Auto v Remote zSeries Power Control Note: The default value is remote SMC Manual mode. Processor Memory Specifies the amount in gigabytes of processor memory configured on the storage unit. MTS (DS8000 models) Specifies the order type of the storage unit. The order type and the machine type of the storage unit is the same on all storage units ordered before release 2.4. After release 2.4, the order type varies according to the warranty periods associated with the storage unit. (DS6000 models) No value is specified for a DS6000 model.
The chsi command primarily enables or disables the ESSNet user interface that invokes Copy Services operations for the storage image, changes the description and name that you have assigned to the storage image, or changes an iSystem serial number. The diagsi command initiates a warm start on a DS8000 and a DS6000 system.
375
The lsserver command displays all the servers in a storage complex or a list of specified servers. The displayed list also provides the status information for each server including the LIC version number, operating system version number, and bundle version. The lssi command with the lsavailpprcport and the mkpprcpath commands displays a list of storage images in a storage complex. These commands requires that you use the storage image WWNN, which is displayed for each storage image when you use the lssi command. The showsi command displays the detailed properties of a storage image. In addition, the storage image WWNN is displayed for the specified storage image. The storage image WWNN is needed when you use the lsavailpprcport and mkpprcpath commands.
chsi
The chsi command modifies a storage image. You can use it to set characteristics such as online or offline state, name, and description.
chsi -essnetcs y n -volgrp volume_group_ID -desc new_si_description
-name
new_si_name
-os400sn
iSeries_Serial_Number
storage_image_ID -
Parameters
-essnetcs y | n (Optional) Enables or disables the storage complex ESSNet user interface to invoke Copy Services operations for the storage image. y (yes) is the default. -volgrp volume_group_ID (Optional) Specifies the ESSNet Copy Services type volume group that contains the logical volumes that are eligible for control by Copy Services operations, when the -essnetcs y parameter is used. All logical volumes are eligible for control by Copy Services operations if the -essnetcs y parameter and the volume group ID are not specified. The -volgrp parameter accepts a fully qualified volume group ID including the storage image ID or a shortened version. The shortened version is a four-digit decimal number with no leading zeros, prefixed with the letter V. -desc new_si_description (Optional) Specifies the description that you assign to the storage image. The description is limited to 256 bytes or 128 double-byte characters. -name new_si_name (Optional) Specifies the name that you assign to the storage image. The storage image name is limited to 32-byte or 16 double-byte characters. -os400sn iSeries_Serial_Number (Optional) (DS6000 only) Specifies the new iSeries serial number. The serial number consists of 3 hexadecimal characters. It uniquely identifies LUNs within a customer storage complex. It is appended to the unit serial number that is returned by a SCSI inquiry command that is directed to each LUN.
376
Notes: 1. You must restart your computer after you process this DS CLI command to assign a new serial number. 2. The iSeries serial number is only required when you have multiple DS**** machines with the last 3-digits of the machine serial number that overlap. storage_image_ID | (Required) Specifies the storage image ID, which consists of the values for manufacturer, machine type, and serial number. If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode.
Example
You can issue the chsi command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model, the storage image ID is different. Invoking the chsi command
dscli>chsi -essnetcs n IBM.210775FA120
diagsi
The diagsi command is an administrative utility command that a user with administrative or service authority can use for nonroutine diagnostic actions.
diagsi -action warmstart storage_image_ID
Parameters
Note: Only users with administrator or service authority are authorized to use this command. -action warmstart (Required) Specifies the administrative action to be performed. warmstart The -action warmstart parameter initiates a warmstart on the storage image, which causes the storage image to collect microcode data that is useful in diagnosing problems. This action is restricted to the following usage rules: v This action must only be used under the direction of IBM Service. v You must be in interactive mode to issue this action. You cannot issue this action while in single shot mode or from a script. v Five minutes must pass before you can reissue the -action warmstart parameter.
377
v If you issue the -action warmstart parameter more than 10 times during a 24-hour period, the warmstart will not collect the microcode diagnostic data. storage_image_ID (Required) Accepts a fully qualified storage image ID. The storage image ID consists of manufacturer, machine type, and serial number.
Example
You can issue the diagsi command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model, the storage image ID is different. Invoking the diagsi command
dscli>diagsi -action warmstart IBM.210768FA120
lsserver
The lsserver command displays all servers in a storage complex or a list of specified servers and it also displays the status information for each server in the list.
lsserver -s -l Server_ID . . . -
Parameters
-s -l (Optional) Displays the server ID. You cannot use the -l and the -s parameters together. (Optional) Displays the default output and the state mode of the servers. You cannot use the -l and the -s parameters together.
Server_ID . . . | (Optional) Displays the server information for the specified server IDs. This parameter accepts a fully qualified server ID, which includes the storage image ID or a shortened version without the storage image ID. The shortened version is a two-digit decimal number with no leading zeros. For DS8000, v Example: IBM.2107-13AAV3A/0 v Example: IBM.2107-13AAV3A/1 To specify a range of server IDs, separate the server IDs with a hyphen. You must separate multiple server IDs or ranges of server IDs with a blank space between each ID or range of IDs.
378
If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode.
Example
For this command and all other DS CLI list commands, the results are shown in table format to provide clarity. The actual reports do not display as tables. The following table represents the headers that are displayed on the output report that is associated with the lsserver command using the -l parameter. Separate examples are shown for DS6000 and DS8000. The only difference is the value you input when you use the Server_ID parameter. Invoking the lsserver command
dscli>lsserver -l
State Online
OS Version -
Bundle Version -
Online
5.3.0.832
State Online
Online
5.2.2.338
2007.6. 26.203005
5.2.2.338
379
Image ID Specifies the image ID for the designated storage server. For a DS6000, this field always reports a dash. Image Name Specifies the image name for the designated storage server. For a DS6000, this field always reports a dash. Power Control SFI Specifies the storage server power control SFI. State Specifies the current state of the designated server.
LIC Version Specifies the LIC version for the designated storage server. OS Version Specifies the operating system version for the designated server. For a DS8000, this field always reports a dash. Bundle Version Specifies the bundle version for the designated storage server. For a DS8000, this field always reports a dash.
lssi
The lssi command displays a list of storage images in a storage complex. You can use this command to look at the status of each storage image in the list. The storage image worldwide node name (WWNN) is displayed when this command is used. You must use the storage image WWNN with the lsavailpprcport and mkpprcpath commands.
lssi -s -l -state online offline fenced -su_id storage_unit_ID
storage_image_ID . . . -
Parameters
-s -l (Optional) Displays storage image IDs. You cannot use the -l and the -s parameters together. (Optional) Displays the default output, ESSNet, volume group, and storage image description. You cannot use the -l and the -s parameters together.
-state online | offline | fenced (Optional) Displays only the storage images in the specified state. -su_id storage_unit_ID . . . (Optional) Displays the storage images that are associated with the specified storage unit. A storage unit ID consists of manufacturer, machine type, and serial number. storage_image_ID . . . | (Optional) Accepts fully qualified storage image IDs. A storage image ID consists of manufacturer, machine type, and serial number. You must separate multiple IDs with a space between each ID.
380
Note: You cannot specify ID ranges. If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode.
Example
For this command and all other DS CLI list commands, the results are shown in table format to provide clarity. The actual reports do not display as tables. You can issue the lssi command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model, the storage image ID is different. The following tables represent the headers that are displayed on the output report that is associated with the lssi command using the -l parameter. A separate example is not shown for the DS6000 because the information is the same for the DS8000 and the DS6000. There is a difference in the input values when you use the su_ID and storage_image_ID parameters. Invoking the lssi command
dscli>lssi -l
State Online
ESSNet Enabled
Volume Group -
Storage Unit Specifies the storage unit ID that consists of the manufacture, machine type, and serial number. Model Specifies the model number that is associated with the storage unit. WWNN Specifies the worldwide node name that is assigned to the storage unit. State Specifies the status of the storage unit. One of the following values are displayed: Online Indicates that the storage unit is capable of processing all functions.
381
Offline Indicates that the storage unit is offline and not capable of processing any functions. Resuming Indicates that the storage unit is in the process of coming online. Quiescing Indicates that the storage unit is in the process of going offline. Quiesce Exception Indicates that the storage unit is in the quiesce exception state. Forced Quiescing Indicates that the storage unit is in the process of performing a force offline operation. Fenced Indicates that the storage unit has failed and is offline. Discovery (DS6000 only) Indicates that the storage unit is determining which physical configurations are available and updates itself when it discovers new hardware. ESSNet Specifies that the storage-complex ESSNet user interface can invoke Copy Services operations to this storage image. Enabled or Disabled are the values that are displayed in this field. Volume Group Specifies the ESSNet Copy Services Volume Group ID or displays a null (-) in this field. If ESSNet Copy Services operations are enabled, the value that is displayed in this field specifies the ESSNet Copy Services type volume group. This volume group contains the logical volumes that can be controlled by Copy Services operations that are initiated through the ESSNet. If ESSNet Copy Services operations are enabled and the ESSNet Copy Services Volume Group ID is not specified (represented by the null (-) value in this field), all logical volumes are eligible to be controlled by Copy Services operations that are initiated through the ESSNet. Desc Specifies the value that you have assigned as a description for the storage unit.
showsi
The showsi command displays detailed properties of a storage image. The storage image worldwide node name (WWNN) is displayed when this command is used. You must use the storage image WWNN with the lsavailpprcport and mkpprcpath commands.
showsi storage_image_ID -
382
Parameters
storage_image_ID | (Required) Specifies the storage image ID. A storage image ID consists of a manufacturer, machine type, and serial number. If you use the dash (-), the specified value is read from standard input. However, you cannot use the dash (-) while you are in the DS CLI interactive command mode.
Example
For this command and all other DS CLI show commands, the results are shown in table format to provide clarity. The actual reports do not display as tables. You can issue the showsi command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model, the storage image ID is different. The following tables represents the headers that are displayed on the output report that is associated with the showsi command. A separate example is not shown for DS6000 because the information is the same for both DS8000 and DS6000. The report displays the iSeries serial number for a DS6000 model and an MTS column for a DS8000 model. Invoking the showsi command
dscli>showsi IBM.210775FA120
Name
Desc
ID IBM. 210775FA120
Model 921
WWNN
Signature
| | | | | |
State
numeg supported 1
Online Enabled -
Storage Unit Specifies the storage unit ID that consists of the manufacture, machine type, and serial number. Model Specifies the model number that is associated with the storage unit.
Chapter 12. Command-line interface commands
383
WWNN Specifies the worldwide node name that is assigned to the storage unit. Signature Specifies the machine signature that is represented by 12 hexadecimal digits in the format xxxx-xxxx-xxxx. State Specifies the status of the storage unit. One of the following values are displayed: Online Indicates that the storage unit is capable of processing all functions. Offline Indicates that the storage unit is not capable of processing any functions. Resuming Indicates that the storage unit is in the process of coming online. Quiescing Indicates that the storage unit is in the process of going offline. Quiesce Exception Indicates that the storage unit is in the quiesce exception state. Forced Quiescing Indicates that the storage unit is in the process of performing a force offline operation. Fenced Indicates that the storage unit has failed and is offline. Discovery Indicates that the storage unit is determining which physical configurations are available and updates itself when it discovers new hardware. (DS6000 only) | | | | | | | | | ESSNet Specifies that the storage-complex ESSNet user interface can invoke Copy Services operations to this storage image. Enabled or Disabled are the values that are displayed in this field. Volume Group Specifies the ESSNet Copy Services Volume Group ID or displays a null (-) in this field. If ESSNet Copy Services operations are enabled, the value that is displayed in this field specifies the ESSNet Copy Services type volume group. This volume group contains the logical volumes that can be controlled by Copy Services operations that are initiated through the ESSNet. accessible The encryption group is accessible if it has been configured and the storage image has obtained the encryption key from the key server for the encryption group. inaccessible The encryption group is inaccessible, the storage image was unable to obtain the encryption key from the key server. unconfigured The encryption group is unconfigured if it has not been configured.
384
If ESSNet Copy Services operations are enabled and the ESSNet Copy Services Volume Group ID is not specified (represented by the null (-) value in this field), all logical volumes are eligible to be controlled by Copy Services operations that are initiated through the ESSNet. OS400Serial (DS6000 only) Specifies null (-) for a DS8000 model and the iSeries serial number for a DS6000 model. The serial number consists of 3 hexadecimal characters. It is used to uniquely identify LUNs within a customers storage complex. It is appended to the unitSerialNumber that is returned by a SCSI inquiry command directed to each LUN. NVS Memory Specifies the amount in gigabytes of nonvolatile storage (NVS) memory configured on the storage unit. Cache Memory Specifies the amount in gigabytes of cache memory configured on the storage unit. Processor Memory Specifies the amount in gigabytes of processor memory configured on the storage unit. MTS Specifies the order type of the storage unit. The order type and the machine type of the storage unit is the same on all storage units that are ordered before release 2.4. After release 2.4, the order type varies according the warranty periods that are associated with the storage unit. Note: This value is not reported for a DS6000 model. A null (-) value is displayed. | | numegsupported Specifies the number of encryption groups that are supported.
385
The setioport command configures one or more I/O ports for open systems or System z host system connections. The showioport command displays the properties of a specified I/O port. It optionally displays the performance metrics for the I/O port.
lsioport
The lsioport command displays a list of all the I/O ports that are installed on the specified storage image and optionally provides performance metrics for each I/O port that is listed.
lsioport -dev storage_image_ID -s -l -type fc escon
|
-topology fc-al scsi-fcp ficon scsi-fcp/ficon -state online offline fenced deconfigured -metrics
port_ID . . . -
Parameters
-dev storage_image_ID (Optional) Specifies the storage image ID, which consists of manufacturer, machine type, and serial number. The storage image ID is required if you do not specify a fully qualified port ID, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. -s -l (Optional) Displays fully qualified port IDs. You cannot use the -l and -s parameters together. (Optional) Displays default output plus the I/O port interface speed.
| | | | |
-type fc | escon (Optional) Displays I/O ports of the specified port type. Escon can be specified as the port type for DS8000 models only. | -topology fc-al | scsi-fcp | ficon | scsi-fcp/ficon (Optional) Displays fibre-channel I/O ports with the specified topology. -state online | offline | fenced | deconfigured (Optional) Displays I/O ports of the specified state. -metrics (Optional) Displays port ID and performance metrics for each port that is specified. Note: All performance counts are an accumulation since the most recent counter wrap or counter reset operation. I/O port performance counters are reset with a storage unit power-on sequence.
386
port_ID . . . | (Optional) Displays I/O ports that match the specified IDs. This parameter accepts a fully qualified port ID, which includes the storage image ID, or a shortened version without the storage image ID when the -dev parameter is specified. A port ID is prefixed with the letter I and consists of four hexadecimal characters in the format EEAP, where: For DS8000, v EE is an I/O port enclosure number in the range of 00 - 17. v A is the adapter number and is specified as 1, 2, 4, or 5. v P is the port number (0 - 3). For DS6000, v EE is an I/O port enclosure number in the range of 00 - 01. v A is the adapter number and is specified as 0, 1, 2, or 3. v P is the port number (0 - 3). To specify a range of port IDs, separate the port IDs with a hyphen. You must separate multiple port IDs or ranges of port IDs by a blank space between each ID or range of IDs. If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode.
Example
For this command and all other DS CLI list commands, the results are shown in table format to provide clarity. The actual reports do not display as tables. You can issue the lsioport command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model the storage image ID is different. The following tables represent the headers that are displayed on the output reports that are associated with the lsioport command. A separate example is not shown for the DS6000 because the information is the same for both the DS8000 and DS6000. Invoking the lsioport command
dscli>lsioport dev IBM.2107-75FA120 -l
387
WWPN Specifies the fibre channel worldwide port number. If the port type is not fibre channel, the value displayed is null (-). State Specifies the current I/O port status. One of the following values can be displayed: Online Indicates that the storage unit is capable of processing all functions (default). Offline Indicates that the storage unit is not capable of processing any functions. Resuming Indicates that the storage unit is in the process of coming online. Quiescing Indicates that the storage unit is in the process of going offline. Fenced Indicates that the storage unit has failed and is offline. Deconfigured Indicates that the I/O port is in the process of being deleted. Type Specifies the port type. The following values can be displayed: v Fibre Channel-SW - (SW stands for short wave) v Fibre Channel-LW - (LW stands for long wave, 10 KM) v Fibre Channel-LW 4 KM - (LW stands for long wave, 4 KM) (DS8000 only) v ESCON (DS8000 only) Topo Specifies the I/O port topology. The following values can be displayed: v v v v Portgrp Specifies the identifier that associates a subset of the I/O ports that are operating in anonymous access mode. Default value is 0 when these subsets are not specified. Speed Specifies the I/O port interface speed. The following values can be displayed: v ESCON ports = 200Mb/s (DS8000 only) v FCP ports = 1 Gb/s, 2 Gb/s, 4 Gb/s v FICON ports = 1 Gb/s, 2 Gb/s, 4 Gb/s v Unknown (DS6000 only) FC-AL SCSI-FCP FICON Null (-) This value is displayed when the port type is not fibre channel.
388
For DS8000 models, one report is for the FICON/ESCON I/O port type and the other report is for the SCSI-FCP I/O port type. A banner is displayed (for example: ===FICON/ESCON-Enabled I/O Ports===) before each report. For DS6000 models, one report is for the FICON I/O port type and the other report is for the SCSI-FCP I/O port type. A banner is displayed (for example: ===FICON-Enabled I/O Ports===) before each report. For DS8000 and DS6000 models, a report is not displayed for a port type that has no ports that are enabled. FICON ports (for DS6000 models only) and FICON/ESCON ports (for DS8000 models only): Each of the following headers and value types are displayed: ID Date Specifies the fully qualified port ID. Specifies the current time stamp for the I/O port performance counters. For example, 08/11/05 02:23:49 is the format that is used to report this value.
byteread Specifies the number of bytes that are read in 128 KB increments. bytewrit Specifies the number of bytes that are written in 128 KB increments. Reads Specifies a value that is based on extended count-key-data (ECKD) data received operations. Writes Specifies a value that is based on ECKD data transferred operations. Timeread Specifies a value that is based on the ECKD data that is received (read-accumulated time) on a channel. The displayed value is based on increments of 16 milliseconds. Timewrite Specifies a value that is based on the ECKD data that is transferred (write-accumulated time) on a channel. The displayed value is based on increments of 16 milliseconds. SCSI-FCP ports: Each of the following headers and value types are displayed: ID Date Specifies the fully qualified port ID. Specifies the current time stamp for the I/O port performance counters. For example, 08/11/05 02:23:49 is the format used to report this value.
Bytewrit Specifies a value for the remote mirror and copy data transferred operations in increments of 128 KB. Byteread Specifies a value for the remote mirror and copy data received operations in increments of 128 KB. Writes Specifies a value for the remote mirror and copy data transferred operations. Reads Specifies a value for the remote mirror and copy data received operations.
389
Timewrite Specifies a value that is based on the remote mirror and copy data transferred (write-accumulated) time on a channel. The displayed value is based on increments of 16 milliseconds. Timeread Specifies a value for the remote mirror and copy data received (read-accumulated) time on a channel. The displayed value is based on increments of 16 milliseconds. Byteread Specifies a value that is based on the SCSI data received operations. The displayed value is based on increments of 128 KB. Reads Specifies a value that is based on the SCSI data transferred operations. Writes Specifies a value that is based on the SCSI data transferred operations. Timeread Specifies a value that is based on the SCSI data received (read-accumulated) time on a channel. The displayed value is based on increments of 16 milliseconds. Timewrite Specifies a value that is based on the SCSI data transferred (write-accumulated) time on a channel. The displayed value is based on increments of 16 milliseconds. | | | | | | | | | | | | | | | | | | | | | | | |
390
| | | | | | | | | | | | | | | | | | | | | | | | | | |
IllegalFrame Specifies the number of frames that violated the Fibre Channel protocol. One example of a violation is an invalid frame header, which occurs when the first frame of a data sequence is missing and a subsequent data frame is detected as illegal. OutOrdData Specifies the number of times that an out-of-order frame is detected. The frame is either missing from a data sequence or it is received beyond the ports sequence reassembly threshold. OutOrdACK Specifies the number of times that an out-of-order ACK (ACKnowledgment field of the TCP protocol) frame is detected. The frame is either missing from a data sequence or it is received beyond the ports sequence reassembly threshold. DupFrame Specifies the number of times a frame was received that has been detected as previously processed. InvRelOffset Specifies the number of times that a frame was received with bad relative offset in the frame header. SeqTimeout Specifies the number of times the port has detected a timeout condition after receiving a sequence initiative for a fibre channel exchange. BitErrRate Specifies the number of the bit error (invalid transmission word) bursts for the previous five minute counting window. This number will be reset every five minutes.
setioport
The setioport command configures one or more I/O ports for open systems or System z host system connections. This command cannot be used for ESCON ports. |
setioport -dev storage_image_ID -topology fc-al scsi-fcp ficon scsi-fcp/ficon
port_ID . . . -
Parameters
-dev storage_image_ID (Optional) Specifies the storage image ID, which includes manufacturer, machine type, and serial number. The storage image ID consists of manufacturer, machine type, and serial number.The storage image ID is required if you do not specify a fully qualified port ID, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command.
Chapter 12. Command-line interface commands
| | | | |
391
-topology fc-al | scsi-fcp | ficon (Optional) Sets the topology for an I/O port, either Fibre Channel Arbitrated Loop, SCSI-FCP, or FICON. fibre channel arbitrated loop (code fc-al) The fc-al topology setting enables the SCSI ULP with a FC-AL topology. The FC-AL topology does not support PPRC path I/O operations. SCSI-FCP The SCSI-FCP topology setting enables the SCSI ULP with a point-to-point or switched fabric topology. PPRC path I/O operations are enabled for this setting. ficon The ficon topology setting enables the FICON ULP with a point-to-point or switched fabric topology. PPRC path I/O operations are not supported for FICON ULP. | | scsi-fcp/ficon The scsi-fcp/ficon topology setting. port_ID . . . | (Required) Specifies the I/O port ID. Accepts a fully qualified port ID, which includes the storage image ID, or a shortened version without the storage image ID when the -dev parameter is specified. A port ID is prefixed with the letter I and consists of four hexadecimal characters in the format EEAP, where: For DS8000, v EE is an I/O port enclosure number in the range of 00 - 17. v A is the adapter number and is specified as 0, 1, 3, or 4. v P is the port number (0 - 3). For DS6000, v EE is an I/O port enclosure number in the range of 00 - 01. v A is the adapter number and is specified as 0, 1, 2, or 3. v P is the port number (0 - 3). To specify a range of port IDs, separate the port IDs with a hyphen. You must separate multiple port IDs or ranges of port IDs by a blank space between each ID or range of IDs. If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode.
Example
You can issue the setioport command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model the storage image ID is different. Invoking the setioport command This example configures four I/O ports for FICON topology.
dscli>setioport -dev IBM.210775FA120 -topology ficon I0111 I0121 I0211 I0221
392
Sun Aug 11 02:23:49 PST 2004 DS CLI Version: 5.0.0.0 DS: IBM.210775FA120 I/O I/O I/O I/O Port Port Port Port I0111 I0121 I0211 I0221 successfully successfully successfully successfully configured. configured. configured. configured.
showioport
The showioport command displays properties of an I/O port. It optionally displays the performance metrics for a specific I/O port.
showioport -dev storage_image_ID -metrics port_ID -
Parameters
-dev storage_image_ID (Optional) Specifies the storage image ID, which consists of manufacturer, machine type, and serial number. The storage image ID is required if you do not specify a fully qualified port ID, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. -metrics (Optional) Specifies that the port ID and the performance metrics for the specified I/O port be displayed. Note: All performance counts are an accumulation since the most recent counter wrap or counter reset operation. I/O port performance counters are reset with a storage unit power-on sequence. port_ID | (Required) Displays the property level details for the specified port IDs. This parameter accepts a fully qualified unique port ID, that is represented in the following format: manufacturer.machine type-serial number/portID. For example, for DS8000, IBM.210775FA120/I0110 A port ID is prefixed with the letter I and consists of four hexadecimal characters in the format EEAP, where: For DS8000, v EE is an I/O port enclosure number in the range of 00 - 17. v A is the adapter number and is specified as 1, 2, 4, or 5. v P is the port number (0 - 3). For DS6000, v EE is an I/O port enclosure number in the range of 00 - 01. v A is the adapter number and is specified as 0, 1, 2, or 3. v P is the port number (0 - 3). If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode.
| | | | |
393
Example
For this command and all other DS CLI show commands, the results are shown in table format to provide clarity. The actual reports do not display as tables. You can issue the showioport command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model the storage image ID is different. The following tables represent the headers that are displayed on the output reports that are associated with the showioport command. A separate example is not shown for the DS6000 because the information is the same for both the DS8000 and DS6000. Invoking the showioport command to show port information
dscli>showioport -dev IBM.210775FA120 I0112
Speed 2 Gb/s
Topo SCSI-FCP
Portgrp 0
unkSCSIlog -
394
Loc
Specifies the storage enclosure location by identifying the storage unit frame that contains the storage enclosure. The location format is Utttt.mmm.ppsssss. Specifies the port type. The following values can be displayed: v Fibre Channel-SW - (SW stands for short wave) v Fibre Channel-LW - (LW stands for long wave, 10 KM) v Fibre Channel-LW 4 KM - (LW stands for long wave, 4 KM) (DS8000 only) v ESCON (DS8000 only)
Type
Speed Specifies the I/O port interface speed. The following values can be displayed: v ESCON ports = 200Mb/s (DS8000 only) v FCP ports = 1 Gb/s, 2 Gb/s, 4 Gb/s v FICON ports = 1 Gb/s, 2 Gb/s, 4 Gb/s v Unknown (DS6000 only) Topo Specifies the port topology. If the port type is not fibre channel, then the displayed value is null (-). One of the following values is displayed: v FC-AL v SCSI-FCP v FICON v SCSI-FCP/FICON v - (null if not fibre channel) Portgrp Specifies an identifier that associates a subset of the I/O port objects that are operating in anonymous access mode. unkSCSIlog Specifies a list of unknown SCSI N-port WWPN identifiers that have attempted to login into this I/O port.
byteread (FICON/ESCON) Specifies the number of bytes that are read in increments of 128 KB. bytewrit (FICON/ESCON) Specifies the number of bytes that are written in increments of 128 KB. Reads (FICON/ESCON) Specifies a value that is based on the extended count-key-data (ECKD) architecture data received operations. Writes (FICON/ESCON) Specifies a value that is based on the ECKD architecture data transferred operations. Timeread (FICON/ESCON) Specifies a value that is based on the ECKD data received (read-accumulated time) on a channel. The displayed value is based on increments of 16 milliseconds.
Chapter 12. Command-line interface commands
395
Timewrite (FICON/ESCON) Specifies a value that is based on the ECKD data transferred (write-accumulated time) on a channel. The displayed value is based on increments of 16 milliseconds. Bytewrit (PPRC) Specifies a value for the remote mirror and copy data transferred operation in increments of 128 KB. Byteread (PPRC) Specifies a value for the remote mirror and copy data received operations in increments of 128 KB. Writes (PPRC) Specifies a value for the remote mirror and copy data transferred operations. Reads (PPRC) Specifies a value for the remote mirror and copy data received operations. Timewrite (PPRC) Specifies a value based on the remote mirror and copy data transferred (write-accumulated) time on a channel. The displayed value is based on increments of 16 milliseconds. Timeread (PPRC) Specifies a value for the remote mirror and copy data received (read-accumulated) time on a channel. The displayed value is based on increments of 16 milliseconds. Byteread (SCSI) Specifies a value that is based on the SCSI data received operations. The displayed value is based on increments of 128 KB. Bytewrit (SCSI) Reads (SCSI) Specifies a value that is based on the SCSI data received operations. Writes (SCSI) Specifies a value that is based on the SCSI data transferred operations. Timeread (SCSI) Specifies a value that is based on the SCSI data received (read-accumulated) time on a channel. The displayed value is based on increments of 16 milliseconds. Timewrite (SCSI) Specifies a value that is based on the SCSI data transferred (write-accumulated) time on a channel. The displayed value is based on increments of 16 milliseconds. LinkFailErr (FC) Specifies the total number of miscellaneous fibre channel link errors. LossSyncErr (FC) Specifies the number of loss of synchronization errors. These errors occur when there is a confirmed and a persistent synchronization loss on the fibre channel link. LossSigErr (FC) Specifies the number of times that a loss of signal was detected on the fibre channel link when a signal was previously detected.
| |
| | | |
| | | | | | | | |
396
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
PrimSeqErr (FC) Specifies the number of primitive sequence protocol error counts where an unexpected primitive sequence was received. InvTxWordErr (FC) Specifies the number of times a bit error was detected. Examples of bit errors are a code violation, an invalid special code alignment, or a disparity error. CRCErr (FC) Specifies the number of times a received frames CRC is in error. LRSent (FC) Specifies the number of times the port has transitioned from an active (AC) state to a Link Recovery (LR1) state. LRRec (FC) This count is the number of times the port has transitioned from an active (AC) state to a Link Recovery (LR2) state. IllegalFrame (FC) Specifies the number of frames that violated the Fibre Channel protocol. One example of a violation is an invalid frame header, which occurs when the first frame of a data sequence is missing and a subsequent data frame is detected as illegal. OutOrdData (FC) Specifies the number of times that an out-of-order frame is detected. The frame is either missing from a data sequence or it is received beyond the ports sequence reassembly threshold. OutOrdACK (FC) Specifies the number of times that an out-of-order ACK (ACKnowledgment field of the TCP protocol) frame is detected. The frame is either missing from a data sequence or it is received beyond the ports sequence reassembly threshold. DupFrame (FC) Specifies the number of times a frame was received that has been detected as previously processed. InvRelOffset (FC) Specifies the number of times that a frame was received with bad relative offset in the frame header. SeqTimeout (FC) Specifies the number of times the port has detected a timeout condition after receiving a sequence initiative for a fibre channel exchange. BitErrRate (FC) Specifies the number of the bit error (invalid transmission word) bursts for the previous five minute counting window. This number will be reset every five minutes.
397
v v v v v
v rmhostconnect v showhostconnect v lshosttype The chhostconnect command modifies a SCSI host port configuration. You must ensure that the host port is offline to the host system before you process the chhostconnect command. The lshostconnect command displays a list of host connections for a storage image and the status information for each host connection in the list. The lshostvol command displays the mapping of host device names or volume names to machine type 2105, 2107/242x, and 1750 volume IDs. The lsportprof command displays a list of port profiles that are supported on a storage unit and their recommended address discovery and logical block size values. This command is particularly helpful to obtain the recommended values for the mkhostconnect command. The managehostconnect command modifies the volume group assignment for a SCSI host port. Ensure that the host port is offline to the host system before you process the managehostconnect command. The mkhostconnect command configures the open systems hosts port attachments to fibre-channel ports that are configured for FC-AL or SCSI-FCP topology. The rmhostconnect command removes a SCSI host port connection from a storage image. The showhostconnect command displays the detailed properties of a specified storage image host connection. The lshosttype command displays a list of known hosts, their associated port profiles, address discovery, and logical block size values.
chhostconnect
The chhostconnect command modifies a SCSI host port configuration.
chhostconnect -dev storage_image_ID -lbs 512 520
-addrdiscovery
reportlun lunpolling
-profile
port_profile_name
398
-hosttype
host_type
-portgrp
port_grp_number
-volgrp
volume_group_ID none
-ioport
-desc
description
-name
new_host_name
host_connection_ID -
Parameters
Notes: 1. The chhostconnect command can be disruptive to host system I/O operations if the affected host port is logged into the target storage unit. You must ensure that the host port is offline to the host system before you process the chhostconnect command. 2. Using the -hosttype parameter when you issue this command allows you to save input and processing time. The -hosttype parameter supplies the same information as if you had used the following three parameters: v -profile v -addrdiscovery v -lbs 3. If you are using the HP-UX operating system, see the volume restriction that is described under the -addrdiscovery parameter. -dev storage_image_ID (Optional) Specifies the storage image ID, which consists of manufacturer, machine type, and serial number. The storage image ID is required if you do not specify a fully qualified host connection ID, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. For DS8000, example of a fully qualified storage image ID: IBM.2107-75FA120 -lbs 512 | 520 (Optional) Specifies the logical block size that is used by the host system. The block size must be compatible with the volume group type and the volume type configurations that apply to the host port connection. The 520 logical block size is typically used by the IBM System i models (OS/400). Notes: 1. You cannot use the -lbs parameter and -hosttype parameter together, but you can use each one separately. 2. If you do not use the -hosttype parameter, use the lsportprof command to determine the block size that you need to specify for the -lbs parameter. -addrdiscovery reportlun | lunpolling (Optional) Specifies the method for identifying logical unit number (LUN) addresses.
Chapter 12. Command-line interface commands
| | | | |
399
v The reportlun method specifies that the host system can access up to 64 000 LUNs. v The lunpolling method specifies that the host system can access up to 256 LUNs. Notes: 1. You cannot use the -addrdiscovery parameter and -hosttype parameter together, but you can use each one separately. 2. For HP-UX operating systems, the number of volumes in the volume group must not exceed seven volumes. This restriction only applies when the -addrdiscovery parameter is set to reportlun and the associated volume group is of type scsimap256. -profile port_profile_name (Optional) Specifies the name of the host connection behavior profile. If the name includes a blank space, enclose the name with double quotation marks. For example, -profile IBM pSeries Sun. Notes: 1. You cannot use the -profile parameter and the -hosttype parameter together, but you can use each one separately. 2. If you do not use the -hosttype parameter, use the lsportprof command to obtain a list of available profiles. -hosttype host_type (Optional) Specifies information about the following three parameters: v -profile v -addrdiscovery v -lbs Notes: 1. You cannot use the -hosttype parameter with the -profile, addrdiscovery, or -lbs parameters. 2. Use the lshosttype command to obtain a list of known host types. -portgrp port_grp_number (Optional) Specifies a user-assigned number that associates two or more host ports with access to a common volume group. Port group zero is reserved for ports that have not been associated with a port group. -volgrp volume_group_ID | none (Optional) Specifies an available volume group or no volume group if the none subparameter is used. This command accepts a fully qualified volume group ID including the storage image ID or a shortened version if the -dev parameter is specified. The shortened version is a four-digit decimal number with no leading zeros, prefixed with the letter V. A host connection can use only one volume group per storage image. In other words, a single WWPN can access only one volume group per storage image. Host operations cannot be initiated until a volume group ID is assigned. If none is specified, the volume group ID assignment is removed from a SCSI host port object. -ioport port_ID port_ID_list |all|none (Optional) Specifies all, none, or, one or more I/O port IDs that allow host
400
connection access to volumes. This command accepts a fully qualified port ID including the storage image ID or a shortened version if the -dev parameter is specified. port_ID port_ID_list Specifies that you can designate up to 128 ports for an open systems host attachment assignment. You can list one or more port IDs separated by commas with no spaces. If you enter a list of I/O port IDs, access from the specified host connection to the specified volume group is allowed using only the designated list of port IDs. all Specifies that you want to add all I/O port IDs. This allows the specified host connection access to the designated volume group through all the associated I/O port IDs. Specifies that you do not want to add any I/O ports. If you do not specify I/O ports, the storage unit is configured to allow host connection access to the specified volume group using any I/O port that is configured for FC-AL or SCSI-FCP topology.
none
Examples of -dev parameter use If you specify the -dev parameter, you can use the shortened version of the -ioport parameter as follows: v For DS8000,
dscli>chhostconnect -dev IBM.2107-75FA120 -ioport I0222 1
where 1 represents the required parameter, host_connection_ID. If you do not specify the -dev parameter and you specify the -ioport parameter, you must use the fully qualified version of the port ID with the -ioport parameter specified as follows: v For DS8000,
dscli>chhostconnect -ioport IBM.2107-75FA120/I0222 IBM.2107-75FA120/1
where IBM.1750-68FA120/1 or IBM.2107-75FA120/1 represents the required parameter, host_connection_ID A port ID is prefixed with the letter I and consists of four hexadecimal characters in the format EEAP, where: For DS8000, v EE is an I/O port enclosure number in the range of 00 - 17. v A is the adapter number and is specified as 1, 2, 4, or 5. v P is the port number (0 - 3). For DS6000, v EE is an I/O port enclosure number in the range of 00 - 01. v A is the adapter number and is specified as 0, 1, 2, or 3. v P is the port number (0 - 3). To specify a range of port IDs, separate the port IDs with a hyphen. Separate multiple port IDs or ranges of port IDs with a comma between each ID or range of IDs. Note: Changing the I/O port values can result in a disruption of current logins by the host systems.
401
-desc description (Optional) Specifies the description that you defined for the SCSI host port. The description is limited to 256-byte or 128 double-byte characters. -name new_host_name (Optional) Specifies the user-assigned host system or port name. The name is limited to 32-byte or 16 double-byte characters. host_connection_ID | (Required) Specifies the host connection ID, which is a unique identifier that uses any number from 0 - FFFE within the scope of a storage image. This parameter accepts a fully qualified ID or a shortened version if the -dev parameter is specified. If you do not specify the -dev parameter and you specify the host_connection_ID parameter, you must use the fully qualified version of the host connection ID as follows: v For DS8000,
dscli>chhostconnect -desc newdescription IBM.2107-75FA120/1
v For DS6000,
dscli>chhostconnect -desc newdescription IBM.1750-68FA120/1
If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode. Attention: Use caution when you work with connection IDs to ensure that you have specified the correct connection that you want to change. For example, if you intend to make a change to connection ID 0005 and type 000, the system makes the change to connection ID 0. Or, if you want to make a change to connection ID 0020 and type 002, the system makes the change to connection ID 2. The system does not recognize the leading zeros, and 000 is interpreted as connection ID 0 and 002 is interpreted as connection ID 2.
Example
You can issue the chhostconnect command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model the storage image ID is different. Invoking the chhostconnect command
dscli>chhostconnect -dev IBM.210775FA120 -name host_1_port_2 1
lshostconnect
The lshostconnect command displays a list of host connections for a storage image and the status information for each host connection in the list. You can also use this command to obtain a list of worldwide port numbers (WWPNs) from a system-detected-unknown host port. You can use these WWPNs to create a new host connection using the mkhostconnect command.
lshostconnect -dev storage_image_ID -s -l -portgrp port_grp_number
402
-volgrp
volume_group_ID
-unknown
-login
host_connection_ID . . . -
Parameters
-dev storage_image_ID (Optional) Displays the host connections for the specified storage image. A storage image ID consists of manufacturer, machine type, and serial number. The storage image ID is required if you do not specify a fully qualified host connection ID, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. For DS8000, example of a fully qualified storage image ID: IBM.2107-75FA120 -s -l (Optional) Specifies the host connection IDs. You cannot use the -l and -s parameters together. (Optional) Specifies the default output and your description for each host connection in the list. You cannot use the -l and -s parameters together.
| | | | |
-portgrp port_grp_number (Optional) Specifies the host connections that have an associated group number. Note: You cannot use the -portgrp parameter with the -unknown or -login parameters. -volgrp volume_group_ID (Optional) Specifies that only the host connections with the specified volume group ID be displayed. The volume group ID is a four-digit decimal number with no leading zeros, prefixed with the letter V. Note: You cannot use the -volgrp parameter with the -unknown or -login parameters. -unknown (Optional) Specifies that a list of logged in host ports (WWPNs), that are not recognized as being associated with the designated storage unit, be displayed. | | | | | | | | Note: The list of logged in host posts includes all of the host ports that the storage unit detects, and it will not take into account changes that the storage unit could not detect. For example, the storage until will not be able to detect that a cable has been disconnected from the host devices port or that a fabric zoning change has occurred. In these cases, the host might not be able to communicate with the storage device anymore; however, the storage device might not detect this and still views the host as logged in. This parameter generates a list report that contains the following three information fields: v WWNN v WWPN v ESSIOport
403
Note: You cannot use the -unknown parameter with the -portgrp, -volgrp, -login or host_connection_ID parameters. -login (Optional) Specifies that a list be displayed of host port (WWPNs) that are logged in and sorted by the ESS I/O port IDs for known connections. The report displays one line of information per connection. However, no information is displayed for a FICON connection. Notes: 1. Known logins are those that you have created a host connection for, as well as Remote Mirror and Copy paths and anonymous connections. 2. You cannot use the -login parameter with the -unknown, -portgrp, -volgrp, or host_connection_ID parameters. host_connection_ID . . . | (Optional) Specifies that host connection information for the specified host connection IDs be displayed. This parameter accepts a fully qualified ID (includes manufacture. machine type, serial number/hostconnectID) or a shortened version if the -dev parameter is specified. Note: You cannot use the host_connection_ID parameter with the -login or -unknown parameters. If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode. For DS8000, example of a fully qualified host connection ID: IBM.2107-75FA120/2 Example of a shortened version host connection ID: 0002
Example
Note: You can receive different reports when you use the lshostconnect command, one for the -unknown parameter, one for the -login parameter, one for the -l parameter, and one for the -s parameter. The reports that are associated with the -unknown, -login, and -l parameters are provided in this description. You can issue the lshostconnect command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model, the storage image ID is different. For this command and all other DS CLI list commands, the results are shown in table format to provide clarity. The actual reports do not display as tables. The following tables represent the headers that are displayed on the output reports that are associated with the lshostconnect command. A separate example is not shown for the DS6000 because the information is the same for both the DS8000 and DS6000. Invoking the lshostconnect command without the -unknown parameter
dscli>lshostconnect -dev IBM.210775FA120 -l
404
The following table displays four ports, which is possible when you query a DS8000 model. If you query a DS6000 model, only two ports are displayed.
Name My host port 1 My host port 2 My host port 3 My host port 4 ID IBM.210775FA120/1 IBM.210775FA120/2 IBM.210775FA120/3 IBM.210775FA120/4 WWPN 3007ACF3 0A2399E0 3007ACF3 0A2399E1 3007ACF3 0A2399E2 3007ACF3 0A2399E3 HostType Unknown Unknown Unknown Unknown LBS 512 512 512 512 Addrdis covery reportLUN reportLUN reportLUN reportLUN
Profile IBM pSeries - AIX IBM pSeries - AIX IBM pSeries pLinux IBM pSeries - pLinux
portgrp 0
volgrpID V100
atchtopo -
Speed Unknown
Desc SCSI1
V100
Unknown
SCSI2
V100
I0111,I0121 I0211,I0221 -
Unknown
SCSI3
V100
Unknown
SCSI4
405
Report field definitions when the -unknown or -login parameter is not used
Name Host connection/SCSI port nickname. The name is limited to 32-byte or 16 double-byte characters. ID A fully qualified host connection ID: manufacturer.type-serial number/hostconnectID The host connection ID component is a unique identifier (0 - FFFE) within the scope of a storage unit. WWPN Specifies the worldwide port name (WWPN) for this host system port. HostType Specifies the name of the host type. Unknown is displayed when the information is not available and indicates that the host type was not specified when the host connection was created or modified. LBS Specifies the logical block size that is used by the designated host system and host system port. The logical block setting must be compatible with the volume group type that is configured for volume access. The 520 block size is typically used for IBM System i host system attachments. Addrdiscovery Specifies the LUN address discovery method used by the designated host system and host system port. The LUN Discovery method must be compatible with the volume group type that is configured for volume access. The Poll LUNs method enables access to a maximum of 256 LUNs. The Report LUNs method enables access to a maximum of 64 000 LUNs. Profile Specifies the name of the host connection behavior profile. Portgrp Specifies the host port group ID. This ID ties together a group of SCSI host port objects that are accessing a common volume group. If the port group value is set to zero, the host port is not associated with any port group.
406
VolgrpID Specifies the volume group ID. This ID is a unique identifier within the DS8000 for the SCSI volume group that the specified SCSI host port is assigned to. Specifies the volume group ID. This ID is a unique identifier within the DS6000 for the SCSI volume group that the specified SCSI host port is assigned to. Atchtopo The atchtopo is an attribute of the I/O port and, under certain conditions, might display a value that is inconsistent with the value reported by the lsioport command. Because this inconsistency cannot be corrected in all cases, the atchtopo attribute always displays as a null (-) value. To obtain the I/O port topology, use the lsioport or showioport commands. ESSIOport Specifies the array of port IDs that the designated host port is logged into. A port ID is prefixed with the letter I and consists of four hexadecimal characters in the format EEAP, where: For DS8000, v EE is an I/O port enclosure number in the range of 00 - 17. v A is the adapter number and is specified as 1, 2, 4, or 5. v P is the port number (0 - 3). For DS6000, v EE is an I/O port enclosure number in the range of 00 - 01. v A is the adapter number and is specified as 0, 1, 2, or 3. v P is the port number (0 - 3). Speed Speed is an attribute of the I/O port and, under certain conditions, might display a value that is inconsistent with the value reported by the lsioport command. Because this inconsistency cannot be corrected in all cases, the speed attribute always displays a value of Unknown. To query the speed of an I/O port use the lsioport or showioport commands. Desc Specifies the description that you defined for the SCSI host port. The description is limited to 256 byte or 128 double-byte characters.
407
For DS6000, v EE is an I/O port enclosure number in the range of 00 - 01. v A is the adapter number and is specified as 0, 1, 2, or 3. v P is the port number (0 - 3).
lshostvol
The lshostvol command displays the mapping of host device names or volume names to machine type 2105, 2107, and 1750 volume IDs. (This command is not supported on the i5/OS.)
lshostvol
Parameters
There are no parameters for this command. Notes: 1. The lshostvol command displays only volumes that are accessed using a direct fibre channel path when you use the command on an
408
OpenVMS host system that is a member of an OpenVMS cluster. The command output does not display information about the following OpenVMS cluster devices: v Volumes to which the host system only has MSCP paths. v Volumes to which the host system uses only MSCP paths at this time even though it has both MSCP and direct paths. 2. If you do not have installed the IBM Multipath Subsystem Device Driver (SDD), the virtual path (vPath) name is not displayed. 3. On a Red Hat Enterprise Linux system, attached devices might be detected by the HBA driver, but they are not registered with the operating system. Normally, the operating system is set up to automatically detect all LUNS. However, if this does not occur automatically, you must issue the following for every volume (LUN):
echo scsi add-single-device host# channel# lun# >/proc/scsi/scsi
| | |
If SDD is installed on your system, you can run the scsiscan script to detect all the LUNs. 4. If the user that is running the DS CLI on the host does not have permissions to view the hosts volumes, the lshostvol command will return no host volumes found.
Example
You can issue the lshostvol command either for a DS8000 model or for a DS6000 model. The information that is displayed on the report that is generated from the lshostvol command is different depending on whether you have SDD installed. The following example tables indicate the differences. For this command and all other DS CLI list commands, the results are shown in table format to provide clarity. The actual reports do not display as tables. The following tables represent the headers that are displayed on the output reports that are associated with the lshostvol command. A separate example is not shown for the 1750 because the information is the same for both the 2107 and 1750. Invoking the lshostvol command
dscli>lshostvol
409
Date/Time: Sun Aug 11 02:23:49 PST 2004 DS CLI Version: 5.0.0.0 DS: IBM.210775FA120 Device/Volume Name Hdisk01 Hdisk02 Hdisk03 Hdisk07 Hdisk08 Volume ID IBM.2107-75DA110/175D IBM.2107-75EA120/175E IBM.2107-75FA130/175F IBM.2105-29239/119E IBM.2105-29239/119F Vpath Name -
lsportprof
The lsportprof command displays a list of port profiles that are supported on a storage unit and their recommended address discovery and logical block size values. You can use this command to view known values for the block size (lbs) and address discovery (addrdiscovery) parameters in the mkhostconnect command. Note: Use this command to get the recommended values for the mkhostconnect command.
lsportprof storage_image_ID -
Parameters
storage_image_ID | (Required) Displays a list of port profiles for the specified storage image IDs. A storage image ID consists of manufacturer, type, and serial number. If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode. For DS8000, example: IBM.2107-75FA120
Example
You can issue the lsportprof command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model, the storage image ID is different. For this command and all other DS CLI list commands, the results are shown in table format to provide clarity. The actual reports do not display as tables.
410
The following table represents the headers that are displayed on the output report that is associated with the lsportprof command. A separate example is not shown for the DS6000 because the information is the same for both the DS8000 and DS6000. Invoking the lsportprof command
dscli>lsportprof IBM.2107-75FA120
managehostconnect
The managehostconnect command modifies the volume group assignment for a SCSI host port.
managehostconnect -dev port_grp_number - storage_image_ID -volgrp volume_group_ID none
Parameters
Notes: 1. The managehostconnect command can be disruptive to host system I/O operations if the affected host port is logged onto the target storage unit. Ensure that the host port is offline to the host system before you process the managehostconnect command. 2. This command is used more effectively after you have issued the lshostconnect or showhostconnect commands and have analyzed the
Chapter 12. Command-line interface commands
411
reports that are generated by these commands. The information that is reported by these commands can help you ensure that you specify the correct port group number when you issue the managehostconnect command. -dev storage_image_ID (Optional) Specifies the storage image ID, which consists of manufacturer, machine type, and serial number. The storage image ID is required if you do not specify a fully qualified volume group ID, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. -volgrp volume_group_ID | none (Required) Specifies that the SCSI host port connections that are associated with the specified port group number will be modified to access this volume group ID. A volume group ID is a four-digit decimal number with no leading zeroes, prefixed with the letter V. If none is specified, the volume group ID assignment is removed from all SCSI host port objects that are associated with a common port group number. Example: -volgrp none port_grp_number | (Required) Specifies the SCSI host port group number that associates two or more host ports as having access to a common volume group. If you use the dash (-), the specified value is read from standard input. However, you cannot use the dash (-) while you are in the DS CLI interactive command mode.
| | | | |
Example
You can issue the managehostconnect command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model, the storage image ID is different. Invoking the managehostconnect command
dscli>managehostconnect -dev IBM.2107-75FA120 -volgrp 11 1
mkhostconnect
The mkhostconnect command configures open systems hosts port attachments to fibre-channel ports that are configured for FC-AL or SCSI-FCP topology. Open systems hosts port attachments to fibre-channel ports are configured for identified access mode and SCSI protocol.
mkhostconnect -dev storage_image_ID -wwname wwpn -lbs 512 520
412
-addrdiscovery
reportlun lunpolling
-profile
port_profile_name
-hosttype
host_type
-portgrp
port_grp_number
-volgrp host_name -
volume_group_ID
-ioport
-desc
description
Parameters
Notes: 1. It is recommended that you use the -hosttype parameter when you issue this command, because doing so saves input and processing time. The -hosttype parameter supplies the same information as if you had used the following three parameters: v -profile v -addrdiscovery v -lbs 2. If you are using the HP-UX operating system, see the volume restriction that is described under the -addrdiscovery parameter. -dev storage_image_ID (Optional) Specifies the storage image ID, which consists of manufacturer, machine type, and serial number. The storage image ID is required if you do not specify a fully qualified WWPN, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. -wwname wwpn (Required) Specifies the worldwide port name (WWPN). The WWPN is a 16-character hexadecimal ID. The names are host attachment specific; for example, 12341234000A000F. -lbs 512 | 520 (Optional) Specifies the logical block size that is used by the specified host system, in bytes. The block size must be compatible with the volume group type and the volume type configurations that apply to the specified host port connection. The 520-byte size is typically used by IBM System i models (OS/400). Notes: 1. Do not use the -lbs parameter if you specify the -hosttype parameter. 2. If you do not use the -hosttype parameter, use the lsportprof command to determine the block size that you need to specify. -addrdiscovery reportlun | lunpolling (Optional) Specifies the method for discovering logical unit number (LUN) addresses.
| | | | |
413
v The reportlun method specifies that the host system can access up to 64 000 LUNs. Note: Use the reportlun method only with volume groups that are designated as mask type. (This designation is assigned when you use the mkvolgrp command to create the volume group.) However, you can use the reportlun method for a map type, but there are additional considerations if you are using an HP-UX operating system. For HP-UX operating systems, the number of volumes in the volume group must not exceed seven volumes. This restriction only applies when the -addrdiscovery parameter is set to reportlun and the associated volume group is of type scsimap256. v The lunpolling method specifies that the host system can access up to 256 LUNs. For Sun, Linux, and Windows operating systems, the lunpolling method is typically selected. Notes: 1. Use the lunpolling method only with volume groups that are designated as map type. (This designation is assigned when you use the mkvolgrp command to create the volume group.) 2. Do not use the -addrdiscovery parameter if you specify the -hosttype parameter. -profile port_profile_name (Optional. If you specify the -hosttype parameter, this parameter is not used.) Specifies the name of the host connection behavior profile. If the name includes a blank space, enclose the name with double quotation marks. For example, -profile IBM pSeries AIX. Notes: 1. Do not use the -profile parameter if you specify the -hosttype parameter. 2. If you do not use the -hosttype parameter, use the lsportprof command to obtain a list of available profiles. -hosttype host_type (Optional) Specifies information about the following three parameters: v -profile v -addrdiscovery v -lbs Notes: 1. When the -hosttype parameter is specified, do not use the -profile, addrdiscovery, or -lbs parameters. 2. Use the lshosttype command to obtain a list of known host types. -portgrp port_grp_number (Optional) Specifies the identifier that associates two or more host ports with access to a common volume group. Port group zero is reserved for ports that have not been associated with a port group. -volgrp volume_group_ID (Optional) Specifies an available volume group. This parameter accepts a fully
414
qualified volume group ID including the storage image ID or a shortened version. The shortened version is a four-digit decimal number with no leading zeroes, prefixed with the letter V. A host connection uses only one volume group per storage image; that is, a single WWPN can access only one volume group per storage image. Note: If you do not specify a volume group when a host connection is created, the value for volume group is displayed as a null (-) when you issue a lshostconnect or showhostconnect command. -ioport port_ID port_ID_list |all|none (Optional) Specifies all, none, one, or more I/O port IDs that allow host connection access to volumes. I/O ports cannot share the same WWPN. Ensure that there are no conflicts with the I/O ports of existing SCSI host connections. port_ID port_ID_list Specifies that you can designate up to 128 ports for an open systems host attachment assignment. You can list one or more port IDs separated by commas with no spaces. If you enter a list of I/O port IDs, access from the specified host connection to the specified volume group is allowed using only the designated list of port IDs. all Specifies that you want to add all I/O port IDs. This allows the specified host connection access to the designated volume group through all the associated I/O port IDs. Specifies that you do not want to add any I/O ports. If you do not specify I/O ports, the storage unit is configured to allow host connection access to the specified volume group using any I/O port that is configured for FC-AL or SCSI-FCP topology.
none
A port ID is four hexadecimal characters in the format EEAP, where: For DS8000, v EE is an I/O port enclosure number in the range of 00 - 17. v A is the adapter number and is specified as 1, 2, 4, or 5. v P is the port number (0 - 3). For DS6000, v EE is an I/O port enclosure number in the range of 00 - 01. v A is the adapter number and is specified as 0, 1, 2, or 3. v P is the port number (0 - 3). This number is prefixed with the letter I. To specify a range of port IDs, separate the port IDs with a hyphen. You must separate multiple port IDs or ranges of port IDs with a comma between each ID or range of IDs. -desc description (Optional) Specifies the description that you defined for the SCSI host port. The description is limited to 256 byte or 128 double-byte characters. host_name | (Required) Specifies your host system or port name, limited to 16 characters. If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode.
415
Example
You can issue the mkhostconnect command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model the storage image ID is different. Invoking the mkhostconnect command
dscli>mkhostconnect -dev IBM.2107-75FA120 wwname 12341234000A000F profile IBM pSeries AIX host_1_port_1
rmhostconnect
The rmhostconnect command removes a SCSI host port connection from a storage image.
rmhostconnect -dev storage_image_ID -quiet host_connection_ID -
Parameters
-dev storage_image_ID (Optional) Specifies the storage image ID, which consists of manufacturer, machine type, and serial number. The storage image ID is required if you do not specify a fully qualified ID for all host connections, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. -quiet (Optional) Turns off the confirmation prompt. host_connection_ID | (Required) Specifies the host connect ID, which is a unique identifier that uses any number from 0 - FFFE within the scope of a storage image. This parameter accepts a fully qualified ID (includes manufacturer.machine type-serial number/hostconnectID) or a shortened version if the -dev parameter is specified. For DS8000, example of a fully qualified host connection ID: IBM.2107-75FA120/1 For DS6000, example of a fully qualified host connection ID: IBM.1750-68FA120/2 If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode. Attention: Use caution when you work with connection IDs to ensure that you have specified the connection that you want to delete. For instance, if you intend to delete connection ID 0005 and type 000, the system deletes connection ID 0. Or, if you want to delete connection ID 0020 and type 002, the system deletes connection ID 2. The system does not consider the leading zeros, and 000 is interpreted as connection ID 0 and 002 is interpreted as connection ID 2.
| | | | |
416
Example
You can issue the rmhostconnect command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model, the storage image ID is different. Invoking the rmhostconnect command
dscli>rmhostconnect -dev IBM.2107-75FA120 1
showhostconnect
The showhostconnect command displays detailed properties of a storage image host connection.
showhostconnect -dev storage_image_ID host_connection_ID -
Parameters
-dev storage_image_ID (Optional) Specifies the storage image ID, which consists of manufacturer, machine type, and serial number. The storage image ID is required if you do not specify a fully qualified ID for the host connection, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. host_connection_ID | (Required) Specifies a fully qualified host connection ID, which includes the manufacturer, machine type, and serial number if the -dev parameter is not used. The host connection ID is a unique identifier (0 - FFFE) within the scope of a storage image. If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode.
| | | | |
Example
You can issue the showhostconnect command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model, the storage image ID is different. For this command and all other DS CLI show commands, the results are shown in table format to provide clarity. The actual reports do not display as tables. The following tables represent the headers that are displayed on the output report that is associated with the showhostconnect command. A separate example is not shown for the DS6000 because the information is the same for both the DS8000 and DS6000. Invoking the showhostconnect command
dscli>showhostconnect -dev IBM.210775FA120 1
417
ID IBM.210775FA120/1
HostType Unknown
LBS 512
Portgrp 0
VolgrpID 100
Atchtopo -
Speed Unknown
Desc SCSI1
418
VolgrpID Specifies the volume group ID. This ID is a unique identifier within the DS8000 for the SCSI volume group that the specified SCSI host port is assigned to. Specifies the volume group ID. This ID is a unique identifier within the DS6000 for the SCSI volume group that the specified SCSI host port is assigned to. Atchtopo The atchtopo is an attribute of the I/O port and, under certain conditions, might display a value that is inconsistent with the value reported by the lsioport command. Because this inconsistency cannot be corrected in all cases, the atchtopo attribute always displays as a null (-) value. To obtain the I/O port topology, use the lsioport or showioport commands. ESSIOport Specifies the array of port IDs that the designated host port is logged into. A port ID is prefixed with the letter I and consists of four hexadecimal characters in the format EEAP, where: For DS8000, v EE is an I/O port enclosure number in the range of 00 - 17. v A is the adapter number and is specified as 1, 2, 4, or 5. v P is the port number (0 - 3). For DS6000, v EE is an I/O port enclosure number in the range of 00 - 01. v A is the adapter number and is specified as 0, 1, 2, or 3. v P is the port number (0 - 3). Speed Speed is an attribute of the I/O port and, under certain conditions, might display a value that is inconsistent with the value reported by the lsioport command. Because this inconsistency cannot be corrected in all cases, the speed attribute always displays a value of Unknown. To query the speed of an I/O port use the lsioport or showioport commands. Desc Specifies the description you defined for the SCSI host port. The description is limited to 256 byte or 128 double-byte characters.
lshosttype
The lshosttype command displays a list of known hosts, their associated port profiles, address discovery, and logical block size values. Use this command to get the available host types for the mkhostconnect command.
lshosttype -s -l -type volumeGroup_type
Parameters
-s -l (Optional) Displays the host types only. You cannot use the -l and -s parameters together. (Optional) Displays the default output for the specified host type. You cannot use the -l and -s parameters together.
Chapter 12. Command-line interface commands
419
-type volumeGroup_type (Required) Displays only those host types that are associated with the specified volume group type. volumeGroup_type Only one type can be queried at a time. The following list provides the choices that can be specified. v v v v v v ficonall scsiall scsimask scsimap256 os400all os400mask
Example
You can issue the lshosttype command either for a DS8000 model or for a DS6000 model. For this command and all other DS CLI list commands, the results are shown in table format to provide clarity. The actual reports do not display as tables. The following table represents the headers that are displayed on the output report that is associated with the lshosttype command. A separate example is not shown for DS6000 because the information is the same for both the DS8000 and DS6000. Invoking the lshosttype command
dscli>lshosttype -l -type scsiall
zLinux
lunpolling
512
420
LUN Polling Specifies that host system LUN access is limited to a maximum of 256 LUNs. Report LUN Specifies that host system LUN access is limited to a maximum of 64K LUNs LBS Specifies the logical block size. One of the following values is displayed: v 512 - This value is displayed for all hosts except OS400. v 520 - This value is displayed for an OS400 host.
Network ports
This section contains commands that are used to configure and modify network ports for DS8000 models. Use the following commands to configure or modify a network port for TCP/IP and to show detailed network port information. The network port commands consist of the following: v setnetworkport v lsnetworkport v shownetworkport The setnetworkport command configures one network port for TCP/IP connections The lsnetworkport command generates a report that lists all the network ports that are installed in the specified storage unit. The shownetworkport command generates a detailed properties report for the specified network port ID.
setnetworkport
The setnetworkport command configures one network port for TCP/IP connections. This command is not supported on DS6000 models.
setnetworkport -dev storage_image_ID -ipaddr IP_address -subnet IP_mask
-gateway port_ID
IP_address
-primary
IP_address
-secondary
IP_address
. . . -
Parameters
Notes: 1. One or more of the optional parameters, -ipaddr, -subnet, -gateway, -primary, or -secondary, must be specified.
Chapter 12. Command-line interface commands
421
2. Only one port can be set or modified at a time. -dev storage_image_ID (Optional) Accepts a fully qualified storage image ID. The storage image ID consists of manufacturer, machine type, and serial number.The storage image ID is required if you do not specify a fully qualified port ID, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. -ipaddr IP_address (Optional) Specifies the TCP/IP address for the designated port. Note: Ports that are on the same server must be on different subnets. -subnet IP_mask (Optional) Specifies the TCP/IP subnet mask for the designated port. Note: Ports that are on the same server must be on different subnets. -gateway IP_address (Optional) Specifies the gateway TCP/IP address for the designated port. -primary IP_address (Optional) Specifies the primary DNS TCP/IP address for the designated port. -secondary IP_address (Optional) Specifies the secondary DNS TCP/IP address for the designated port. port_ID . . . | (Required) Specifies the network port ID. This parameter accepts a fully qualified port ID, which includes the storage image ID, or a shortened version without the storage image ID when the -dev parameter is specified. A port ID is prefixed with letter I and consists of four hexadecimal characters with the binary bit definition of trre eeee aaaa pppp (value is separated for readability), where: v t = port type (1= network port) v rr = reserved bits and set to zero v eeeee = enclosure number (value specified is 18 - 1F) v aaaa = adapter number v pppp = port number If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode.
| | | | |
Example
Invoking the setnetworkport command This example shows how you would configure network port (IBM.2107-1300321/ I9801) to use IP address 192.168.5.5.
dscli>setnetworkport dev IBM.2107-1300321 ipaddr 192.168.5.5 I9801
422
Date/Time: January 11, 2006 236:44 PM MST DSCLI Version: 5.0.0.0 DS: IBM.2107-1300321 CMUC00250I setnetworkport: Network port I9801 successfully configured.
lsnetworkport
The lsnetworkport command displays a report that lists all network ports that are installed in the specified storage unit. This command is not supported on DS6000 models.
lsnetworkport -dev storage_image_ID -s -l -ipaddr IP_address
-subnet
IP_mask
-gateway
IP_address
-primary
IP_address port_ID -
-secondary
IP_address
-server
cec_0 cec_1
-state
Parameters
-dev storage_image_ID (Optional) Specifies the storage image ID, which consists of manufacturer, machine type, and serial number.The storage image ID is required if you do not specify a fully qualified port ID, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. -s -l (Optional) Specifies that only the port IDs be displayed for the designated storage unit. You cannot use the -l and the -s parameters together. (Optional) Displays the default output and the values for the owning server, port speed, and port location. You cannot use the -l and the -s parameters together.
| | | | |
-ipaddr IP_address (Optional) Specifies the TCP/IP address for the designated port. Note: Ports that are on the same server must be on different subnets. -subnet IP_mask (Optional) Specifies the TCP/IP subnet mask for the designated port. Note: Ports that are on the same server must be on different subnets. -gateway IP_address (Optional) Specifies the gateway TCP/IP address for the designated port. -primary IP_address (Optional) Specifies the primary DNS TCP/IP address for the designated port. -secondary IP_address (Optional) Specifies the secondary DNS TCP/IP address for the designated port.
423
-server cec_0 | cec_1 (Optional) Displays the server that is associated with the I/O port. One of the following values is displayed: cec_0 cec_1 Specifies that the user port is connected to processor complex 0 and that the I/O port is associated with server 0. Specifies that the user port is connected to processor complex 1 and that the I/O port is associated with server 1.
-state online | offline | resuming | quiescing | fenced (Optional) Displays network ports that are in the specified state. One of the following values is displayed: online Specifies that the network port is enabled. offline Specifies that the network port is disabled. resuming Specifies that the network port is in the process of becoming enabled. quiescing Specifies that the network port is in the process of becoming disabled. fenced Specifies that the network port is configured but there is a problem and the port cannot be used. port_ID | (Required) Displays I/O ports that match the specified IDs. This parameter accepts a fully qualified port ID, which includes the storage image ID, or a shortened version without the storage image ID when the -dev parameter is specified. A port ID is prefixed with letter I and consists of four hexadecimal characters with the binary bit definition of trre eeee aaaa pppp (value is separated for readability), where: v t = port type (1= network port) v v v v rr = reserved bits and set to zero eeeee = enclosure number (value specified is 18 - 1F) aaaa = adapter number pppp = port number
If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode.
Example
For this command and all other DS CLI list commands, the results are shown in table format to provide clarity. The actual reports do not display as tables. The following tables represent the headers that are displayed on the output report that is associated with the lsnetworkport command using the -l parameter. Invoking the lsnetworkport command
dscli>lsnetworkport -dev IBM.2107-75FA120 -l
424
State Online
Server 00
Speed 1 Gb/sec
Type EthernetCopper
Location Specifies the network port location using the format: Utttt.mmm.ppsssss-PnCn-Tn
Chapter 12. Command-line interface commands
425
v v v v
Utttt.mmm.ppsssss identifies the location of the processor complex. Pn identifies the planer number. Cn identifies the card number. Tn identifies the port number.
shownetworkport
The shownetworkport command displays detailed properties of an individual network port ID. This command is not supported on DS6000 models.
shownetworkport -dev storage_image_ID port_ID -
Parameters
-dev storage_image_ID (Optional) Specifies the storage image ID, which consists of manufacturer, machine type, and serial number.The storage image ID is required if you do not specify a fully qualified port ID, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. port_ID | (Required) Displays I/O ports that match the specified IDs. This parameter accepts a fully qualified port ID, which includes the storage image ID, or a shortened version without the storage image ID when the -dev parameter is specified. A port ID is prefixed with letter I and consists of four hexadecimal characters with the binary bit definition of trre eeee aaaa pppp (value is separated for readability), where: v t = port type (1= network port) v rr = reserved bits and set to zero v eeeee = enclosure number (value specified is 18 - 1F) v aaaa = adapter number v pppp = port number If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode.
| | | | |
Example
For this command and all other DS CLI show commands, the results are shown in table format to provide clarity. The actual reports do not display as tables. The following tables represent the headers that are displayed on the output report that is associated with the shownetworkport command using the -fullid command flag. Invoking the shownetworkport command
dscli>shownetworkport fullid dev IBM.2107-1300321 I9801
426
State Online
Server 00
Speed 1 Gb/sec
Type EthernetCopper
427
Location Specifies the network port location in the format Utttt.mmm.ppsssss-PnCn-Tn where v v v v Utttt.mmm.ppsssss identifies the location of the processor complex. Pn identifies the planer number. Cn identifies the card number. Tn identifies the port number.
lsarraysite
The lsarraysite command displays a list of array sites and status information for each array site in the list.
lsarraysite -dev storage_image_ID -s -l -dapair dapair_ID
-cap
capacity
-array
array_ID
-state
|
-encrypt supported unsupported site_ID . . . -
Parameters
-dev storage_image_ID (Optional) Specifies the storage image ID, which consists of manufacturer, machine type, and serial number. The storage image ID is required if you do not specify a fully qualified site ID, do not set the devid variable in your profile
| |
428
| | | -s -l
or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. (Optional) Displays the array ID. You cannot use the -l and the -s parameters together. (Optional) Displays the default output and the disk drive module rpm (revolutions per minute). You cannot use the -l and the -s parameters together.
-dapair dapair_ID (Optional) Displays array sites that are associated with a common device adapter pair ID. A device adapter pair ID is a two-digit decimal number with no leading zeros. -cap capacity (Optional) Displays in gigabytes (GB) the array sites that have the specified capacity of the disk drive module. -array array_ID (Optional) Displays the array site that is associated with the specified array ID. An array ID is a four-digit decimal number with no leading zeros, prefixed with the letter A. -state assigned | unassigned | unavailable | initializing (Optional) Displays array sites that are in the specified state. One of the following values is displayed: assigned Specifies that the designated array site is defined as an array. unassigned Specifies that the array site is available to be defined as an array. unavailable Specifies that the designated array site is unassigned and at least one disk is not in the normal state. Also, the array site is not in the initializing state. initializing Specifies that the array site is unassigned and all disks are either in the normal or initializing state. Also, at least one disk is in the initializing state. | | -encrypt supported|unsupported (Optional) Displays only the array that has the specified encryption capability. site_ID . . . | (Optional) Displays array sites that have the specified IDs. An array site identifier is a four-digit decimal number with no leading zeros, prefixed with the letter S. To specify a range of array site IDs, separate the array site IDs with a hyphen. You must separate multiple array site IDs or ranges of array site IDs with a blank space between each ID or range of IDs. If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode.
429
Example
For this command and all other DS CLI list commands, the results are shown in table format to provide clarity. The actual reports do not display as tables. The following tables represent the headers that are displayed on the output report that is associated with the lsarraysite command using the -l parameter. A separate example is not shown for DS6000 because the information is the same for both DS8000 and DS6000. Invoking the lsarraysite command
dscli>lsarraysite -l
430
Initializing Specifies that the array site is unassigned and all disks are either in the normal or initializing state. Also, at least one disk is in the initializing state. Array Specifies the array ID that this assigned array site is assigned to. The ID is prefixed by the letter A. Diskclass Specifies the disk class as either high speed fibre-channel disk drives or near-line disk drives. The displayed value is one of the following: ENT NL | | | | | | | | | encrypt Specifies the encryption support capability. The displayed value is one of the following: supported The disk drive modules in this arraysite are capable of encryption. unsupported The disk drive modules in this arraysite are not capable of encryption. Specifies enterprise and represents high-speed fibre channel disk drives. Specifies near-line and represents ATA (FATA) disk drives
showarraysite
The showarraysite command displays detailed properties of a specific storage image array site.
showarraysite -dev storage_image_ID site_ID -
Parameters
-dev storage_image_ID (Optional) Specifies the storage image ID, which consists of manufacturer, machine type, and serial number. The storage image ID is required if you do not specify a fully qualified site ID, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. site_ID | (Required) Specifies that information be displayed for the designated array site ID. This parameter also accepts a fully qualified site ID, which consists of the storage image ID or a shortened version without the storage image ID, if the -dev parameter is specified. The shortened version is a four-digit decimal number with no leading zeros, prefixed by the letter S. The array site ID does not imply a physical location. If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode.
| | | | |
431
Example
For this command and all other DS CLI show commands, the results are shown in table format to provide clarity. The actual reports do not display as tables. The following tables represent the headers that are displayed on the output report that is associated with the showarraysite command. A separate example is not shown for DS6000 because the information is the same for both DS8000 and DS6000. You can issue the showarraysite command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model, the storage image ID is different. Invoking the showarraysite command
dscli>showarraysite -dev IBM.210775FA120 S11
DA pair IBM.210775FA120 /0
Diskrpm 15000
State Assigned
| | | | | | |
Dkrate (GB/sec) 2
DDMSN
Spares
dataDDM 8
Diskclass SATA
Encrypt unsupported
0123456789 0 ABCDEF
432
Diskrpm Specifies the minimum disk rpm of the disks in the designated array site. State Specifies the array site state. The values that can be displayed in this field are as follows: assigned Specifies that the designated array site is defined as an array. unassigned Specifies that the array site is available to be defined as an array. Array Specifies the array ID that the designated array site is assigned to. The ID is prefixed by the letter A. Dkrate Specifies the minimum disk interface rate of the disks in the designated array site. DDMSN Specifies the list of DDM serial numbers (SN) that are associated with the designated array site. Each DDM SN is a 16-character string. Each serial number is separated by a comma. Spares Specifies the number of spare DDMs that are allocated from the array site. DataDDM Specifies the number of data DDMs. This value is based on the number of DDMs minus the number of spares. Diskclass Specifies the disk class as either high speed fibre channel disk drives or near-line disk drives. The displayed value is one of the following: ENT NL | | | | | | | | | encrypt Specifies the encryption support capability. The displayed value is one of the following: supported The disk drive modules in this array site are capable of encryption. unsupported The disk drive modules in this array site are not capable of encryption. Specifies enterprise and designates a high-speed fibre channel disk drive. Specifies near-line and represents ATA (FATA) disk drives.
433
v showarray The lsarray command generates a report that displays a list of arrays in a storage image and the status information for each array in the list. The mkarray command creates one array per command. The rmarray command removes the specified array or arrays from the storage unit. The showarray command generates a report that displays the detailed properties of a specific array.
lsarray
The lsarray command displays a list of arrays in a storage image and status information for each array in the list.
lsarray -dev storage_image_ID -s -l -state assigned unassigned unavailable
-data
-raidtype
5 6 10
-dapair
dapair_ID
|
-cap capacity -rank rank_ID -encrypt supported unsupported
array_ID . . . -
Parameters
-dev storage_image_ID (Optional) Specifies the storage image ID, which includes the manufacturer, machine type, and serial number. The storage image ID is required if you do not specify a fully qualified array ID, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. -s -l (Optional) Specifies that only the array ID information be displayed on the generated report. You cannot use the -l and the -s parameters together. (Optional) Specifies that all information about the array including the array ID be displayed on the generated report. You cannot use the -l and the -s parameters together.
| | | | |
-state assigned | unassigned | unavailable (Optional) Specifies that information about those arrays that are in the designated state be displayed on the generated report.
434
-data normal | degraded | readonly | failed | repairing | inaccessible (Optional) Specifies that information about those arrays that are in the designated data state be displayed on the generated report. -raidtype 5 | 6 | 10 (Optional) Displays only those arrays with the specified RAID type, 5, 6, or 10. Note: The -raidtype 6 parameter can be specified for DS8000 models only. -dapair dapair_ID (Optional) Displays only the array that is specified by the device adapter pair ID. A device adapter pair ID is a two-digit decimal number with no leading zeros. -cap capacity (Optional) Displays in gigabytes (GB) only the array with the specified DDM capacity. You can specify up to three digits after the decimal point, for example -cap 144.7. -rank rank_ID (Optional) Displays only the array that is assigned to the specified rank ID. A rank ID is a four-digit decimal number with no leading zeros, prefixed with the letter R. | | | -encrypt supported | unsupported (Optional) Displays only the array sites that have the specified encryption capability. array_ID . . . | (Optional) Displays array information for the specified arrays. An array ID is a four-digit decimal number with no leading zeros, prefixed with the letter A. To specify a range of array IDs, separate the array IDs with a hyphen. For example: A10-A12 (equates to A10 A11 A12) You must separate multiple array IDs or ranges of array IDs with a blank space between each ID or range of IDs. For example: A11 A12 A14-A16. Your command in this case could look like: For DS8000,
dscli>lsarray IBM.210775FA120 -l A11 A12 A14-A16
If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode.
Example
For this command and all other DS CLI list commands, the results are shown in table format to provide clarity. The actual reports do not display as tables. The following tables represent the headers that are displayed on the output report that is associated with the lsarray command using the -l parameter. A separate example is not shown for DS6000 because the information is the same for both DS8000 and DS6000. You can issue the lsarray command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model you cannot use the -raidtype 6 parameter and the storage image ID is different. Invoking the lsarray command
Chapter 12. Command-line interface commands
435
| | | | | | | |
DA Pair 10 11 20 21
436
Read Only The array is in the Read-only data state if all of the following conditions exist: v v v v The Failed, Repairing, and Inaccessible data states do not apply. One or more DDMs have failed. There are insufficient spares to support all rebuild operations. Continued write operation without redundancy could result in data loss.
Failed The array is in the Failed data state if all of the following conditions exist: v The Repairing and Inaccessible data states do not apply. v Two or more DDMs in the array have failed. v There are insufficient DDMs left in the array to rebuild the data that was lost on the failing storage devices. Repairing The array is in the Repairing data state if all of the following conditions exist: v The Inaccessible data status does not apply. v The array has previously entered the failed state. v The repair array function has been accepted. v The repair array function has not completed. Inaccessible The array is in the Inaccessible data state if the storage unit cannot access a set of storage devices that are sufficient to access all the data on the array. RaidType Indicates the type of RAID array (5, 6, or 10) and the array configuration (for example, 6+P). Note: The RAID type 6 is displayed in DS8000 models only. arsite Rank Indicates the array sites that are associated with the array. Specifies the rank the array is assigned to. The value is displayed as a combination of a Storage Image ID and a rank number. The rank number is the prefix R, followed by a four-digit decimal number, with no leading zeros (for example, R26).
DA pair Identifies the DA pair ID. DA pairs are located in I/O enclosure pairs. DA pair ID indicates the I/O enclosure location. Note: An even-numbered DA pair ID indicates the first DA pair in an I/O enclosure pair. An odd-numbered DA pair ID indicates the second DA pair in an I/O enclosure pair. DDMcap (10^9B) Indicates the minimum disk capacity (10^9 Byte) of the storage devices (DDMs) in the specified array. Diskclass Specifies the disk class as either high speed fibre-channel disk drives or near-line disk drives. The displayed value is one of the following:
Chapter 12. Command-line interface commands
437
ENT NL | | | | | | | | encrypt
Specifies enterprise and represents high speed fibre-channel disk drives Specifies near-line and represents ATA (FATA) disk drives
SATA Specifies high capacity SATA disk drives. Specifies the encryption support capability. The displayed value is one of the following: supported The disk drive modules in this array are capable of encryption. unsupported The disk drive modules in this array are not capable of encryption.
mkarray
The mkarray command creates one array per command. You can specify two array sites if you are working with a DS6000 machine type, but you can specify only one array site for a DS8000 machine type.
mkarray -dev storage_image_ID -raidtype 5 6 10 -arsite array_site . . .
Parameters
-dev storage_image_ID (Optional) Specifies the storage image ID, which includes manufacturer, machine type, and serial number. The storage image ID is required if you do not specify a fully qualified array site, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. -raidtype 5 | 6 | 10 (Required) Specifies a RAID type for the array. Note: The -raidtype 6 parameter can be specified for DS8000 models only. -arsite array_site | , . . . (Required for a DS8000 machine type) Specifies the array site for the array. An array site number is a four-digit decimal number with no leading zeros, prefixed with the letter S. Example of fully qualified array site: IBM.210775FA120/S11 (Required for a DS6000 machine type) Specify one or two array sites for IBM 1750 RAID types 5 and 10. If there are two array sites, both must be associated with a common DA pair ID. An array site number is a four-digit decimal number with no leading zeros, prefixed with the letter S. Separate the two array sites by a comma with no blank space in between. Example: S10,S11.
| | | | |
Example
You can issue the mkarray command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model you cannot use the -raidtype 6 parameter and the storage image ID is different. You can specify two array sites for a DS6000 model, while for the DS8000 model you can only specify one array site.
438
rmarray
The rmarray command deletes arrays.
rmarray -dev storage_image_ID -quiet - array_ID . . .
Parameters
-dev storage_image_ID (Optional) Specifies the storage image ID, which consists of manufacturer, machine type, and serial number. The storage image ID is required if you do not specify a fully qualified ID for all array IDs, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. -quiet (Optional) Turns off the confirmation prompt for this command. array_ID . . . | (Required) Specifies the array IDs that are to be deleted. Accepts a fully qualified array ID, which includes the storage image ID, or a shortened version without the storage image ID if the -dev parameter is specified. The shortened version is a four digit decimal number with no leading zeros, prefixed by the letter A. To specify a range of array IDs, separate the array IDs with a hyphen. You must separate multiple array IDs or ranges of array IDs with a blank space between each ID or range of IDs. If you use the dash (-), the specified value is read from standard input. Note: You cannot use the dash (-) while you are in the DS CLI interactive command mode.
| | | | |
Example
You can issue the rmarray command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model, the storage image ID is different. Invoking the rmarray command
dscli>rmarray -dev IBM.210775FA120 A44
439
Sun Aug 11 02:23:49 PST 2004 IBM DS CLI Version: 5.0.0.0 DS: IBM.210775FA120 Are you sure you want to delete array IBM.210775FA120/A44? [y/n]: Y Array Storage Image ID/A44 successfully deleted.
showarray
The showarray command displays detailed properties of a specific array.
showarray -dev storage_image_ID array_ID -
Parameters
-dev storage_image_ID (Optional) Specifies the storage image ID, which consists of manufacturer, machine type, and serial number. The storage image ID is required if you do not specify a fully qualified array ID, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. array_ID | (Required) Specifies the array ID that you want to view. This parameter accepts a fully qualified array ID, which consists of the storage image ID, or a shortened version without the storage image ID if the -dev parameter is specified. The shortened version is a four-digit decimal number with no leading zeros, prefixed by the letter A. If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode.
| | | | |
Example
You can issue the showarray command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model the storage image ID is different. For this command and all other DS CLI show commands, the results are shown in table format to provide clarity. The actual reports do not display as tables. The following tables represent the headers that are displayed on the output report that is associated with the showarray command. A separate example is not shown for the DS6000 because the information is the same for both the DS8000 and DS6000. Invoking the showarray command
dscli>showarray -dev IBM.210775FA120 A44
IBM.2107AZ123AQ 75FA120/A44
440
| | | | | |
Rank
DA Pair
DDMcap Interface Interrate (10^9B) DDMRPM Type (GB/secs) Diskclass Encrypt 15000 FCAL 2 SATA unsupported
441
v There are insufficient DDMs left in the array to rebuild the data that was lost on the failing storage devices. Repairing The array is in the Repairing data state if all of the following conditions exist: v The Inaccessible data state does not apply. v The array has previously entered the failed state. v The repair array function has been accepted. v The repair array function has not completed. Inaccessible The array is in the Inaccessible data state if the storage unit cannot access a set of storage devices that are sufficient to access all the data on the array. RaidType Specifies the type of RAID array (5, 6, or 10) and the array configuration (for example, 6+P). Note: The RAID type 6 is displayed in DS8000 models only. Arsite Specifies the array sites that are associated with the array. Rank Specifies the rank that the array is assigned to. The value is displayed as a combination of a storage image ID and a rank number. The rank number is the prefix R, followed by a four-digit decimal number, with no leading zeros (for example, R26). Note: If the array is unassigned, the field is null () DA pair Specifies the DA pair ID. DA pairs are located in I/O enclosure pairs. The DA pair ID indicates the location of the I/O enclosure. Note: DA adapters are installed in slot 3 an enclosure and slot 6 in the peer enclosure. The DA pair ID identifies the enclosure that contains the DA adapter in slot 3. For example, a DA adapter is installed in slot of 3 of enclosure 2. Its peer is installed in slot 6 of enclosure 3. In this case, the DA Pair ID is 2. DDMcap (10^9B) Specifies the minimum disk capacity (10^9B) of the storage devices (DDMs) in the designated array. DDMRPM Specifies the minimum disk rpm of the DDMs in the designated array. Interface Type Specifies the disk interface type of the DDMs in the designated array Interrate Specifies the minimum disk interface rate of the disks in the designated array. Diskclass Specifies the disk class as either high speed fibre-channel disk drives or near-line disk drives. The displayed value is one of the following: ENT Specifies enterprise and represents high speed fibre-channel disk drives
442
NL | | | | | | | | encrypt
SATA Specifies high capacity SATA disk drives. Specifies the encryption support capability. The displayed value is one of the following: supported The disk drive modules in this array are capable of encryption. unsupported The disk drive modules in this array are not capable of encryption.
chrank
The chrank command assigns an unassigned rank to an extent pool, or removes an assigned rank from a extent pool. This command can also be used to change an assigned rank to an unassigned rank.
chrank -dev storage_image_ID rank_ID -extpool extentpool_ID - . . . -reserve -release -unassign
443
Parameters
-dev storage_image_ID (Optional) Specifies the storage image ID, which consists of manufacturer, machine type, and serial number. The storage image ID is required if you do not specify fully qualified IDs, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. -reserve (Optional) Specifies that the rank configuration state be set to Reserved. -release (Optional) Specifies that the rank configuration state be set to Normal. -unassign (Optional) Specifies that the rank configuration state be set to Unassigned. -extpool extentpool_ID (Optional) Assigns the rank to an extent pool. Accepts either a fully qualified extent pool ID including storage image ID or a shortened version if the -dev parameter is used. The shortened version is a four-digit decimal number with no leading zeroes, prefixed with the letter P. rank_ID . . . | (Required) Specifies one or more ranks to be modified. Accepts either a fully qualified rank ID, or a rank number if the -dev parameter is used. A rank number is a four-digit decimal number with no leading zeroes, prefixed by the letter R. To specify a range of rank IDs, separate the rank IDs with a hyphen. You must separate multiple rank IDs or ranges of rank IDs with a blank space between each ID or range of IDs. If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode.
| | | | |
Example
You can issue the chrank command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model the storage image ID is different. Invoking the chrank command
dscli>chrank -dev IBM.2107-75FA120 -extpool P101 R2
lsrank
The lsrank command displays a list of defined ranks in a storage image and status information for each rank.
lsrank -dev storage_image_ID -s -l -grp 0 1
444
-state
normal unassigned reserved depopulating configuring configerr deconfiguring deconfigerr configpending configpendingerr configoutofsyncerr
-data
-type
5 6 10
|
-extpool extentpool_ID -stgtype fb ckd -encryptgrp encryption_group_ID
rank_ID . . . -
Parameters
-dev storage_image_ID (Optional) Specifies the storage image ID, which consists of manufacturer, machine type, and serial number. The storage image ID is required if you do not specify fully qualified IDs, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. For DS8000, example: IBM.2107-75FA120 -s -l (Optional) Displays the rank ID. You cannot use the -l and the -s parameters together. (Optional) Displays the default output, extent pool name, number of extents, and extents that are used for each rank. You cannot use the -l and the -s parameters together.
| | | | |
-grp 0 | 1 (Optional) Displays only the ranks that belong to the specified rank group. A rank in the unassigned state is not associated with a rank group. -state normal | configuring | unassigned | reserved | deconfiguring | depopulating | configerr | deconfigerr | configpending | configpendingerr | configoutofsyncerr (Optional) Displays only ranks in the specified state. -data normal | degraded | readonly | failed | repairing | inaccessible (Optional) Displays only ranks in the specified data state. -type 5 | 6 | 10 (Optional) Displays only ranks of the specified RAID type. Note: The -raidtype 6 parameter can be specified for DS8000 models only.
445
-extpool extentpool_ID (Optional) Displays only ranks in the specified extent pool. An extent pool ID is a four-digit decimal number with no leading zeroes, prefixed with the letter P. -stgtype fb | ckd (Optional) Displays only ranks that are configured for the specified storage type. | | -encryptgrp encryption_group_ID (Optional) Displays the encryption group that this rank uses. rank_ID . . . | (Optional) Displays rank information for specified rank IDs. An ID range is defined by two IDs that are separated by a hyphen. You must separate multiple rank IDs or ranges of rank IDs with a blank space between each ID or range of IDs. If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode.
Example
You can issue the lsrank command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model you cannot use the -raidtype 6 parameter and the storage image ID is different. For this command and all other DS CLI list commands, the results are shown in table format to provide clarity. The actual reports do not display as tables. The following tables represent the headers that are displayed on the output report that is associated with the lsrank command using the -l parameter. A separate example is not shown for the DS6000 because the information is the same for both the DS8000 and DS6000. Invoking the lsrank command
dscli>lsrank -dev IBM.2107-75FA120 -l
| | | |
ExtpoolID P1 P1
Stgtype fb fb
Encryptgrp 1 1
446
| | | |
ExtpoolID P1 P1
Stgtype fb fb
Encryptgrp 1 1
447
Normal A rank is in the normal data state when the configuration state is one of the following: unassigned, configuring, or configuration error. Degraded A rank is in the degraded data state if one or more arrays in the rank are in the degraded data state and none are in the read only, failed, repairing, or inaccessible data states. Read only A rank is in the read only data state if one or more arrays in the rank are in the read only data state and none are in the failed, repairing, or inaccessible data states. Failed The rank is in the failed data state if one or more arrays in the rank are in the failed data state. Repairing A rank is in the repairing data state if one or more arrays in the rank are in the repairing data state and none are in the failed data state. Inaccessible A rank is in the inaccessible data state if one or more arrays in the rank are in the inaccessible data state and none are in the failed or repairing data states. Array Specifies the array ID that is assigned to the designated rank. RAIDtype Specifies the RAID type of the array associated with this rank. The value displayed is either 5, 6, or 10. Note: The RAID type 6 is displayed in DS8000 models only. ExtpoolID Specifies the extent pool to which the rank is assigned. Extpoolnam Specifies the name that is assigned to the extent pool to which the rank is assigned. Stgtype Specifies the storage type of the extent pool to which the rank is assigned. The value displayed is either fb (fixed block) or ckd (count key data) Exts Specifies the number of extents that are contained in the designated rank. The value displayed is a number in the range of 1 - 4000.
Usedexts Specifies the number of extents that are allocated to volumes from the designated rank. The value displayed is a number in the range of 1 - 4000. | | | encryptgrp Specifies the encryption group number. A dash ( - ) means that either encryption is supported but not used, or encryption is not supported.
mkrank
The mkrank command creates one fixed block or count key data (CKD) rank from one array.
448
-array
array_ID
-stgtype
fb ckd
|
-encryptgrp encryption_group_ID -wait -extpool extentpool_ID
Parameters
Note: It is recommended that you specify either the -wait or the -extpool parameter when using the mkrank command. Using either of these parameters allows you to be notified if the rank configuration has failed for any reason. -dev storage_image_ID (Optional) Specifies the storage image ID, which includes manufacturer, type, and serial number. The storage image ID is required if you do not specify fully qualified IDs for the extent pool, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. -array array_ID (Required) Specifies the ID of the array from which the rank is to be created. An array ID is a four digit decimal number with no leading zeroes, prefixed with the letter A. -stgtype fb | ckd (Required) Specifies the type of extent for which the rank will be configured, either fixed block or count key data. | | | | -encryptgrp encryption_group_ID (Optional - DS8000 only) Specifies the encryption group that this rank should use. The default is zero, which means that no encryption group is assigned to the rank. -wait (Optional) Delays the command response until the rank configuration process completes. -extpool extentpool_ID (Optional) Specifies the extent pool that contains the created rank extents. If an extent pool is specified, then the rank will be assigned to the extent pool. Otherwise, the rank state is unassigned. If specified, the extent pool must exist and must be compatible with the specified -stgtype parameter option. An extent pool ID is a four-digit decimal number with no leading zeroes, prefixed with the letter P. Note: You must use the chrank command if you choose to specify the extent pool ID at a later time.
| | | | |
Example
You can issue the mkrank command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model the storage image ID is different. Invoking the mkrank command |
dscli>mkrank -dev IBM.2107-75FA120 -array A44 -stgtype fb -wait -encryptgrp 1
449
rmrank
The rmrank command deletes ranks from a storage image. This command is rejected if any volume extents in the rank are being used. In addition, this command formats the drives (DDMs). Until the formatting is done, the associated array cannot be removed.
rmrank -dev storage_image_ID -quiet - rank_ID . . .
Parameters
Note: The processing time that is associated with this command can be lengthy and might inhibit your use of the array on which this command is being processed. When the rmrank command is issued, the following processing occurs: v The rank is unassigned from the array. v The rank is removed. When this is successful a message is displayed. This piece of the process does not take long; however, the processing that is associated with this command is not complete even though you have received a message that the rank was removed. v The array is formatted. This processing can take some time. During this processing the array cannot be removed or assigned to another rank. Also, until this process is fully completed, the array is listed as assigned to the rank from which it is has been removed. v You can check the progress of the rmrank command by logging onto another session of DS CLI. Issue the lsarray command against the storage image (for DS8000) or storage unit (for DS6000) where the rank or ranks are being deleted. When you no longer see the array that is assigned to the rank from which you removed it, the remove rank process is complete. The following list defines the parameters that are associated with the rmrank command: -dev storage_image_ID (Optional) Specifies the storage image ID, which includes manufacturer, machine type, and serial number. The storage image ID is required if you do not specify a fully qualified ID for all ranks, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. -quiet (Optional) Turns off the confirmation prompt for this command. rank_ID . . . | (Required) Specifies an array of one or more ranks to be deleted. This parameter accepts a fully qualified rank ID, which includes the storage image ID, or a shortened version without the storage image ID if the -dev parameter
| | | | |
450
is specified. The shortened version is a four-digit decimal number with no leading zeroes, prefixed with the letter R. To specify a range of rank IDs, separate the rank IDs with a hyphen. You must separate multiple rank IDs or ranges of rank IDs with a space between each ID or range of IDs. If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode.
Example
You can issue the rmrank command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model the storage image ID is different. Invoking the rmrank command
dscli>rmrank -dev IBM.2107-75FA120 R23
showrank
The showrank command displays detailed properties or performance metrics of a rank.
showrank -dev storage_image_ID -metrics rank_ID
Parameters
-dev storage_image_ID (Optional) Specifies the storage image ID, which consists of manufacturer, machine type, and serial number. The storage image ID is required if you do not specify a fully qualified rank ID, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. -metrics (Optional) Displays the rank ID and performance statistics for the specified rank. Note: All performance statistics are an accumulation since the most recent counter wrap or counter reset. Rank performance counters are reset on a power up sequence or by a server failover and failback sequence. rank_ID (Required) Specifies the properties for the specified rank. This parameter accepts a fully qualified rank ID, which consists of the storage image ID, or a
| | | | |
451
shortened version without the storage image ID if the -dev parameter is specified. The shortened version is a four-digit decimal number with no leading zeros, prefixed by the letter R.
Example
You can issue the showrank command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model the storage image ID is different. For this command and all other DS CLI show commands, the results are shown in table format to provide clarity. The actual reports do not display as tables. The following tables represent the headers that are displayed on the output reports that are associated with the showrank command. A separate example is not shown for the DS6000 because the information is the same for both the DS8000 and DS6000. Invoking the showrank command to show rank properties
dscli>showrank -dev IBM.2107-75FA120 R34
Stgtype FB
Exts 1,000
Usedexts 500
| | | |
Widearrays Nararrays 1 0
Trksize 128
Strpsize 4
Strpesize 4
Extsize 16,384
Encryptgrp -
Group Specifies the rank group that the rank is assigned to. One of the following values are displayed: 0, 1, - (null). Note: Null (-) is displayed if the rank has not been assigned to an extent pool. State Specifies the configuration state that is associated with the rank at the time that the report is generated. The following values can be displayed for the rank:
452
Normal Specifies that a rank is assigned to an extent pool ID and none of the other state conditions apply. Configuring Specifies that a rank is in the process of being initially configured. Generally this state indicates that the associated rank transaction has not completed. Unassigned Specifies that a rank is not assigned to an extent pool ID. Reserved Specifies that rank extents are not eligible for volume allocation. Deconfiguring Specifies that a rank is in the process of being deleted. Configuration Error Specifies that a rank configuration process did not complete successfully. This state indicates that there is an internal error condition and it is not an indication that there was a user input error. Deconfiguration Error Specifies that a rank removal process did not complete successfully. This state indicates that there is an internal error condition and it is not an indication that there was a user input error. This configuration state is corrected by reissuing the rmrank command. Datastate Specifies the current state of the data extents that are contained by this rank ID. The following values can be displayed for the rank: Normal Specifies that none of the other data states apply. Degraded Specifies that one or more arrays in the rank are in the degraded state. Read Only Specifies that one or more arrays in the rank are in the Read Only state. Failed Specifies that one or more arrays in the rank are in the Failed state. Repairing Specifies that one or more arrays in the rank are in the Repairing state. Inaccessible Specifies that one or more arrays in the rank are in the Inaccessible state. Array Specifies the array ID that is assigned to the designated rank. RAIDtype Specifies the RAID type (5, 6, or 10) of the array that is associated with the designated rank. Note: The RAID type 6 is displayed in DS8000 models only.
453
ExtpoolID Specifies the extent pool to which the designated rank is assigned. Extpoolnam Specifies the extent pool to which the designated rank is assigned. Volumes Specifies the volume IDs that have an extent pool value that is allocated on the designated rank. Stgtype Specifies the storage type of the extent pool the designated rank is assigned to. Valid values are fixed block and count key data (CKD). Exts Specifies the number of extents that are contained in the designated rank. 1 - 4000 are valid values.
Usedexts Specifies the number of extents that are allocated to volumes from the designated rank. Widearrays Specifies the number of wide arrays that are contained by the designated rank. 0 or 1 are valid values. Nararrays Specifies the number of narrow arrays that are contained by the designated rank. Trksize Specifies the track size. Notes: 1. The track size is displayed as a 1 if it is associated with a CKD storage type. 2. The track size is displayed as 128 if it is associated with a fixed block storage type. Strpsize Specifies the number of logical tracks in a strip on the designated rank. Strpesize Specifies the number of logical tracks in a stripe on the designated rank. Extsize Specifies the number of logical tracks in a extent on the designated rank. Notes: 1. A CKD 1 GB extent contains 16 696 tracks. 2. A fixed block 1 GB extent contains 16 384 tracks. | | | encryptgrp Specifies the encryption group number. A dash ( - ) means that either encryption is supported but not used, or encryption is not supported. Performance request Invoking the showrank command to show performance metrics
dscli>showrank -dev IBM.2107-75FA120 -metrics R34
454
Sun Aug 11 02:23:49 PST 2004 IBM DS CLI Version: 5.0.0.0 DS: IBM.2107-75FA120 ID 2107 -75FA120 /R34 Date 10/11/04 02:23:47 Byteread 10000 Bytewrit 10000 Reads 10000
| | | |
Writes 10000
Timeread 10000
Timewrite 10000
dataencrypted yes
Byteread Specifies the number of rank bytes that are read in 128 KB increments. Bytewrit Specifies the number of rank bytes that are written in 128 KB increments. Reads Specifies the rank read operations. Writes Specifies the rank write operations. Timeread Specifies the rank read response time in 16 millisecond increments. Timewrite Specifies the rank read response time in 16 millisecond increments. | | | dataencrypted Specifies whether or not the data stored on the physical media is encrypted.
455
The rmextpool command deletes one or more specified extent pools from a storage unit. The showextpool command generates two types of reports. One of the reports displays the detailed properties of a specified extent pool. The other report displays the performance metrics for the specified extent pool.
chextpool
The chextpool command modifies attributes that are associated with an extent pool.
chextpool -dev storage_image_ID -name new_extent_pool_name
-extentlimit
enable disable
-limit
extent_limit_percentage
-threshold
extent_threshold_percentage
-virextentlimit
enable disable
-virlimit
virtual_extent_limit_percentage extentpool_ID -
-virthreshold
virtual_extent_threshold_percentage
Parameters
Note: The -virextentlimit, -virlimit, and -virthreshold parameters are used only on DS8000 models. -dev storage_image_ID (Optional) Specifies the storage image ID, which consists of a value for manufacturer, machine type, and serial number. The storage image ID is required if you do not specify a fully qualified ID for the extent pool, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. -name new_extent_pool_name (Optional) Specifies a new name for the extent pool. -extentlimit enable | disable (Optional) Specifies that the extent limit function be enabled or disabled. -limit extent_limit_percentage (Optional) Specifies the maximum value of the percentage of allocated real extents that are allowed in this extent pool. -threshold extent_threshold_percentage (Optional) Specifies threshold as a percentage of the available real extents that is compared to the actual percentage of available real extents. The system issues a warning when this percentage is exceeded. -virextentlimit enable | disable (Optional - DS8000 only) Specifies that the virtual extent limit function is enabled or disabled.
| | | | |
456
-virlimit virtual_extent_limit_percentage (Optional - DS8000 only) Specifies the maximum value of the percentage of allocated virtual extents that are allowed in this extent pool. -virthreshold virtual_extent_threshold_percentage (Optional - DS8000 only) Specifies the minimum threshold percentage of the virtual extents available. When the percentage of the currently available virtual extents is less than this minimum percentage, notifications are sent and the virtual extent status is reported as exceeded. extentpool_ID | (Required) Specifies the ID of the extent pool to be changed. This parameter accepts either a fully qualified extent pool ID or a shortened version if the -dev parameter is used. The shortened version is a four-digit decimal number with no leading zeros, prefixed with the letter P. If you use the dash (-), the specified value is read from standard input. Note: You cannot use the dash (-) while you are in the DS CLI interactive command mode.
Example
You can issue the chextpool command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model, you cannot use the -virextentlimit, -virlimit, and -virthreshold parameters and the storage image ID is different. Invoking the chextpool command
dscli>chextpool -name host_4_extpool IBM.2107-75FA120/P21
lsextpool
The lsextpool command displays a list of extent pools in a storage unit and status information on each extent pool in the list.
lsextpool -dev storage_image_ID -s -l -stgtype fb ckd -rankgrp 0 1
|
-encryptgrp encryption_group_ID extentpool_ID . . . -
457
Parameters
-dev storage_image_ID (Optional) Specifies the storage image ID, which consists of manufacturer, machine type, and serial number. The storage image ID is required if you do not specify fully qualified IDs, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. -s -l (Optional) Displays extent pool IDs. You cannot use the -l and the -s parameters together. (Optional) Displays default output plus additional attributes that are identified as long output. You cannot use the -l and the -s parameters together.
| | | | |
-stgtype fb | ckd (Optional) Displays only extent pools with the specified storage type. -rankgrp 0 | 1 (Optional) Displays only extent pools in the specified rank group. | | -encryptgrp encryption _group_ID (Optional) Displays only extent pool of the specified encryption group. extentpool_ID . . . | (Optional) Displays only the extent pools with the specified IDs. An extent pool ID is a four-digit decimal number with no leading zeroes, prefixed by the letter P. To specify a range of extent pool IDs, separate the extent pool IDs with a hyphen. You must separate multiple extent pool IDs or ranges of extent pool IDs with a space between each ID or range of IDs. If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode.
Example
You can issue the lsextpool command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model the storage image ID is different. For this command and all other DS CLI list commands, the results are shown in table format to provide clarity. The actual reports do not display as tables. The following tables represent the headers that are displayed on the output report that is associated with the lsextpool command using the -l parameter. Invoking the lsextpool command
dscli>lsextpool -dev IBM.2107-75FA120 -l
458
Name ckd_c0 _ext _pool00 ckd_c1 _ext _pool01 fb_c0 _ext _pool02 fb_c1 _ext _pool03
Stgtype ckd
Rankgrp 0
Status below
ckd
below
600
fb
below
715
fb
below
715
| | | | | | | |
%allocated 21 21 8 8
Reserved 0 0 0 0
Numvols 64 64 64 64
Numranks 1 1 1 1
encrypt grp 1 1 -
Specifies the system assigned unique identifier for the extent pool object.
459
Available Specifies the maximum number of real extents available for allocation in the designated extent pool. Reserved Specifies the real extents reserved in the designated extent pool. Numvols Identifies the number of logical volumes that have been configured from the designated extent pool. Numranks Identifies the number of ranks that have been configured in the designated extent pool. | | | | Encryptgrp The encryption group number that the extent pool is related to. A dash ( - ) means that either encryption is supported but not used, or encryption is not supported.
mkextpool
The mkextpool command creates a fixed block or count key data (CKD) storage type extent pool.
mkextpool -dev storage_image_ID -rankgrp 0 1 -stgtype fb ckd
-extentlimit
enable disable
-limit
extent_limit_percentage
-threshold
extent_threshold_percentage
-virextentlimit
enable disable
-virlimit
virtual_extent_limit_percentage
|
-virthreshold extent_pool_name virtual_extent_threshold_percentage - -encryptgrp encryption_group_ID
Parameters
Notes: 1. The -virextentlimit, -virlimit, and -virthreshold parameters are used only on DS8000 models. 2. An extent pool object is assigned to either rank group 0 or 1, which allows the extent pool to be managed by storage unit server 0 or 1 respectively. 3. Create extent pool objects before creating array and rank objects. 4. Create extent pools of a given type for both rank groups 0 and 1 so that volumes that are assigned to a volume group can be spread across both rank groups 0 and 1. -dev storage_image_ID (Optional) Specifies the storage image ID, which consists of manufacturer,
460
| | | | |
machine type, and serial number. The storage image ID is required if you do not specify a fully qualified encryption group ID, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. -rankgrp 0 | 1 (Required) Assigns the extent pool to either rank group 0 or 1. Rank group 0 is managed by server 0, and rank group 1 is managed by server 1. Note: If an extent pool does not exist, you can issue the chrank command after an extent pool is created in order to assign the rank to the extent pool. In addition, you can create extent pools of a given type for both rank groups 0 and 1 so that volumes that are assigned to a volume group might be spread across both rank groups 0 and 1. -stgtype fb | ckd (Required) Specifies the volume storage type that is contained by this extent pool. -extentlimit enable | disable (Optional) Specifies that the extent limit function is enabled or disabled. The default is disable. -limit extent_limit_percentage (Optional) Specifies the maximum value of the percentage of allocated real extents that are allowed in this extent pool. This value defaults to 100 if not specified. -threshold extent_threshold_percentage (Optional) Specifies the minimum threshold percentage of the real extents available. When the percentage of the currently available real extents is less than this minimum percentage, notifications are sent and the real extent status is reported as exceeded. -virextentlimit enable | disable (Optional - DS8000 only) Specifies that the virtual extent limit function be enabled or disabled. The default is disable. -virlimit virtual_extent_limit_percentage (Optional - DS8000 only) Specifies the maximum value of the percentage of allocated virtual extents that are allowed in this extent pool. -virthreshold virtual_extent_threshold_percentage (Optional - DS8000 only) Specifies the minimum threshold percentage of the virtual extents available. When the percentage of the currently available virtual extents is less than this minimum percentage, notifications are sent and the virtual extent status is reported as exceeded.
| | | |
-encryptgrp encryption _group_ID (Optional - DS8000 only) Specifies the encryption group that this extent pool should use. The default is zero, which means that no encryption group is assigned to the extent pool. extent_pool_name | (Required) Specifies your extent pool name, which is limited to 16 characters. If you use the dash (-), the specified value is read from standard input. Note: You cannot use the dash (-) while you are in the DS CLI interactive command mode.
Chapter 12. Command-line interface commands
461
Example
You can issue the mkextpool command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model, you cannot use the -virextentlimit, -virlimit, and -virthreshold parameters and the storage image ID is different. Invoking the mkextpool command
dscli>mkextpool -dev IBM.2107-75FA120 -rankgrp 0 -stgtype fb my_extpool
rmextpool
The rmextpool command deletes extent pools from a storage image.
rmextpool -dev storage_image_ID -quiet - extentpool_ID . . .
Parameters
-dev storage_image_ID (Optional) Specifies the storage image ID, which consists of manufacturer, machine type, and serial number. The storage image ID is required if you do not specify a fully qualified ID for all extent pools, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. -quiet (Optional) Turns off the confirmation prompt for this command. extentpool_ID . . . | (Required) Specifies the IDs of one or more extent pools to be deleted. A fully qualified extent pool ID is accepted, which consists of the storage image ID, or a shortened version without the storage image ID if the -dev parameter is specified. The shortened version is a four-decimal digit number with no leading zeroes, prefixed with the letter P. Note: All rank assignments must be removed before extent pool can be deleted. To specify a range of extent pool IDs, separate the extent pool IDs with a hyphen.
| | | | |
462
You must separate multiple extent pool IDs or ranges of extent pool IDs with a blank space between each ID or range of IDs. If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode.
Example
You can issue the rmextpool command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model the storage image ID is different. Invoking the rmextpool command
dscli>rmextpool IBM.2107-75FA120/P101
showextpool
The showextpool command displays detailed properties or performance metrics of an extent pool.
showextpool -dev storage_image_ID -metrics extentpool_ID -
Parameters
-dev storage_image_ID (Optional) Specifies the storage image ID, which consists of a value for manufacturer, machine type, and serial number. The storage image ID is required if you do not specify a fully qualified extent pool ID, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. -metrics (Optional) Displays the extent pool ID and performance metrics for the specified extent pool. Note: All performance metrics are an accumulation starting from the most recent counter wrap or counter reset. The extent pool performance counters are reset on the following occurrences: v The storage unit is powered-up. v A server has failed and the failover and failback sequence is performed. extentpool_ID | (Required) Specifies the extent pool to be displayed. This parameter accepts a fully qualified extent pool ID, which consists of the storage image ID or an extent pool number without the storage image ID, if the -dev parameter is specified. The extent pool number is a four-digit decimal number with no
| | | | |
463
leading zeroes, prefixed with the letter P. Even numbered extent pools are associated with rank group 0. Odd numbered extent pools are associated with rank group 1. If you use the dash (-), the specified value is read from standard input. Note: You cannot use the dash (-) while you are in the DS CLI interactive command mode.
Example
You can issue the showextpool command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model the storage image ID is different. For this command and all other DS CLI show commands, the results are shown in table format to provide clarity. The actual reports do not display as tables. The following tables represent the headers that are displayed on the output reports that are associated with the showextpool command. The headers are the same for the DS8000 model and DS6000 model. However. not all values (such as virtual values) are displayed for the DS6000. Invoking the showextpool command to show extent pool properties
dscli>showextpool -dev IBM.2107-75FA120 P21
ID IBM.210775FA120 /P21
stgtype fb
rankgrp 1
num ranks 4
numvols 3
status exceeded
%allocated 20
%available 80
configured 1000
allowed 600
available 800
allocated 200
reserved 0
%limit 80
%threshold 30
virextstatus below
%virallocated 10
%viravailable 90
virconfigured 1000
virallowed 800
| | | | |
viravailable 720
virallocated 80
virreserved 0
%virextlimit 70
%virextthreshold 35
encrypt grp 1
Report field definitions Name Identifies the name you assigned to the extent pool.
464
ID stgtype
Specifies the system assigned unique identifier for the extent pool object. Identifies the storage type associated with the extent pool. One of the following is displayed: v fb v ckd
totlstor (2^30 Bytes) Specifies the amount of storage associated with the extent pool in GB. availstor (2^30 Bytes) Specifies the available storage for the designated extent pool in GB. resvdstor (2^30 Bytes) Specifies the amount of reserved storage for the designated extent pool in GB. rankgrp Specifies the rank group in which the designated extent pool is configured. numranks Specifies the number of ranks configured in the designated extent pool. numvols Identifies the number of logical volumes that have been configured from the designated extent pool. status Specifies the extent status. One of the following values is displayed: exceeded Specifies that the percent of real extents available is less than the real extent threshold below Specifies that the percent of real extents available is greater than the real extent threshold. full Specifies that the %Extents available is zero. %allocated Specifies the percentage of real extents allocated. A value of 1 - 100 is displayed. %available Specifies the percentage of real extents that are available. A value of 1 - 100 is displayed. configured Specifies the number of real extents that are contained in the extent pool. allowed Specifies the number of real extents that are below the applicable extent limit. available The number of real extents of a given type that are available for allocation to a logical volume. allocated Specifies the number of real extents of a given type in the extent pool that are allocated to logical volumes or auxiliary volumes.
465
reserved Specifies the number of unallocated real extents in the extent pool that are on ranks of the same extent type in the reserved state. In addition, this value is the number of unallocated extents above the applicable extent limit on ranks of the same extent type that are not in the reserved state. %limit Specifies the maximum percentage of allocated real extents that are allowed in this extent pool. %threshold Specifies the minimum threshold percentage of the real extents available. When the percentage of the currently available real extents is less than this minimum percentage, notifications are sent and the extent status is reported as exceeded. Virextstatus (DS8000) Specifies the virtual extent status. One of the following values is displayed: exceeded Indicates that the virtual extents available percentage is less than the virtual extent threshold. below Indicates that the virtual extents available (viravailable) as a percentage of the total extents (virallowed) is greater than the virtual extent threshold (virextthreshold). full Indicates that the available virtual extents is zero. (DS6000) No value displayed. %virallocated (DS8000) Specifies the percentage of virtual extents that are allocated compared to the total virtual extents that are allowed. Valid values are 0 100. (DS6000) No value displayed. %viravailable (DS8000) Specifies the percentage of virtual extents that are available compared to the total virtual extents that are allowed. Valid values are 0 100. (DS6000) No value displayed. Virconfigured (DS8000) Specifies the number of virtual extents that are configured in the extent pool. Virallowed (DS8000) Specifies the number of virtual extents that are below the applicable virtual extent limit. (DS6000) No value displayed. Viravailable (DS8000) Specifies the number of virtual extents that are available for allocation to space-efficient volumes. (DS6000) No value displayed.
466
Virallocated (DS8000) Specifies the number of virtual extents in the extent pool that are allocated to space-efficient volumes. (DS6000) No value displayed. Virreserved (DS8000) Specifies the number of unallocated virtual extents in the extent pool that are on ranks of the same extent type that are in the reserved state. In addition, this value specifies the number of unallocated extents above the applicable extent limit on ranks of the same extent type that are not in the reserved state. (DS6000) No value displayed. %virextlimit (DS8000) Specifies the maximum value of the percentage of allocated virtual extents that can be allowed in this extent pool. Note: If the virtual extent limit is not enabled, a null (-) value is displayed. (DS6000) No value displayed. %virextthreshold (DS8000) Specifies the minimum threshold percentage of the virtual extents available. When the percentage of the currently available virtual extents is less than this minimum percentage, notifications are sent and the virtual extent status is reported as exceeded. (DS6000) No value displayed. | | | encryptgrp The number of encryptions. A dash ( - ) means that either encryption is supported but not used, or encryption is not supported. Performance request Invoking the showextpool command to show performance metrics
dscli>showextpool -metrics IBM.2107-75FA120/P101
ID IBM.210775FA120 /P101
realext 10000
| | | |
virextcap 10000
virext 100000
dataencrypted yes
467
Report field definitions ID Date Specifies the system assigned unique identifier for the extent pool object. Identifies the current time stamp for the extent pool performance counters.
realextcap Specifies the real extent pool capacity in GB. realext Specifies the number of real extents in the extent pool. realallocext Specifies the number of real allocated extents in the extent pool. realextconv Specifies real extent conversions. dyrelocsource Specifies the number of extents that were sources of a dynamic extent relocation. dyreloctarget Specifies the number of extents that were targets of a dynamic extent relocation. virextcap (DS8000) Specifies the virtual extent pool capacity in GB. (DS6000) No value displayed. virext (DS8000) Specifies the number of virtual extents in the extent pool. (DS6000) No value displayed. | | | dataencrypted Specifies whether or not the data stored on the physical media is encrypted.
lsaddressgrp
The lsaddressgrp command displays a list of address groups for a storage image and the status information for each address group in the list.
lsaddressgrp -dev storage_image_ID -s -l -stgtype fb ckd
Parameters
-dev storage_image_ID (Optional). Specifies the storage image ID, which consists of manufacturer, machine type, and serial number. Displays only the objects for the storage unit
468
| | | |
specified. The storage image ID is required if you do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. For DS8000, example: IBM.2107-75FA120 For DS6000, example: IBM.1750-68FA120 -s -l (Optional). Displays the address group IDs only. You cannot use the -l and the -s parameters together. (Optional). Displays the default output. You cannot use the -l and the -s parameters together.
-stgtype fb | ckd (Optional). Displays only the address groups that are associated with the specified storage type.
Example
For this command and all other DS CLI list commands, the results are shown in table format to provide clarity. The actual reports do not display as tables. You can issue the lsaddressgrp command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model the storage image ID is different. The following table represents the headers that are displayed on the output report that is associated with the lsaddressgrp command using the -l parameter. A separate example is not shown for the DS6000 as the information is the same for both the DS8000 and DS6000. Invoking the lsaddressgrp command
dscli>lsaddressgrp -dev IBM.2107-75FA120 -l
fb
0100
4096
16
164096
ckd
0200
4096
16
164096
ckd
0300
4096
16
164096
469
Stgtype Specifies the type of logical devices that are configured for the specified address group: fb - fixed block and ckd - count key data. Basevolnum Specifies the lowest logical volume number in the address group. Vols LSSs Specifies the number of logical volume numbers that are associated with the address group. Specifies the number of logical subsystems (LSSs) that are configured on the address group.
Confgvols Specifies the number of logical volumes that are configured on the address group.
chlcu
The chlcu command modifies a logical control unit.
chlcu -dev storage_image_ID -ss new_ss_ID -lcutype 3990-3 3990-tpf 3990-6 bs2000
-critmode
enable disable
-pprcconsistgrp
enable disable
-extlongbusy
timeout
470
Parameters
-dev storage_image_ID (Optional). Specifies the storage image ID, which consists of manufacturer, machine type, and serial number. The storage image ID is required if you do not specify a fully qualified LCU subsystem ID, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. -ss new_ss_ID (Optional). Specifies your new LCU subsystem ID value (valid range is hexadecimal 0x0001 - 0xFFFF). If this parameter is specified, multiple LCUs are not allowed. The new SSID that you specify replaces the existing SSID value in the initial target LCU ID. Example: F010 -lcutype 3990-3 | 3990-tpf | 3990-6 | bs2000 (Optional). Changes the target LCUs to the new LCU type: 3990-3 TYPE_3990_MODEL_3 3990-tpf TYPE_3990_MODEL_3_for_TPF 3990-6 TYPE_3990_MODEL_6 BS2000 TYPE_BS_2000 -critmode enable | disable (Restricted). Specifies that the critical heavy mode setting in the target LCUs be enabled or disabled. Critical heavy mode controls the behavior of the remote mirror and copy (formerly PPRC) pairs that have a primary logical volume on this LCU and are in an LCU consistency group. See the mkpprc command for additional information. You must have administrator privileges to specify this option. -pprcconsistgrp enable | disable (Optional). Specifies that the remote mirror and copy consistency group state setting be enabled or disabled. Any volume that becomes suspended that is associated with the subsystem LSS passes into an extended Long Busy state unless a created consistency group has been received. Otherwise, the volume does not become long busy. -extlongbusy timeout (Optional). Specifies the time in seconds that an LCU consistency group volume stays long busy after reporting an error that causes a remote mirror and copy (formerly PPRC) suspension if a consistency group has not been created. -ccsess timeout (Optional). Specifies the concurrent copy session timeout in seconds setting. This value indicates how long (in seconds) any LCU volume in a concurrent copy session stays long busy before the concurrent copy session is suspended.
Chapter 12. Command-line interface commands
| | | | |
471
Example: 500 -xrcsess timeout (Optional - DS8000 only). Specifies the XRC session timeout value in seconds. This value indicates the time in seconds that any LCU volume in an XRC session stays long busy before the XRC session is suspended. The valid timeout range is 1 - 9999 seconds. Example: 500 LCU_ID . . . | (Required). Specifies one or more LCUs that are to be modified by this command. A LCU ID is two hexadecimal characters 00 - FE for DS8000 and 00 - 1F for DS6000. You must separate multiple IDs and multiple ID ranges with a space. This parameter accepts a fully qualified LCU ID (which includes the manufacture.machinetype-serial number/ID) or a shortened version if the -dev parameter is specified. To specify a range of LCU IDs, separate the IDs with a hyphen (-). If you have specified a new subsystem ID value with the -ss parameter, only one LCU ID can be specified. If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode. Example: 00-03 08
Example
You can issue the chlcu command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model, you cannot use the -xrcsess parameter and the storage image ID is different. Invoking the chlcu command
dscli>chlcu -dev IBM.2107-75FA120 -critmode enable 00-0F
lslcu
The lslcu command displays a list of logical control units (LCUs) for a storage image and status information for each logical control unit in the list.
lslcu -dev storage_image_ID -s -l -addrgrp address_group
472
LCU_ID . . . -
Parameters
-dev storage_image_ID (Optional). Specifies the storage image ID, which consists of manufacturer, machine type, and serial number. Displays only the objects for the storage unit that is specified. The storage image ID is required if you do not specify a fully qualified LCU ID, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. For DS8000, example: IBM.2107-75FA120 -s -l (Optional). Use this parameter to display LCU IDs only. You cannot use the -l and the -s parameters together. (Optional). Use this parameter to display the default output. You cannot use the -l and the -s parameters together.
| | | | |
-addrgrp address_group (Optional). Specifies an address group. Only the LCUs that belong to the specified address group are displayed. An address group is a single character in the range of 0 - 9 or A - F. LCU_ID . . . | (Optional). Specifies the ID associated with an LCU. A LCU ID is two hexadecimal characters 00 - FE for DS8000 and 00 - 1F for DS6000. To specify a range of LCU IDs, separate the LCU IDs with a hyphen (-). You must separate multiple LCU IDs or ranges of LCU IDs with a blank space between each ID or range of IDs. If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode. Example: 00-03 08
Example
You can issue the lslcu command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model the storage image ID is different. For this command and all other DS CLI list commands, the results are shown in table format to provide clarity. The actual reports do not display as tables. The following table represents the headers that are displayed on the output report that is associated with the lslcu command using the -l parameter. A separate example is not shown for the DS6000 because the information is the same for both the DS8000 and DS6000. Invoking the lslcu command
dscli>lslcu -dev IBM.2107-75FA120 -l
473
Group 0
addrgrp 0
confgvols 256
subsys 8010
256
8011
3990-6
256
8012
3990-6
256
8013
3990-6
mklcu
The mklcu command creates a logical control unit (LCU) in a storage image.
mklcu -dev storage_image_ID -qty quantity -id lcu_ID -ss ss_ID
474
-lcutype
-critmode
-pprcconsistgrp
-extlongbusy
timeout
-ccsess
timeout
-xrcsess
timeout
Parameters
Notes: 1. A logical control unit is configured to represent a grouping of logical CKD volumes. 2. Multiple sequential LCU IDs can be created with a single request, but all logical control units must be of the same type and specify the same options. 3. The DS8000 has a 64 KB 256 volume address space that is partitioned into 255 logical subsystem (LSS) units, where each LSS contains 256 logical volume numbers. The 255 LSS units are assigned to one of 16 address groups, where each address group contains 16 LSSs, or 4 KB volume addresses. 4. The DS6000 has a 16 384 volume address space that is partitioned into 64 logical subsystem (LSS) units, where each LSS contains 256 logical volume numbers . The 64 LSS units are assigned to one of 4 address groups, where each address group contains 16 LSSs, or 4096 volume addresses. All of the LSSs in one address group must be of the same type (CKD or fixed block). 5. LCUs are typically created in groups of 16, beginning at LSS address Xx0. -dev storage_image_ID (Optional). Specifies the storage image ID, which consists of manufacturer, machine type, and serial number. The storage image ID is required if you do not specify a fully qualified LCU ID, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. For DS8000, example: IBM.2107-75FA120 -qty quantity (Required). Specifies the number of LCU IDs to be created. You can specify a quantity value from 1 - 255 for the DS8000 model. You can specify a quantity value from 1 - 64 for the DS6000 model. This command is rejected if any of the LCU IDs which are based on the initial LCU ID and the quantity, are currently defined or are outside the range of supported LCU IDs. The valid LCU ID range for DS8000 is 00 - FE and for DS6000 it is 00 - 1F. Example: 16 -id lcu_ID (Required). Specifies the LCU ID to be created, or the first LCU ID in a sequence of LCU IDs to be created. A LCU ID is two hexadecimal characters 00 - FE for DS8000 and 00 - 1F for DS6000.
Chapter 12. Command-line interface commands
| | | | |
475
Example: 00 -ss ss_ID (Required). Specifies the subsystem ID that you have assigned. A subsystem ID is four hexadecimal characters 0x0001 - 0xFFFF. If multiple LCU IDs are being created, then the SSID value increments for each additional LCU ID that is created. If 16 LCUs are created, starting with SSID 0x10, then the SSID values are 0x0010 0x001F. Example: 0010 -lcutype 3990-3 | 3990-tpf | 3990-6 | bs2000 (Optional). Specifies that one of the following types of LCU be created: 3990-3 type 3990 model 3 3990-tpf type 3990 model 3 for tpf 3990-6 type 3990 model 6 bs2000 type bs 2000 -critmode (Restricted). Specifies that critical heavy mode be enabled. Critical Heavy mode controls the behavior of the remote copy and mirror pairs that have a primary logical volume on this LCU. The default value is disable. You must have administrator privileges to specify this option. See the mkpprc command for additional notes about the use of this parameter. Note: If an attempt is made to create the LCU and enable the critical heavy mode but the user does not have the authority to enable the -critmode parameter, two messages are displayed when the command is processed: v One message states that the LCU has been successfully created v A second message states Your user ID does not have the authority to perform this operation So, the LCU is created but the critical heavy mode is not enabled. -pprcconsistgrp (Optional). Specifies a remote mirror and copy consistency group state setting. Any volume that becomes suspended that is associated with the subsystem LSS passes into an extended Long Busy state unless the consistency group that was created previously has been received. Otherwise, the volume does not become long busy. -extlongbusy timeout (Optional). Specifies the time in seconds that an LCU consistency group volume stays long busy after reporting an error that causes a remote mirror and copy suspension if a consistency group has not been created. The default value is 120 seconds. -ccsess timeout (Optional). Specifies the concurrent copy session timeout parameter as the time in seconds that any LCU volume in a concurrent copy session stays long busy before suspending a concurrent copy session. The valid timeout range is 1 - 9999 seconds. The default value is 300 seconds. Example: 500
476
-xrcsess timeout (Optional - DS8000 only). Specifies the XRC session timeout parameter as the time in seconds that any LCU volume in an XRC session stays long busy before suspending the XRC session. The valid timeout range is 1 - 9999 seconds. The default value is 300 seconds. Example: 500
Example
You can issue the mklcu command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model, you cannot use the -xrcsess parameter and the storage image ID is different. Invoking the mklcu command
dscli>mklcu -dev IBM.2107-75FA120 -qty 16 -id 80 -ss 2300
rmlcu
The rmlcu command deletes existing logical control units.
rmlcu -dev storage_image_ID -quiet - LCU_ID . . .
Parameters
-dev storage_image_ID (Optional). Specifies the storage image ID, which consists of manufacturer, machine type, and serial number. The storage image ID is required if you do not specify a fully qualified ID for all logical control units, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. For DS8000, example: IBM.2107-75FA120 -quiet (Optional). Turns off the confirmation prompt for this command. LCU_ID . . . | (Required). An array of one or more LCUs to be removed. This parameter accepts a fully qualified LCU ID or a shortened version, if the -dev parameter is specified. A LCU ID is two hexadecimal characters in the range 00 - FE for the DS8000 and 00 - 1F for the DS6000. To specify a range of LCU IDs, separate the LCU IDs with a hyphen (-). You must separate multiple LCU IDs or ranges of LCU IDs with a blank space between each ID or range of IDs. Example: 00-03 08
Chapter 12. Command-line interface commands
| | | | |
477
If you use the dash (-), the specified value is read from standard input. Note: You cannot use the dash (-) while you are in the DS CLI interactive command mode.
Example
You can issue the rmlcu command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model the storage image ID is different. Invoking the rmlcu command
dscli>rmlcu -dev IBM.2107-75FA120 00-0F
showlcu
The showlcu command displays the detailed properties of an individual logical control unit (LCU).
showlcu -dev storage_image_ID LCU_ID -
Parameters
-dev storage_image_ID (Optional). Specifies the storage image ID, which consists of manufacturer, machine type, and serial number. The storage image ID is required if you do not specify a fully qualified ID for the logical control unit, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. For DS8000, example: IBM.2107-75FA120 LCU_ID | (Required). Displays the properties for the specified logical control unit. The LCU ID is a 2-digit hexadecimal number in the range of 00 - FE for the DS8000 and 00 - 1F for the DS6000. Accepts a fully qualified LCU ID, which consists of the storage image ID or a shortened version without the storage image ID, if the -dev parameter is specified. If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode. For DS6000, example: IBM.1750-68FA120/10
| | | | |
478
Example
You can issue the showlcu command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model the storage image ID is different. For this command and all other DS CLI show commands, the results are shown in table format to provide clarity. The actual reports do not display as tables. The following tables represent the headers that are displayed on the output report that is associated with the showlcu command. A separate example is not shown for the DS6000. However, there is one difference between what is displayed on the output report for a DS8000 versus a DS6000. The DS8000 displays a value for xrcsesstimout (XRC session timeout), which is not supported on the DS6000. Invoking the showlcu command
dscli>showlcu -dev IBM.2107-75FA120 10
ID IBM.210775FA120 /10
Group 0
Addrgrp 1
Confgvols 256
Subsys 0010
Pprcconsistgrp Disabled
Crithvmode Disabled
Group Specifies the server that manages the logical control unit group. The displayed values are 0 or 1. Addrgrp Specifies the address group object that the logical control unit is a member of. Confgvols Specifies the number of volumes or the logical devices that are assigned to this LCU ID. This number includes base count key data (ckd) volumes and alias ckd volumes. Subsys Specifies the subsystem ID that you assigned to this logical control unit. The range of values that you selected from is 0001 - FFFF.
479
Conbasetype Specifies the LCU type that you designated for the logical control unit. If you did not designate a type, the default value of 3990-6 is assigned and displayed. Pprcconsistgrp Specifies the assigned PPRC consistency group state setting. If you do not designate enabled, the default value of disabled is assigned. Xtndlbztimout Specifies the assigned extended long busy timeout value. If you do not designate a value, the default value of 120 seconds is assigned and displayed. Ccsesstimout Specifies the assigned concurrent copy session timeout value. If you do not designate a value, the default value of 300 seconds is assigned and displayed. Xrcsesstimout (DS8000 only) Specifies the assigned XRC session timeout value. If you do not designate a value, the default value of 300 seconds is assigned and displayed. Crithvmode Specifies whether the critical heavy mode for Remote Mirror and Copy operations is in effect. If you do not designate a value, the default value of Disabled is assigned and displayed.
The chckdvol command modifies the nickname that you assigned to the count key data (CKD) base volume. The lsckdvol command generates a report that displays a list of count key data (CKD) base and alias volumes in a storage unit and the status information for each volume in the list. The mkaliasvol command creates System z CKD alias volumes (generally referred to as parallel access volumes or PAVs) in a storage unit. The mkckdvol command creates System z count key data (CKD) base CKD volumes in a storage image.
480
The rmckdvol command deletes one or more specified count key data (CKD) base or alias volumes from a storage unit. The showckdvol command generates two reports. One report displays the detailed properties of a specified count key data volume. The other report displays the performance metrics for specified count key data volume.
chckdvol
The chckdvol command changes the name of a count key data (CKD) base volume.
chckdvol -dev storage_image_ID -name new_volume_name
|
-datatype 3380 3390 3390-A -cap new_capacity -captype cyl mod1 -quiet
volume_ID . . . -
Parameters
-dev storage_image_ID (Optional) Specifies the storage image ID, which consists of manufacturer, machine type, and serial number. The storage image ID is required if you do not specify a fully qualified volume ID, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. -name new_volume_name (Optional) User specified nickname for this CKD base volume. This nickname should not exceed 16 characters. It can contain one of the following wild cards: v (#d) - insert volume_ID (decimal format) v (#h) - insert volume_ID (hexadecimal format) -datatype 3380|3390|3390-A (Optional) Specifies the volume data type. For Extended Addressing Volumes (EAV), which have a capacity greater than 65520 cylinders, the data type 3390-A must be specified. You can also specify the data type 3390-A for volumes smaller than 65520 cylinders. Notes: 1. You can specify the data type 3390A for DS8000 models only. 2. You must ensure that the volume data type is compatible with the host systems that access this volume. 3. You cannot use the -datatype parameter and the -cap parameter in the same command. -cap new_capacity (Optional) (DS8000 only) Specifies the quantity of CKD cylinders that you want to allocate to the specified volume. You can also use the -captype parameter to change the unit type of the capacity to mod1 units.
Chapter 12. Command-line interface commands
| | | | |
| |
481
3380 volumes cannot be expanded. For 3390A volumes (DS8000 only), the -cap parameter value can be in the range of 1 to 65,520 (increments of 1) or 65,667 262,668 (increments of 1113). | For 3390 volumes, the -cap parameter value can be in the range of 1 to 65,520 (849KB to 55.68 GiB). Notes: 1. Check your operating system documentation to ensure that volume expansion is supported before proceeding with the expansion. 2. If you expand a 3390 volume to an Extended Addressing Volume (EAV), the data type is changed to 3390-A. 3. Attempting to reduce the size returns an error and causes the transaction to fail. 4. You cannot use the -datatype parameter and the -cap parameter in the same command. | | | | | -captype cyl | mod1 (Optional) Specifies the unit type of the capacity given by using the -cap parameter. The default is cyl. A mod1 unit is equivalent to 1113 cylinders, and 1263.28 cylinders is equivalent to 1 GiB. You must specify the -cap parameter to specify the -captype. -quiet (Optional) Turns off the confirmation prompt for this command. volume_ID . . . | (Required) An array of one or more CKD base volume IDs or volume ID ranges to modify. A volume ID range is defined by two volume IDs that are separated by a dash. Multiple volume IDs or volume ID ranges must be separated with a blank space between each ID. Example: 0100-010F 0180-018F 0120 The volume ID format is four hexadecimal characters LLVV that represent the following values: LL (for a DS8000 model) Specifies the logical control unit number, 00 - FE LL (for a DS6000 model) Specifies the logical control unit number, 00 - 1F VV (for DS6000 and DS8000 models) Specifies the volume number, 00 - FF You must fully qualify the volume ID with manufacturer, machine type, and serial number if you do not use the -dev parameter. If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) if you are in the DS CLI interactive mode.
Example
You can issue the chckdvol command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model, you cannot use the -datatype parameter with the 3390A value or the -cap parameter, and the storage image ID is different.
482
initckdvol
The initckdvol command releases extents from a space-efficient logical volume. For example, if a space-efficient logical volume is used as a FlashCopy target volume and the data that is stored on these tracks are no longer needed, use the initckdvol command to free the extents that were assigned to this logical volume. This allows the extents to be reused by other space-efficient logical volumes. This command is not supported on DS6000 models.
initckdvol -dev volume_ID . . . - storage_image_ID -action releasespace -quiet
Parameters
-dev storage_image_ID (Optional) Specifies the storage image ID, which consists of a value for manufacturer, machine type, and serial number. The storage image ID is required if you do not specify a fully qualified volume ID, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. -action releasespace (Optional) Specifies that you want the system to release the repository space held by the designated space-efficient volume back to the repository. (The repository is the physical extents that provision the virtual extents for virtual space volumes.) -quiet (Optional) Specifies that you want the system to turn off the confirmation prompt for this command. volume_ID . . .|(Required) The volume ID format is four hexadecimal characters LLVV, that represent the following values: LL VV Specifies the logical control unit number, 00 - FE. Specifies the volume number, 00 - FF.
| | | | |
You must fully qualify the volume ID with manufacturer, machine type, and serial number if you do not use the -dev parameter. To specify a range of volume IDs, separate the volume IDs with a dash. You must separate multiple volume IDs or ranges of volume IDs with a blank space between each ID or range of IDs.
483
If you use the dash (-), the specified value is read from standard input. However, you cannot use the dash (-) if you are using the DS CLI interactive command mode.
Example
Invoking the initckdvol command
dscli>initckdvol -dev IBM.2107-75FA120 action releasespace 0101
lsckdvol
The lsckdvol command displays a list of count key data (CKD) base and alias volumes in a storage image and status information for each volume in the list.
lsckdvol -dev storage_image_ID -s -l -datatype 3380 3390 3390-A
-extpool
extentpool_ID
-access
online fenced
-data
normal not_normal
-config
normal not_normal
-lcu
lcu_ID
-voltype
base alias
-sam
standard tse
-eam
volume_ID . . . -
Parameters
-dev storage_image_ID (Optional) Specifies the storage image ID, which includes manufacturer, machine type, and serial number. The storage image ID is required if you do not specify fully qualified IDs, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. -s (Optional) Specifies that you want the system to display only volume IDs (default output) associated with the storage image ID. You cannot use the -s and the -l parameters together. (Optional) Specifies that you want the system to display the default output plus additional attributes that are identified as long output. You cannot use the -l and the -s parameters together.
| | | | |
-l
484
-datatype 3380 | 3390 | 3390-A (Optional) Specifies that you want the system to display only volumes that meet the designated volume data type. Note: The data type 3390A can be displayed for DS8000 models only. -extpool extentpool_ID (Optional) Specifies that you want the system to display only volumes that are associated with the designated extent pool. -access online | fenced (Optional) Specifies that you want the system to display only volumes with the specified access state. -data normal | not_normal (Optional) Specifies that you want the system to display only the volumes that meet the criteria of the designated data state. -config normal | not_normal (Optional) Specifies that you want the system to display only the volumes that meet the criteria of the designated configuration state. -lcu lcu_ID (Optional) Specifies that you want the system to display only volumes with IDs that contain the specified logical control unit ID. Each logical control unit can contain up to 256 volumes. The LCU ID is a 2-digit hexadecimal number in the range of 00 - FE for the DS8000 and 00 - 1F for the DS6000. Note: Including the -lcu parameter can significantly reduce response time because the entire storage unit does not have to be queried. -voltype base | alias Specifies the type of CKD volumes that you want the system to display. -sam standard | tse (Optional) (DS8000 only) Specifies that you want the system to display only volumes that meet the criteria of the storage allocation method as follows: standard Volumes that are fully allocated with real extents. This is the default value. tse Track space-efficient logical volumes that contain a set of virtual extents that are associated with the space-efficient storage in the same extent pool. Note: To use this sub-parameter, you must have previously created space-efficient storage (using the mksestg command) for the extent pool. -eam legacy | rotatevols | rotateexts (Optional) (DS8000 only) Specifies that you want the system to display only volumes that meet the criteria of the designated extent allocation method as follows: legacy Volumes that were created before the current algorithms were implemented. rotateexts Volumes that were created using storage-pool striping.
485
rotatevols Volumes that were allocated on the next available rank in the extent pool. volume_ID . . . | (Optional) Displays volumes with the specified IDs. The volume ID format is four hexadecimal characters LLVV that represent the following values: LL (for DS8000) Specifies the logical control unit number, 00 - FE LL (for DS6000) Specifies the logical control unit number, 00 - 1F VV (for both the DS8000 and DS6000) Specifies the volume number, 00 - FF To specify a range of volume IDs, separate the volume IDs with a dash (-). You must separate multiple volume IDs or ranges of volume IDs with a blank space between each ID or range of IDs. Example: 0100-010F 0180-018F 0120 If you use the dash (-), the specified value is read from standard input. However, you cannot use the dash (-) while you are in the DS CLI interactive command mode.
Example
You can issue the lsckdvol command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model the storage image ID is different. For this command and all other DS CLI show commands, the results are shown in table format for clarity. The actual reports do not display as tables. The following tables represent the headers that are displayed on the output report that is associated with the lsckdvol command using the -l parameter. A separate example is not shown for the DS6000 because the information (except for parameters that are not used with the DS6000) is the same for both the DS8000 and DS6000. Note: If a column heading applies to the DS8000 only, a null (-) value is displayed when the report is generated for a DS6000 model. The following example is based on the output results for a volume with 3340 cylinders. Invoking the lsckdvol
dscli>lsckdvol -dev IBM.2107-1300861 -l 1410
486
ID 1410
volser A03976
voltype CKD
orgbvols
extpool P2
sam standard
base -
eam legacy
Accstate (access state) One of the following designations can be displayed: Online Specifies that the logical volume is accessible to a host. Fenced Specifies that the logical volume is in the volume fenced state and is not accessible to the host. - (null) Specifies that the logical volume is designated as a CKD alias volume. Datastate One of the following designations can be displayed: Normal Specifies that none of the other data states apply. The access state is Online. Pinned Specifies that none of the other data states apply and the logical volume has one or more pinned nonretryable tracks. The access state is Online. Read only Specifies that the logical volume is read only because one or more extents on the logical volume are on a rank in the read only data state. The access state is Online. Inaccessible Specifies that one or more extents that are associated with the logical volume are on a rank that is in the inaccessible data state. The access state is Fenced. Indeterminate data loss Specifies that the following data states do not apply and that one of the following conditions has occurred:
487
Data states that do not apply: v Rank failed v Rank repairing v Rank repaired v Global inaccessible v Global lost data Conditions - one of the following occurred: v Committed write data was lost before it was destaged and the track identifiers that are associated with the data are unknown. v Data was lost that indicated extents on the logical volume were active FlashCopy targets. The access state is fenced. Rank failed Specifies that one or more extents that are associated with the logical volume are on a rank that is in the failed data state. The access state is Fenced. Rank repairing Specifies that one or more extents that are associated with the logical volume are on ranks that are in the repairing data state. The access state is Fenced. Rank repaired Specifies that one or more extents that are associated with the logical volume are on ranks that were in the repairing state, but are not in the repairing state now. The access state is Fenced. Global inaccessible Specifies that the global metadata that is associated with the logical volume configuration is inaccessible. Some of the data that is associated with the logical volume might be inaccurate. The access state is Fenced. Global lost Specifies that global metadata that is associated with the logical volume configuration has been lost. As a result, some of the data that is associated with the logical volume might be inaccurate. The access state is fenced. NVS data inaccessible Specifies that active NVS data is inaccessible for one or more logical volumes of an LSS group. The logical volumes in the LSS group cannot be made accessible. The access state is Fenced. - (null) Specifies that the logical volume is designated as a CKD alias. Configstate One of the following configuration states are displayed: Normal Indicates that there are no logical volume configuration operations in progress. Configuring Indicates that the logical volume is in the process of being configured for the first time.
488
Reconfiguring Indicates that the logical volume is in the process of allocating or deallocating extents due to a modification of the requested capacity attribute after initial creation. Migrating Indicates that the logical volume is in the process of performing dynamic volume relocation to a specified extent pool. Deconfiguring Indicates that the logical volume is in the process of being deleted. Configuration error Indicates that the initial configuration did not complete successfully. This state reflects an internal error condition and not an error in the request to create the volume. Corrective action: Use the rmfbvol command to delete each volume that is listed with the configuration state of Configuration error. Reconfiguration error Indicates that the reconfiguration request did not complete successfully. Migration error Indicates that the dynamic volume relocation operation was ended during processing. Deconfiguration error Indicates that a request to delete a volume did not complete successfully. This state reflects an internal error condition and not an error in the request to remove the volume. To correct this state, you must reissue the rmfbvol command for the designated volume. deviceMTM One of the following is displayed: v v v v 3380-2 3380-3 3390-3 3390-9
v 3390-A Device MTM is determined by the CKD base volume data type and volume capacity (in cylinders). Note: The deviceMTM 3390A can be displayed for DS8000 models only. Volser Specifies the base CKD volume serial number written by the user at track address 0x0000, record 3. Datatype Identifies the volume data type setting. Voltype Specifies that the logical volume is one of the following: v CKD base v CKD alias Orgbvols (original base vol) One of the following is specified:
489
v Identifies the original base CKD volume ID to which this CKD alias volume is assigned. v (-) null is displayed for a CKD base volume type. Note: For a CKD Alias type volume, the base and alias volume IDs are of a common LCU ID. Extpool Identifies the extent pool ID. Volume extents are allocated from this extent pool ID. | | | SAM Note: Volumes that belong to an encrypted extent pool are encrypted. You can see an extent pools encryption group by using the lsextpool -l, or showextpool commands. Specifies the storage allocation method. The following values are displayed: standard Designates that the system fully allocated the volume with real extents at volume creation time. An inquiry on a DS6000 model always reports this value. tse Designates that a track space-efficient logical volume contains a set of virtual extents that are associated with the space-efficient storage in the same extent pool. Physical space for a given logical track on a track space-efficient logical volume is dynamically allocated and deallocated from the repository in the space-efficient storage.
Cap (cyl) Specifies the quantity of volume CKD cylinders that are available for host system access. Cap (2^30B) Specifies the size of volume that is available for host system access in 2^30B (binary GB) unit. Cap (10^9B) Specifies the size of volume that is available for host system access in 10^9B (decimal GB) unit. Reqcap (cyl) Specifies the requested quantity of volume CKD cylinders (for example, 3339). Note: A value of 0 is displayed for the DS6000. EAM Specifies the extent allocation method that was used when the logical volume was created. legacy Designates that the volume was created before the use of the current algorithm. Legacy is always the reported value for a DS6000 model. rotateexts Designates that volumes were created using storage-pool striping. rotatevols Designates that each successive logical volume that is created is allocated on the next available rank in the extent pool. This is the default value.
490
- (null) A null (-) value is displayed if the extent allocation method does not apply because the specified volume is a space-efficient volume.
mkckdvol
The mkckdvol command creates System z count key data (CKD) base or CKD alias volumes in a storage image.
mkckdvol -dev storage_image_ID -extpool extentpool_ID -base volume_ID
-3380
-datatype
-cap
capacity
-name
volume_name
|
-captype cyl mod1 -wait -sam standard tse -eam rotatevols rotateexts
volume_ID . . . -
Parameters
-dev storage_image_ID (Optional) Specifies the storage image ID, which includes manufacturer, machine type, and serial number. The storage image ID is required if you do not specify fully qualified IDs, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. -extpool extentpool_ID (Optional) Creates the base or alias volumes from data extents that are contained in this extent pool. The extent pool storage type defines the volume storage type. An extent pool ID is a four-digit decimal number with no leading zeroes, prefixed with the letter P. Note: This parameter is ignored if the -base parameter is specified. -base volume_ID (Optional) Specifies an existing base CKD volume ID. The volume ID format is four hexadecimal characters LLVV, that represent the following values: LL (for a DS8000 model) Specifies the logical control unit number, 00 - FE LL (for a DS6000 model) Specifies the logical control unit number, 00 - 1F VV (for DS6000 and DS8000 models) Specifies the volume number, 00 - FF Use the -base parameter to create one or more CKD alias volumes that are assigned to the specified base CKD volume ID. The LCU ID component for all volume IDs must be identical.
| | | | |
491
Note: It is recommended that you use the -mkaliasvol command rather than mkckdvol command to create alias volumes. -3380 (Optional) This parameter is equivalent to the -datatype 3380 parameter and it is recommended that you use the -datatype parameter if you need to specify the data type. -datatype 3380|3390|3390-A (Optional) Specifies the volume data type. For Extended Addressing Volumes (EAV), which have a capacity greater than 65520 cylinders, the data type 3390-A must be specified. You can also specify the data type 3390-A for volumes smaller than 65520 cylinders. If neither the -datatype nor the -3380 parameters are specified, then the default data type is 3390-A for capacities greater than 65520 cylinders, and 3390 for smaller capacities. Notes: 1. You can specify the data type 3390A for DS8000 models only. 2. You must ensure that the volume data type is compatible with the host systems that access this volume. 3. The -datatype parameter is ignored when the -base parameter is specified. 4. You cannot use the -datatype parameter and the -3380 parameter in the same command. -cap capacity (Optional) Specifies the quantity of CKD cylinders that are allocated to this volume. The capacity can also be specified in mod1 units using the -captype parameter. | | | For 3380 volumes, the -cap parameter value can be 2226 (1.59 GiB) or 3339 (2.37 GiB). For 3390 volumes, the -cap parameter value can be in the range of 1 to 65,520 (849KB to 55.68 GiB). For 3390A volumes (DS8000 only), the -cap parameter value can be in the range of 1 to 65,520 (increments of 1) or 65,667 262,668 (increments of 1113). Note: This parameter is ignored if the -base parameter is specified, and this parameter is required if the -base parameter is not specified. | | | | -captype cyl | mod1 (Optional) Specifies the unit type of the capacity given by using the -cap parameter. The default is cyl. A mod1 unit is equivalent to 1113 cylinders, and 1263.28 cylinders is equivalent to 1 GiB. -name volume_name (Optional) Specifies your nickname for the CKD base volumes that are created by this command. Your volume name cannot exceed 16 characters. It can contain one of the following wild cards: v (#d) insert volume ID (decimal) v (#h) insert volume ID (hexadecimal) Note: The -name parameter is ignored when the -base parameter is specified.
492
-wait (Optional) Specifies that the command response be delayed until the volume configuration processes complete. -sam standard | tse (Optional) (DS8000 Only) Specifies the storage allocation method as follows: standard Designates that the system fully allocate the volume with real extents at volume creation time. This is the default value. tse Designates that a track space-efficient logical volume contains a set of virtual extents that are associated with the space-efficient storage in the same extent pool. The physical space for a given logical track on a track space-efficient logical volume is dynamically allocated and deallocated from the repository in the space-efficient storage.
-eam rotatevols | rotateexts (Optional) (DS8000 Only) Specifies the extent allocation method as follows: rotateexts Designates that extents that are allocated to a logical volume are successively rotated through the ranks within an extent pool. rotatevols Designates that each successive logical volume that is created is allocated on the next available rank in the extent pool. This is the default value. volume_ID . . . | (Required) Specifies an array of one or more CKD base or alias volume IDs or volume ID ranges to be created. The volume IDs must share a common logical control unit ID. Note: Volumes are automatically assigned to the FICON/ESCON ALL volume group ID 10. The volume ID format is four hexadecimal characters LLVV, that represent the following values: LL (for a DS8000 model) Specifies the logical control unit number, 00 - FE LL (for a DS6000 model) Specifies the logical control unit number, 00 - 1F VV (for DS6000 and DS8000 models) Specifies the volume number, 00 - FF A volume ID range is defined by two volume IDs that are separated by a dash. You must separate multiple volume IDs or ranges of volume IDs with a blank space between each ID or range of IDs. Note: Multiple volumes can be created with a single request, but all volumes must have the same capacity, extent pool, and data type. Example: 0100-010F 0180-018F 0120 If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) if you are in the DS CLI interactive mode.
493
Example
You can issue the mkckdvol command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model, you cannot use the -datatype parameter with the 3390A value, the -sam, and the -eam parameters, and the storage image ID is different. Invoking the mkckdvol command
dscli>mkckdvol -dev IBM.2107-75FA120 -extpool P1 -name my_volume_#d -cap 3339 0100 0101 0102 0103
rmckdvol
The rmckdvol command deletes count key data (CKD) base or alias volumes from a storage image.
rmckdvol -dev storage_image_ID -quiet - volume_ID . . .
Parameters
A specific use of this command is made when you are confronted with a volume or volumes that are in a configuration state of configuration error. To correct this configuration state, issue the rmckdvol command for each affected volume. You can specify a volume range according to the command specifications when it is appropriate. -dev storage_image_ID (Optional) Specifies the storage image ID, which consists of manufacturer, machine type, and serial number. The storage image ID is required if you do not specify a fully qualified ID for all logical volumes, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. -quiet (Optional) Turns off the confirmation prompt for this command. volume_ID . . . | (Required) An array of one or more CKD base or CKD alias volume IDs or volume ID ranges to be removed. Accepts a fully qualified volume ID, which includes the storage image ID or a shortened version without the storage image ID if the -dev parameter is specified. The shortened volume ID format is four hexadecimal characters LLVV, that represent the following values: LL (for a DS8000 model) Specifies the logical control unit number, 00 - FE LL (for a DS6000 model) Specifies the logical control unit number, 00 - 1F
| | | | |
494
VV (for DS6000 and DS8000 models) Specifies the volume number, 00 - FF that is contained by a logical control unit (logical subsystem). Note: A CKD base volume cannot be removed if an alias volume is associated with it. A volume ID range is defined by two volume IDs that are separated by a dash. You must separate multiple volume IDs or ranges of volume IDs with a blank space between each ID or range of IDs. For DS8000, example: 0100-010F 0180-FEFF 0120 If you use the dash (-), the specified value is read from standard input. However, you cannot use the dash (-) while you are in the DS CLI interactive command mode.
Example
You can issue the rmckdvol command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model the storage image ID is different. Invoking the rmckdvol command
dscli>rmckdvol -dev IBM.2107-75FA120 0000 0001
mkaliasvol
The mkaliasvol command creates System z CKD alias volumes (generally referred to as parallel access volumes or PAVs) in a storage image.
mkaliasvol -dev storage_image_ID -base volume_ID (volume_ID_range) volume_ID -
-order
increment decrement
-qty
quantity
-wait
Parameters
Note: Volumes are automatically assigned to the FICON/ESCON ALL volume group ID 10. -dev storage_image_ID (Optional) Specifies the storage image ID, which consists of manufacturer, machine type, and serial number. The storage image ID is required if you do not specify a fully qualified volume ID, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command.
| | | | |
495
-base volume_ID (volume_ID_range) (Required) Specifies an existing base CKD volume ID or a volume ID range. Note: You cannot use multiple volume IDs separated by commas and multiple ID ranges in combination. This combination is rejected. Use the -base parameter to create one or more CKD alias volumes that are assigned to the specified base CKD volume ID. The LCU ID component for all volume IDs must be identical. The alias volume IDs are assigned consecutively in the order specified by the -order parameter. The following examples show the processing affects of the -order parameter:
dscli>mkaliasvol -base 0000 -order increment -qty 2 0080 creates two alias volumes 0080 and 0081 for base volume 0000. dscli>mkaliasvol -base 0000-003F -order increment -qty 2 0080 creates two alias volumes for each base volume as follows: 0080,0081 for base volume 0000 0082,0083 for base volume 0001 ... 00FE,00FF for base volume 003F
-order increment | decrement (Optional) Specifies the order in which alias volume IDs are assigned. For example:
dscli>mkaliasvol -base 0000-003F -order decrement -qty 2 00FF creates two alias volumes for each base volume as follows: 00FF,00FE for base volume 0000 00FD,00FC for base volume 0001 ... 0081,0080 for base volume 003F
Note: If the -order parameter is not specified the default value is decrement. -qty quantity (Optional) Specifies the number of alias volumes that are assigned to each specified CKD base volume. If you do not specify the -qty parameter, then one alias volume is created for each base volume specified. If you specify the -qty parameter, you have to indicate the number of alias volumes that you want to assign to each specified CKD base volume. Note: The total number of base volumes plus the number of alias volumes must be less than or equal to 256. -wait (Optional) Delays the command response until the volume configuration processes complete. volume_ID (Required) Identifies the starting alias volume ID in a sequence of volume IDs to be created The volume ID format is four hexadecimal characters LLVV that represent the following values: LL (for a DS8000 model) Specifies the logical control unit number, 00 - FE LL (for a DS6000 model) Specifies the logical control unit number, 00 - 1F
496
VV (for DS6000 and DS8000 models) Specifies the volume number, 00 - FF If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode.
Example
You can issue the mkaliasvol command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model the storage image ID is different. Invoking the mkaliasvol command
dscli> mkaliasvol dev IBM.2107-75FA120 base 0100-010F -order decrement -qty 2 01FF
showckdvol
The showckdvol command displays detailed properties of an individual count key data volume. This command can also be used to display the performance metrics for an individual volume ID.
showckdvol -dev storage_image_ID volume_ID - -rank -metrics
-volgrp
volume_group_ID
Parameters
Note: All performance counts are an accumulation from the most recent counter wrap or counter reset. A reset of the volume performance counters occurs in association with the following events: v The storage unit is turned on. v There has been a server failure, and the server failover or failback sequence has been initiated. -dev storage_image_ID (Optional) Specifies the storage image ID, which consists of the manufacturer, machine type, and serial number. The storage image ID is required if you do not specify a fully qualified volume ID, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. -rank (Optional) Specifies that a rank extents table be displayed. This table displays the set of ranks that the logical volume has extents configured on and the number of extents for that logical volume.
Chapter 12. Command-line interface commands
| | | | |
497
Note: This parameter cannot be used with the -metrics or -volgrp parameters. -metrics (Optional) Displays the volume ID and performance metrics for the specified volume. Notes: 1. All performance counts are an accumulation since the most recent counter wrap or counter reset. Volume performance counters are reset on a power-up sequence. Volume performance counters are reset by a server failover and failback sequence. 2. Do not use this parameter with the -rank or -volgrp parameters. -volgrp volume_group_ID (Required if you do not specify the volume_ID parameter.) Specifies that the CKD volumes that are associated with the designated volume group ID be displayed. There is only one volume group for CKD volumes and it contains all volumes. Notes: v The -volgrp parameter can only be used when you are doing a query for performance metrics. v Do not use the -volgrp parameter with the volume_ID parameter. v Do not use the -volgrp parameter with the -rank or -metrics parameters. volume_ID (Optional) Specifies that you want the system to display detail information about the designated volume. The volume ID format is four hexadecimal characters LLVV that represent the following values: LL (for a DS8000 model) Specifies the logical control unit number, 00 - FE LL (for DS6000 model) Specifies the logical control unit number, 00 - 1F VV (for both the DS8000 and DS6000 model) Specifies the volume number, 00 - FF If you use the dash (-), the specified value is read from standard input. However, you cannot use the dash (-) while you are in the DS CLI interactive command mode.
Example
You can issue the showckdvol command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model the storage image ID is different. For this command and all other DS CLI show commands, the results are shown in table format to provide clarity. The actual reports do not display as tables. The following tables represent the headers that are displayed on the output reports that are associated with the showckdvol command using the -rank parameter. When the rank parameter is specified, a rank extents table is also displayed. It appears at the end of the regular report. Invoking the showckdvol to show volume properties
498
| |
Note: The following example is based on the use of the showckdvol command for a 3390 volume with 3339 cylinders. When the rank parameter is specified, a rank extents table is displayed at the end of the regular report.
dscli>showckdvol -dev IBM.2107-1300861 -rank 1410
ID 1410
volser A03967
orgbvols
addrgrp 1
extpool P2
exts 3
Ranks 2
| | | | |
sam TSE
repcapalloc 1.7
eam -
Rank R0 R2
Extents 1 2
499
Pinned Specifies that none of the other data states apply and the logical volume has one or more pinned non-retryable tracks. The access state is Online. Read only Specifies that the logical volume is read-only because one or more extents on the logical volume are on a rank in the read-only data state. The access state is Online. Inaccessible Specifies that one or more extents that are associated with the logical volume are on a rank that is in the inaccessible data state. The access state is Fenced. Virtual space fault Specifies that the logical volume has a space-efficient storage allocation method, and there was not enough space available to convert a virtual logical track to a real logical track. The access state is Online. Indeterminate data loss Specifies that the following data states do not apply and that one of the following conditions has occurred: Data states that do not apply: v Rank failed v Rank repairing v Rank repaired v Global inaccessible v Global lost data Conditions: One of the following occurred: v Committed write data was lost before it was destaged and the track identifiers that are associated with the data are unknown. v Data was lost that indicated extents on the logical volume were active FlashCopy targets. The access state is Fenced. Rank failed Specifies that one or more extents that are associated with the logical volume are on a rank that is in the failed data state. The access state is Fenced. Rank repairing Specifies that one or more extents that are associated with the logical volume are on ranks that are in the repairing data state. The access state is Fenced. Rank repaired Specifies that one or more extents that are associated with the logical volume are on ranks that were in the repairing state, but are not in the repairing state now. The access state is Fenced. Global inaccessible Specifies that the global metadata that is associated with the logical volume configuration is inaccessible. Some of the data that is associated with the logical volume might be inaccurate. The access state is Fenced. Global lost data Specifies that global metadata that is associated with the logical volume
500
configuration has been lost. As a result, some of the data that is associated with the logical volume might be inaccurate. The access state is Fenced. NVS data inaccessible Specifies that active NVS data is inaccessible for one or more logical volumes of an LSS group. The logical volumes in the LSS group cannot be made accessible. The access state is fenced. (null) Specifies that the logical volume is designated as a CKD alias. Configstate One of the following designations can be displayed: Normal Indicates that there are no logical volume configuration operations in progress. Configuring Indicates that the logical volume is in the process of being configured for the first time. Reconfiguring Indicates that the logical volume is in the process of allocating or deallocating extents due to a modification of the requested capacity attribute after initial creation. Migrating Indicates that the logical volume is in the process of performing dynamic volume relocation to a specified extent pool. Deconfiguring Indicates that the logical volume is in the process of being deleted. Configuration error Indicates that the initial configuration did not complete successfully. This state reflects an internal error condition and not an error in the request to create the volume. Corrective action: Use the rmfbvol command to delete each volume that is listed with the configuration state of configuration error. Reconfiguration error Indicates that the reconfiguration request did not complete successfully. Migration error Indicates that the dynamic volume relocation operation was ended during processing. Deconfiguration error Indicates that a request to delete a volume did not complete successfully. This state reflects an internal error condition and not an error in the request to remove the volume. To correct this state, you must reissue the rmfbvol command for the designated volume. deviceMTM One of the following will be displayed: v 3380-2 v 3380-3 v 3390-3 v 3390-9
501
Volser Specifies the volume serial number. A volume serial number is six bytes of data, displayed as six characters. Datatype Specifies the volume data type setting (3380 or 3390). Voltype Specifies that the logical volume is one of the following: v CKD base v CKD alias Orgbvols (original base vol) One of the following will be specified: v Identifies the original base CKD volume ID to which this CKD alias volume is assigned. Note: For a CKD Alias type volume, the base and alias volume IDs share a common LCU ID. v - (null) is displayed for a CKD base volume type. Addrgrp Specifies the address group that contains this volume object. An address group ID is one hexadecimal character (0 - F). Extpool Specifies the extent pool ID. | | | Note: Volumes that belong to an encrypted extent pool are encrypted. You can see an extent pools encryption group by using the lsextpool -l, or showextpool commands. Exts Specifies the number of extents used by the designated volume ID. Cap (cyl) Specifies the quantity of volume cylinders that are available for host system access. Cap (2^30B) Specifies the size of volume that is available for host system access in binary gigabyte (2^30B) units. Cap (10^9B) Specifies the size of volume that is available for host system access in decimal gigabyte (10^9B) units. Ranks Specifies the number of ranks the volume resides on. SAM Specifies the storage allocation method. The following values are displayed: standard Designates that the system fully allocated the volume with real extents at volume creation time. An inquiry on a DS6000 model always reports this value. tse Designates that a track space-efficient logical volume contains a set of virtual extents that are associated with the space-efficient storage in the same extent pool. Physical space for a given logical track on a track
502
space-efficient logical volume is dynamically allocated and deallocated from the repository in the space-efficient storage. Repcapalloc Specifies the allocated physical repository capacity of the track space-efficient storage. This value is calculated on the available repository capacity as a result of writes to the space-efficient volume. This value is displayed in the format of X.Y, where X is a whole binary gigabyte (1 GiB=2^30B) and Y represents tenths of a GiB, which is limited to a single digit (0 - 9). Note: 1. A null (-) value is displayed in this column if the value displayed in the SAM column is Standard. 2. A null (-) value is displayed for the DS6000. EAM Specifies the extent allocation method that was used when the logical volume was created. One of the following values is displayed: legacy Designates that the volume was created before the use of the current algorithm. Legacy is always the reported value for a DS6000 model. rotateexts Designates that volumes were created using storage-pool striping. rotatevols Designates that each successive logical volume that is created is allocated on the next available rank in the extent pool. This is the default value. - (null) A null (-) value is displayed if the extent allocation method does not apply because the specified volume is a space-efficient volume. Reqcap (cyl) Specifies the requested quantity of volume CKD cylinders (for example, 3339). Note: A value of 0 is displayed for the DS6000. | | cap (Mod1) Specifies the quantity of Mod1 units (Mod1 = 1113 cylinders).
| |
Example
You can issue the showckdvol command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model the storage image ID is different. For this command and all other DS CLI show commands, the results are shown in table format to provide clarity. The actual reports do not display as tables. The following tables represent the headers that are displayed on the output reports that are associated with the showckdvol command using the -metrics parameter.
Chapter 12. Command-line interface commands
503
ID
Date
cachfwrhits 10000
cachfwreqs 10000
cachfwhits 10000
inbcachload 10000
bypasscach 10000
DASDtrans 10000
cachetrans 10000
NVSspadel 10000
qwriteprots 10000
CKDirtrkac 10000
cachspdelay 10000
timelowifact 10000
phread 10000
phwrite 10000
phwrite 10000
phbyteread 10000
phbytewrit 10000
recmoreads 10000
contamwrts 10000
PPRCtrks 10000
NVSspallo 10000
timephread 10000
timephwrite 10000
byteread 10000
| | | |
bytewrit 10000
timeread 10000
timewrite 10000
zHPFRead -
zHPFWrite -
504
normrdhits Specifies the number of normal read operations where data did not move to or from a storage device. normwritereq Specifies Write Normal I/O Requests normwritehits Specifies DASD Fast Write I/O Request Hits seqreadreqs Specifies Search/Read Sequential I/O Requests seqreadhits Specifies Search/Read Sequential I/O Request Hits seqwritereq Specifies Write Sequential I/O Requests seqwritehits Specifies DASD Fast Write Sequential I/O Request Hits cachfwrreqs Specifies Search/Read Cache Fast Write I/O Requests cachfwrhits Specifies Search/Read Cache Fast Write I/O Request Hits cachfwreqs Specifies Cache Fast Write I/O Requests cachfwhits Specifies Cache Fast Write I/O Requests Hits inbcachload Specifies Inhibit Cache Loading I/O Requests that operate with DASD bypasscach Specifies Bypass Cache I/O Requests seqDASDtrans Specifies Sequential DASD to Cache Transfer Operations DASDtrans Specifies DASD to Cache Transfer Operation Count cachetrans Specifies Cache to DASD Transfer Operation Count NVSspadel Specifies DASD Fast Write Operations Delayed Due to nonvolatile storage Space Constraints normwriteops Specifies Normal DASD Fast Write Write Operation Counts seqwriteops Specifies Sequential Access DASD Fast Write Write Operation Counts reccachemis Specifies Number of record cache Read Misses qwriteprots Specifies Quick Write Promotes
505
CKDirtrkac Specifies Irregular Track Accesses CKDirtrkhits Specifies Irregular Track Accesses Hits cachspdelay Specifies Operations Delayed Due To Cache Space Constraints timelowifact Specifies Milliseconds of lower interface I/O activity for the indicated device. phread Specifies Physical Storage Read Operations phwrite Specifies Physical Storage Write Operations phbyteread Specifies Physical Storage Bytes Read in 128 KB increments. phbytewrit Specifies Physical Storage Bytes Written in 128 KB increments. recmoreads Specifies Record Mode Read Operations sfiletrkreads Specifies the Number of tracks read from the Concurrent Copy or XRC Sidefile. contamwrts Specifies the Number of Contaminating writes for a Concurrent Copy or XRC volume PPRCtrks Specifies the Number of tracks or portion of tracks that were transferred to the secondary device of a PPRC pair. NVSspallo Specifies the NVS Space Allocations timephread Specifies the physical storage read response time in 16 ms increments. timephwrite Specifies the physical storage write response time in 16 ms increments. byteread Specifies the number of bytes that are read in 128 KB increments bytewrit Specifies the number of bytes that are written in 128 KB increments. timeread Specifies the accumulated response time for all read operations. timewrite Specifies the accumulated response time for all write operations. | | | | zHPFRead Specifies the HPF Read I/O Requests for volume performance statistics. zHPFWrite Specifies the HPF Write I/O Requests for volume performance statistics.
506
chlss
The chlss command modifies a logical subsystem.
chlss -dev storage_image_ID -pprcconsistgrp enable disable
Parameters
-dev storage_image_ID (Optional) Specifies the storage image ID, which consists of manufacturer, machine type, and serial number. The storage image ID is required if you do not specify a fully qualified ID for all logical subsystems, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. -pprcconsistgrp enable | disable (Optional) Enables a volume that is associated with a logical subsystem to become suspended and enter an extended long busy state if it has not received a notification that a consistency group has been created. Otherwise, the volumes associated with the LSS do not go to a long-busy state. -extlongbusy timeout (Optional) Specifies the time in seconds that an LCU consistency group volume stays long busy after reporting an error that causes a remote mirror and copy suspension if a consistency group has not been created. The default is 120 seconds (2 minutes). LSS_ID . . . | (Required) Specifies one or more LSSs to be modified by this command. An LSS ID is two hexadecimal characters 00 - FE for the DS8000 and it is 00 - 1F for the DS6000.
Chapter 12. Command-line interface commands
| | | | |
507
To specify a range of LSS IDs, separate the IDs with a hyphen. You must separate multiple LSS IDs or ranges of LSS IDs with a blank space between each ID or range of IDs. If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode. Example: 00-03 08
Example
You can issue the chlss command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model the storage image ID is different. Invoking the chlss command
dscli>chlss -dev IBM.2017-75FA120 -extlongbusy 120 06 0F
lslss
The lslss command displays a list of logical subsystems (LSSs) for a storage image and status information for each logical subsystem in the list.
lslss -dev storage_image_ID -s -l -addrgrp address_group
LSS_ID . . . -
Parameters
-dev storage_image_ID (Optional) Specifies the storage image ID, which consists of manufacturer, machine type, and serial number. The storage image ID is required if you do not specify a fully qualified LSS ID, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. -s -l (Optional) Displays LSS IDs. You cannot use the -l and the -s parameters together. (Optional) Displays the default output. You cannot use the -l and the -s parameters together.
| | | | |
-addrgrp address_group (Optional) Displays only LSSs that belong to the specified address group. An address group is a single hexadecimal character (0 - F).
508
LSS_ID . . . | (Optional) Specifies the logical subsystem IDs. An LSS ID is two hexadecimal characters 00 - FE for the DS8000 and 00 - 1F for the DS6000. To specify a range of logical subsystem IDs, separate the logical subsystem IDs with a hyphen. You must separate multiple logical subsystem IDs or ranges of logical subsystem IDs with a blank space between each ID or range of IDs. Example: 00-03 08 If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode.
Example
You can issue the lslss command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model the storage image ID is different. For this command and all other DS CLI list commands, the results are shown in table format to provide clarity. The actual reports do not display as tables. The following table represents the headers that are displayed on the output report that is associated with the lslss command using the -l parameter. A separate example is not shown for the DS6000 because the information is the same for both machine types. The only difference is the machine type designation. Invoking the lslss command
dscli>lslss -dev IBM.1750-75FA120 -l
fb
256
FF11
fb
256
FF12
Group Specifies the server that is managing the logical subsystem group. The server is identified as either 0 or 1.
509
Addrgrp Specifies the address group object of which the logical subsystem is a member. Stgtype Specifies the type of storage volumes that are contained by this logical subsystem. The displayed value is either fb (fixed block) or ckd (count key data). Confgvols Specifies the number of volumes currently assigned to this logical subsystem. Subsys Specifies the user assigned, or default SSID value.
showlss
The showlss command displays detailed properties of a logical subsystem (LSS).
showlss -dev storage_image_ID LSS_ID -
Parameters
-dev storage_image_ID (Optional) Specifies the storage image ID, which consists of manufacturer, machine type, and serial number. The storage image ID is required if you do not specify a fully qualified LSS ID, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. LSS_ID | (Required) Displays the properties for the specified logical subsystem. This parameter accepts a fully qualified LSS ID, which consists of the storage image ID, or a shortened version without the storage image ID if the -dev parameter is specified. The shortened version is two hexadecimal digits in the range 00 FE for the DS8000 and 00 - 1F for the DS6000. The following is an example of a fully qualified LSS ID: IBM.2107-75FA120/10 The following is an example of a shortened version of the LSS ID when the -dev parameter is specified:
dscli>showlss -dev IBM.2107-75FA120 10
| | | | |
If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode.
Example
You can issue the showlss command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model the storage image ID is different. For this command and all other DS CLI show commands, the results are shown in table format to provide clarity. The actual reports do not display as tables.
510
The following tables represent the headers that are displayed on the output report that is associated with the showlss command. A separate example is not shown for the DS6000 because the information is the same for both the DS8000 and DS6000. Invoking the showlss command to show default information
dscli>showlss IBM.2107-75FA120/10
Subsys FF10
Pprcconsistgrp Disabled
Group Specifies the server that manages the logical subsystem. The displayed values are 0 or 1. Addrgrp Specifies the address group object that the logical subsystem is a member of. Confgvols Specifies the number of volumes that are assigned to this logical subsystem. Stgtype Specifies the type of storage volumes contained by this logical subsystem. The value displayed is fb (fixed block) or ckd (count key data) Pprcconsistgrp Specifies the assigned PPRC consistency group state setting. If you do not designate enabled, the default value of disabled is assigned. Xtndlbztimout Specifies the assigned extended long busy timeout value. If you do not designate a value, the default value of 120 seconds is assigned and displayed. Subsys Specifies the user assigned, or default SSID value.
511
Use the following commands to create, modify, and delete fixed block logical volumes and to display logical volume information: v chfbvol v lsfbvol v mkfbvol v rmfbvol v showfbvol The chfbvol command modifies the name or data type of a fixed block volume. The lsfbvol command generates a report that displays a list of fixed block volumes in a storage unit and the status information for each volume in the list. The mkfbvol command creates open systems fixed block volumes in a storage unit. The rmfbvol command deletes one or more specified fixed block volumes from a storage unit. The showfbvol command generates two types of reports. The first report displays the detailed properties for a specified fixed block volume. The second report displays the performance metrics for a specified fixed block volume.
chfbvol
The chfbvol command is used to change the name or capacity of a fixed block volume.
chfbvol -dev storage_image_ID -os400 protected unprotected A01 A81 A02 A82 A04 A84 A05 A85 A06 A86 A07 A87
-name
new_volume_name
-type
ess ds blocks
-cap
new_capacity
-quiet
volume_ID . . . -
Parameters
-dev storage_image_ID (Optional) Specifies the storage image ID, which consists of the manufacturer,
512
| | | | |
machine type, and serial number. The storage image ID is required if you do not specify a fully qualified volume ID, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. -os400 protected | unprotected | A01 | A81 | A02 | A82 | A04 | A84 | A05 | A85 | A06 | A86 | A07 | A87 (Optional - not available for DS6000 models) Specifies options for the OS 400 volume data types and indicates the type of modifications that can be performed. Check your operating system documentation to ensure that volume expansion is supported before you proceed with the expansion: Volume data type is os400 protected (FB 520P) You can change the volume data type to os400 unprotected (FB 520U) Volume data type is os400 unprotected (FB 520U) You can change the volume data type to os400 protected (FB 520P) Volume data type is 512 You cannot change the volume data type.
Current Volume A01 protected A81 unprotected A02 protected A82 unprotected A05 protected A85 unprotected A04 protected A84 unprotected A06 protected A86 unprotected A07 protected A87 unprotected Volume Size 8.59 GB 8.59 GB 17.55 GB 17.55 GB 35.17 GB 35.17 GB 70.56 GB 70.56 GB 141.12 GB 141.12 GB 282.35 GB 282.35 GB Change to Volume A81 unprotected A01 protected A82 unprotected A02 protected A85 unprotected A05 protected A84 unprotected A04 protected A86 unprotected A06 protected A87 unprotected A07 protected Volume Size 8.59 GB 8.59 GB 17.55 GB 17.55 GB 35.17 GB 35.17 GB 70.56 GB 70.56 GB 141.12 GB 141.12 GB 282.35 GB 282.35 GB
Notes: 1. If the volume is unassigned to any System i model or nonconfigured volume, you can use this parameter to change the designated protection value. 2. If the volume is assigned and is a part of the i5/OS configuration, you cannot use this parameter to change the protection value. The only way to change the protection value on a volume that is part of the i5/OS configuration is to perform the following steps with extreme caution: a. Remove the volume from the i5/OS application. This step must be done first. b. Remove the volume from the DS system c. Create a new volume and assign the correct protection value. 3. You cannot use the -os400 parameter with the -cap or the -type parameters.
513
-name new_volume_name (Optional) Specifies the nickname for this volume. A nickname cannot exceed 16 characters. -type ess | ds | blocks (Optional - not available for DS6000 models) Specifies the unit type of capacity that is specified by the -cap parameter. ess: Specifies that the unit is 10^9 bytes. ds: Specifies that the unit is 2^30 bytes. blocks: Specifies that the unit is 512 blocks. Notes: 1. If the -type parameter is not specified, the LUN is created as type ds. 2. The -type parameter is ignored when the -os400 parameter is specified. -cap new_capacity (Optional - not available for DS6000 models) Specifies the storage size that you want to allocate to the specified volume. Check your operating system documentation to ensure that volume expansion is supported before you proceed with the expansion. Notes: 1. If you attempt to reduce the volume size, the command fails. 2. You cannot use the -cap parameter with the -os400 parameter. If the -type parameter is omitted or the -type ds parameter is specified: v 1GB = 1 073 741 824 (2^30 bytes) v Supported storage sizes range from 1 to 2048. If the -type ess parameter is specified: v capacity = X.Y or X where X is whole gigabytes, with 1 GB = 1 000 000 000 (10^9 bytes). where Y represents a fraction of 1 GB. Y is limited to a single digit (0-9) to the right of the decimal. v Supported storage sizes range from 0.1 - 982.2 (0.1 increment). If the -type blocks parameter is specified, new_capacity is the number of 512 blocks. Supported storage sizes are from 1 to 4294967296 (4x2^30 bytes). -quiet (Optional - not available for DS6000 models) Turns off the confirmation prompt for this command. volume_ID . . . | (Required) Specifies one or more volume IDs to be modified. The volume ID is a 32-bit number that can be represented as 4 hexadecimal digits in the form of XYZZ where: X XY XY Specifies the address group, 0 - 1. This is not available for DS6000 models. Specifies the logical subsystem number, 00 - FE. This is only available for DS6000 models. Specifies the logical subsystem number, 00 - 1E.
514
ZZ
You must fully qualify the volume ID with manufacturer, machine type, and serial number if you do not use the -dev parameter. To specify a range of volume IDs, separate the volume IDs with a hyphen. You must separate multiple volume IDs or ranges of volume IDs with a blank space between each ID or range of IDs. Example: 0100-010F 0180-018F 0120 If you use the dash (-), the specified value is read from standard input. However, you cannot use the dash (-) if you are using the DS CLI interactive command mode.
Example
You can issue the chfbvol command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model, you cannot use the parameters -type, -cap, -quiet, and the -os400 parameter with the subparameters A01, A81, A02, A82, A04, A84, A05, A85, A06, A86, A07, and A87. Also, for the DS6000 the storage image ID is different. Invoking the chfbvol command
dscli>chfbvol -dev IBM.2107-75FA120 -os400 protected 0100 0101
initfbvol
The initfbvol command releases extents from a space-efficient logical volume. For example, if a space-efficient logical volume is used as a FlashCopy target volume and the data that is stored on these tracks are no longer needed, use the initfbvol command to free the extents that were assigned to this logical volume. This allows the extents to be reused by other space-efficient logical volumes. This command is not supported on DS6000 models.
initfbvol -dev volume_ID . . . - storage_image_ID -action releasespace -quiet
Parameters
-dev storage_image_ID (Optional) Specifies the storage image ID, which consists of a value for manufacturer, machine type, and serial number. The storage image ID is required if you do not specify a fully qualified volume ID, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command.
Chapter 12. Command-line interface commands
| | | | |
515
-action releasespace (Optional) Specifies that you want the system to release the repository space held by the designated space-efficient volume back to the repository. (The repository is the physical extents that provision the virtual extents for virtual space volumes.) -quiet (Optional) Specifies that you want the system to turn off the confirmation prompt for this command. volume_ID -| . . . (Required) Specifies the volume ID that you want the system to release the repository space from. The volume ID is a 32-bit number that can be represented as four hexadecimal digits in the form of XYZZ, where: XY (for a DS8000 model) Specifies the logical subsystem number, 00 - FE. XY (for a DS6000 model) Specifies the logical subsystem number, 00 - 1E. ZZ (for DS6000 and DS8000 models) Specifies the volume number, 00 - FF. X (for DS6000 and DS8000 models) Specifies the address group, 0 - 1, for DS6000 models, and 0F for DS8000 models. You must fully qualify the volume ID with manufacturer, machine type, and serial number if you do not use the -dev parameter. To specify a range of volume IDs, separate the volume IDs with a dash. You must separate multiple volume IDs or ranges of volume IDs with a blank space between each ID or range of IDs. If you use the dash (-), the specified value is read from standard input. However, you cannot use the dash (-) if you are using the DS CLI interactive command mode.
Example
Invoking the initfbvol command
dscli>initfbvol -dev IBM.2107-75FA120 action releasespace 0101
lsfbvol
The lsfbvol command displays a list of fixed block volumes in a storage image and status information for each volume in the list.
lsfbvol -dev storage_image_ID -s -l -datatype 512 520p 520u
516
-extpool
extentpool_ID
-access
online fenced
-data
normal not_normal
-config
normal not_normal
-lss
LSS_ID
-volgrp
volume_group_ID
-sam
standard tse
-eam
volume_ID . . . -
Parameters
Note: For a storage unit that is heavily configured, it is recommended that you specify the -lss or the -volgrp parameter as part of your command. -dev storage_image_ID (Optional) Specifies the storage image ID, which consists of manufacturer, machine type, and serial number. The storage image ID is required if you do not specify fully qualified IDs, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. -s -l (Optional) Displays the volume IDs. You cannot use the -l and the -s parameters together. (Optional) Displays default output plus additional attributes that are identified as long output. You cannot use the -l and the -s parameters together.
| | | | |
-datatype 512 | 520p | 520u (Optional) Displays volumes of the specified volume data type. Standard 2107/1750 volume (512), System i protected (520p), System i unprotected (520u). -extpool extentpool_ID (Optional) Displays volumes that are sourced from the specified extent pool. An extent pool ID is a four-digit decimal number with no leading zeroes, prefixed with the letter P. -access online | fenced (Optional) Displays volumes with the specified access state. -data normal | not_normal (Optional) Displays volumes with the specified data state. -config normal | not_normal (Optional) Displays volumes with the specified configuration. -lss LSS_ID (Optional) Displays volumes with IDs that contain the specified logical subsystem ID. Each logical subsystem can contain up to 256 volumes. A logical subsystem ID is two hexadecimal characters 00 - FE for the DS8000 and 00 - 1F for the DS6000. -volgrp volume_group_ID (Optional) Displays volumes that are assigned to the specified volume group ID. A volume group ID is a four-digit decimal number, with no leading zeros, prefixed by the letter V. For example, V123.
Chapter 12. Command-line interface commands
517
-sam standard | tse (Optional - DS8000 only) Specifies the storage allocation method as follows: standard Designates that you want the system to fully allocate the volume with real extents when it creates the volumes. This is the default value. tse Designates that you want the system to create track space-efficient volumes. After creation, these space-efficient volumes contain a set of virtual extents that are associated with the space-efficient storage in the same extent pool. The physical space for a given logical track on a track space-efficient logical volume is dynamically allocated and deallocated from the repository in the space-efficient storage. Note: To use this subparameter, you must have previously created space-efficient storage (using the mksestg command) for the extent pool. -eam legacy | rotatevols | rotateexts (Optional- DS8000 only) Specifies that you want the system to display only volumes that meet the criteria of the designated extent allocation method as follows: legacy Volumes that were created before the current algorithms were implemented. rotateexts Volumes that were created using storage-pool striping. rotatevols Volumes that were allocated on the next available rank in the extent pool. volume_ID . . . | (Optional) Displays volumes with the specified IDs. The volume ID is a 32 bit number that can be represented as 4 hexadecimal digits in the form of XYZZ where: XY (for a DS8000 model) Specifies the logical subsystem number, 00 - FE. XY (for a DS6000 model) Specifies the logical subsystem number, 00 - 1E. ZZ (for DS6000 and DS8000 models) Specifies the volume number, 00 - FF. X (for DS6000 and DS8000 models) Specifies the address group, 0 - 1, for DS6000 and 0F for DS8000. To specify a range of volume IDs, separate the volume IDs with a hyphen. You must separate multiple volume IDs or ranges of volume IDs with a blank space between each ID or range of IDs. If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode. Example: 0100-010F 0180-018F 0120
518
Example
You can issue the lsfbvol command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model, you cannot use the -sam and -eam parameters and the storage image ID is different. For this command and all other DS CLI list commands, the results are shown in table format to provide clarity. The actual reports do not display as tables. The following tables represent the headers that are displayed on the output report that is associated with the lsfbvol command using the -l parameter. A separate example is not shown for the DS6000 because the information is the same for both machine types. The only difference is the machine type designation. Note: Invoking the lsfbvol command
dscli>lsfbvol -dev IBM.2107-75FA120 -l -volgrp V2
Name My_ volume_ 0001 My_ volume_ 0002 My_ _volume 0003
ID 0100
accstate Online
datastate Normal
0102
Online
Normal
Normal
2107-A07
FB 520P
0103
Online
Normal
Normal
2107-900
FB 512
Volgrp V2 V2 -
519
Accstate One of the following access states are displayed: Online or Fenced. Online The logical volume is accessible to a host. Fenced The logical volume is in the volume fenced state and is not accessible to the host. Datastate One of the following data states are displayed: Normal Specifies that none of the other data states apply. The access state is Online. Read only Indicates that the logical volume is read only because one or more extents on the logical volume are on a rank in the read only data state. The access state is Online. Inaccessible Indicates that one or more extents that are associated with the logical volume are on a rank that is in the inaccessible data state. The access state is fenced. Virtual space fault Specifies that the logical volume has a storage allocation method of track space-efficient. There was not enough space available to convert a virtual logical track to a real logical track. The access state is Online. Indeterminate data loss Specifies that the following data states do not apply and that one of the following conditions has occurred: Data states that do not apply: v Rank failed v v v v Rank repairing Rank repaired Global inaccessible Global lost data
Conditions - one of the following occurred: v Committed write data was lost before it was destaged and the track identifiers that are associated with the data are unknown. v Data has been lost that indicates that extents on the logical volume were active FlashCopy targets. The access state is fenced. Rank failed Indicates that one or more extents that are associated with the logical volume are on a rank that is in the Failed data state. The access state is Fenced. This data state transitions to the Rank repairing state if the rank transitions to the Rank repairing state through use of the repair array function.
520
Rank Repairing Indicates that one or more extents that are associated with the logical volume are on ranks in the repairing data state. The access state is fenced. Rank Repaired Indicates that one or more extents that are associated with the logical volume are on ranks that were in the repairing state, but are not in the repairing state now. The access state is fenced. Global inaccessible Specifies that the global metadata that is associated with the logical volume configuration is inaccessible. Some of the data associated with the logical volume might be inaccurate. The access state is fenced. Global lost data Specifies that global metadata that is associated with the logical volume configuration has been lost. As a result, some of the data associated with the logical volume might be inaccurate. The access state is fenced. NVS data inaccessible Specifies that active NVS data is inaccessible for one or more logical volumes of an LSS group. The logical volumes in the LSS group cannot be made accessible. The access state is fenced. Configstate One of the following configuration states are displayed: Normal Indicates that there are no logical volume configuration operations in progress. Configuring Indicates that the logical volume is in the process of being configured for the first time. Reconfiguring Indicates that the logical volume is in the process of allocating or deallocating extents due to a modification of the requested capacity attribute after initial creation. Migrating Indicates that the logical volume is in the process of performing dynamic volume relocation to a specified extent pool. Deconfiguring Indicates that the logical volume is in the process of being deleted. Configuration error Indicates that the initial configuration did not complete successfully. This state reflects an internal error condition and not an error in the request to create the volume. Corrective action: Use the rmfbvol command to delete each volume listed with the configuration state of configuration error. Reconfiguration error Indicates that the reconfiguration request did not complete successfully. Migration error Indicates that the dynamic volume relocation operation was ended during processing.
Chapter 12. Command-line interface commands
521
Deconfiguration error Indicates that a request to delete a volume did not complete successfully. This state reflects an internal error condition and not an error in the request to remove the volume. To correct this state, you must reissue the rmfbvol command for the designated volume. deviceMTM Indicates the volume device type and model. The volume MTM (machine type, model) is determined by the fixed block volume data type and the volume capacity (in GB). The machine type is either 2107 or 1750; however, the MTM can be any one of the following depending on your system: 2107-900 Indicates a standard 2107 volume. 1750-500 Indicates a standard 1750 volume. xxxx-A0x Indicates that the xxxx is a 2107 or 1750. The A0 indicates a System i protected volume (for example, 2107-A01 or 1750-A07). xxxx-A8x Indicates that the xxxx is 2107 or 1750. The A8 indicates a System i unprotected volume (for example, 2107-A81 or 1750-A87). Datatype Indicates the volume data type setting. One of the following binary (B) values will be displayed: v FB 512 v FB 520P v FB 520U Extpool Identifies the extent pool ID. Volume extents are allocated from this extent pool ID. | | | SAM Note: Volumes that belong to an encrypted extent pool are encrypted. You can see an extent pools encryption group by using the lsextpool -l, or showextpool commands. Specifies the storage allocation method. The following values are displayed: standard Designates that the system fully allocated the volume with real extents at volume creation time. An inquiry on a DS6000 model always reports a value of standard. tse Designates that a track space-efficient logical volume contains a set of virtual extents that are associated with the space-efficient storage in the same extent pool. Physical space for a given logical track on a track space-efficient logical volume is dynamically allocated and deallocated from the repository in the space-efficient storage.
Captype Indicates the capacity unit type that is used at volume creation. One of the following values is displayed: ESS The capacity unit is 10^9B.
522
DS The capacity unit is 2^30B. DS/ESS The capacity unit is 2^30B or 10^9B. Blocks The capacity unit is 512B. iSeries The capacity unit was not specified at volume creation. This fixed block volume was created only for iSeries. Cap (2^30B) Specifies the size of the volume that is available for host system access in 2^30B (binary GB) units. Note: (null) is displayed if the capacity unit type of the volume is ESS (captype=ESS) Cap (10^9B) Specifies the size of the volume that is available for host system access in 10^9B (decimal GB) units. Note: (null) is displayed if the capacity unit type of the volume is DS (captype=DS) Cap (blocks) Indicates the quantity of volume logical blocks that are available for host system access. Volgrp Specifies the volume groups (excluding default volume groups) that a volume belongs to. Multiple volume groups that are associated with the volume are separated by a comma. A null (-) is displayed if there are no volume groups that are associated with the volume. Reqcap (blocks) Specifies the requested quantity of volume logical blocks (for example, 3339). Note: A value of 0 is displayed for the DS6000. EAM Specifies the extent allocation method that was used when the logical volume was created. legacy Designates that the volume was created before the use of the current algorithm. Legacy is always the reported value for a DS6000 model. rotateexts Designates that volumes were created using storage-pool striping. rotatevols Designates that each successive logical volume that is created is allocated on the next available rank in the extent pool. This is the default value.
523
- (null) A null (-) value is displayed if the extent allocation method does not apply because the specified volume is a space-efficient volume.
mkfbvol
The mkfbvol command creates open systems fixed block (FB) volumes in a storage image.
mkfbvol -dev storage_image_ID -extpool extentpool_ID -os400 A01 A81 A02 A82 A04 A84 A05 A85 A06 A86 A07 A87
-type
ess ds blocks
-cap
capacity
-name
volume_name
-volgrp
volume_group_ID
-wait
-sam
standard tse
-eam
rotatevols rotateexts
volume_ID . . . -
Parameters
Notes: 1. You can create multiple volumes with one command; however, all volumes must have the same capacity, extent pool, and data type. 2. If host attachment volume groups have not yet been created, create temporary volume groups and assign new fixed block volumes to the temporary volume groups according to the volume type and capacity characteristics. 3. To use the -sam tse parameter you must have previously created space-efficient storage (using the mksestg command) for the extent pool. -dev storage_image_ID (Optional) Specifies the storage image ID, which includes a value for the manufacturer, machine type, and serial number. The storage image ID is required if you do not specify fully qualified IDs, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command.
| | | | |
524
-extpool extentpool_ID (Required) Creates the base or alias volumes from data extents that are contained in this extent pool. The extent pool storage type defines the volume storage type. An extent pool ID is a four-digit decimal number with no leading zeros, prefixed with the letter P. -os400 A01 | A81 | A02 | A82 | A04 | A84 | A05 | A85 | A06 | A86 | A07 | A87 (Optional) The OS 400 volume options. If this parameter is not specified, the default standard 2107/1750 volume is created. This parameter is required if capacity is not specified. The storage sizes and the data types for this volume: v A01 - 8.6 GB, protected v A81 - 8.6 GB, unprotected v A02 - 17.5 GB, protected v A82 - 17.5 GB, unprotected v A04 - 70.5 GB, protected v A84 - 70.5 GB, unprotected v A05 - 35.1 GB, protected v A85 - 35.1 GB, unprotected v A06 - 141.12 GB, protected v A86 - 141.12 GB, unprotected v A07 - 282.25 GB, protected v A87 - 282.25 GB, unprotected GB is 10^9 bytes. Note: You must ensure that the volume data type is compatible with the host systems that can access this volume. -type ess | ds | blocks (Optional) Specifies the unit type of capacity that is specified by the -cap parameter. ess: Specifies that the unit is 10^9 bytes. ds: Specifies that the unit is 2^30 bytes. blocks: Specifies that the unit is 512 blocks. Notes: 1. If the -type parameter is not specified, the lun is created as type ds. 2. The -type parameter is ignored when the -os400 parameter is specified. -cap capacity (Optional) Specifies the storage size that is allocated to this volume object. Note: This parameter is required if the -os400 parameter is not specified. If the -type parameter is omitted or the -type ds parameter is specified: v 1GB = 1 073 741 824 (2^30 bytes) v Supported storage sizes range from 1 to 2048. If the -type ess parameter is specified:
Chapter 12. Command-line interface commands
525
v capacity = X.Y or X where X is whole gigabytes, with 1 GB=1 000 000 000 (10^9 bytes). where Y represents a fraction of 1 GB. Y is limited to a single digit (0-9) to the right of the decimal. v Supported storage sizes range from 0.1 - 982.2 (0.1 increment). If the -type blocks parameter is specified, capacity is the number of 512 blocks. Supported storage sizes are from 1 to 4294967296 (4x2^30 bytes). -name volume_name (Optional) Your nickname for this volume. The nickname can be 16 characters long, and it can contain one of the following wildcard characters: v (#d) decimal volume ID v s v (#h) hexadecimal volume ID -volgrp volume_group_ID (Optional) Specifies to which volume group the volumes are assigned. A volume group ID is a four-digit decimal number with no leading zeros, prefixed with the letter V. -wait (Optional) Delays the command response until the volume configuration processes complete. Note: If you specify this parameter, you must wait until your original command processes completely before you can issue a new command. -sam standard | tse (Optional - DS8000 only) Specifies the storage allocation method as follows: standard Designates that you want the system to fully allocate the volume with real extents when it creates the volumes. This is the default value. tse Designates that you want the system to create track space-efficient volumes. After creation, these space-efficient volumes contain a set of virtual extents that are associated with the space-efficient storage in the same extent pool. The physical space for a given logical track on a track space-efficient logical volume is dynamically allocated and deallocated from the repository in the space-efficient storage. Note: To use this subparameter, you must have previously created space-efficient storage (using the mksestg command) for the extentpool. -eam rotateexts | rotatevols (Optional - DS8000 only) Specifies the extent allocation method as follows: rotateexts Designates that you want the system to use storage-pool striping to create the specified volumes. rotatevols Designates that want the system to allocate each successive logical volume that is created on the next available rank in the extent pool. This is the default.
526
volume_ID . . . | (Required) An array of one or more fixed block volume IDs to be created. The volumes must share a common logical subsystem ID. The volume ID format is four hexadecimal characters XYZZ, that represent the following values: X (for DS8000 and DS6000) Specifies the address group, 0 -1 for DS6000 and 0F for DS8000. XY (DS6000 only) Specifies the logical subsystem number, 00 - 1E. XY (DS8000 only) Specifies the logical subsystem number, 00 - FE. ZZ (for DS8000 and DS6000) Specifies the volume number, 00 - FF. To specify a range of volume IDs, separate the volume IDs with a dash (-). You must separate multiple volume IDs or ranges of volume IDs with a blank space between each ID or range of IDs. Example: 0100-010F 0180-018F 0120 If you use the dash (-), the specified value is read from standard input. However, you cannot use the dash (-) while you are in the DS CLI interactive command mode.
Example
You can issue the mkfbvol command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model, you cannot use the -sam and the -eam parameters, and the storage image ID is different. Invoking the mkfbvol command
dscli>mkfbvol -dev IBM.2107-75FA120 -extpool P1 -name my_vol_#d -type ess -cap 8.6 0100 0101 0102 0103
rmfbvol
The rmfbvol command deletes fixed block volumes from a storage image.
rmfbvol -dev storage_image_ID -quiet -safe - volume_ID . . .
Parameters
Note: You can use this command when there are volumes that are in the configuration error state. To correct this configuration state, issue the
Chapter 12. Command-line interface commands
527
rmfbvol command for each affected volume. You can specify a volume range according to the command specifications when it is appropriate. -dev storage_image_ID (Optional) Specifies the storage image ID, which includes manufacturer, machine type, and serial number. The storage image ID is required if you do not specify a fully qualified volume ID for all logical volumes, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. -quiet (Optional) Turns off the confirmation prompt for this command. -safe (Optional) Specifies that the system perform a check to see if the specified volumes are assigned to any user-defined volume group. If any volumes are still assigned to a user-defined volume group, the rmfbvol command fails without deleting any volumes. When this occurs, messages are provided that list the volumes that are still assigned to a user-defined volume group. Note: If there is any reason that the system cannot perform the check, the rmfbvol command fails and no volumes are deleted. volume_ID . . . | (Required) Specifies an array of one or more fixed block volume IDs to be removed. This parameter also accepts a fully qualified volume ID, which includes the storage image ID, or a shortened version without the storage image ID if the -dev parameter is specified. Example of -dev parameter use If you specify the -dev parameter, you can use the shortened version of the Volume_ID parameter as follows: For DS8000,
dscli>rmfbvol -dev IBM.2107-75FA120 0100-010F 0180-018F 0120
| | | | |
For DS6000,
dscli>rmfbvol -dev IBM.1750-13ABR4A 0005-00FF
If you do not specify the -dev parameter and you specify the volume_ID parameter, you must use the fully qualified version of the volume ID as follows: For DS8000,
dscli>rmfbvol IBM.2107-75FA120/0100-010F 0180-018F 0120
For DS6000,
dscli>rmfbvol IBM.1750-13ABR4A/0005-00FF
The volume ID is a 32 bit number that can be represented as 4 hexadecimal digits in the form of XYZZ where: X (for DS6000 and DS8000 models) Specifies the address group, 0 -1 for DS6000 and 0F for DS8000. XY (for a DS8000 model) Specifies the logical subsystem number, 00 - FE. XY (for a DS6000 model) Specifies the logical subsystem number, 00 - 1E.
528
ZZ (for DS6000 and DS8000 models) Specifies the volume number, 00 - FF. To specify a range of volume IDs, separate the volume IDs with a hyphen. You must separate multiple volume IDs or ranges of volume IDs with a blank space between each ID or range of IDs. If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode.
Example
You can issue the rmfbvol command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model the storage image ID is different. Invoking the rmfbvol command
dscli>rmfbvol -dev IBM.2107-75FA120 0100 0101
The following is an example of the output that results when you specify that you want a range of volume IDs to be removed. Invoking the rmfbvol command
dscli>rmfbvol -dev IBM.2107-75FA120 0005-00FF Date/Time: September 13, 2005 9:38:52 PM MST IBM DSCLI Version: 5.0.0.0 DS: IBM.2107-75FA120 CMUC00027W [y/n]:y CMUC00028I CMUC00028I CMUC00028I CMUC00028I CMUC00028I CMUC00028I CMUC00028I CMUC00028I CMUC00028I CMUC00028I CMUC00028I CMUC00028I CMUC00028I CMUC00028I CMUC00028I CMUC00028I CMUC00028I CMUC00028I CMUC00028I CMUC00028I CMUC00028I CMUC00028I CMUC00028I rmfbvol: Are you sure you want to delete FB volume 0005-00FF? rmfbvol: rmfbvol: rmfbvol: rmfbvol: rmfbvol: rmfbvol: rmfbvol: rmfbvol: rmfbvol: rmfbvol: rmfbvol: rmfbvol: rmfbvol: rmfbvol: rmfbvol: rmfbvol: rmfbvol: rmfbvol: rmfbvol: rmfbvol: rmfbvol: rmfbvol: rmfbvol: FB FB FB FB FB FB FB FB FB FB FB FB FB FB FB FB FB FB FB FB FB FB FB volume volume volume volume volume volume volume volume volume volume volume volume volume volume volume volume volume volume volume volume volume volume volume 0005 0006 0007 0008 0009 000A 000B 000C 000D 000E 000F 0010 0011 0012 0013 0014 0015 0016 0017 0018 0019 001A 001B successfully successfully successfully successfully successfully successfully successfully successfully successfully successfully successfully successfully successfully successfully successfully successfully successfully successfully successfully successfully successfully successfully successfully deleted. deleted. deleted. deleted. deleted. deleted. deleted. deleted. deleted. deleted. deleted. deleted. deleted. deleted. deleted. deleted. deleted. deleted. deleted. deleted. deleted. deleted. deleted.
529
FB FB FB FB FB FB FB FB FB
showfbvol
The showfbvol command displays detailed properties for an individual volume. This command can also be used to display the performance metrics of a fixed block volume.
showfbvol -dev storage_image_ID volume_ID - -rank -metrics
-volgrp
volume_group_ID
Parameters
-dev storage_image_ID (Optional) Specifies the storage image ID, which consists of manufacturer, machine type, and serial number. The storage image ID is required if you do not specify a fully qualified volume ID, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. -rank (Optional) Specifies that a rank extents table be displayed. This table displays the set of ranks that the logical volume has extents configured on and the number of extents for that logical volume. Note: This parameter cannot be used with the -metrics or -volgrp parameters. -metrics (Optional) Displays volume ID and performance metrics for the specified volume. Notes: 1. All performance counts are an accumulation since the most recent counter wrap or counter reset. Volume performance counters are reset on a power-up sequence. Volume performance counters are reset by a server failover and failback sequence. 2. Do not use this parameter with the -rank parameters. -volgrp volume_group_ID (Required if you do not specify the volume_ID parameter.) Specifies that the fixed block volumes that are associated with the designated volume group ID be displayed. Notes: 1. You can only use the -volgrp parameter when you are doing a query for performance metrics. 2. Do not use the -volgrp parameter with the volume_ID parameter.
| | | | |
530
3. Do not use the -volgrp parameter with the -rank parameters. volume_ID | (Required if you do not specify the -volgrp parameter.) Displays information for the specified volume. This parameter accepts a fully qualified volume ID, which consists of the storage_image_ID or a shortened version without the storage image ID, if you specify the -dev parameter. The volume ID is a 32 bit number that can be represented as 4 hexadecimal digits in the form of XYZZ where: X (for DS6000 and DS8000 models) Specifies the address group, 0 - 1 for DS6000 and 0F for DS8000. XY (for a DS8000 model) Specifies the logical subsystem number, 00 - FE. XY (for a DS6000 model) Specifies the logical subsystem number, 00 - 1E. ZZ (for DS6000 and DS8000 models) Specifies the volume number, 00 - FF. If you use the dash (-), the specified value is read from standard input. However, you cannot use the dash (-) while you are in the DS CLI interactive command mode. Note: Do not use the volume_ID parameter with the -volgrp parameter.
Example
You can issue the showfbvol command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model the storage image ID is different. For this command and all other DS CLI show commands, the results are shown in table format to provide clarity. The actual reports do not display as tables. The following tables represent the headers that are displayed on the output reports that are associated with the showfbvol command using the -rank parameter. When the rank parameter is specified, a rank extents table is also displayed. It appears at the end of the regular report. A separate example is not shown for the DS6000 because the information is the same for both. The only difference is the machine type designation. Invoking the showfbvol to show volume properties Note: The example output is based on using the showfbvol command for a 1.0 (Binary) GB volume. When the rank parameter is specified, a rank extents table is displayed at the end of the regular report.
dscli>showfbvol -dev IBM.2107-1300861 -rank 6000
| |
531
ID 6000
addrgrp 6
cap (10^9B) -
volgrp -
ranks 2
dbexts 0
sam TSE
repcapalloc 1.7
eam -
Rank R0 R2
Extents 1 2
532
space-efficient or track space-efficient. There was not enough available space to convert a virtual logical track to a real logical track. The access state is Online. Indeterminate data loss Specifies that the following data states do not apply and that one of the following conditions has occurred: Data states that do not apply: v Rank failed v Rank repairing v Rank repaired v Global inaccessible v Global lost data Conditions - one of the following conditions has occurred: v Committed write data was lost before it was destaged and the track identifiers that are associated with the data are unknown. v Data was lost that indicated extents on the logical volume were active FlashCopy targets. The access state is Fenced. Rank failed Indicates that one or more extents that are associated with the logical volume are on a rank that is in the Failed data state. The access state is Fenced. This data state changes to Rank repairing if the rank changes to the Rank repairing state through use of the repair array function. Rank Repairing Indicates that one or more extents that are associated with the logical volume are on ranks in the repairing data state. The access state is Fenced. Rank Repaired Indicates that one or more extents that are associated with the logical volume are on ranks that were in the repairing state, but are not in the repairing state now. The access state is Fenced. Global inaccessible Specifies that the global metadata that is associated with the logical volume configuration is inaccessible. Some of the data that is associated with the logical volume might be inaccurate. The access state is Fenced. Global lost Specifies that global metadata that is associated with the logical volume configuration has been lost. As a result, some of the data that is associated with the logical volume might be inaccurate. The access state is Fenced. NVS data inaccessible Specifies that active nonvolatile storage (NVS) data is inaccessible for one or more logical volumes of an LSS group. The logical volumes in the LSS group cannot be made accessible. The access state is Fenced. Configstate One of the following configuration states are displayed: Normal Indicates that there are no logical volume configuration operations in progress.
533
Configuring Indicates that the logical volume is in the process of being configured for the first time. Reconfiguring Indicates that the logical volume is in the process of allocating or deallocating extents due to a modification of the requested capacity attribute after initial creation. Migrating Indicates that the logical volume is in the process of performing dynamic volume relocation to a specified extent pool. Deconfiguring Indicates that the logical volume is in the process of being deleted. Configuration error Indicates that the initial configuration did not complete successfully. This state reflects an internal error condition and not an error in the request to create the volume. Corrective action: Use the rmfbvol command to delete each volume listed with the configuration state of configuration error. Reconfiguration error Indicates that the reconfiguration request did not complete successfully. Migration error Indicates that the dynamic volume relocation operation was ended during processing. Deconfiguration error Indicates that a request to delete a volume did not complete successfully. This state reflects an internal error condition and not an error in the request to remove the volume. To correct this state, you must reissue the rmfbvol command for the designated volume. deviceMTM Indicates the volume device type and the machine type. The volume MTM is determined by the fixed block volume data type and the volume capacity (in GB). The machine type is either 2107 or 1750; however, the MTM can be any one of the following depending on your system: 2107-900 This indicates a standard 2107 volume. 1750-500 This indicates a standard 1750 volume. xxxx-A0x The xxxx is 2107 or 1750; the A0 indicates a System i protected volume (for example, 2107-A01 or 1750-A07). xxxx-A8x The xxxx is 2107 or 1750; the A8 indicates a System i unprotected volume (for example, 2107-A81 or 1750-A87). Datatype Indicates the volume data type setting. One of the following values is displayed: v FB 512 v FB 520P
534
v FB 520U Addrgrp Specifies the address group that contains the designated volume object. An address group ID is one hexadecimal character ( 0 - F ). Extpool Specifies the extent pool ID. Volume extents are allocated from this extent pool ID. | | | Note: Volumes that belong to an encrypted extent pool are encrypted. You can see an extent pools encryption group by using the lsextpool -l, or showextpool commands. Exts Specifies the number of extents used by the designated volume ID. Captype Indicates capacity unit type used at volume creation. One of the following values is displayed: ESS The capacity unit is 10 ^ 9B. DS The capacity unit is 2 ^ 30B. DS/ESS The capacity unit is 2 ^ 30B or 10 ^ 9B. Blocks The capacity unit 512B. iSeries The capacity unit was not specified at volume creation. This fixed block volume was created for iSeries. Cap (2 ^ 30B) Specifies the size of volume that is available for host system access in 2 ^ 30B (binary GB) unit. Note: (null) is displayed if the capacity unit type of the volume is ESS (captype=ESS) Cap (10 ^ 9B) Specifies the size of volume that is available for host system access in 10 ^ 9B (decimal GB) unit. Note: (null) is displayed if the capacity unit type of the volume is DS (captype=DS) Cap blocks Indicates the quantity of volume logical blocks that are available for host system access. Volgrp Specifies the volume groups (excluding default volume groups) that a volume belongs to. Multiple volume groups that are associated with the volume are separated by a comma.
535
A null (-) is displayed if there are no volume groups that are associated with the volume. Ranks Specifies the number of ranks that the volume resides on. SAM Specifies the storage allocation method. The following values are displayed: standard Designates that the system fully allocated the volume with real extents at volume creation time. An inquiry on a DS6000 model always reports this value. tse Designates that a track space-efficient logical volume contains a set of virtual extents that are associated with the space-efficient storage in the same extent pool. Physical space for a given logical track on a track space-efficient logical volume is dynamically allocated and deallocated from the repository in the space-efficient storage.
Repcapalloc Specifies the allocated physical repository capacity of the track space-efficient storage. This value is calculated on the available repository capacity as a result of writes to the space-efficient volume. This value is displayed in the format of X.Y, where X is whole GB (1GB=2^30B) and Y represents tenths of a GB, which is limited to a single digit (0 - 9). Note: 1. A null (-) value is displayed in this column if the value displayed in the SAM column is Standard. 2. A null (-) value is displayed for the DS6000. EAM Specifies the extent allocation method that was used when the logical volume was created. One of the following values is displayed: legacy Designates that the volume was created before the use of the current algorithm. Legacy is always the reported value for a DS6000 model. rotateexts Designates that volumes were created using storage-pool striping. rotatevols Designates that each successive logical volume that is created is allocated on the next available rank in the extent pool. This is the default value. - (null) A null (-) value is displayed if the extent allocation method does not apply because the specified volume is a space-efficient volume. Reqcap (blocks) Specifies the requested quantity of volume logical block (for example, 3339). Note: A value of 0 is displayed for the DS6000.
536
Extents (Rank Extents table) Specifies the number of extents for the volume on the rank.
Example
For this command and all other DS CLI show commands, the results are shown in table format to provide clarity. The actual reports do not display as tables. The following tables represent the headers that are displayed on the output reports that are associated with the showfbvol command using the -metrics parameter. Invoking the showfbvol to show performance metrics
dscli>showfbvol -metrics IBM.2107-75FA120/0101
ID
Date
cachfwrhits 10000
cachfwreqs 10000
cachfwhits 10000
inbcachload 10000
bypasscach 10000
DASDtrans 10000
cachetrans 10000
NVSspadel 10000
qwriteprots 10000
CKDirtrkac 0
cachspdelay 10000
timelowifact 10000
phread 10000
phwrite 10000
phwrite 10000
phbyteread 10000
phbytewrit 10000
recmoreads 10000
contamwrts 0
PPRCtrks 10000
NVSspallo 10000
timephread 10000
timephwrite 10000
byteread 10000
| | | |
bytewrit 10000
timeread 10000
timewrite 10000
zHPFRead -
zHPFWrite -
537
538
reccachemis Specifies Number of record cache Read Misses. qwriteprots Specifies Quick Write Promotes. CKDirtrkac Specifies Irregular Track Accesses. A 0 (zero) value is displayed for a fixed block volume. CKDirtrkhits Specifies Irregular Track Accesses instances. A 0 (zero) value is displayed for a fixed block volume. cachspdelay Specifies Operations Delayed Due To Cache Space Constraints. timelowifact Specifies Milliseconds of lower interface I/O activity for the indicated device. phread Specifies Physical Storage Read Operations. phwrite Specifies Physical Storage Write Operations. phbyteread Specifies Physical Storage Bytes Read in 128 KB increments. phbytewrit Specifies Physical Storage Bytes Written in 128 KB increments. recmoreads Specifies Record Mode Read Operations. sfiletrkreads Specifies the Number of tracks read from the Concurrent Copy or XRC Sidefile. A 0 (zero) value is displayed for a fixed block volume. contamwrts Specifies the Number of Contaminating writes for a Concurrent Copy or XRC volume. A 0 (zero) value is displayed for a fixed block volume. PPRCtrks Specifies the Number of tracks or portion of tracks that were transferred to the secondary device of a PPRC pair. NVSspallo Specifies the NVS Space Allocations. timephread Specifies the Physical Storage Read Response Time in 16 ms increments. timephwrite Specifies the Physical Storage Write Response Time in 16 ms increments. byteread Specifies the number of Bytes read in 128 KB increments. bytewrit Specifies the number of Bytes written in 128 KB increments. timeread Specifies the accumulated response time for all read operations.
539
timewrite Specifies the accumulated response time for all write operations. | | | | zHPFRead Specifies the HPF Read I/O Requests for volume performance statistics. zHPFWrite Specifies the HPF Write I/O Requests for volume performance statistics.
chvolgrp
The chvolgrp command modifies a volume group name and volume members.
chvolgrp -dev storage_image_ID -name new_Volume_Group_name
-action
-volume
volume_ID
. . .
-lun
lun_ID
Volume_Group_ID -
Parameters
Note: If you are using an HP-UX operating systems, the number of volumes in the volume group must not exceed 7 volumes. This restriction only applies when the hostconnect attribute for the -addrdiscovery parameter is set to reportlun and the associated volume group is of type mapscsi256.
540
| | | | |
-dev storage_image_ID (Optional). Specifies the storage image ID, which consists of manufacturer, machine type, and serial number. The storage image ID is required if you do not specify fully qualified IDs, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. For DS8000, example: IBM.2107-75FA120 -name new_Volume_Group_name (Optional). Specifies a new name for the volume group. The name is limited to 16 characters. The name must be unique across volume groups that are contained by a storage unit. -action add | remove | replace (Optional, unless the -volume parameter is specified). Specify one of the following values with this parameter: add remove Specifies that the volumes be removed from the volume group. replace Specifies that the existing volumes be replaced by the specified volumes. Note: The chvolgrp command fails if you have specified the -volume parameter and not included the -action parameter. -volume volume_ID . . . (Optional unless you are specifying the -action or the -lun parameter, then the -volume parameter is required.) Specifies an array of one or more volume IDs or volume ID ranges to be included in the volume group when the -action parameter is specified. The volume ID is a 32 bit number that can be represented as 4 hexadecimal digits in the form of XYZZ where: X (for DS6000 and DS8000 models) Specifies the address group, 0 - 1 for DS6000 and 0F for DS8000. XY (for a DS8000 model) Specifies the logical subsystem number, 00 - FE. XY (for a DS6000 model) Specifies the logical subsystem number, 00 - 1E. ZZ (for DS6000 and DS8000 models) Specifies the volume number, 00 - FF. To specify a range of volume IDs, separate the volume IDs with a dash (-). You must separate multiple volume IDs or ranges of volume IDs with a comma between each ID or range of IDs. Notes: 1. For SCSI MAP 256, the array or ranges cannot exceed 256 volume ID entries. Otherwise, up to 64 384 entries are allowed. 2. The chvolgrp command fails if you specify the -volume parameter and do not specify the -action parameter.
Chapter 12. Command-line interface commands
541
Example: 0100-010F,0180-018F,0120 -lun lun_ID (Optional - SCSI MAP 256 only). Specifies the LUN ID in hexadecimal value (00 - FF), which is mapped to the specified volume ID when the -action add or -action replace parameter is specified. If multiple volume IDs are specified by the -volume parameter, the LUN ID is consecutively assigned in incremental order. If the specified LUN ID is not valid, the command is rejected. Note: This parameter is only valid when the target volume group type is SCSI MAP 256. Otherwise, this command fails. If the -action add parameter is specified and the specified LUN ID is already mapped to the other volume in the specified volume group, the command fails. If the -action add parameter is specified without the -lun parameter, an unused LUN ID is assigned to the volume ID. In this case, the unused LUN ID is selected from a smaller number. The following example shows how this works:
A volume group of "SCSI Map 256" type has Volume 0000 and 0001. Their LUNs are the members of the following volume group: (showvolgrp displays the current mapping.) 0000 : 10 0001 : 11 Because the range of LUN IDs is 00-FF, the unused LUN IDs are 00,01,...,0F,12,13,...,FF. If you add volume 0002 and 0003 to this volume group without the -lun parameter, the mapping results in the following because 00 and 01 are "smaller" unused LUN IDs: 0002 : 00 0003 : 01 0000 : 10 0001 : 11
If the -action replace parameter is specified without specifying the -lun parameter, lun_ID=00 is assumed. Volume_Group_ID | (Required). Specifies the ID of the volume group being changed. The volume group ID is made up of the storage image ID followed by the volume group ID. This parameter also accepts a fully qualified volume group ID including the storage image ID or a shortened version. The shortened version is a four-digit decimal number with no leading zeroes, prefixed with the letter V. If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode.
Example
You can issue the chvolgrp command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model the storage image ID is different. Invoking the chvolgrp command
dscli>chvolgrp -action add -volume 0000-000F IBM.2107-75FA120/V2341
542
Sun Aug 11 02:23:49 PST 2004 IBM DS CLI Version: 5.0.0.0 DS: IBM.2107-75FA120 Volume group V2341 successfully modified.
lsvolgrp
The lsvolgrp command displays a list of volume groups in a storage image and status information for each volume group in the list.
lsvolgrp -dev storage_image_ID -s -l -type ficonall scsiall scsimask scsimap256 os400all os400mask
-volume
volume_ID
Volume_Group_ID . . . -
Parameters
-dev storage_image_ID (Optional). Specifies the storage image ID, which includes manufacturer, machine type, and serial number. Displays only the objects for the storage unit that is specified. The storage image ID is required if you do not specify fully qualified IDs, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. For DS8000, example: IBM.2107-75FA120 -s -l (Optional). Displays volume group IDs only. You cannot use the -l and the -s parameters together. (Optional). Displays the default output plus users. You cannot use the -l and the -s parameters together.
| | | | |
-type | ficonall | scsiall | scsimask | scsimap256 | os400all | os400mask (Optional). Displays only volume groups that are configured as the specified volume group type. -volume volume_ID (Optional). Displays volume groups that contain the specified volume ID. The volume ID is a 32 bit number that can be represented as 4 hexadecimal digits in the form of XYZZ where: X (for DS6000 and DS8000 models) Specifies the address group, 0 - 1 for DS6000 and 0F for DS8000. XY (for a DS8000 model) Specifies the logical subsystem number, 00 - FE. XY (for a DS6000 model) Specifies the logical subsystem number, 00 - 1E. ZZ (for DS6000 and DS8000 models) Specifies the volume number, 00 - FF.
543
Volume_Group_ID . . . | (Optional). Displays volume groups with the specified IDs. A volume group ID is a four-digit decimal number with no leading zeroes, prefixed with the letter V. This parameter accepts a fully qualified volume group ID or a shortened version, if the -dev parameter is specified. To specify a range of volume group IDs, separate the volume group IDs with a hyphen. You must separate multiple volume group IDs or ranges of volume group IDs with a blank space between each ID or range of IDs. If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode.
Example
You can issue the lsvolgrp command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model the storage image ID is different. For this command and all other DS CLI list commands, the results are shown in table format to provide clarity. The actual reports do not display as tables. The following table represents the headers that are displayed on the output report that is associated with the lsvolgrp command using the -l parameter. A separate example is not shown for the DS6000 because the information is the same for both the DS8000 and DS6000. Invoking the lsvolgrp command
dscli>lsvolgrp -dev IBM.2107-75FA120 -l
Type
544
mkvolgrp
The mkvolgrp command creates a volume group in a storage image.
mkvolgrp -dev storage_image_ID -hosttype host_type -type scsimask scsimap256 os400mask
-volume
volume_ID
. . .
-lun
lun_ID
Volume_Group_Name -
Parameters
Notes: 1. It is highly recommended that you use the -hosttype parameter when you issue this command. 2. When you create DS6000 volume groups for (RedHat) Linux using the mkvolgrp command, the -type parameter must be set to scsimap256. 3. When you create DS6000 volume groups for AIX5L, the -type parameter must be set to scsimap. If you are using an HP-UX operating system, the number of volumes in the volume group must not exceed 7 volumes. This restriction only applies when the hostconnect attribute for the -addrdiscovery parameter is set to reportlun and the associated volume group is of type scsimap256. -dev storage_image_ID (Optional). Specifies the storage image ID, which includes manufacturer, machine type, and serial number. The storage image ID is required if you do not specify a fully qualified volume ID, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. For DS8000, example: IBM.2107-75FA120 -hosttype host_type (Optional) Use this parameter as an alternative method for specifying the type of Volume Group. Note: You cannot use this parameter with the -type parameter. -type | scsimask | scsimap256 | os400mask (Optional). Specifies the type of the volume group. scsimask (default) Creates a SCSI mask volume group. This option is available if the host adapter supports four-byte LUN addresses. scsimap256 Creates a SCSI-MAP 256 volume group. os400mask Creates an OS400 mask volume group. The IBM System i host system typically uses fixed block volumes of 520-byte logical block size. This option is available only if the host adapter supports four-byte LUN addresses.
| | | | |
545
Note: This volume group is also referred to as SCSI520-MASK. When an error message is displayed for the OS400 MASK, SCSI520-MASK is referenced instead. Note: You cannot use this parameter with the -type parameter. -volume volume_ID | . . . (Optional). Specifies the array of volume IDs to include in the volume group. For the -type scsimap256 parameter, the array cannot exceed 256 volume ID entries. Otherwise, up to 64 384 entries are allowed. The volume ID is a 32-bit number that can be represented as 4 hexadecimal digits in the form of XYZZ where: X (for DS6000 and DS8000 models) Specifies the address group, 0 - 1 for DS6000 and 0F for DS8000. XY (for a DS8000 model) Specifies the logical subsystem number, 00 - FE. XY (for a DS6000 model) Specifies the logical subsystem number, 00 - 1E. ZZ (for DS6000 and DS8000 models) Specifies the volume number, 00 - FF. To specify a range of volume IDs, separate the volume IDs with a dash (). You must separate multiple volume IDs or ranges of volume IDs with a comma between each ID or range of IDs. Example: 0100-010F,0180-018F,0120 -lun lun_ID (Optional)Specifies the LUN ID in hexadecimal value (00 - FF) which is mapped to the specified volume ID for a SCSI-MAP256 type volume group. If multiple volume IDs are specified by the -volume parameter, LUN IDs are assigned consecutively in incremental order. Note: This parameter is only valid for a SCSI-MAP 256 type volume group. If this parameter is specified for any other type of volume group, the command fails. Volume_Group_Name | (Required). Specifies the volume group name, not to exceed 16 characters. Ensure that the name is unique within the scope of the storage image. Accepts a fully qualified volume group name or a shortened version, if the -dev parameter is specified. If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode.
Example
You can issue the mkvolgrp command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model the storage image ID is different. Invoking the mkvolgrp command
dscli>mkvolgrp -dev IBM.2107-75FA120 -volume 0000-000F host_xyz_volumes
546
rmvolgrp
The rmvolgrp command deletes existing volume groups from a storage image.
rmvolgrp -dev storage_image_ID -quiet - Volume_Group_ID . . .
Parameters
-dev storage_image_ID (Optional). Specifies the storage image ID, which consists of manufacturer, machine type, and serial number. The storage image ID is required if you do not specify a fully qualified volume group ID, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. For DS8000, example: IBM.2107-75FA120 -quiet (Optional). Specifies that confirmation prompt for this command be turned off. Volume_Group_ID . . . | (Required). Specifies an array of one or more volume groups IDs to be deleted. All volume groups specified must belong to the same storage unit. This parameter also accepts a fully qualified volume group ID, which consists of the storage image ID, or a shortened version without the storage image ID if the -dev parameter is specified. The shortened version is a four-digit decimal number with no leading zeroes, prefixed with the letter V. To specify a range of volume group IDs, separate the volume group IDs with a dash (-). You must separate multiple volume group IDs or ranges of volume group IDs with a blank space between each ID or range of IDs. If you use the dash (-), the specified value is read from standard input. However, you cannot use the dash (-) while you are in the DS CLI interactive command mode. Example of -dev parameter use If you specify the -dev parameter, you can use the shortened version of the Volume_Group_ID parameter as follows: For DS8000,
dscli>rmvolgrp -dev IBM.2107-75FA120 V11
| | | | |
If you do not specify the -dev parameter and you specify the Volume_Group_ID parameter, you must use the fully qualified version of the volume group ID as follows: For DS8000,
dscli>rmvolgrp IBM.2107-75FA120/V11
547
Example
You can issue the rmvolgrp command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model the storage image ID is different. Invoking the rmvolgrp command
dscli>rmvolgrp IBM.2107-75FA1243/V123
showvolgrp
The showvolgrp command displays detailed properties of a volume group.
showvolgrp -dev storage_image_ID -lunmap Volume_Group_ID -
Parameters
-dev storage_image_ID (Optional). Specifies the storage image ID, which consists of manufacturer, machine type, and serial number. The storage image ID is required if you do not specify a fully qualified volume group ID, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. For DS8000, example: IBM.2107-75FA120 -lunmap (Optional). Specifies that a LUN mapping table be displayed that shows the volume ID and LUN ID relationship. This parameter is valid for all scsi and os400 type volume groups. Volume_Group_ID | (Required). Specifies that the properties be displayed for the specified volume group. This parameter accepts a fully qualified volume group ID, which consists of the storage image ID, or a shortened version without the storage image ID if the -dev parameter is specified. The shortened version is a four-digit decimal number with no leading zeros, prefixed with the letter V. Examples of -dev parameter use If you specify the -dev parameter, you can use the shortened version of the Volume_Group_ID parameter as follows: For DS8000,
dscli>showvolgrp -dev IBM.2107-75FA120 V11
| | | | |
where V11 represents value for the volume group ID. If you do not specify the -dev parameter, and you specify the Volume_Group_ID parameter, you must specify the fully qualified version of the Volume_Group_ID parameter as follows: For DS8000,
548
dscli>showvolgrp
IBM.2107-75FA120/V11
If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode.
Example
You can issue the command name command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model the storage image ID is different. For this command and all other DS CLI show commands, the results are shown in table format to provide clarity. The actual reports do not display as tables. The following tables represent the headers that are displayed on the output reports that are associated with the showvolgrp command. A separate example is not shown for the DS6000 because the information is the same for both. Note: The volume group type determines the format of the LUN ID that is reported. The following examples demonstrate these differences. Invoking the showvolgrp command where the volume group type is SCSI MAP 256
dscli>showvolgrp -lunmap IBM.2107-1300861/V2
============================LUN Mapping=========================== vol 1000 1001 1002 1003 1004 1005 1006 1007 lun 00 01 02 03 04 05 06 07
Invoking the showvolgrp command where the volume group type is SCSI Mask
dscli>showvolgrp -lunmap IBM.2107-1300861/V18
549
Name myVG1
ID V18
Type SCSIMask
============================LUN Mapping=========================== vol 1000 1001 1002 1003 1004 1005 1006 1007 lun 40104000 40104001 40104002 40104003 40104004 40104005 40104006 40104007
vol (part of LUN mapping table) Specifies the volume ID. lun (part of LUN mapping table) Specifies the LUN ID that is mapped to the designated volume ID. As noted in the examples, the LUN IDs can be different based on volume group type.
550
clearvol
The clearvol command clears Copy Services relationships for a base logical volume.
clearvol -dev storage_image_ID -pprcsource -pprctarget -fcsource
-fctarget
Volume_ID -
Parameters
-dev storage_image_ID (Optional). Specifies the storage image ID, which consists of manufacturer, machine type, and serial number. The storage image ID is required if you do not specify a fully qualified volume ID, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. -pprcsource (Optional). This parameter is used with a base logical volume. It removes any remote mirror and copy relationships on the logical volume where the specified logical volume operates as a remote mirror and copy source. -pprctarget (Optional). This parameter is used with a base logical volume. It removes any remote mirror and copy relationships on the logical volume where the specified logical volume operates as a remote mirror and copy target. -fcsource (Optional). This parameter is used with a base logical volume. It removes any FlashCopy relationships on the logical volume where the specified logical volume operates as a FlashCopy source. -fctarget (Optional). This parameter is used with a base logical volume. It removes any FlashCopy relationships on the logical volume where the specified logical volume operates as a FlashCopy target. Volume_ID | (Required). Specifies the volume ID where Copy Services relationships are to be cleared. This parameter accepts a fully qualified volume ID, which includes the storage image ID or a shortened version, if the -dev parameter is specified. The volume ID is a 32 bit number that can be represented as 4 hexadecimal digits in the form of XYZZ where: X (for DS6000 and DS8000 models) Specifies the address group, 0 - 1 for DS6000 and 0F for DS8000. XY (for a DS8000 model) Specifies the logical subsystem number, 00 - FE. XY (for a DS6000 model) Specifies the logical subsystem number, 00 - 1E. ZZ (for DS6000 and DS8000 models) Specifies the volume number, 00 - FF.
| | | | |
551
If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode. For DS8000, example: IBM.2107-75FA120/0001
Example
You can issue the clearvol command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model the storage image ID is different. Invoking the clearvol command
dscli>clearvol -dev IBM.2107-75FA120 0001
lsvolinit
| | |
lsvolinit -dev storage_image_ID -s -l
The lsvolinit command displays a list of fixed block volumes, either newly created or resized, that are still initializing in the ESS image. CKD volumes are not displayed. This command is not supported on DS6000 models.
volume_ID . . . -
Parameters
Note: If trackstoinit reaches zero, the initialization is complete and the volume is no longer listed with this command -dev storage_image_ID (Optional). Specifies the storage image ID, which consists of manufacturer, machine type, and serial number. Displays only the objects for the storage unit that is specified. The storage image ID is required if you do not specify a fully qualified volume ID, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. -s -l (Optional). Use this parameter to display only the volume ID. You cannot use the -s and the -l parameters together. (Optional). Use this parameter to display the default output and additional attributes that are identified as long output. You cannot use the -l and the -s parameters together.
| | | | |
volume_ID . . . | (Required). Specifies the IDs of the volumes that you want to query. You must separate multiple volume IDs or ranges of volume IDs with a blank space between each ID or range of IDs. If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode.
552
Example
For this command and all other DS CLI list commands, the results are shown in table format to provide clarity. The actual reports do not display as tables. The following table represents the headers that are displayed on the output report that is associated with the lsvolinit command using the -l parameter. Invoking the lsvolinit command
dscli>lsvolinit -dev IBM.2107-75FA120 -l 0100-0101
Validation Required Indicates that the volume cannot be queried due to temporary microcode conditions. Issuing the query again, after a short interval, should solve the condition. Volume Inaccessible Indicates that the volume cannot be accessed (usually because it is in a fenced state) and the query failed. Invalid Indicates that a general internal error occurred during the processing of the query. Note: If the state is anything other than Valid, then all other columns, except ID, are reported as null (-). TracksToInit Specifies the number of tracks that are not yet initialized. The maximum value that can be displayed is dependent on the volume size.
553
v v v v
The chsestg command modifies the space-efficient attributes in an extent pool. The lssestg command generates a report that displays the space-efficient storage values for the entire storage image. The mksestg command creates space-efficient storage in an extent pool. The rmsestg command deletes space-efficient storage from an extent pool. The showsestg command generates a report that displays detailed properties of the space-efficient storage for an individual extent pool.
mksestg
The mksestg command creates space-efficient storage in an existing extent pool. This command is not supported on DS6000 models. |
mksestg -dev storage_image_ID -extpool extentpool_ID -captype gb blocks cyl mod1
-vircap
Parameters
-dev storage_image_ID (Optional) Specifies the storage image ID, which consists of a value for manufacturer, machine type, and serial number. The storage image ID is required if you do not specify a fully qualified extent pool ID, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. -extpool extentpool_ID (Required) Specifies the extent pool where you want to create space-efficient storage. This parameter accepts a fully qualified extent pool ID, which consists of the storage image ID or a shortened version without the storage image ID, if the -dev parameter is specified. The extent pool number is a four-digit decimal number with no leading zeros, prefixed with the letter P. Even numbered extent pools are associated with rank group 0. Odd numbered extent pools are associated with rank group 1. | -captype gb | blocks | cyl | mod1 (Optional) Specifies the unit type of the virtual and repository capacities. The following values are specified for each of these unit types:
| | | | |
554
| | | | | | |
v gb is used to specify binary gigabytes. 1 GiB = 1 073 741 824 bytes. This type is the default for fixed block storage when the parameter -captype is not specified. v blocks is used only with fixed block storage. 2 097 152 blocks is equivalent to 1 GiB. v cyl is used only with CKD storage. 1263.28 cylinders is equivalent to 1 GiB. v mod1 is used only with CKD storage, and it is the default for CKD extent pools. 1113 cylinders is equivalent to 1 Mod1. -vircap capacity (Required) Specifies the amount of virtual capacity that can be allocated to space-efficient logical volumes. All capacities must be designated as whole numbers. The capacity units are specified by the -captype flag. Note: Beginning with Release 3.1, the DS8000 model requires that the ratio of virtual capacity to repository capacity be at least 2 to 1. -repcapthreshold repository_threshold_percentage (Optional) Specifies the minimum threshold percentage of the physical repository capacity that is currently available. When the percentage of the currently available repository capacity is less than this minimum percentage, notifications are sent and the repository capacity status is reported as exceeded. The default value is zero. Notes: 1. There are three thresholds for the repository that generate notifications when their thresholds amounts are attained. Two of the three thresholds are set by the system and cannot be changed. They are set to 0% (completely full) and 15% (85% full). The third threshold is the user-defined threshold that is set here, and the repository capacity status is based on this threshold. When any of the three thresholds have attained a threshold amount, notifications are sent every five minutes. You must free capacity in the repository to stop the notifications. If the user-defined threshold is equal to one of the other two fixed thresholds, only one notification is sent every five minutes when that threshold attains a threshold amount. 2. To verify that your storage complex is set up to send notifications, use the showsp command. If it is not set up, use the chsp command to set up notifications. -repcap capacity (Required if you do not specify -reppercent) Specifies the amount of real capacity that is needed to allocate virtual capacity for space-efficient logical volumes. All capacities must be designated as whole numbers. The capacity units are specified by the -captype parameter. The minimum value that you can designate for each unit type is as follows: v gb = 16 GiB v blocks = 33 554 432 blocks, which is equivalent to 16 GiB. v cyl = 16740 cylinders. v mod1 = 16 mod1 units. You cannot specify the -repcap and -reppercent parameters at the same time. -reppercent percentage (Required if you do not specify -repcap) Specifies the amount of physical capacity that you must designate to allocate the virtual capacity of the
Chapter 12. Command-line interface commands
| | | | | |
555
space-efficient storage volumes. This value is specified as a percentage of virtual capacity in the range of 0 - 100%. You cannot specify the -reppercent and -repcap parameters together. Note: Beginning with Release 3.1, the DS8000 model requires that the ratio of virtual capacity to repository capacity be at least 2 to 1. This means that the effective maximum percentage is 50%.
Example
Invoking the mksestg command to create space-efficient storage in an extent pool.
dscli>mksestg -dev IBM.2107-75FA120 -extpool P101 -captype gb -vircap 32 -repcap 16
chsestg
The chsestg command changes the space-efficient storage attributes for an extent pool. This command is not supported on DS6000 models.
chsestg -dev extentpool_ID - storage_image_ID -repcapthreshold repository_threshold_percentage
Parameters
-dev storage_image_ID (Optional) Specifies the storage image ID, which consists of a value for manufacturer, machine type, and serial number. The storage image ID is required if you do not specify a fully qualified ID for the extent pool ID, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. -repcapthreshold repository_threshold_percentage (Optional) Specifies the minimum threshold percentage of the physical repository capacity available. When the percentage of the currently available repository capacity is less than this minimum percentage, notifications are sent and the repository capacity status is reported as exceeded. Notes: 1. There are three thresholds for the repository that generate notifications when their thresholds amounts are attained. Two of the three thresholds are set by the system and cannot be changed. They are set to 0% (completely full) and 15% (85% full). The third threshold is the user-defined threshold that is set here, and the repository capacity status is based on this threshold. When any of the three thresholds have attained a threshold amount, notifications are sent every five minutes. You must free capacity in the repository to stop the notifications. If the user-defined threshold is equal to
| | | | |
556
one of the other two fixed thresholds, only one notification is sent every five minutes when that threshold attains a threshold amount. 2. To verify that your storage complex is set up to send notifications, use the showsp command. If it is not set up, use the chsp command to set up notifications. extentpool_ID | (Required) Specifies the ID of the space-efficient storage extent pool that you want to change. This parameter accepts either a fully qualified extent pool ID or a shortened version if the -dev parameter is used. The shortened version is a four-digit decimal number with no leading zeros, prefixed with the letter P. If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode.
Example
Invoking the chsestg command to modify space-efficient storage in an extent pool.
dscli>chsestg -dev IBM.2107-75FA120 repcapthreshold 75 P2
rmsestg
The rmsestg command deletes the space-efficient storage in an extent pool. This command is not supported on DS6000 models.
rmsestg -dev storage_image_ID -quiet - extentpool_ID . . .
Parameters
-dev storage_image_ID (Optional) Specifies the storage image ID, which consists of a value for manufacturer, machine type, and serial number. The storage image ID is required if you do not specify a fully qualified ID for the extent pool ID, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. -quiet (Optional) Specifies that the system turns off the confirmation prompt for this command. extentpool_ID | . . . | (Required) Specifies the IDs of one or more extent pools that you want to delete the space-efficient storage from. A fully qualified extent pool ID is accepted, which consists of the storage image ID or a shortened version without the storage image ID if the -dev parameter is specified. The shortened version is a four-decimal digit number with no leading zeroes, prefixed with the letter P.
| | | | |
557
To specify a range of extent pool IDs, separate the extent pool IDs with a hyphen. You must separate multiple extent pool IDs or ranges of extent pool IDs with a blank space between each ID or range of IDs. If you use the dash (-), the specified value is read from standard input. Note: You cannot use the dash (-) while you are in the DS CLI interactive command mode.
Example
Invoking the rmsestg command to create space-efficient storage in an extent pool.
dscli>rmsestg -dev IBM.2107-75FA120 P2
lssestg
The lssestg command displays a list of the track space-efficient storage in the storage unit. This command is not supported on DS6000 models.
lssestg -dev storage_image_ID -s -l -percent extentpool_ID . . . -
Parameters
-dev storage_image_ID (Optional) Specifies the storage image ID, which consists of a value for manufacturer, machine type, and serial number. The storage image ID is required if you do not specify a fully qualified extent pool ID, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. -s (Optional) Specifies that you want the system to display only the extent pool IDs of the extent pools that contain space-efficient storage. You cannot use the -s and the -l parameters together. (Optional) Specifies that you want the system to display all the information that is associated with the extent pools that contain space-efficient storage. You cannot use the -l and the -s parameters together.
| | | | |
-l
-percent (Optional) Specifies that the repcapalloc and vircapalloc values be displayed in percentages rather than binary gigabyte or Mod1 units.
558
Note: In some versions of the DS CLI, the displayed percentages for the repcapalloc and vircapalloc values used one decimal place. However, because internal percentage calculations only use whole numbers, the decimal place has been removed. extentpool_ID | . . . | (Optional) Specifies the IDs of one or more extent pools that you want the system to display the space-efficient storage details for. A fully qualified extent pool ID is accepted, which consists of the storage image ID, or a shortened version without the storage image ID if the -dev parameter is specified. The shortened version is a four-decimal digit number with no leading zeros, prefixed with the letter P. To specify a range of extent pool IDs, separate the extent pool IDs with a hyphen. You must separate multiple extent pool IDs or ranges of extent pool IDs with a blank space between each ID or range of IDs. If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode.
Example
For this command and all other DS CLI list commands, the results are shown in table format to provide clarity. The actual reports do not display as tables. The following table represents the headers that are displayed on the output report that is associated with the lssestg command using the -l parameter. Invoking the lssestg command to display track space-efficient storage in a storage unit.
dscli>lssestg -dev IBM.2107-75FA120 -l
| | | | | | | | | | | |
extpool P1 P2 P10
stgtype ckd fb fb
559
Stgtype Identifies the storage type. The value that is displayed is either fb (fixed block) or ckd (count key data). Datastate One of the following data states are displayed: Normal Indicates that the space-efficient storage state is normal and that none of the other data states apply. Pinned Indicates that none of the other data states apply and that there are logical tracks that are present or at least identified in NVS or cache that cannot be destaged for one reason or another. Read only Indicates that the logical volume is read only because one or more extents on the logical volume are on a rank in the read only data state. Inaccessible Indicates that one or more extents that are associated with the logical volume are on a rank that is in the inaccessible data state. Indeterminate data loss Indicates that the following data states do not apply and that one of the following conditions has occurred: Data states that do not apply: v Rank failed v Rank repairing v Rank repaired v Global inaccessible v Global lost data Conditions - one of the following occurred: v Committed write data was lost before it was destaged and the track identifiers that are associated with the data are unknown. v Data has been lost that indicates that extents on the logical volume were active FlashCopy targets. Rank failed Indicates that one or more extents that are associated with the logical volume are on a rank that is in the Failed data state. This data state transitions to the Rank repairing state if the rank transitions to the Rank repairing state through use of the repair array function. Rank Repairing Indicates that one or more extents that are associated with the logical volume are on ranks in the repairing data state. Rank Repaired Indicates that one or more extents that are associated with the logical volume are on ranks that were in the repairing state, but are not in the repairing state now. Global inaccessible Indicates that the global metadata that is associated with the logical volume configuration is inaccessible. Some of the data associated with the logical volume might be inaccurate.
560
Global lost data Indicates that global metadata that is associated with the logical volume configuration has been lost. As a result, some of the data associated with the logical volume might be inaccurate. NVS data inaccessible Indicates that active NVS data is inaccessible for one or more logical volumes of an LSS group. The logical volumes in the LSS group cannot be made accessible. Extent fault Indicates that none of the other states apply and a logical volume needs virtual space converted to real space, but the space was not available. So the subsequent writes fail until the space becomes available. Configstate One of the following configuration states are displayed: Normal Indicates that there are no track space-efficient storage configuration operations in progress. Configuring Indicates that track space-efficient storage is in the process of being configured for the first time. Configuration pending Indicates that there is an initial configuration for track space-efficient storage is in the queue. Configuration error Indicates that the initial configuration did not complete successfully. This state reflects an internal error condition and not an error in the request to create the track space-efficient storage. Corrective action: Use the rmsestg command to delete each track in the space-efficient storage that is listed with the configuration state of configuration error. Configuration pending error Indicates that the request for initial configuration for track space-efficient storage to be in the queue did not complete successfully. Reconfiguration error Indicates that the reconfiguration request did not complete successfully. Migration error Indicates that the dynamic volume relocation operation was ended during processing. Configuration out-of-synch Indicates that there are internal inconsistencies for the configuration state of the space-efficient storage. Deconfiguring Indicates that the track space-efficient storage is in the process of being deleted. Deconfiguration error Indicates that a request to delete track space-efficient storage did not complete successfully. This state reflects an internal error condition and not an error in the request to remove the volume. To correct this state,
Chapter 12. Command-line interface commands
561
you must reissue the rmsestg command for the track in the space-efficient storage that is listed with the configuration state of deconfiguration error. Unknown Indicates that the configuration state of the space-efficient storage cannot be determined due to an internal error. Partial - No physical space Indicates that the space-efficient storage has an internal error. This state indicates that the virtual space is defined, but not the physical space. Partial - No virtual space Indicates that the space-efficient storage has an internal error. This state indicates that the physical space is defined, but not the virtual space. Repcapstatus Indicates the status of the repository capacity. One of the following three values is displayed: below The repository capacity available (repcap - repcapalloc), as a percentage of total repository capacity (repcap) is greater than the repository capacity threshold. exceeded The repository capacity available is less than the repository capacity threshold. full | | | | | | | | | | | The repository capacity available is zero.
Repcap(GiB/Mod1) Indicates the total physical repository capacity in the format of X.Y where, for fixed block volumes, X is a whole GiB (1 binary gigabyte) and Y represents tenths of a GiB, and is limited to a single digit (0 - 9). For CKD volumes, the Mod1 capacity (1 Mod1 = 1113 cylinders) is displayed, where X is a whole Mod1, and Y represents tenths of a Mod1. Vircap Indicates the total virtual capacity in the format of X.Y where, for fixed block volumes, X is a whole GiB (1 binary gigabyte) and Y represents tenths of a GiB, and is limited to a single digit (0 - 9). For CKD volumes, the Mod1 capacity (1 Mod1 = 1113 cylinders) is displayed, where X is a whole Mod1, and Y represents tenths of a Mod1. Repcapalloc Indicates the track space-efficient storages allocated physical repository capacity used from the available repository capacity as a result of writes to the space-efficient volume. Displayed in the format of X.Y where, for fixed block volumes, X is a whole GiB (1 binary gigabyte) and Y represents tenths of a GiB, and is limited to a single digit (0 - 9). For CKD volumes, the Mod1 capacity (1113 cylinders) is displayed, where X is a whole Mod1, and Y represents tenths of a Mod1. If the -percent parameter is specified, the percent of total allocated physical repository is displayed in the format of a whole number with % (for example, 12%). Vircapalloc Indicates the track space-efficient storages allocated virtual capacity, that is to say, the amount of virtual capacity already defined as space-efficient volumes. Displayed in the format of X.Y where, for fixed block volumes, X is a whole GiB (1 binary gigabyte) and Y represents tenths of a GiB, and is
| | | | |
| |
562
| | |
limited to a single digit (0 - 9). For CKD volumes, the Mod1 capacity (1113 cylinders) is displayed, where X is a whole Mod1, and Y represents tenths of a Mod1. If the -percent parameter is specified, the percent of total virtual capacity that is defined as space-efficient volumes is displayed in the format of a whole number with % (for example, 12%).
showsestg
The showsestg command displays a detailed properties report of the space-efficient storage of an individual extent pool. This command is not supported on DS6000 models.
showsestg -dev storage_image_ID extentpool_ID -
Parameters
-dev storage_image_ID (Optional) Specifies the storage image ID, which consists of a value for manufacturer, machine type, and serial number. The storage image ID is required if you do not specify a fully qualified extent pool ID, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. extentpool_ID | (Required) Specifies the ID of the extent pool that you want to query for the space-efficient storage values. A fully qualified extent pool ID is accepted, which consists of the storage image ID, or a shortened version without the storage image ID if the -dev parameter is specified. The shortened version is a four-decimal digit number with no leading zeros, prefixed with the letter P. If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode.
| | | | |
Example
For this command and all other DS CLI show commands, the results are shown in table format to provide clarity. The actual reports do not display as tables. Invoking the showsestg command to show space-efficient storage in an extent pool.
dscli>showsestg -dev IBM.2107-75FA120 P1
563
| | | | | | | | | | |
%repcapthreshold 0
repcap(GiB) 16.8
repcap(blocks) -
repcap(cyls) 21 200
vircap(blocks) -
vircap(cyl) 42 400
564
volume are on a rank that is in the Failed data state. This data state transitions to the Rank repairing state if the rank transitions to the Rank repairing state through use of the repair array function. Rank Repairing Indicates that one or more extents that are associated with the logical volume are on ranks in the repairing data state. Rank Repaired Indicates that one or more extents that are associated with the logical volume are on ranks that were in the repairing state, but are not in the repairing state now. Global inaccessible Indicates that the global metadata that is associated with the logical volume configuration is inaccessible. Some of the data that is associated with the logical volume might be inaccurate. Global lost data Indicates that global metadata that is associated with the logical volume configuration has been lost. As a result, some of the data that is associated with the logical volume might be inaccurate. NVS data inaccessible Indicates that active NVS data is inaccessible for one or more logical volumes of an LSS group. The logical volumes in the LSS group cannot be made accessible. Extent fault Indicates that none of the other states apply and a logical volume needs virtual space converted to real space, but the space was not available. So the subsequent writes fail until the space becomes available. Configstate One of the following configuration states are displayed: Normal Indicates that there are no track space-efficient storage configuration operations in progress. Configuring Indicates that track space-efficient storage is in the process of being configured for the first time. Configuration pending Indicates that there is an initial configuration for track space-efficient storage is in the queue. Configuration error Indicates that the initial configuration did not complete successfully. This state reflects an internal error condition and not an error in the request to create the track space-efficient storage. Corrective action: Use the rmsestg command to delete each track in the space-efficient storage that is listed with the configuration state of configuration error. Configuration pending error Indicates that the request for initial configuration for track space-efficient storage to be in the queue did not complete successfully.
565
Reconfiguration error Indicates that the reconfiguration request did not complete successfully. Migration error Indicates that the dynamic volume relocation operation was ended during processing. Configuration out-of-synch Indicates that there are internal inconsistencies for the configuration state of the space-efficient storage. Deconfiguring Indicates that the track space-efficient storage is in the process of being deleted. Deconfiguration error Indicates that a request to delete track space-efficient storage did not complete successfully. This state reflects an internal error condition and not an error in the request to remove the volume. To correct this state, you must reissue the rmsestg command for the track in the space-efficient storage that is listed with the configuration state of deconfiguration error. Unknown Indicates that the configuration state of the space-efficient storage cannot be determined due to an internal error. Partial - No physical space Indicates that the space-efficient storage has an internal error. This state indicates that the virtual space is defined, but not the physical space. Partial - No virtual space Indicates that the space-efficient storage has an internal error. This state indicates that the physical space is defined, but not the virtual space. Repcapstatus Indicates the status of the repository capacity. One of the following 3 values is displayed: below The repository capacity available (repcap - repcapalloc), as a percentage of total repository capacity (repcap) is greater than the repository capacity threshold. exceeded The repository capacity available is less than the repository capacity threshold. full Indicates that the repository capacity available is zero.
%repcapthreshold Specifies the minimum threshold percentage of the physical repository capacity available. When the percentage of the currently available repository capacity is less than this minimum percentage, notifications are sent and the repository capacity status is reported as exceeded. The default value is zero. Notes: 1. There are three thresholds for the repository that generate notifications when their thresholds are crossed. Two of the three thresholds are set by the system and cannot be changed. They are set to 0% (completely full) and 15% (85% full). The third threshold is the user-defined threshold that is set here, and the
566
repository capacity status is based on this threshold. When any of the three thresholds have attained a threshold amount, notifications are sent every five minutes. You must free capacity in the repository to stop the notifications. If the user-defined threshold is equal to one of the other two fixed thresholds, only one notification is sent every five minutes when that threshold attains a threshold amount. 2. To verify that your storage complex is set up to send notifications, use the showsp command. If it is not set up, use the chsp command to set up notifications. | | | | | | | | | | | Repcap (GiB) Indicates the total physical repository capacity in the format of X.Y, where, for fixed block volumes, X is a whole GiB (1 binary gigabyte) and Y represents tenths of a GiB, and is limited to a single digit (0 - 9). Repcap (Mod1) Indicates the total physical repository capacity for CKD in the format of X.Y, where X is a whole Mod1 unit (1113 cylinders) and Y represents tenths of a Mod1 unit, and is limited to a single digit (0 - 9). A value is displayed if the storage is for CKD, otherwise, a null (-) value is displayed if the storage is for fixed block. Repcap (blocks) Indicates the total physical repository capacity in blocks. A value is displayed if the storage is for fixed block, otherwise, a null (-) value is displayed if the storage is for CKD. Repcap (cyl) Indicates the total physical repository capacity in cylinders. A value is displayed if the storage is for CKD, otherwise, a null (-) value is displayed if the storage is for fixed block. Repcapalloc (GiB/Mod1) Indicates the allocated physical repository capacity of the track space-efficient storage from the available repository capacity as a result of writes to the space-efficient volume. This value is displayed in the format of X.Y, where, for fixed block volumes, X is a whole GiB (1 binary gigabyte) and Y represents tenths of a GiB, and is limited to a single digit (0 - 9). For CKD volumes, X is a whole Mod1 unit (1113 cylinders) and Y represents tenths of a Mod1 unit, and is limited to a single digit (0 - 9). %repcapalloc Indicates the allocated virtual capacity of the track space-efficient storage; that is, the amount of virtual capacity that is already defined as a percentage. Note: In some versions of the DS CLI, the displayed percentage for the repcapalloc value used one decimal place. However, because internal percentage calculations only use whole numbers, the decimal place has been removed. | | | | | Vircap (GiB) Indicates the total virtual capacity in the format of X.Y, where X is whole binary gigabyte (1 GiB=2^30B) and Y represents tenths of a GiB, and is limited to a single digit (0 - 9). Vircap (Mod1) Indicates the total virtual capacity in the format of X.Y, where X is a whole Mod1 unit (1113 cylinders) and Y represents tenths of a Mod1 unit, and is
Chapter 12. Command-line interface commands
| | | |
567
| | | |
limited to a single digit (0 - 9). A value is displayed if the storage is for CKD, otherwise, a null (-) value is displayed if the storage is for fixed block. Vircap (blocks) Indicates the total virtual capacity in blocks. A value is displayed if the storage is for fixed block, otherwise, a null (-) value is displayed if the storage is for CKD. Vircap (cyl) Indicates the total virtual capacity in cylinders. A value is displayed if the storage is for CKD, otherwise, a null (-) value is displayed if the storage is for fixed block. Vircapalloc (GiB/Mod1) Indicates the allocated virtual capacity of the track space-efficient storage; that is, the amount of virtual capacity that is already defined as space-efficient volumes. Displayed in the format of X.Y, where, for fixed block volumes, X is a whole GiB (1 binary gigabyte) and Y represents tenths of a GiB, and is limited to a single digit (0 - 9). For CKD volumes, X is a whole Mod1 unit (1113 cylinders) and Y represents tenths of a Mod1 unit, and is limited to a single digit (0 - 9). %vircapalloc Indicates the space-efficient storage allocated virtual capacity as a percentage. Note: In some versions of the DS CLI, the displayed percentage for the vircapalloc value used one decimal place. However, because internal percentage calculations only use whole numbers, the decimal place has been removed.
| | | | |
Overhead (GiB/Mod1) Indicates the amount of physical space incurred to implement space-efficient storage.
FlashCopy commands
This section contains commands that are used to configure FlashCopy relationships and to display FlashCopy information. Use the following commands to configure FlashCopy relationships and to display FlashCopy information: v commitflash v resyncflash v v v v v lsflash mkflash reverseflash revertflash rmflash
568
v unfreezeflash v setflashrevertible The commitflash command completes a partially formed Global Mirror consistency group. It is used as part of the recovery from a disaster. The resyncflash command creates a point-in-time copy of an existing FlashCopy pair that was established with the -record and -persist parameters. The resyncflash command only copies the parts of the volume that have changed since the last point in time copy. The lsflash command generates a report that displays a list of FlashCopy relationships and the status information for each FlashCopy relationship in the list. The mkflash command initiates a point-in-time copy from source volumes to target volumes. The reverseflash command reverses the FlashCopy relationship. The revertflash command restores the former Global Mirror consistency group from one that is currently forming. It is used as part of the recovery from a disaster. The rmflash command removes a relationship between FlashCopy volume pairs. The unfreezeflash command resets a FlashCopy consistency group that was previously established with the -freeze parameter when the mkflash or resyncflash commands were issued. The setflashrevertible command modifies a FlashCopy volume pair that is part of a Global Mirror relationship to revertible. The revertible feature allows data to be committed to the target to form a new consistency group, or restored back to the last consistency group.
commitflash
The commitflash command is used as part of the recovery from a disaster scenario to complete a partially formed Global Mirror consistency group.
commitflash -dev source_volume_ID . . . - storage_image_ID -seqnum flash_sequence_num
Parameters
The following transactions must be completed before you can issue the commitflash command: 1. Issue the mkflash command with the -record and -persist parameters specified to establish the FlashCopy volume pair relationship. 2. Issue the setflashrevertible command on the FlashCopy volume pair. -dev storage_image_ID (Optional) Specifies the storage image ID, which includes manufacturer,
Chapter 12. Command-line interface commands
569
| | | | |
machine type, and serial number. The storage image ID is required if you do not specify a fully qualified ID for all source volumes, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. -seqnum flash_sequence_number (Optional) When a FlashCopy sequence number is specified, the commit operation is performed only on those relationships that are associated with the specified number. This parameter is not supported for machine type 2105. Example: 0010 source_volume_ID . . . | (Required) Specifies the source volumes for which FlashCopy relationships are to be committed. The chosen FlashCopy pair is the one established or modified with the -record parameter. This parameter accepts fully qualified volume IDs, which includes storage image IDs, or a shortened version without storage image IDs if either the -dev parameter is specified or you specify a value for the devid variable in your profile file. You must separate multiple source volume IDs with spaces. The volume ID is a 32-bit number that can be represented as 4 hexadecimal digits in the form of XYZZ where: X (for DS6000 and DS8000 models) Specifies the address group, 0 - 1 for DS6000 and 0F for DS8000. XY (for a DS8000 model) Specifies the logical subsystem number, 00 - FE. XY (for a DS6000 model) Specifies the logical subsystem number, 00 - 1E. ZZ (for DS6000 and DS8000 models) Specifies the volume number, 00 - FF. If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode. For DS8000, example of a fully qualified volume ID: IBM.2107-75FA120/0001 Example of a shortened version: 0001 Example of multiple IDs: 0001 0003 0008
Example
You can issue the commitflash command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model the storage image ID is different. Invoking the commitflash command
dscli>commitflash -dev IBM.2107-75FA120 0100
570
resyncflash
The resyncflash command is a point-in-time copy of an existing FlashCopy pair that was established with the -record and -persist parameters. The resyncflash command only copies the parts of the volume that have changed since the last point-in-time copy. When a pair is established with the -record and -persist parameters, the pair initially synchronizes and a record of all host write operations to the source is maintained in the source volumes. When the resyncflash command is issued on the FlashCopy pair, the new data that is written to the source is copied to the target. The parameters you specify in this command replace the parameters you previously specified for the existing relationship. To keep the -record and -persist parameters, you must specify these parameters in the resyncflash command.
resyncflash -dev storage_image_ID -tgtpprc -tgtoffline -tgtinhibit
-freeze
-record
-persist
-tgtse
-cp -nocp
-seqnum
flash_sequence_num
-pmir
no required preferred
source_volume_ID:target_volume_ID . . . -
Parameters
-dev storage_image_ID (Optional) Specifies the storage image ID, which consists of a manufacturer, machine type, and serial number. The storage image ID is required if you do not specify a fully ID for the source and target volumes, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. -tgtpprc (Optional) Allows the FlashCopy target volume to be a remote mirror and copy source volume. -tgtoffline (Optional) Rejects the resyncflash command if the target volume is online for host system access. This parameter applies only to count key data (CKD) volumes. -tgtinhibit (Optional) Prevents host system write operations to the target volume while the FlashCopy relationship exists. -freeze (Optional) Starts the queue full condition for the source volume. During the queue full condition, the source volume reports a status of long busy. All writes to the source volume are queued by the host and are written after the queue full condition is reset. The queue full condition is reset by an extended long busy timeout condition. The timeout condition affects all FlashCopy source volumes
Chapter 12. Command-line interface commands
| | | | |
571
that are contained within a respective logical subsystem and that are established or modified with this parameter. Note: Use the chlss and the chlcu commands to modify the extended long busy timeout setting. -record (Optional) Records the tracks that have changed on both volumes within a FlashCopy pair. Select this parameter when you establish an initial FlashCopy volume pair that you want to use with the resyncflash command. The -persist parameter is automatically selected when this parameter is selected. -persist (Optional) Retains the FlashCopy relationship after the background copy completes. The FlashCopy relationship between the source and the target volumes remains indefinitely until you issue a rmflash command. This parameter is automatically selected when the -record parameter is selected. Select this parameter along with the -record parameter if you want to use this volume pair with the resyncflash, reverseflash or setflashrevertible commands. -tgtse (Optional) This parameter is not supported on DS6000 models. Specifies that the target volume that you are designating for a FlashCopy relationship might be a space-efficient logical volume. An error message is generated if the target volume that you are using to create the FlashCopy relationship is a space-efficient volume and you do not specify this parameter. -nocp (Optional) Inhibits a background copy. Data is copied from the source volume to the target volume only if a track on the source volume is modified. The FlashCopy volume pair relationship remains indefinitely until it is broken by a rmflash command or until all tracks on the source volume are modified. When the -tgtse parameter is specified and neither the -cp nor the -nocp parameters are specified, the no background copy behavior is the default. Note: You cannot use the -nocp parameter with the -cp parameter in the same command. -cp (Optional) Starts a background copy. When the -tgtse parameter is not specified and neither the -cp nor the -nocp parameters are specified, the background copy behavior is the default. Note: You cannot use the -nocp parameter with the -cp parameter in the same command. -seqnum flash_sequence_num (Optional) This parameter is not supported for machine type 2105. Associates the FlashCopy relationships that are established with the specified sequence number. You can use this sequence number as an identifier for a relationship or group of relationships. An example sequence number is 00010. | | | | | -pmir no | required | preferred Specifies the IBM Remote Pair Copy option that you want to use. The IBM Remote Pair Copy option, sometimes called preserve mirror, preserves synchronous Metro Mirror pairs when the FlashCopy source and target volumes are both Metro Mirror primary volumes and both Metro Mirror
572
| | | | | | | | | | | | | | | | |
secondary volumes on the same storage unit. The FlashCopy operation is performed on both the local site and the remote site. This parameter is not supported on DS6000 models. no FlashCopy operations are not performed on the remote site. If the target volume is a Metro Mirror primary volume, the remote copy might temporarily change to the duplex pending state. no is the default if the -pmir parameter is not specified.
required FlashCopy operations do not change the state of the Metro Mirror primary volume pair to duplex pending. Both the source Metro Mirror volume pair and the target Metro Mirror volume pair must be in the full duplex state. preferred Uses the IBM Remote Pair Copy option for FlashCopy operations when possible. The IBM Remote Pair Copy option cannot be used if the configuration is not correct or the state of the volume is not supported with this function. source_volume_ID:target_volume_ID . . . | (Required) Increments a FlashCopy relationship for the source and target volume pairs with the specified IDs . This parameter accepts fully qualified volume IDs, which includes storage image IDs, or a shortened version without storage image IDs if the -dev parameter is specified or you specify a value for the devid variable in your profile file. You must separate multiple FlashCopy pair IDs with spaces. A FlashCopy pair ID consists of two volume IDs, one designated as the source and the other as the target volume for a FlashCopy relationship. You must separate the two volume IDs of a FlashCopy pair ID with a colon and no space. The first volume ID is the source volume. The second volume ID is the target volume. The volume ID is a 32-bit number that can be represented as 4 hexadecimal digits in the form of XYZZ, where: X (for DS6000 and DS8000 models) Specifies the address group, 0 - 1 for DS6000 and 0F for DS8000. XY (for a DS8000 model) Specifies the logical subsystem number, 00 - FE. XY (for a DS6000 model) Specifies the logical subsystem number, 00 - 1E. ZZ (for DS6000 and DS8000 models) Specifies the volume number, 00 - FF. If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode. For DS8000, an example of a fully qualified FlashCopy pair ID is IBM.2107-75FA120/0001:IBM.2107-75FA120/0004 An example of a shortened version is 0001:0004 An example of multiple pairs is 0001:0004 0003:00FF 0008:000C
573
Example
For DS6000 models, the storage image ID is different. An invocation example
dscli>resyncflash dev IBM.2107-75FA120 -freeze 0100:0200
lsflash
The lsflash command displays a list of FlashCopy relationships and status information for each FlashCopy relationship in the list.
lsflash -dev storage_image_ID -s -l -activecp -record -persist
-revertible
-cp
-tgtse
-state
-seqnum
flash_sequence_num
-retry
count[,interval]
source_volume_ID:target_volume_ID volume_ID -
. . .
Parameters
-dev storage_image_ID (Optional) Specifies the storage image ID, which includes manufacturer, machine type, and serial number. The storage image ID is required if you do not specify a fully qualified ID for the source and target volumes, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. -s -l (Optional) Displays FlashCopy pair IDs. You cannot use the -s and the -l parameters together. (Optional) Displays the default output plus additional attributes that are identified as long output. You cannot use the -l and the -s parameters together.
| | | | |
-activecp (Optional) Displays the FlashCopy relationships where their background copy process is active. Note: The background copy process might be inactive for a while before it starts.
574
-record (Optional) Displays the FlashCopy relationships that were established with the -record parameter. -persist (Optional) Displays the FlashCopy relationships that were established with the -persist parameter. -revertible (Optional) Displays the FlashCopy relationships that were established with the -revertible parameter. -cp (Optional) Displays the FlashCopy relationships that were established with the -cp parameter. | | | -tgtse (Optional) Displays the FlashCopy relationships that were established using the -tgtse (target space-efficient) parameter. This parameter is not supported on DS6000 models. -state valid | invalid | validation-required |volume-inaccessible | tgt-failed | not-valid (Optional) Displays the FlashCopy relationships that are identified by the specific state. Note: When you specify not-valid, all FlashCopy relationships that do not meet the requirements for the valid state are displayed. -seqnum flash_sequence_number (Optional) Displays the FlashCopy relationships that are associated with the specified sequence number. The default is 0000. Note: This parameter is not supported for machine type 2105. -retry count[,interval] (Optional) Specifies how you want the system to handle a validation-required state. The system currently handles a validation-required state as follows: v If there are one or more FlashCopy relationships, an immediate retry is initiated. In most cases, the reasons for the validation-required state are cleared by the time that the retry is processed and normal processing continues. v If the validation-required state still exists after the first retry, the system initiates 5 wait and retry cycles with a delay of 5 seconds between each cycle. At any time during these cycles, if the reasons for the validation-required state are cleared, normal processing continues. You can change how the system handles a validation-required state as follows: v Set the number of retries (count) to 0. When you set the number of retries to 0, it prevents the system from attempting any retries. v Set the number of retries to 1. The system performs an immediate retry if there are one or more FlashCopy relationships in the validation-required state. The 5-second delay is not initiated. v Set the number of retries to N, with N greater than 1. The system performs an immediate retry if there are one or more FlashCopy relationships in the validation-required state, followed by at least 1 wait and retry loop. The
575
default for N is 6. You can change the length of the 5-second default wait delay using the optional interval value. source_volume_ID:target_volume_ID | volume_ID . . . | (Required) Displays the FlashCopy relationships for the source and target volume pairs with the specified IDs, or displays the FlashCopy relationships for a single volume ID if the volume ID is specified. This parameter accepts fully qualified volume IDs, which includes the storage image IDs, or a shortened version without storage image IDs, if the -dev parameter is specified or you can specify a value for the devid variable in your profile file. A FlashCopy pair ID consists of two volume IDs, one designated as the source and the other as the target volume for a FlashCopy relationship. You must separate the two volume IDs of a FlashCopy pair ID with a colon and no space. The first volume ID is the source volume. The second volume ID is the target volume. The volume ID is a 32-bit number that can be represented as 4 hexadecimal digits in the form of XYZZ, where: X (for DS6000 and DS8000 models) Specifies the address group, 0 - 1 for DS6000 and 0F for DS8000. XY (for a DS8000 model) Specifies the logical subsystem number, 00 - FE. XY (for a DS6000 model) Specifies the logical subsystem number, 00 - 1E. ZZ (for DS6000 and DS8000 models) Specifies the volume number, 00 - FF. You must separate multiple IDs with spaces. You can specify FlashCopy pair IDs and a range of FlashCopy pair IDs, or you can specify volume IDs and a range of volume IDs. You cannot specify a combination of FlashCopy pair IDs and volumes IDs. If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode.
Example
You can issue the lsflash command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model, you cannot use the -tgtse parameter and the storage image ID is different. For this command and all other DS CLI list commands, the results are shown in table format to provide clarity. The actual reports do not display as tables. The following tables represent the headers that are displayed on the output report that is associated with the lsflash command using the -l parameter. Invoking the lsflash command
dscli>lsflash -dev IBM.2107-75FA120 -l 0100:0200 0101:0201 0102:0202 0103:0203
576
SrcLSS 01 01 01 01
SequenceNum 10 10 11 11
Timeout 60 60 60 60
| | | | | | | | | | | | | | | | |
OutOfSyncTracks
State Valid
AllowTgtSE
Pmir
Disabled Disabled 0
Disabled No
Enabled
Disabled Disabled 0
10/01 10/01 /2007 /2007 02:20:00 02:23:47 10/01 /2007 02:20:00 10/01 /2007 02:20:00 10/01 /2007 02:23:47 10/01 /2007 02:23:47
Valid
Disabled No
Enabled
Disabled Disabled 0
Valid
Disabled No
Enabled
Disabled Disabled 0
Valid
Disabled No
SrcLSS
| |
577
Revertible Specifies whether this FlashCopy relationship was established with the revertible option. SourceWriteEnabled Specifies whether this FlashCopy relationship was established with the allow source writes option. No value is displayed in the DS6000 models. TargetWriteEnabled Specifies whether this FlashCopy relationship was established with the allow target writes option. No value is displayed in the DS6000 models. BackgroundCopy Specifies whether this FlashCopy relationship was established with the run background copy option. No value is displayed in the DS6000 models. OutOfSyncTracks Specifies the number of tracks that are not synchronized for this FlashCopy relationship. The maximum value that can be displayed is dependent on the source volume size. No value is displayed in the DS6000 models. DateCreated Specifies the date and the time that the FlashCopy relationship was established. No value is displayed in the DS6000 models. DateSynced Specifies the date and time that FlashCopy relationship was synchronized, or specifies null (-) if the relationship is not synchronized. No value is displayed in the DS6000 models. State Specifies the state of the FlashCopy relationships. One of the following values is displayed for each FlashCopy relationship: Note: When a query indicates any state other than valid, the only information that is displayed on the report is the FlashCopy pair ID and the state condition. The rest of the information columns are displayed with a null (-) value. Valid Indicates that the FlashCopy relationship is in a normal state, and that it has been queried successfully.
Validation Required Indicates that the FlashCopy relationship cannot be queried. Generally, the reason that the query is blocked is only temporary. If you issue a new query within several seconds, the problem no longer exists. Tgt Failed Indicates that the FlashCopy relationship is in an error state. The point-in-time copy is lost, and the FlashCopy relationship must be withdrawn. You must issue the rmflash command to remove the FlashCopy relationship. Volume Inaccessible Indicates that the volume cannot be accessed and that the query has failed. When this state is displayed, it generally means that the volume is in a fenced condition. Invalid Indicates that a general internal error occurred when the query was processed.
578
Note: No value is displayed in the DS6000 models. AllowTgtSE Specifies Enabled for every FlashCopy relationship where you used the -tgtse parameter. Otherwise, the value is displayed as Disabled. Disabled is always displayed for a DS6000 model. | | | | | | | | | | | | | | | | | | | | | | | | | | | | Pmir The IBM Remote Pair Copy option preserves synchronous Metro Mirror pairs when the FlashCopy source volume and target volume are Metro Mirror primary volumes and the Metro Mirror secondary volumes are on the same storage unit. The FlashCopy operation is performed on both the local site and the remote site. This parameter is not supported on DS6000 models. No Indicates that the IBM Remote Pair Copy option was not specified.
Preferred Indicates that the IBM Remote Pair Copy option was specified. If the target is a Metro Mirror primary, then the FlashCopy function should preserve the Full Duplex mode of the target Metro Mirror relationship, if its possible. If the IBM Remote Pair Copy function is not possible, you can use processing defined for IBM Remote Pair Copy option of No. Required Indicates that the IBM Remote Pair Copy option was specified. If the target is a Metro Mirror primary, then the FlashCopy function is required to preserve the Full Duplex mode of the target Metro Mirror relationship. Processing will fail if the IBM Remote Pair Copy function is not possible. Remote Indicates that this is a remote FlashCopy relationship initiated by another FlashCopy established at the Metro Mirror primary site with an IBM Remote Pair Copy option of preferred or required. Unknown The IBM Remote Pair Copy relationship type can not be determined due to a conflict in the source or target Metro Mirror status.
mkflash
The mkflash command starts a point-in-time copy from source volumes to target volumes.
mkflash -dev storage_image_ID -tgtpprc -tgtoffline -tgtinhibit
-freeze
-record
-persist
-tgtse
-cp -nocp
-wait
-seqnum
flash_sequence_num
-pmir
no required preferred
579
source_volume_ID:target_volume_ID . . . -
Parameters
-dev storage_image_ID (Optional) Specifies the storage image ID, which consists of a manufacturer, machine type, and serial number. The storage image ID is required if you do not specify a fully qualified ID for the source and target volumes, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. For example, DS8000 models use IBM.2107-75FA120 -tgtpprc (Optional) Allows the FlashCopy target volume to be a remote mirror and copy source volume. -tgtoffline (Optional) Rejects the mkflash command if the target volume is online for host system access. This parameter applies only to count key data (CKD) volumes. -tgtinhibit (Optional) Prevents host system write operations to the target volume while the FlashCopy relationship exists. -freeze (Optional) Starts the queue full condition for the source volume. During the queue full condition, the source volume reports a status of long busy. All writes to the source volume are queued by the host and are written after the queue full condition is reset. The queue full condition is reset by an extended long busy timeout condition. The timeout condition affects all FlashCopy source volumes that are contained within a respective logical subsystem and that are established or modified with this parameter. Note: Use the chlss and the chlcu commands to modify the extended long busy timeout setting. -record (Optional) Records the tracks that have changed on both volumes within a FlashCopy pair. Select this parameter when you establish an initial FlashCopy volume pair that you want to use with the resyncflash command. The -persist parameter is automatically selected when this parameter is selected. -persist (Optional) Retains the FlashCopy relationship after the background copy completes. The FlashCopy relationship between the source and the target volumes remains indefinitely until you issue a rmflash command. This parameter is automatically selected when the -record parameter is selected. Select this parameter along with the -record parameter if you want to use this volume pair with the resyncflash, reverseflash or setflashrevertible commands. -tgtse (Optional) This parameter is not supported on DS6000 models. Specifies that the target volume that you are designating for a FlashCopy relationship might be a space-efficient logical volume. An error message is generated if the target
| | | | |
580
volume that you are using to create the FlashCopy relationship is a space-efficient volume and you do not specify this parameter. -nocp (Optional) Inhibits a background copy. Data is copied from the source volume to the target volume only if a track on the source volume is modified. The FlashCopy volume pair relationship remains indefinitely until it is broken by a rmflash command or until all tracks on the source volume are modified. When the -tgtse parameter is specified and neither the -cp nor the -nocp parameters are specified, the no background copy behavior is the default. Note: You cannot use the -nocp parameter with the -cp parameter in the same command. -cp (Optional) Starts a background copy. When the -tgtse parameter is not specified and neither the -cp nor the -nocp parameters are specified, the background copy behavior is the default. Note: You cannot use the -nocp parameter with the -cp parameter in the same command. -wait (Optional) This parameter is not supported on DS6000 models. Delays the command response until the background copy process is complete. Notes: 1. You cannot use the -wait parameter with either the -persist or the -nocp parameters. 2. You cannot use the -wait parameter when -tgtse is specified and neither the -cp nor the -nocp parameters are specified. No background copy behavior is the default. -seqnum flash_sequence_num (Optional) This parameter is not supported for machine type 2105. Associates the FlashCopy relationships that are established with the specified sequence number. You can use this sequence number as an identifier for a relationship or group of relationships. An example sequence number is 00010. | | | | | | | | | | | | | | | | | -pmir no | required | preferred Specifies the IBM Remote Pair Copy option that you want to use. The IBM Remote Pair Copy option, sometimes called preserve mirror, preserves synchronous Metro Mirror pairs when the FlashCopy source volume and target volume are Metro Mirror primary volumes and the Metro Mirror secondary volumes are on the same storage unit. The FlashCopy operation is performed on both the local site and the remote site. This parameter is not supported on DS6000 models. no FlashCopy operations are not performed on the remote site. If the target volume is a Metro Mirror primary volume, the remote copy might temporarily change to the duplex pending state. The default is no if the -pmir parameter is not specified.
required FlashCopy operations do not change the state of the Metro Mirror primary volume pair to duplex pending. Both the source Metro Mirror volume pair and the target Metro Mirror volume pair must be in the full duplex state.
Chapter 12. Command-line interface commands
581
| | | | |
preferred Uses the IBM Remote Pair Copy option for FlashCopy operations when possible. The IBM Remote Pair Copy option cannot be used if the configuration is not correct or the state of the volume is not supported with this function. source_volume_ID:target_volume_ID . . . | (Required) Establishes a FlashCopy relationship for the source and target volume pairs with the specified IDs. This parameter accepts fully qualified volume IDs, which consist of storage image IDs or a shortened version without storage image IDs, if the -dev parameter is specified. You can also specify a value for the devid variable in your profile file. You must separate multiple FlashCopy pair IDs with spaces. A FlashCopy pair ID consists of two volume IDs: one designated as the source and the other as the target volume for a FlashCopy relationship. You must separate the two volume IDs of a FlashCopy pair ID with a colon and no space. The first volume ID is the source volume. The second volume ID is the target volume. Note: You might receive an error message that indicates the number of relationships has been exceeded or that an initial volume format is in progress. This means that the FlashCopy relationship cannot be established because the maximum number of relationships have already been established. Or, the volume was recently created and is still being initialized to support FlashCopy processing. You can issue the mkflash command to establish the FlashCopy relationship after the initial volume format process is complete. The volume ID is a 32-bit number that can be represented as 4 hexadecimal digits in the form of XYZZ, where: X (for DS6000 and DS8000 models) Specifies the address group, 0 - 1 for DS6000 and 0 - F for DS8000. XY (for a DS8000 model) Specifies the logical subsystem number, 00 - FE. XY (for a DS6000 model) Specifies the logical subsystem number, 00 - 1E. ZZ (for DS6000 and DS8000 models) Specifies the volume number, 00 - FF. If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode. For DS8000, an example of a fully qualified FlashCopy pair ID is IBM.2107-75FA120/0001:IBM.2107-75FA120/0004 An example of a shortened version is 0001:0004 An example of multiple pairs is 0001:0004 0003:00FF 0008:000C
Example
For DS6000 models, the storage image ID is different. An invocation example
dscli>mkflash -dev IBM.2107-75FA120 -freeze 0100:0200
582
reverseflash
The reverseflash command reverses the FlashCopy relationship.
reverseflash -dev storage_image_ID -record -persist -fast
-tgtpprc
-tgtoffline
-tgtinhibit
-tgtse
-cp -nocp
-seqnum
flash_sequence_num
-pmir
no required preferred
source_volume_ID:target_volume_ID . . . -
Parameters
You can reverse the direction of a FlashCopy relationship, where the volume that was previously defined as the target becomes the source for the volume that was previously defined as the source. The data that has changed is copied to the volume that was previously defined as the source. For example, you create a FlashCopy relationship between source volume A and target volume B. Data loss occurs on source volume A. To keep applications running, you can reverse the FlashCopy relationship so that volume B is copied to volume A. After the reversal takes place, ensure that you designate this new relationship when you issue any future commands. Failure to designate this reversed relationship can produce unexpected results. For example, you use the reverseflash command to reverse the relationship of source volume 1600 and target volume 1800. The source volume then becomes 1800 and the target volume becomes 1600. All queries and future processing on this relationship must show volume 1800 as the source and volume 1600 as the target. The following list defines the parameters that are associated with the reverseflash command: -dev storage_image_ID (Optional) Specifies the storage image ID, which consists of a manufacturer, machine type, and serial number. The storage image ID is required if you do not specify a fully qualified ID for the source and target volumes, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. For example, DS8000 models use IBM.2107-75FA120 -record (Optional) Records the tracks that have changed on both volumes within a
Chapter 12. Command-line interface commands
| | | | |
583
FlashCopy pair. Select this parameter when you establish an initial FlashCopy volume pair that you want to use with the resyncflash command. The -persist parameter is automatically selected when this parameter is selected. -persist (Optional) Retains the FlashCopy relationship after the background copy completes. The FlashCopy relationship between the source and the target volumes remains indefinitely until you issue a rmflash command. This parameter is automatically selected when the -record parameter is selected. Select this parameter along with the -record parameter if you want to use this volume pair with the resyncflash, reverseflash or setflashrevertible commands. -fast (Optional) Specify this parameter when you want to issue the reverseflash command before the background copy completes. Note: To use the fast reverse function, the relationship must be set to Target write inhibit. The fast reverse processing function is intended for use as part of Global Mirror recovery process. At the end of this operation, the original FlashCopy target volume is not usable. Normally, after this command completes the background copy, the new FlashCopy target volume is used as the FlashCopy source volume to restore the original FlashCopy target volume. -tgtpprc (Optional) Allows the FlashCopy target volume to be a Remote Mirror and Copy source volume. -tgtoffline (Optional) Rejects the reverseflash command if the target volume is online for host system access. This parameter applies only to count key data (CKD) volumes. -tgtinhibit (Optional) Prevents host system write operations to the target while the FlashCopy relationship exists. -tgtse (Optional) This parameter is not supported on DS6000 models. Specifies that the target volume that you are designating for a FlashCopy relationship might be a space-efficient logical volume. An error message is generated if the target volume that you are using to create the FlashCopy relationship is a space-efficient volume and you do not specify this parameter. -nocp (Optional) Inhibits a background copy. Data is copied from the source volume to the target volume only if a track on the source volume is modified. The FlashCopy volume pair relationship remains indefinitely until it is broken by a rmflash command or until all tracks on the source volume are modified. When the -tgtse parameter is specified and neither the -cp nor the -nocp parameters are specified, the no background copy behavior is the default. Note: You cannot use the -nocp parameter with the -cp parameter in the same command. -cp (Optional) Starts a background copy. When the -tgtse parameter is not
584
specified and neither the -cp nor the -nocp parameters are specified, the background copy behavior is the default. Note: You cannot use the -nocp parameter with the -cp parameter in the same command. -seqnum flash_sequence_num (Optional) This parameter is not supported for machine type 2105. Associates the FlashCopy relationships that are established with the specified sequence number. You can use this sequence number as an identifier for a relationship or group of relationships. An example sequence number is 00010. | | | | | | | | | | | | | | | | | | | | | | -pmir no | required | preferred Specifies the IBM Remote Pair Copy option that you want to use. The IBM Remote Pair Copy option, sometimes called preserve mirror, preserves synchronous Metro Mirror pairs when the FlashCopy source volume and target volume are Metro Mirror primary volumes and the Metro Mirror secondary volumes are on the same storage unit. The FlashCopy operation is performed on both the local site and the remote site. This parameter is not supported on DS6000 models. no FlashCopy operations are not performed on the remote site. If the target volume is a Metro Mirror primary volume, the remote copy might temporarily change to the duplex pending state. The default is no if the -pmir parameter is not specified.
required FlashCopy operations do not change the state of the Metro Mirror primary volume pair to duplex pending. Both the source Metro Mirror volume pair and the target Metro Mirror volume pair must be in the full duplex state. preferred Uses the IBM Remote Pair Copy option for FlashCopy operations when possible. The IBM Remote Pair Copy option cannot be used if the configuration is not correct or the state of the volume is not supported with this function. source_volume_ID:target_volume_ID . . . | (Required) Establishes a FlashCopy relationship for the source and target volume pairs with the specified IDs. This parameter accepts fully qualified volume IDs, which consist of storage image IDs or a shortened version without storage image IDs, if the -dev parameter is specified. You can also specify a value for the devid variable in your profile file. You must separate multiple FlashCopy pair IDs with spaces. A FlashCopy pair ID consists of two volume IDs: one designated as the source and the other as the target volume for a FlashCopy relationship. You must separate the two volume IDs of a FlashCopy pair ID with a colon and no space. The first volume ID is the source volume. The second volume ID is the target volume. The volume ID is a 32-bit number that can be represented as 4 hexadecimal digits in the form of XYZZ, where: X (for DS6000 and DS8000 models) Specifies the address group, 0 - 1 for DS6000 and 0 - F for DS8000. XY (for a DS8000 model) Specifies the logical subsystem number, 00 - FE.
585
XY (for a DS6000 model) Specifies the logical subsystem number, 00 - 1E. ZZ (for DS6000 and DS8000 models) Specifies the volume number, 00 - FF. If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode. For DS8000, an example of a fully qualified FlashCopy pair ID is IBM.2107-75FA120/0001:IBM.2107-75FA120/0004 An example of a shortened version is 0001:0004 An example of multiple pairs is 0001:0004 0003:00FF 0008:000C
Example
For DS6000 models, the storage image ID is different. An invocation example
dscli>reverseflash -dev IBM.2107-75FA120 0100:0200
revertflash
The revertflash command is used as part of the recovery from a disaster scenario to rollback a Global Mirror consistency group that is in the process of forming. The former Global Mirror consistency group is restored.
revertflash -dev SourceVolume_ID . . . - storage_image_ID -seqnum flash_sequence_num
Parameters
-dev storage_image_ID (Optional) Specifies the storage image ID, which includes manufacturer, machine type, and serial number. The storage image ID is required if you do not specify a fully qualified ID for the source volume, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. DS8000 example: IBM.2107-75FA120 DS6000 example: IBM.1750-685FA120 -seqnum flash_sequence_num (Optional) Specifies the FlashCopy sequence number. When this number is specified, the revertflash operation is performed only on those relations associated with the specified number.
| | | | |
586
This parameter is not supported for machine type 2105. Example: 0010 SourceVolumeID . . . | (Required) Specifies the source volume ID for which the FlashCopy relationship is to be reverted. The chosen FlashCopy pair is the one established or modified with the -record parameter. This parameter accepts fully qualified volume IDs, which includes storage image IDs, or a shortened version without storage image IDs if the -dev parameter is specified or you specify a value for the devid variable in your profile file. You must separate multiple source volume IDs with spaces. The volume ID is a 32-bit number that can be represented as 4 hexadecimal digits in the form of XYZZ, where: X (for DS6000 and DS8000 models) Specifies the address group, 0 - 1 for DS6000 and 0 - F for DS8000. XY (for a DS8000 model) Specifies the logical subsystem number, 00 - FE. XY (for a DS6000 model) Specifies the logical subsystem number, 00 - 1E. ZZ (for DS6000 and DS8000 models) Specifies the volume number, 00 - FF. If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode. Example of a fully qualified volume ID: IBM.2107-75FA120/0001 Example of a shortened version: 0001 Example of multiple IDs: 0001 0003 0008
Example
You can issue the revertflash command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model the storage image ID is different. Invoking the revertflash command
dscli>revertflash -dev IBM.2107-75FA120 0100
rmflash
The rmflash command removes a relationship between FlashCopy volume pairs.
rmflash -dev storage_image_ID -quiet -tgtonly -tgtreleasespace
-cp
-cprm
-resettgtinhibit
-wait
-seqnum
flash_sequence_number
587
SourceVolumeID:TargetVolumeID . . . -
Parameters
Notes: 1. Invoking this command with the -cp parameter on a FlashCopy relationship that was previously marked with the -persist parameter will not remove the relationship. Instead, the source data is copied to the target. 2. Invoking this command with the -resettgtinhibit parameter does not withdraw the relationship, but resets the -tgtinhibit parameter if it was previously set. 3. All settings apply to all specified FlashCopy pairs. 4. Do not use the -wait parameter on persistent relations. 5. The -seqnum parameter is not supported for a 2105 machine type. -dev storage_image_ID (Optional) Specifies the storage image ID, which includes manufacturer, machine type, and serial number. The storage image ID is required if you do not specify a fully qualified ID for the source and target volumes, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. DS8000 example: IBM.2107-75FA120 DS6000 example: IBM.1750-68FA120 -quiet (Optional) Specifies that the confirmation prompt for this command be turned off. -tgtonly (Optional) Specifies the target volume of the FlashCopy pair to remove the relationship. In addition, the Copy Indicator for the target volume is reset. Note: If you use the -tgtonly parameter on CKD volumes, any data set level relationships created by a S/390 host are removed from the specified target volume. -tgtreleasespace (Optional) This parameter is not supported on DS6000 models. Specifies that you want the system to release the space that has been allocated to a space-efficient logical target volume. -cp (Optional) Specifies that the FlashCopy relationship be changed from No Copy to Copy and that the remaining source volume tracks be copied to the target volume. The relationship is removed when all the data is copied unless the relationship is persistent. When this parameter is specified, the copy takes place for all volume pairs where the source volume ID is identical to the source volume that is specified in the command. | | | -cprm (Optional) Specifies a change to a FlashCopy relationship from No Copy to Copy, and copies the remaining source volume tracks to the target volume. The
| | | | |
588
| | | | | | | | | | |
relationship is removed after all of the data is copied. If the FlashCopy relationship is a remote relationship established automatically by another establish FlashCopy with the preserve mirror option set to preferred or required, then the rmflash command will fail if you dont use -cprm option. For non-persistent relationships, a Background Copy is initiated for all of the existing relationships within the specified source and target volumes. The relationships are terminated after the background copy is completed. For persistent relationships, all of the existing relationships within the specified source and target volumes will be changed to non-persistent relationships, and then a Background Copy is initiated. The relationships are terminated after the background copy is completed. -resettgtinhibit (Optional) Specifies that the flag that does not allow host system write operations to the target ID while the FlashCopy relationship exists be reset, in case it was previously set. Note: Specifying this parameter in itself does not cause the FlashCopy relationship to be withdrawn. -wait (Optional) Specifies that the command response be delayed until the background copy process completes. Notes: 1. Only pairs of source and target volume IDs are allowed when you use the -wait parameter.
2. The -cp parameter must be used with the -wait parameter. 3. Do not use the -wait parameter on relationships that are marked -persist, an error occurs when this is done. -seqnum flash_sequence_num (Optional) Specifies the FlashCopy sequence number. When this number is specified, the rmflash operation is performed only on those relationships associated with the specified number. Example: 0010 Note: This parameter is not supported for a 2105 machine type. SourceVolumeID:TargetVolumeID . . . | (Required) Specifies the source and target volume pairs for which the FlashCopy relationships are removed. This parameter accepts a fully qualified volume ID, which includes storage image IDs, or a shortened version without storage image IDs if the -dev parameter is specified or you specify a value for the devid variable in your profile file. You must separate multiple FlashCopy pair IDs with spaces. A FlashCopy pair ID consists of two volume IDs, one designated as the source and the other as the target volume for a FlashCopy relationship. You must separate the two volume IDs of a FlashCopy pair ID with a colon and no space. The first volume ID is the source volume. The second volume ID is the target volume. When the -tgtonly parameter is specified, you must enter volume IDs. Volume pair IDs are not valid with the -tgtonly parameter. The volume ID is a 32 bit number that can be represented as 4 hexadecimal digits in the form of XYZZ, where:
Chapter 12. Command-line interface commands
589
XY (for a DS8000 model) Specifies the logical subsystem number, 00 - FE. XY (for a DS6000 model) Specifies the logical subsystem number, 00 - 1E. ZZ (for DS6000 and DS8000 models) Specifies the volume number, 00 - FF. X (for DS6000 and DS8000 models) Specifies the address group, 0 - 1. If you use the dash (-), the specified value is read from standard input. However, you cannot use this feature if you are using the DS CLI interactive command mode. Example of a fully qualified FlashCopy pair ID (for DS8000): IBM.2107-75FA120/0001:IBM.2107-75FA120/0004 Example of a shortened version: 0001:0004 Example of multiple pairs: 0001:0004 0003:00FF 0008:000C
Example
You can issue the rmflash command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model, you cannot use the -tgtreleasespace parameter and the storage image ID is different. Invoking the rmflash command
dscli>rmflash -dev IBM.2107-75FA120 -tgtreleasespace 0100:0200
unfreezeflash
The unfreezeflash command resets a FlashCopy consistency group that was previously established with the -freeze parameter when the mkflash or resyncflash commands were issued.
unfreezeflash -dev storage_image_ID - source_LSS_ID . . .
Parameters
-dev storage_image_ID (Optional) Specifies the source storage image ID, which includes manufacturer, machine type, and serial number. The storage image ID is required if you do not specify a fully qualified LSS ID, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command.
| | | | |
590
source_LSS_ID . . . | (Required) Specifies that the FlashCopy consistency group be reset for the designated source LSS IDs. The parameter also accepts fully qualified LSS IDs, which includes the storage image ID, or a shortened version without the storage image ID if the -dev parameter is specified or you specify a value for the devid variable in your profile file. The fully qualified LSS ID format is storage_image_ID/XX. The DS8000 value for the XX is 00 - FE and the DS6000 value is 00 - 1F. If you use the dash (-), the specified value is read from standard input. Note: You cannot use the dash (-) while you are in the DS CLI interactive command mode. DS8000 example of a fully qualified LSS ID: IBM.2107-75FA120/00 DS6000 example of a fully qualified LSS ID: IBM.1750-68FA120/00 Example of a shortened version: 00 Example of multiple IDs: 10 20 30
Example
You can issue the unfreezeflash command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model the storage image ID is different. Invoking the unfreezeflash command
dscli>unfreezeflash -dev IBM.2107-75FA120 01
setflashrevertible
The setflashrevertible command modifies a FlashCopy volume pair that is part of a FlashCopy relationship to revertible. The revertible feature allows data to be committed to the target to form a new consistency group or to revert to the last consistency group. This command must be run before the FlashCopy pair can be committed or reverted.
setflashrevertible -dev storage_image_ID -tgtoffline -tgtse
Parameters
Note: The -nocp, -record, -persist, and -tgtinhibit (target inhibit) parameters are included automatically when this command processes. -dev storage_image_ID (Optional) Specifies the storage image ID, which includes manufacturer,
Chapter 12. Command-line interface commands
591
| | | | |
machine type, and serial number. The storage image ID is required if you do not specify a fully qualified ID for all source and target volumes, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. For DS8000, example: IBM.2107-75FA120 For DS6000, example: IBM.1750-68FA120 -tgtoffline (Optional) Causes an establish FlashCopy volume pair command to be rejected if the target volume is online for host system access. This parameter applies only to CKD volumes. -tgtse (Optional - DS8000 only) Specifies that the target volume that is part of the FlashCopy relationship that you are modifying to be designated as revertible might be a space-efficient logical volume. An error message is generated if the target volume is a space-efficient volume and you do not specify this parameter. -seqnum flash_sequence_num (Optional) Associates the FlashCopy relationships that are changed with the specified sequence number. Only the relationships that are successfully modified by the command are assigned the specified sequence number, leaving the ones that fail with the previous number (if previously specified). This parameter is not supported for machine type 2105. Example: 0010 source_volume_ID:target_volume_ID . . . | (Required) Modifies FlashCopy relationships for the source and target volume pairs with the IDs specified. This parameter accepts fully qualified volume IDs, which includes storage image IDs, or a shortened version without storage image IDs, if the -dev parameter is specified. Or, you can specify a value for the devid variable that resides in your profile file. You must separate multiple FlashCopy pair IDs with spaces. A FlashCopy pair ID consists of two volume IDs, one designated as the source and the other as the target volume for a FlashCopy relationship. You must separate the two volume IDs of a FlashCopy pair ID with a colon and no space. The first volume ID is the source volume. The second volume ID is the target volume. The volume ID is a 32 bit number that can be represented as 4 hexadecimal digits in the form of XYZZ, where: XY (for a DS8000 model) Specifies the logical subsystem number, 00 - FE. XY (for a DS6000 model) Specifies the logical subsystem number, 00 - 1E. ZZ (for DS6000 and DS8000 models) Specifies the volume number, 00 - FF. X (for DS6000 and DS8000 models) Specifies the address group, 0 - 1.
592
If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode. Example of a fully qualified FlashCopy pair ID: IBM.2107-75FA120/ 0001:IBM.2107-75FA120/0004 Example of a shortened version: 0001:0004 Example of multiple pairs: 0001:0004 0003:00FF 0008:000C
Example
You can issue the setflashrevertible command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model, you cannot use the -tgtse parameter and the storage image ID is different. Invoking the setflashrevertible command
dscli>setflashrevertible -dev IBM.2107-75FA120 -tgtse 0100:0200
593
The revertremoteflash command restores data on the source volume to its most recent consistency formation. The rmremoteflash command removes a relationship between remote FlashCopy volume pairs. The setremoteflashrevertible command modifies the specified remote FlashCopy volume pair that is part of a Global Mirror relationship to a revertible state. This command must be run before the FlashCopy pair can be committed or reverted.
commitremoteflash
The commitremoteflash command sends data to a target volume to form a consistency between the remote source and target FlashCopy pair.
commitremoteflash -dev storage_image_ID SourceVolumeID -seqnum flash_sequence_num -srcss SS_ID - . . . -conduit LSS_ID
Parameters
Notes: 1. Establish the pair by issuing either the mkflash or mkremoteflash command with the -record and -persist parameters. 2. Issue either the setflashrevertible or setremoteflashrevertible command against the pair. Only after you have taken these two steps can you issue the commitremoteflash command. -dev storage_image_ID (Optional) Specifies the storage image ID, which includes manufacturer, machine type, and serial number. The storage image ID is required if you do not specify fully qualified IDs, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. For DS8000, example: IBM.2107-75FA120 -conduit LSS_ID (Required) Specifies the source logical subsystem (LSS) of an existing remote mirror and copy relationship that is to be used as a means for communicating with the remote storage image. The source volume IDs that are specified in the SourceVolumeID parameter must serve as secondary volumes in a remote mirror and copy relationship in which one of the conduit LSS volumes serves as a primary volume. When this parameter is used, you must specify a fully qualified LSS ID. The fully qualified LSS ID format is storage_image_ID/XX. The DS8000 value for the XX is 00 - FE and the DS6000 value is 00 - 1F. -seqnum flash_sequence_number (Optional) Specifies that the commit operation is performed only on those source volumes that are associated with the specified sequence number.
| | | | |
594
This parameter is not supported for machine type 2105. Example: 0010 -srcss SS_ID (Optional) Specifies the subsystem ID of the source logical subsystem at the remote site. When this parameter is used, all source volumes must be within the same logical subsystem. This parameter is required only for IBM System Storage Enterprise Storage Server versions 2.4.0 and 2.4.1. Example: FF10 SourceVolumeID . . . | (Required) Commits remote FlashCopy relationships for the source volumes with the specified IDs. The chosen pair is the one with the enabled -record parameter. You must separate multiple source volume IDs with spaces. This parameter accepts fully qualified volume IDs, which includes the storage image ID, or a shortened version without the storage image ID if either the -dev parameter is specified, or you can specify a value for the devid variable in your profile file. The volume ID is a 32 bit number that can be represented as 4 hexadecimal digits in the form of XYZZ, where: XY (for a DS8000 model) Specifies the logical subsystem number, 00 - FE. XY (for a DS6000 model) Specifies the logical subsystem number, 00 - 1E. ZZ (for DS6000 and DS8000 models) Specifies the volume number, 00 - FF. X (for DS6000 and DS8000 models) Specifies the address group, 0 - 1. If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode. For DS8000, example of a fully qualified volume ID: IBM.2107-75FA120/0001 Example of a shortened version: 0001 Example of IDs: 0001 0003 0008
Example
You can issue the commitremoteflash command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model the storage image ID is different. Invoking the commitremoteflash command
dscli>commitremoteflash -dev IBM.2107-75FA120 -conduit IBM.2107-75FA150/10 0100
595
resyncremoteflash
The resyncremoteflash command (formerly called the incremoteflash command and associated with the incremental FlashCopy process) increments an existing remote FlashCopy pair that has been established with the -record and -persist parameters.
resyncremoteflash -dev storage_image_ID -conduit LSS_ID -record
-persist
-freeze
-tgtpprc
-tgtoffline
-tgtinhibit
-tgtse
-cp -nocp
-seqnum
flash_sequence_num
-srcss
SS_ID
SourceVolumeID:TargetVolumeID . . . -
Parameters
Note: When a pair is established with the -record and -persist parameters, the pair initially synchronizes and then a record of all data that is written from the host to the source is maintained in the source volumes. When the resyncremoteflash command is issued on the pair, the new data that is written to the source is copied to the target. The specified parameters in this command replace the parameters in the existing relationship. In order to keep the initial -record and -persist parameter values, the -record and -persist parameters must be specified using the resyncremoteflash command. -dev storage_image_ID (Optional) Specifies the storage image ID, which includes manufacturer, machine type, and serial number. The storage image ID is required if you do not specify fully qualified IDs, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. For DS8000, example: IBM.2107-75FA120 -conduit LSS_ID (Required) Specifies the source logical subsystem (LSS) of an existing remote mirror and copy relationship that is to be used as a means for communicating with the remote storage image. The source volume IDs that are specified in the SourceVolumeID:TargetVolumeID parameter, must serve as secondary volumes in a remote mirror and copy relationship in which one of the conduit LSS volumes serves as a primary volume. When you use this parameter, you must specify a fully qualified LSS ID. The fully qualified LSS ID format is storage_image_ID/XX, where XX is a hexadecimal number in the range 00 - FE, for the DS8000, and 00 - 1F, for the DS6000. For DS8000, example: IBM.2107-75FA120/00 -record (Optional) Specifies that the changed tracks on both volumes within a
| | | | |
596
FlashCopy pair be recorded. Select this parameter if you intend to use the resyncremoteflash command again with this pair. The -persist parameter is automatically set in the code when the -record parameter is specified. -persist (Optional) Specifies that the FlashCopy relationship be retained after the background copy completes. The FlashCopy relationship between the source and the target volumes remains indefinitely until you issue a rmremoteflash command. This parameter is automatically set in the code when the -record parameter is specified. Specify this parameter along with the -record parameter if you intend to use this volume pair with the resyncremoteflash, reverseremoteflash, or setremoteflashrevertible commands. -freeze (Optional) Specifies the Freeze Consistency Group condition. This option causes the source volume to be busy (Queue Full status on Open Systems) to all host I/O operations until a FlashCopy Consistency Group Created command is received. All writes to the source volume are queued by the host and are written after the Consistency Group Created command is complete. During the busy condition, the source volume reports Queue Full for fixed block volumes and busy status for CKD volumes. The busy condition can also be reset by an extended long busy timeout (default 120 seconds). The timeout condition affects all FlashCopy source volumes that are contained within a respective logical subsystem and that are established or modified with the -freeze parameter. Note: This parameter is used in conjunction with other processing steps for purposes such as backups, testing, or recovery solutions. The use of this parameter ensures that volumes on the target LSSs are consistent with the source LSSs volumes. -tgtpprc (Optional) Allows the FlashCopy target volume to be a remote mirror and copy source volume. -tgtoffline (Optional) Causes the resyncremoteflash command to be rejected if the target volume is online for host system access. Note: This parameter applies only to count key data volumes. -tgtinhibit (Optional) Prevents host system write operations to the target while the FlashCopy relationship exists. -tgtse (Optional - DS8000 only) Specifies that the target volume might be a space-efficient logical volume. An error message is generated if the target volume is a space-efficient volume and you do not specify this parameter. -nocp (Optional - DS8000 only) Inhibits background copy. Data is copied from the source volume to the target volume only if a track on the source volume is modified. The FlashCopy volume pair relationship remains indefinitely until it is broken by a rmflash command, or until all tracks on the source volume are modified.
597
When -tgtse is specified and neither the cp nor the nocp parameters are specified, the no background copy behavior is the default. You cannot use the -nocp parameter with the -cp parameter in the same command. -cp (Optional - DS8000 only) Specifies that a background copy be initiated. When -tgtse is not specified and neither the cp nor the nocp parameters are specified, the background copy behavior is the default. You cannot use the -cp parameter with the -nocp parameter in the same command. -seqnum flash_sequence_num (Optional) Associates the FlashCopy relationships that are established with the specified sequence number. You can use this sequence number as an identifier for a relationship or group of relationships. Only the relationships that are modified successfully by the resyncremoteflash command are assigned the specified sequence number, leaving the ones that fail with the previous one (if they were previously specified). This parameter is not supported for machine type 2105. Example: 0010 -srcss SS_ID (Optional) Specifies the subsystem ID of the source logical subsystem at the remote site. The subsystem ID is a four-digit hexadecimal number in the range (0001 - FFFF). When this parameter is used, all source volumes must be designated within the same logical subsystem. This parameter is required for IBM System Storage Enterprise Storage Server versions 2.4.0 and 2.4.1. Example: FF10 SourceVolumeID:TargetVolumeID . . . | (Required) Specifies that a remote FlashCopy relationship for the source and target volume pairs be incremented with the designated IDs. This parameter accepts fully qualified volume IDs, which includes storage image IDs or a shortened version without storage image IDs, if the -dev parameter is specified, A FlashCopy pair ID consists of two volume IDs: one designated as the source and the other as the target volume for a FlashCopy relationship. You must separate the two volume IDs of a FlashCopy pair ID with a colon and no space. The first volume ID is the source volume. The second volume ID is the target volume. The volume ID is a 32-bit number that can be represented as 4 hexadecimal digits in the form of XYZZ, where: XY (for a DS8000 model) Specifies the logical subsystem number, 00 - FE. XY (for a DS6000 model) Specifies the logical subsystem number, 00 - 1E. ZZ (for DS6000 and DS8000 models) Specifies the volume number, 00 - FF. X (for DS6000 and DS8000 models) Specifies the address group, 0 - 1.
598
If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode. For DS8000, example of a fully qualified FlashCopy pair ID: IBM.2107-75FA120/0001:IBM.2107-75FA120/0004 Example of a shortened version: 0001:0004 Example of multiple pairs: 0001:0004 0003:00FF 0008:000C
Example
You can issue the resyncremoteflash command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model, you cannot use the -tgtse parameter and the storage image ID is different. Invoking the resyncremoteflash command
dscli>resyncremoteflash -dev IBM.2107-75FA120 -conduit IBM.2107-75FA150/10 0100:0200
lsremoteflash
The lsremoteflash command displays a list of FlashCopy relationships and status information for each FlashCopy relationship in the list.
lsremoteflash -dev storage_image_ID -conduit LSS_ID -s -l -activecp
-record
-persist
-revertible
-cp
-tgtse
-state
-seqnum
flash_sequence_num
|
-srcss Source_LSS_SSID
SourceVolumeID:TargetVolumeID . . . -
Parameters
Note: All settings apply to all FlashCopy pairs that are specified.
599
| | | | |
-dev storage_image_ID (Optional) Specifies the storage image ID, which consists of manufacturer, machine type, and serial number. The storage image ID is required if you do not specify fully qualified IDs, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. -conduit LSS_ID (Required) Specifies the source logical subsystem (LSS) of an existing Remote Mirror and Copy relationship that is used as a means for communicating with the remote storage image. The source volume IDs that are specified in the SourceVolumeID:TargetVolumeID parameter must serve as secondary volumes in a Remote Mirror and Copy relationship in which one of the conduit LSS volumes serves as a primary volume. This parameter accepts a fully qualified LSS ID, which includes the storage image ID. The fully qualified LSS ID format is storage_image_ID/XX, where: XY (for a DS8000 model) Specifies the logical subsystem number, 00 - FE. XY (for a DS6000 model) Specifies the logical subsystem number, 00 - 1E. ZZ (for DS6000 and DS8000 models) Specifies the volume number, 00 - FF. X (for DS6000 and DS8000 models) Specifies the address group, 0 - 1. -s -l (Optional) Specifies that FlashCopy pair IDs be displayed. You cannot use the -l and the -s parameters together. (Optional) Specifies that the default detailed output plus Out-of-Sync Tracks and Date Created information be displayed. You cannot use the -l and the -s parameters together.
-activecp (Optional) Specifies that FlashCopy relationships where their background copy process is active be displayed. -record (Optional) Specifies that the FlashCopy relationships that were established with the -record parameter be displayed. -persist (Optional) Specifies that the FlashCopy relationships that were established with the -persist parameter be displayed. -revertible (Optional) Specifies that the FlashCopy relationships that were established with the -revertible parameter be displayed. -cp (Optional) Specifies that the FlashCopy relationships that were established with the run background copy (-cp) parameter be displayed. -tgtse (Optional - DS8000 only) Displays only the FlashCopy relationships that were established with the -tgtse parameter.
600
-state valid | invalid | validation-required |volume-inaccessible | tgt-failed | path-unavailable | not-valid (Optional) Displays the FlashCopy relationships that are identified by the specific state. Note: When you specify not-valid, all FlashCopy relationships that do not meet the requirements for the valid state are displayed. -seqnum flash_sequence_number (Optional) Specifies that the FlashCopy relationships that are associated with the specified sequence number be displayed. This parameter is not supported for machine type 2105. | -srcss Source_LSS_SSID (Optional) Specifies the subsystem ID of the source logical subsystem at the remote site. The ID is in the format 0x0001 - 0xFFFF. This value is required for the IBM System Storage Enterprise Storage Server versions 2.4.0 and 2.4.1. When you specify SS_IDs, the source volumes are restricted to one LSS. Example: FF10 SourceVolumeID:TargetVolumeID . . . | (Required) Specifies that the FlashCopy relationships for the source and target volume pairs with the specified IDs be displayed. This parameter accepts fully qualified volume IDs, which includes storage image IDs, or a shortened version without storage image IDs if the -dev parameter is specified. A FlashCopy pair ID consists of two volume IDs, one designated as the source and the other as the target volume for a FlashCopy relationship. You must separate the two volume IDs of a FlashCopy pair ID with a colon and no space. The first volume ID is the source volume. The second volume ID is the target volume. You must separate multiple IDs with spaces. You can specify FlashCopy pair IDs and a range of FlashCopy pair IDs, or you can specify volume IDs and a range of volume IDs. You cannot specify a combination of FlashCopy pair IDs and volumes IDs. The volume ID is a 32-bit number that can be represented as 4 hexadecimal digits in the form of XYZZ, where: XY (for a DS8000 model) Specifies the logical subsystem number, 00 - FE. XY (for a DS6000 model) Specifies the logical subsystem number, 00 - 1E. ZZ (for DS6000 and DS8000 models) Specifies the volume number, 00 - FF. X (for DS6000 and DS8000 models) Specifies the address group, 0 - 1. If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode. Example of a fully qualified volume ID pair: IBM.2107-75FA120/ 0001:IBM.2107-68FA120/0004
Chapter 12. Command-line interface commands
601
Example of a shortened version: 0001:0004 Example of multiple pairs: 0001:0004 0003:00FF 0008:000C
Example
You can issue the lsremoteflash command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model, you cannot use the -tgtse parameter and the storage image ID is different. For this command and all other DS CLI list commands, the results are shown in table format to provide clarity. The actual reports do not display as tables. The following tables represent the headers that are displayed on the output report that is associated with the lsremoteflash command using the -l parameter. Invoking the lsremoteflash command
dscli>lsremoteflash -l -dev IBM.2107-75FA120 -conduit IBM.2107-75FA150/10 IBM.2107-75FA120/0100:IBM.2107-75FA120/0200
ID 0100:0200
SrcLSS 01
Recording Disabled
Persistent Disabled
Revertible Disabled
| | | | | | | |
Source- Target- BackCopyWriteWriteground- IndicEnabled Enabled Copy ator Enabled Disabled Disabled Yes
OutOfSyncTracks 0
DateDateCreated Synced
State
AllowTgtSE
Pmir
Disabled No
SrcLSS
602
Persistent Specifies (enabled or disabled) whether the designated FlashCopy pair is established with persistent activated. Revertible Specifies (enabled or disabled) whether the designated FlashCopy pair is established with the revertible option activated. SourceWriteEnabled Specifies (enabled or disabled) whether or not this FlashCopy relationship was established with the Allow Source Writes option. No value is displayed for the DS6000. TargetWriteEnabled Specifies (enabled or disabled) whether this FlashCopy relationship was established with the Allow Target Writes option. No value is displayed for the DS6000. BackgroundCopy Specifies (enabled or disabled) whether this FlashCopy relationship was established with the Run Background Copy option. No value is displayed for the DS6000. OutofSyncTracks Specifies the number of tracks that are not synchronized for this FlashCopy relationship. No value is displayed for the DS6000. DateCreated Specifies the date and the time that the FlashCopy relationship was established. No value is displayed for the DS6000. DateSynced Specifies the date and the time that this FlashCopy relationship was synchronized, or null (-) if the relationship is not synchronized. No value is displayed for the DS6000. State Specifies the state of the FlashCopy relationships. One of the following values is displayed for each FlashCopy relationship: Note: When a query indicates any state other than valid, the only information that is displayed on the report is the FlashCopy pair ID and the state condition. The rest of the information columns are displayed with a null (-) value. Valid Indicates that the FlashCopy relationship is in a normal state, and that it has been queried successfully.
Validation Required Indicates that the FlashCopy relationship cannot be queried. Generally, the reason that the query is blocked is only temporary. If you issue a new query within several seconds, the problem no longer exists. Tgt Failed Indicates that the FlashCopy relationship is in an error state. The point-in-time copy is lost, and the FlashCopy relationship must be withdrawn. You must issue the rmflash command to remove the FlashCopy relationship.
603
Volume Inaccessible Indicates that the volume cannot be accessed and that the query has failed. When this state is displayed, it generally means that the volume is in a fenced condition. Invalid Indicates that a general internal error has occurred when the query is processed. Path Unavailable The specified inband path does not exist. The user should verify that the Remote Mirror and Copy path exists. Note: No value is displayed for the DS6000. AllowTgtSE Specifies Enabled for every FlashCopy relationship where you used the -tgtse parameter. Otherwise, the value is displayed as Disabled. Disabled is always displayed for a DS6000 model. | | | | | | | | | | | | | | | | | | | | | | | | | | | | Pmir The IBM Remote Pair Copy option preserves synchronous Metro Mirror pairs when the FlashCopy source volume and target volume are Metro Mirror primary volumes and the Metro Mirror secondary volumes are on the same storage unit. The FlashCopy operation is performed on both the local site and the remote site. This parameter is not supported on DS6000 models. No Indicates that the IBM Remote Pair Copy option was not specified.
Preferred Indicates that the IBM Remote Pair Copy option was specified. If the target is a Metro Mirror primary, then the FlashCopy function should preserve the Full Duplex mode of the target Metro Mirror relationship, if its possible. If the IBM Remote Pair Copy function is not possible, you can use processing defined for IBM Remote Pair Copy option of No. Required Indicates that the IBM Remote Pair Copy option was specified. If the target is a Metro Mirror primary, then the FlashCopy function is required to preserve the Full Duplex mode of the target Metro Mirror relationship. Processing will fail if the IBM Remote Pair Copy function is not possible. Remote Indicates that this is a remote FlashCopy relationship initiated by another FlashCopy established at the Metro Mirror primary site with an IBM Remote Pair Copy option of preferred or required. Unknown Indicates that the IBM Remote Pair Copy relationship type can not be determined due to a conflict in the source or target Metro Mirror status.
mkremoteflash
The mkremoteflash command initiates a remote point-in-time copy from source volumes to target volumes through a Remote Mirror and Copy relationship.
mkremoteflash -dev storage_image_ID -conduit LSS_ID -tgtpprc
604
-tgtoffline
-tgtinhibit
-freeze
-record
-persist
-tgtse
-cp -nocp
-seqnum
flash_sequence_num
-srcss
SS_ID
source_volume_ID:target_volume_ID . . . -
Parameters
-dev storage_image_ID (Optional) Specifies the storage image ID, which includes manufacturer, machine type, and serial number. The storage image ID is required if you do not specify fully qualified IDs, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. -conduit LSS_ID (Required) Specifies the source logical subsystem (LSS) of an existing remote mirror and copy relationship that is to be used as a conduit for communicating with the remote storage image. The source volume IDs that are specified in the SourceVolumeID:TargetVolumeID parameter, must serve as secondary volumes in a remote mirror and copy relationship in which one of the conduit LSS volumes serves as a primary volume. When you use this parameter, you must specify a fully qualified LSS ID. The fully qualified LSS ID format is storage_image_ID/XX. The DS8000 value for the XX is 00 - FE and the DS6000 value is 00 - 1F. For DS8000, example: IBM.2107-75FA120/00 -tgtpprc (Optional) Allows the FlashCopy target volume to be a remote mirror and copy source volume. -tgtoffline (Optional) Causes the mkremoteflash command to be rejected if the target volume is online for host system access. This parameter applies only to CKD volumes. -tgtinhibit (Optional) Prevents host system write operations to the target while the FlashCopy relationship exists. -freeze (Optional) Specifies the Freeze Consistency Group condition. The use of this parameter triggers the queue full condition for the source volume. All writes to the source volume are queued by the host and are written after the queue full condition is reset. During the queue full condition, the source volume reports long busy status. The queue full condition is reset by an extended long busy timeout condition. The timeout condition affects all FlashCopy source volumes that are contained within a respective logical subsystem and that are established or modified with the -freeze parameter.
Chapter 12. Command-line interface commands
| | | | |
605
Note: This parameter is used with other processing steps for purposes such as backups, testing, or recovery solutions. The use of this parameter ensures that volumes on the target LSSs are consistent with the source LSSs volumes. -record (Optional) Specifies that the changed tracks on both volumes within a FlashCopy pair be recorded. Select this parameter if you intend to use the resyncremoteflash command again with this pair. The -persist parameter is automatically selected when the -record parameter is specified. -persist (Optional) Specifies that you want to retain the FlashCopy relationship after the background copy completes. The FlashCopy relationship between the source and the target volumes remains indefinitely until you issue a rmremoteflash command. This parameter is automatically selected when the -record parameter is specified. Specify this parameter along with the -record parameter if you intend to use this volume pair with the resyncremoteflash, reverseremoteflash, or setremoteflashrevertible commands. -tgtse (Optional - DS8000 only) Specifies that the target volume might be a space-efficient logical volume. An error message is generated if the target volume that you have specified is a space-efficient volume and you do not specify the -tgtse parameter. -nocp (Optional) Inhibits background copy. Data will be copied from the source volume to the target volume only if a track on the source volume is modified. The FlashCopy volume pair relationship remains indefinitely until it is broken by a rmremoteflash command, or until all tracks on the source volume are modified. When -tgtse is specified and the nocp parameter is not specified, the no background copy behavior is the default. You cannot use the -nocp parameter with the -cp parameter in the same command. -cp (Optional - DS8000 only) Specifies that a background copy be initiated. When (-tgtse is not specified) and neither the cp nor the nocp parameters are specified, the background copy behavior is the default. You cannot use the -cp parameter with the -nocp parameter in the same command. -seqnum flash_sequence_num (Optional) Associates the FlashCopy relationships that are established with the specified sequence number. This sequence number can be used as an identifier for a relationship or group of relationships. Example: 0010 This parameter is not supported for machine type 2105. -srcss SS_ID (Optional) Specifies the subsystem ID of the source logical subsystem at the remote site. The ID is in the format 0x0001 - 0xFFFF.
606
This value is required for the IBM System Storage Enterprise Storage Server versions 2.4.0 and 2.4.1. When you specify SS_IDs, the source volumes are restricted to one LSS. Example: FF10 SourceVolumeID:TargetVolumeID . . . | (Required) Specifies that a remote FlashCopy relationship for the source and target volume pairs be incremented with the designated IDs. This parameter accepts fully qualified volume IDs, which includes the storage image IDs or a shortened version without storage image IDs, if the -dev parameter is specified. A FlashCopy pair ID consists of two volume IDs: one designated as the source and the other as the target volume for a FlashCopy relationship. You must separate the two volume IDs of a FlashCopy pair ID with a colon and no space. The first volume ID is the source volume. The second volume ID is the target volume. The volume ID is a 32-bit number that can be represented as 4 hexadecimal digits in the form of XYZZ, where: XY (for a DS8000 model) Specifies the logical subsystem number, 00 - FE. XY (for a DS6000 model) Specifies the logical subsystem number, 00 - 1E. ZZ (for DS6000 and DS8000 models) Specifies the volume number, 00 - FF. X (for DS6000 and DS8000 models) Specifies the address group, 0 - 1. If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode. For the DS8000, example of a fully qualified FlashCopy pair ID: IBM.2107-75FA120/0001:IBM.2107-75FA120/0004 Example of a shortened version: 0001:0004 Example of multiple pairs: 0001:0004 0003:00FF 0008:000C
Example
You can issue the mkremoteflash command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model, you cannot use the -tgtse and -cp parameters and the storage image ID is different. Invoking the mkremoteflash command
dscli>mkremoteflash -dev IBM.2107-75FA120 -conduit IBM.2107-75FA150/10 0100:0200
607
revertremoteflash
The revertremoteflash command is used to restore data on the source volume to its most recent consistency formation. All new write operations to the source since the most recent consistency formation are overwritten with the previous consistency.
revertremoteflash -dev storage_image_ID SourceVolumeID -seqnum flash_sequence_num -srcss SS_ID - . . . -conduit LSS_ID
Parameters
You must take the following actions before you can use the revertremoteflash command: Notes: 1. Issue the mkflash or mkremoteflash command with the -persist and -record parameters to establish the FlashCopy pair. 2. Issue the setflashrevertible or setremoteflashrevertible command against the FlashCopy pair. -dev storage_image_ID (Optional) Specifies the storage image ID, which includes manufacturer, machine type, and serial number. The storage image ID is required if you do not specify fully qualified IDs, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. -conduit LSS_ID (Required) Specifies the source logical subsystem (LSS) of an existing remote mirror and copy (formerly PPRC) relationship that is used as a means for communicating with the remote storage image. The source volume IDs that are specified in SourceVolumeID:TargetVolumeID must serve as secondary volumes in a remote mirror and copy relationship in which one of the conduit LSS volumes serves as a primary volume. When you use this parameter, you must specify a full qualified LSS ID. The fully qualified LSS ID format is storage_image_ID/XX. The DS8000 value for the XX is 00 - FE and the DS6000 value is 00 - 1F. For DS8000, example: IBM.2107-75FA120/00 -seqnum flash_sequence_num (Optional) When a FlashCopy sequence number is specified, the revertremoteflash operation is performed only on those relationships that are associated with the specified number. Example: 0010 This parameter is not supported for machine type 2105. -srcss SS_ID (Optional) Specifies the subsystem ID of the source logical subsystem at the remote site. The ID is in the format 0x0001 - 0xFFFF.
| | | | |
608
This value is required for the IBM System Storage Enterprise Storage Server versions 2.4.0 and 2.4.1. 3. When you specify SS_IDs, the source volumes are restricted to one logical subsystem. Example: FF10 SourceVolumeID . . . | (Required) Specifies the remote FlashCopy relationship for the source volume with the specified ID that is to be reverted. The chosen FlashCopy pair is the one that is established or modified with the -record parameter. This parameter accepts fully qualified volume IDs, which includes storage image IDs, or a shortened version without storage image IDs if the -dev parameter is specified. You must separate multiple source volume IDs with spaces. The volume ID is a 32-bit number that can be represented as 4 hexadecimal digits in the form of XYZZ, where: XY (for a DS8000 model) Specifies the logical subsystem number, 00 - FE. XY (for a DS6000 model) Specifies the logical subsystem number, 00 - 1E. ZZ (for DS6000 and DS8000 models) Specifies the volume number, 00 - FF. X (for DS6000 and DS8000 models) Specifies the address group, 0 - 1. If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode. Example of a shortened version: 0001 Example of multiple IDs: 0001 0003 0008
Example
You can issue the revertremoteflash command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model the storage image ID is different. Invoking the revertremoteflash command
dscli>revertremoteflash -dev IBM.2107-75FA120 -conduit IBM.2107-75FA150/10 0100
rmremoteflash
The rmremoteflash command removes a relationship between remote FlashCopy volume pairs.
rmremoteflash -dev storage_image_ID -conduit LSS_ID -quiet
609
-tgtreleasespace
-cp
-seqnum
flash_sequence_number
-srcss
SS_ID
SourceVolumeID:TargetVolumeID . . . -
Parameters
Notes: 1. Invoking this command and using the -cp parameter on a FlashCopy relationship that was previously marked with the -persist parameter does not remove the relationship. Instead, the source volume is copied to the target volume. 2. Invoking this command resets the -tgtinhibit parameter option if it was previously set. 3. All settings apply to all specified FlashCopy pairs. 4. The -seqnum parameter is not supported for model 2105. 5. When SS_IDs are specified, the source volumes are restricted to 1 LSS. -dev storage_image_ID (Optional) Specifies the storage image ID, which includes manufacturer, machine type, and serial number. The storage image ID is required if you do not specify fully qualified IDs, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. -conduit LSS_ID (Required) Specifies the source logical subsystem (LSS) of an existing remote mirror and copy (formerly PPRC) relationship that is to be used as a means for communicating with the remote storage image. The source volume IDs that are specified in SourceVolumeID:TargetVolumeID must serve as secondary volumes in a remote mirror and copy relationship in which one of the conduit LSS volumes serves as a primary volume. This parameter allows the use of a fully qualified LSS ID, which includes the storage image ID. The fully qualified LSS ID format is storage_image_ID/XX. The DS8000 value for the XX is 00 - FE and the DS6000 value is 00 - 1F. -quiet (Optional) Turns off the confirmation prompt for this command. -tgtreleasespace (Optional - DS8000 only) Specifies that you want the system to release the space that has been allocated to the space-efficient target logical volumes back to the repository. This release must occur at the same time that the FlashCopy pair is removed if the only access to the space-efficient volumes is through the conduit LSS ID. -cp (Optional) Specifies that the FlashCopy relationship be changed from the No Copy to the Copy mode. Additionally the remaining source volume tracks are copied to the target volume. The relationship is removed when all the data is copied unless the relationship is persistent. When the -cp parameter is specified, the copy is processed for all volume pairs where the source volume ID is identical to the source volume that is specified in the command.
| | | | |
610
-seqnum flash_sequence_num (Optional) When a FlashCopy sequence number is specified, the rmremoteflash operation is performed only on those relations that are associated with the specified number. Example: 0010 This parameter is not supported for machine type 2105. -srcss SS_ID (Optional) Specifies the subsystem ID of the source logical subsystem at the remote site. The ID is in the format 0x0001 - 0xFFFF. This value is required for the IBM System Storage Enterprise Storage Server versions 2.4.0 and 2.4.1. 4. When you specify SS_IDs, the source volumes are restricted to one logical subsystem. Example: FF10 SourceVolumeID:TargetVolumeID . . . | (Required) Specifies the remote FlashCopy relationships for the source and target volume pairs with the specified IDs that are to be removed. This parameter accepts fully qualified volume IDs, which includes storage image IDs, or a shortened version without storage image IDs if the -dev parameter is specified. You must separate multiple FlashCopy pair IDs with spaces. A FlashCopy pair ID consists of two volume IDs, one designated as the source and the other as the target volume for a FlashCopy relationship. You must separate the two volume IDs of a FlashCopy pair ID with a colon and no space. The first volume ID is the source volume. The second volume ID is the target volume. The volume ID is a 32-bit number that can be represented as 4 hexadecimal digits in the form of XYZZ, where: XY (for a DS8000 model) Specifies the logical subsystem number, 00 - FE. XY (for a DS6000 model) Specifies the logical subsystem number, 00 - 1E. ZZ (for DS6000 and DS8000 models) Specifies the volume number, 00 - FF. X (for DS6000 and DS8000 models) Specifies the address group, 0 - 1. If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode. Example of a fully qualified FlashCopy pair ID: IBM.2107-75FA120/ 0001:IBM.2107-68FA120/0004 Example of a shortened version: 0001:0004 Example of multiple pairs: 0001:0004 0003:00FF 0008:000C
611
Example
You can issue the rmremoteflash command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model, you cannot use the -tgtreleasespace parameter and the storage image ID is different. Invoking the rmremoteflash command
dscli>rmremoteflash -dev IBM.2107-75FA120 -conduit IBM.2107-75FA150/10 0100:0200
setremoteflashrevertible
The setremoteflashrevertible command modifies a remote FlashCopy volume pair that is part of a FlashCopy relationship to revertible. When a pair is revertible, the data can be committed to the target to form a new consistency group, or it can be reverted back to the last consistency group. This command must be run before the FlashCopy pair can be committed or reverted.
setremoteflashrevertible -dev storage_image_ID -conduit LSS_ID -tgtoffline
-tgtse
-seqnum
flash_sequence_num
-srcss
SS_ID
SourceVolumeID:TargetVolumeID . . . -
Parameters
Note: The -nocp, -record, -persist, and -tgtinhibit (target inhibit) parameters that were specified when the FlashCopy pair was made (mkremoteflash command) are included automatically when the setremoteflashrevertible command processes. -dev storage_image_ID (Optional) Specifies the storage image ID, which includes manufacturer, machine type, and serial number. The storage image ID is required if you do not specify fully qualified IDs, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. -conduit LSS_ID (Required) Specifies the source logical subsystem (LSS) of an existing remote mirror and copy relationship that is to be used as a passage for communicating with the remote storage image. The source volume IDs that are specified in
| | | | |
612
SourceVolumeID:TargetVolumeID must serve as secondary volumes in a remote mirror and copy relationship in which one of the passage LSS volumes serves as a primary volume. When you use this parameter, you must specify a fully qualified LSS ID. The fully qualified LSS ID format is storage_image_ID/XX, where XX is a hexadecimal number in the range 00 - FE for the DS8000. The DS6000 value is 00 - 1F. -tgtoffline (Optional) Causes an establish FlashCopy volume pair command to be rejected if the target volume ID is online for host system access. This parameter applies only to CKD volumes. -tgtse (Optional - DS8000 only) Specifies that the target volume that is part of the FlashCopy relationship that you are modifying to be designated as revertible might be a space-efficient logical volume. An error message is generated if the target volume is a space-efficient volume and you do not specify this parameter. -seqnum flash_sequence_num (Optional) Associates the remote FlashCopy relationships that are changed with the specified sequence number. Only the relationships that are successfully modified by the command get the specified sequence number, leaving the ones that failed with the previous number (if previously specified). Example: 0010 This parameter is not supported for machine type 2105. -srcss SS_ID (Optional) Specifies the subsystem ID of the source logical subsystem at the remote site. The ID is in the format 0x0001 - 0xFFFF. This value is required for the IBM System Storage Enterprise Storage Server versions 2.4.0 and 2.4.1. Example: FF10 SourceVolumeID:TargetVolumeID . . . | (Required) Specifies that the remote FlashCopy relationships for the designated source and target volume pairs be modified. This parameter accepts fully qualified volume IDs, which includes storage image IDs, or a shortened version without storage image IDs if the -dev parameter is specified. You must separate multiple FlashCopy pair IDs with spaces. A FlashCopy pair ID consists of two volume IDs, one designated as the source and the other as the target volume for a FlashCopy relationship. You must separate the two volume IDs of a FlashCopy pair ID with a colon and no space. The first volume ID is the source volume. The second volume ID is the target volume. The volume ID is a 32-bit number that can be represented as 4 hexadecimal digits in the form of XYZZ, where: XY (for a DS8000 model) Specifies the logical subsystem number, 00 - FE. XY (for a DS6000 model) Specifies the logical subsystem number, 00 - 1E.
Chapter 12. Command-line interface commands
613
ZZ (for DS6000 and DS8000 models) Specifies the volume number, 00 - FF. X (for DS6000 and DS8000 models) Specifies the address group, 0 - 1. If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode. Example of a fully qualified FlashCopy pair ID: IBM.2107-75FA120/ 0001:IBM.2107-75FA120/0004 Example of a shortened version: 0001:0004 Example of multiple pairs: 0001:0004 0003:00FF 0008:000C
Example
You can issue the setremoteflashrevertible command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model, you cannot use the -tgtse parameter and the storage image ID is different. Invoking the setremoteflashrevertible command
dscli>setremoteflashrevertible -dev IBM.2107-75FA120 0100:
614
The rmpprcpath command deletes one or more specified Remote Mirror and Copy paths.
lsavailpprcport
The lsavailpprcport command displays a list of ESCON or fibre-channel I/O ports that can be defined as remote mirror and copy (formerly PPRC) paths. The DS8000 models and DS6000 models support only fibre-channel ports. The Enterprise Storage Server (2105 machine type) supports ESCON ports.
lsavailpprcport -dev storage_image_ID -remotewwnn wwnn -s -l
-remotedev
storage_image_ID
Source_LSS_ID:Target_LSS_ID -
Parameters
-dev storage_image_ID (Optional). Specifies the source volume storage image ID, which consists of manufacturer, machine type, and serial number. The storage image ID is required if you do not specify a fully qualified LSS ID, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. -remotewwnn wwnn (Required). Specifies the worldwide node name (WWNN). The format is a 16-hexadecimal ID. Note: You want to use the WWNN that is associated with the remote storage image. Run the lssi or showsi command to obtain this number. If you use the WWNN that is associated with the primary storage unit, this command fails. WWNN example: 12341234000A000F -s -l (Optional). Displays the local port ID. You cannot use the -l and the -s parameters together. (Optional). Displays all fields. You cannot use the -l and the -s parameters together.
| | | | |
-remotedev storage_image_ID (Required or Optional). Specifies the remote storage unit that contains the I/O ports that are queried by the Source_LSS_ID:Target_LSS_ID parameter. The remotedev ID consists of the value for the manufacturer, machine type, and serial number. Required - This parameter is required when querying ESCON I/O ports unless a fully qualified target logical subsystem ID is specified. Optional - This parameter is optional if you are querying fibre channel I/O ports. Note: If specified the format of this entry might be checked for correctness even though the value is not used. For DS8000, example: IBM.2107-75FA120
615
Source_LSS_ID:Target_LSS_ID | (Required). Queries I/O ports that are available for a remote mirror and copy path relationship for the source and target LSSs. This parameter accepts fully qualified LSS IDs, which includes the storage image ID or shortened version without the storage image ID, if the -dev parameter is specified. A remote mirror and copy path LSS pair ID consists of two LSS IDs, one designated as the source LSS and the other as the target LSS for a remote mirror and copy path relationship. The two LSS IDs must be separated with a colon and no spaces. The first LSS ID is the source LSS. The second LSS ID is the target LSS. The fully qualified LSS ID format is storage_image_ID/XX, where XX is a hexadecimal number in the range 00 - FE for a DS8000 model and 00 - 1F for a DS6000 model. If you do not use the -dev and -remotedev parameters, the fully qualified source_LSS_ID:target_LSS_ID value must be placed after the -remotewwnn value in your command line. For example, your command line would look like the following:
dscli>lsavailpprcport l remotewwnn 12341234000A000F IBM.2107-75FA120/01:IBM.2107-75FA150/01
If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode. Example pair: 00:00 Example of multiple pairs: 00:00 01:01 02:02
Example
You can issue the lsavailpprcport command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model the storage image ID is different. For this command and all other DS CLI list commands, the results are shown in table format to provide clarity. The actual reports do not display as tables. The following tables represent the headers that are displayed on the output report that is associated with the lsavailpprcport command using the -l parameter. A separate example is not shown for the DS6000 because the table headings are the same for both models. Invoking the lsavailpprcport command
dscli>lsavailpprcport l dev IBM.2107-75FA120 remotewwnn 12341234000A000F 01:01
The resulting output ESCON port information displays for the 2105 machine type.
Local port I0100 I0150 I0200 Attached port I0200 I0620 N/A Type FCP ESCON ESCON Switch Switch ID N/A N/A IBM.111.2222. 75113AB Switch port N/A N/A I10
616
Switch ID Specifies the Switch ID for ESCON Switch connections. Note: For FCP and direct ESCON, the displayed value in this field is N/A (not applicable). Switch port Specifies the Port ID on the Switch device that is connected to the attached ESS. The Switch port ID component is two hexadecimal characters in the format 0xPP, where PP is a port number (00 - ff). The number is prefixed with the letter I. Note: For FCP and direct ESCON, the value of this field is N/A (not applicable).
lspprcpath
The lspprcpath command displays a list of existing remote mirror and copy path definitions.
lspprcpath -dev storage_image_ID -s -l Source_LSS_ID . . . -
617
Parameters
-dev storage_image_ID (Optional) Specifies the storage image ID, which consists of values for the manufacturer, machine type, and serial number. The storage image ID is required if you do not specify a fully qualified ID for the source LSS, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. -s -l (Optional) Displays the default output of the report but does not include the Failed Reason column. You cannot use the -l and the -s parameters together. (Optional) Displays the default output and the Failed Reason descriptions. You cannot use the -l and the -s parameters together.
| | | | |
Source_LSS_ID . . . | (Required) Specifies that the Remote Mirror and Copy paths that are defined for the specified source LSS IDs be displayed. This parameter accepts ranges and individual LSS IDs. You might specify fully qualified LSS IDs, including the storage image ID, or a shortened version if the -dev parameter is specified. The fully qualified LSS ID format is storage_image_ID/XX, where XX is a hexadecimal number in the range 00 - FE for the DS8000. The DS6000 value is in the range 00 - 1F. You must separate multiple LSS IDs with spaces. If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode. Example: 00 Example of multiple source LSS IDs: 00 01 02
Example
You can issue the lspprcpath command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model the storage image ID is different. For this command and all other DS CLI list commands, the results are shown in table format to provide clarity. The actual reports do not display as tables. The following tables represent the headers that are displayed on the output report when the -l parameter is used with the lspprcpath command. Invoking the lspprcpath command
dscli>lspprcpath -dev IBM.2107-75FA120 -l 10
618
Src IBM.2107 -75FA120 /10 IBM.2107 -75FA120 /10 IBM.2107 -75FA120 /10
Tgt IBM.2107 -75FA150 /11 IBM.2107 -75FA150 /12 IBM.2107 -75FA150 /13
State Success
SS 0011
Degraded
0012
Invalid
0013
Port IBM.2107 -75FA120 /I0100 IBM.2107 -75FA120 /I0100 IBM.2107 -75FA120 /I0100 IBM.2107 -75FA120 /I0100
Attached Port IBM.2107 -75FA150 /I0100 IBM.2107 -75FA150 /I0100 IBM.2107 -75FA150 /I0100 IBM.2107 -75FA150 /I0100
3007ACF3012399E0
619
The port ID component is four hexadecimal characters in the format EEAP, where EE is a port enclosure number (00 - 3F), A is the adapter number (0 - F), and P is the port number (0 - F). The number is prefixed with the letter I. Attached Port Specifies the fully qualified unique Port ID for the attached secondary storage unit. The port ID component is four hexadecimal characters in the format 0xEEAP, where EE is a port enclosure number (00 - 3F), A is the adapter number (0 - F), and P is the port number (0 - F). The number is prefixed with the letter I. Tgt WWNN Specifies the worldwide node name of the remote storage image. Failed Reason Specifies the reason for the path state. You must issue the lspprcpath command with the -l parameter to see the values displayed in this field. If the State field has a value of Invalid or Success, a null (-) value is displayed in this field. When the State field displays a value of Failed, one of the following values is displayed: Configuration Error A path has failed for one of the following reasons: v The specification of the SA ID does not match the installed ESCON adapter cards in the primary controller. v For ESCON paths, the secondary control unit destination address is zero and an ESCON Director (switch) was found in the path. v For ESCON paths, the secondary control unit destination address is nonzero and an ESCON Director does not exist in the path. That is, the path is a direct connection. Delete the original entry and resubmit the mkpprcpath command. Down An FCP path has failed because of a communication or hardware failure. Primary Login Exceeded The maximum number of log ins for each source FCP path has been exceeded. Retry Exceeded The maximum number of times that the storage unit tried to reestablish FCP paths has been exceeded. Secondary Login Exceeded The maximum number of log ins for each FCP path to the secondary LSS has been exceeded. The FCP target is unavailable. Secondary Unavailable An FCP path to the secondary LSS is unavailable. Primary No Resources No resources are available at the source site for the logical paths to be established. Retry Specifies the number of attempts to reestablish path connection.
620
Secondary Mismatch Specifies that there is a mismatch that involves the secondary control unit sequence number or the LSS. Secondary No Resources Specifies that resources are not available at the secondary LSS to establish logical paths. Secondary LSS Mismatch Specifies that there is a mismatch of the secondary control unit LSS ID or a failure of the I/O that collects secondary information for validation. Timeout Specifies that a timeout has occurred. No reason is available. Not Properly Configured Specifies that the primary fibre channel adapter is not configured properly, or it is not loaded with the correct version of microcode. Secondary Not PPRC Capable Specifies that the fibre channel path from secondary adapter is not capable of processing a remote mirror and copy path. This can occur from one of the following reasons: v The secondary adapter is not configured properly, or it is not loaded with the correct version of microcode. v The secondary adapter is already a target of 32 different storage units. ESCON Channel Direction Specifies that the primary control unit port or link cannot be converted to channel mode because a logical path is already established on the port or link. The establish path operations are not automatically retried within the control unit. ESCON Initialization Failed Specifies that initialization for the ESCON protocol has failed. ESCON Link Offline Specifies that the ESCON link is offline. This is caused by the lack of light detection coming from a host, peer, or switch. Path Degraded Due to High Failure Rate Indicates that a fibre channel path is established; however, because of the high failure rate, the path is degraded. Path Removed Due to High Failure Rate Indicates that the fibre channel path link has been removed because the path has experienced a high failure rate. System Reserved Path Indicates that the system has reserved resources for a remote mirror and copy path, for example, after a failoverpprc or a freezepprc command is used. The resources can be used later, such as for the failbackpprc command. In most cases, no action is required. If it is known that a system reserved path is not required, it can be removed with the rmpprcpath command only after there are no remote mirror and copy pairs remaining between the LSSs.
621
mkesconpprcpath
The mkesconpprcpath command creates a remote mirror and copy (formerly PPRC) path between source and target logical subsystems over an ESCON connection. The command allows you to specify ESCON direct and ESCON switch connections. Use this command only with IBM System Storage Enterprise Storage Servers (2105, Model 800 and Model 750).
mkesconpprcpath -dev storage_image_ID Source_LSS_ID -srcss ss_ID -remotedev storage_image_ID -tgtlss Target_LSS_ID
-tgtss
ss_ID
-consistgrp
-force
Source_Port_ID:Target_Port_ID . . . -
Parameters
Notes: 1. The mkesconpprcpath command is applicable only for the IBM System Storage Enterprise Storage Server (2105, Model 800 and Model 750). DS8000 models and DS6000 models support only fibre-channel connections. 2. When you specify a switch port ID as the target port, specify the outgoing port that is connected to the remote ESS and not to the incoming port that is connected to the local ESS. -dev storage_image_ID (Optional). Specifies the storage image ID, which consists of manufacturer, machine type, and serial number. The storage image ID is required if you do not specify a fully qualified source LSS ID, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. Example: IBM.2105-75FA120 -remotedev storage_image_ID (Optional). Specifies the remote storage image ID, which consists of manufacturer, machine type, and serial number. This parameter is required if you do not fully qualify the target LSS ID. Example: IBM.2105-75FA150 -srclss Source_LSS_ID (Required). Specifies the source logical subsystem (LSS) ID. Accepts a fully qualified LSS ID, which includes the storage image ID or a shortened version without the storage image ID, if the -dev parameter is used. The fully qualified LSS ID format is storage_image_ID/xx, where xx is a hexadecimal number in the range 00 - FE. -srcss ss_ID (Optional). Specifies the subsystem ID of the primary logical subsystem in the format 0x0001 - 0xFFFF.
| | | | |
622
This value is required for the IBM Enterprise Storage Server versions 2.4.0 and 2.4.1. Example: 0010 -tgtlss Target_LSS_ID (Required). Specifies the target logical subsystem (LSS) ID. Accepts a fully qualified LSS ID, which includes the storage image ID, or a shortened version without the storage image ID, if the -remotedev parameter is used. The fully qualified LSS ID format is storage_image_ID/xx, where xx is a hexadecimal number in the range 00 - FE. -remotewwnn WWNN (Optional). Specifies the worldwide node name. The format is a 16-hexadecimal ID. Note: If you use this parameter, the format is checked even though there might be times that the value is not used. Example: 12341234000A000F -tgtss ss_ID (Optional). Specifies the subsystem ID of the secondary logical subsystem in the format 0x0001 - 0xFFFF. This value is required for the IBM Enterprise Storage Server versions 2.4.0 and 2.4.1. Example: 0010 -consistgrp (Optional). Creates a consistency group for the remote mirror and copy volume pairs that are associated with the PPRC paths that are established by this command. A remote mirror and copy consistency group is a set of remote mirror and copy volume pairs that have the same source and target LSS. Normally, when an error occurs in a member of a remote mirror and copy volume pair, the volume is put in a suspended state. However, if the volume is participating in a consistency group, it is placed in a long busy state. -force (Optional). Creates a new remote mirror and copy path even if the specified remote mirror and copy path already exists. Source_Port_ID:Target_Port_ID . . . | (Required). Establishes a remote mirror and copy path between the source and target ports for the specified source and target logical subsystems. The source port must be an ESCON I/O port that is configured for point-to-point or switch topology. The source port is enabled automatically for remote mirror and copy primary I/O operations. The target port must be a switch I/O port that is configured for point-to-point or switch topology. The target port is enabled automatically for remote mirror and copy primary I/O operations. Note: Do not specify a target port ID when you specify an ESCON direct connection. Instead, specify only the source port ID. This parameter accepts only non-fully qualified port IDs, which does not include the storage image ID. A remote mirror and copy path port pair ID consists of two port IDs. The first is designated as the source port and the second as the target port for the remote mirror and copy path. You must separate the two port IDs with a colon and no spaces. A direct ESCON I/O port ID is four hexadecimal characters in the format EEAP, where EE is a port
Chapter 12. Command-line interface commands
623
enclosure number 00 - 3F, A is the adapter number 0 - F, and P is the port number 0 - F. This number is prefixed with the letter I. A switch ESCON I/O port ID is two hexadecimal characters in the range 00 - FF. This number is prefixed with the letter I. This parameter accepts up to eight remote mirror and copy path port pair IDs. You must separate multiple port pair IDs with spaces. If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode. Example pair: I1A10:I20 Example of a source ESCON port and target switch port pair: I1A10:I20 Example of multiple pairs: I1A10:I20 I1A11:I21 I1A12 (the last object identifies an ESCON connection)
mkpprcpath
The mkpprcpath command establishes or replaces a remote mirror and copy (formerly PPRC) path between source and target logical subsystems (LSSs) over a fibre-channel connection. This is the only supported connectivity for machine types 2107 and 1750. Paths can be established between the following machine types: 2105:2105, 2107:2107, 2107:1750, 2107:2105, 1750:1750, 1750:2105.
mkpprcpath -dev -remotewwnn WWNN storage_image_ID -srclss source_LSS_ID -srcss SS_ID -remotedev storage_image_ID -tgtlss target_LSS_ID
Parameters
-dev storage_image_ID (Optional) Specifies the source storage image ID, which includes manufacturer, machine type, and serial number. The storage image ID is required if you do not specify fully qualified IDs, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command.
| | | | |
624
-remotedev storage_image_ID (Optional) Specifies the ID of the secondary storage image, which includes manufacturer, machine type, and serial number. If specified, the format of this entry might be checked for correctness although the value is not used For DS8000, example: IBM.2107-75FA150 -remotewwnn WWNN (Required) Specifies the worldwide node name of the secondary storage image. The format is a 16-hexadecimal ID. Note: Ensure that you use the worldwide node name that is associated with the secondary storage unit. Run the lssi or showsi command to obtain this number. Example: 12341234000A000F -srclss source_LSS_ID (Required) Specifies the source logical subsystem ID. Use a fully qualified LSS ID, which includes the storage image ID, or use a shortened version without the storage image ID, if the -dev parameter is used. The fully qualified LSS ID format is storage_image_ID/XX, where XX is a hexadecimal number in the range 00 - FE for the DS8000. The DS6000 value is in the range 00 - 1F. Example of a shortened version: 00 -srcss SS_ID (Optional) Specifies the subsystem ID of the primary logical subsystem in the format 0x0001 - 0xFFFF. This value is required for the IBM TotalStorage Enterprise Storage Server versions 2.4.0 and 2.4.1. Example: 0010 -tgtlss target_LSS_ID (Required) Specifies the logical subsystem ID associated with the secondary storage unit as the target. Use a fully qualified LSS ID, which includes the storage image ID. The fully qualified LSS ID format is storage_image_ID/XX, where XX is a hexadecimal number in the range 00 - FE for the DS8000. The DS6000 value is in the range 00 - 1F. Example of a shortened version: 01 -tgtss SS_ID (Optional) Specifies the subsystem ID of the secondary logical subsystem in the format 0x0001 - 0xFFFF. This value is required for the IBM TotalStorage Enterprise Storage Server versions 2.4.0 and 2.4.1. Example: 0010 -consistgrp (Optional) Creates a consistency group for the remote mirror and copy volume pairs. A remote mirror and copy consistency group is a set of remote mirror and copy volume pairs that have the same source and target LSS. Normally, when an error occurs in a member of a remote mirror and copy volume pair, the storage unit places the volume in a suspended state. However, if the volume participates in a consistency group, it is placed in a long busy state.
625
source_port_ID:target_port_ID . . . | (Required) Establishes a remote mirror and copy path between the source and target ports for the specified source and target logical subsystems. The source and target ports must be fibre-channel I/O ports that are configured for point-to-point or switched fabric topology. They are enabled automatically for remote mirror and copy secondary I/O operations. They are not enabled for FICON I/O operations. Use fully qualified port IDs, which includes the storage image ID, or use a shortened version without the storage image ID if the -dev parameter is specified. A remote mirror and copy path port pair ID consists of two port IDs. Designate the first as the source port and the second as the target port for the remote mirror and copy path. You must separate the two port IDs with a colon and no spaces. A port ID is four hexadecimal characters in the format EEAP, where EE is a port enclosure number (00 - 3F), A is the adapter number (0 - F), and P is the port number (0 - F). This number is prefixed with the letter I. This parameter accepts up to eight remote mirror and copy path port pair IDs. You must separate multiple port pair IDs with spaces. If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode. Example of the shortened version: I1A10:I2A20 Example of multiple pairs: I1A10:I2A20 I1A11:I2A21 I1A12:I2A22
Example
You can issue the mkpprcpath command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model the storage image ID is different. Invoking the mkpprcpath command
dscli>mkpprcpath -dev IBM.2107-75FA120 -srclss 01 -tgtlss 01 remotewwnn 12341234000A000F I0100:I0100
rmpprcpath
The rmpprcpath command deletes a Remote Mirror and Copy path.
rmpprcpath -dev storage_image_ID -remotedev storage_image_ID
-remotewwnn
WWNN
-type
fcp escon
-quiet
-force
source_LSS_ID:target_LSS_ID . . . -
626
Parameters
-dev storage_image_ID (Optional) Specifies the source storage image ID, which includes manufacturer, machine type, and serial number. The storage image ID is required if you do not specify a fully qualified source LSS ID, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. -remotedev storage_image_ID (Optional) Specifies the target storage image ID, which includes manufacturer, machine type, and serial number. This parameter is required if you do not specify a fully qualified target LSS ID or if the -dev parameter is used. -remotewwnn WWNN (Optional) Specifies the secondary worldwide node name. Note: The following considerations can help you decide whether to use this parameter: v If you do not specify this parameter, DS CLI processing requires a query for this information from the remote device. In some cases, due to the path-specific state, the query might fail to locate the remote WWNN. If the remote WWNN cannot be located, the rmpprcpath command fails. Process the lspprcpath command to obtain the remote WWNN information and then process the rmpprcpath command with the remote WWNN information included. v Use the lspprcpath command to obtain the remote WWNN information. -type fcp | escon (Optional) The type of the connection over which the path was created. fcp escon Fibre-channel protocol (DS8000 only) Enterprise Systems Connection (IBM S/390 and System z)
| | | | |
-quiet (Optional) Turns off the confirmation prompt for this command. -force (Optional) Specifies that you want to remove Remote Mirror and Copy paths even if Remote Mirror and Copy volume pairs exist. Otherwise, specified paths that are associated with existing Remote Mirror and Copy volume pairs are not be removed. source_LSS_ID:target_LSS_ID . . . | (Required) Specifies the Remote Mirror and Copy path relationships for the source and target LSSs that are to be removed. The LSS pair ID consists of two LSS IDs, one designated as the source LSS and the other as the target LSS for a Remote Mirror and Copy path relationship. The two LSS IDs must be separated with a colon and no spaces. The first LSS ID is the source LSS. The second LSS ID is the target LSS. This parameter accepts fully qualified LSS IDs, which includes the storage image ID, or a shortened version without the storage image ID if the -dev parameter is specified.
627
The fully qualified LSS ID format is storage_image_ID/XX, where XX is a hexadecimal number in the range 00 - FE for the DS8000. The DS6000 value is in the range 00 - 1F. If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode. For DS8000, example of a fully qualified pair: IBM.2107-75FA120/00:IBM.210775FA150/00 Example of a shortened version: 00:00 Example of multiple pairs: 00:00 01:01 02:02
Example
You can issue the rmpprcpath command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model, you cannot use the subparameter escon for the -type parameter and the storage image ID is different. Invoking the rmpprcpath command
dscli>rmpprcpath -dev IBM.2107-75FA120 -remotedev IBM.2107-75FA150 -remotewwnn 12341234000A000F 01:01
v resumepprc v rmpprc v unfreezepprc The failbackpprc command copies the required data from the source volume to the target volume in order to resume mirroring. You can use this command after a failoverpprc command has been issued to restart mirroring from site A (local site) to site B (remote site). The failoverpprc command generates Global Mirror and Metro Mirror disaster recovery processes with the following results:
628
v In a Global Mirror failover recovery process, the failoverpprc command initiates failover processing of B volumes to A volumes. v In a Global Mirror failback recovery process (production is returned to the local site), the failoverpprc command initiates failover processing from A volumes to B volumes. v In a Metro Mirror disaster recovery process, failover processing to the Global Copy secondary volume causes the secondary volumes to become primary volumes and immediately suspends these volumes. The failoverpprc command changes a secondary device into a primary suspended device while leaving the primary device in its current state. The lspprc command generates a report that displays a list of remote mirror and copy volume relationships for a storage image and the status information for each remote mirror and copy volume relationship in the list. The mkpprc command establishes a remote mirror and copy relationship for a volume pair. The freezepprc command creates a new remote mirror and copy consistency group. It places the source logical subsystem (LSS) in the long busy state so that no I/O can be directed to it. It also removes remote mirror and copy paths between the source LSS and target LSS and sets the queue-full condition for the primary volume. The pausepprc command pauses an existing remote mirror and copy volume pair relationship or pauses a single volume ID. The resumepprc command resumes a remote mirror and copy relationship for a volume pair. The rmpprc command removes one or more specified remote mirror and copy volume pair relationships, or it removes a single volume ID (which might be useful when a disaster occurs and you want to specify only the available volume and not both the primary and secondary volumes). The unfreezepprc command resumes I/O activity on a storage unit where the freezepprc command has been issued. The unfreezepprc command resets the queue full condition for the primary volume.
failbackpprc
The failbackpprc command copies the required data from the source volume to the target volume in order to resume mirroring. This command is used in the disaster recovery processes that are associated with sites using Metro Mirror, Global Mirror, or Metro/Global Mirror processing.
failbackpprc -dev storage_image_ID -remotedev storage_image_ID
-type
mmir gcp
-cascade
-tgtse
-suspend
-tgtonline
-resetreserve
-force
-tgtread
-disableautoresync
629
SourceVolumeID:TargetVolumeID . . . -
Parameters
Notes: 1. You can issue the failbackpprc command against any remote mirror and copy volume that is in a primary suspended state. The failback processing copies the required data from the source volume to the target volume in order to resume mirroring. 2. A metro mirror (synchronous) pair must be suspended before it can be reestablished as a Global Copy (extended distance) pair and vice versa. 3. When you specify subsystem IDs (SSIDs), the source and target volumes are restricted to 1 LSS for the source and 1 LSS for the target. -dev storage_image_ID (Optional). Specifies the source storage image ID, which includes manufacturer, machine type, and serial number. The storage image ID is required if you do not specify a fully qualified source volume ID (which includes the storage image ID, for the source volume IDs that are defined by the Source_Volume_ID:Target_Volume_ID parameter), do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. Note: The use of the failbackpprc command requires that this parameter reflect a role reversal. The value for this parameter must be the original primary site which has been repaired and is ready to once again become your primary production site. For example: v Original primary site (Site A) has a value of IBM.2107-75FA120 with volumes 0100, 0101, 0102, 0103. v Original secondary site (Site B) has a value of IBM.2107-75FA150 with volumes 0200, 0201, 0202, 0203. v The following failbackpprc command is correct: dscli>failbackpprc -dev IBM.2107-75FA120 -remotedev IBM.2107-75FA150 0100:0200 0101:0201 0102:0202 0103:0203 -remotedev storage_image_ID (Optional). Specifies the target storage image ID, which includes manufacturer, type, and serial number. The -remotedev parameter identifies the remote storage unit that contains the target volume IDs that are defined by the SourceVolumeID:TargetVolumeID parameter. The -remotedev parameter is required if you do not specify a fully qualified target volume ID or if you use the -dev parameter. Note: The use of the failbackpprc command requires that this parameter reflect a role reversal. The value for this parameter must be the original secondary site. For example: v Original primary site (Site A) has a value of IBM.2107-75FA120 with volumes 0100, 0101, 0102, 0103.
| | | |
630
v Original secondary site (Site B) has a value of IBM.2107-75FA150 with volumes 0200, 0201, 0202, 0203. v The following failbackpprc command is correct: dscli>failbackpprc -dev IBM.2107-75FA120 -remotedev IBM.2107-75FA150 0100:0200 0101:0201 0102:0202 0103:0203 -type mmir | gcp (Required). Modify one or more existing remote mirror and copy volume relationships as either Metro Mirror (Synchronous) or Global Copy (Extended Distance) relationships. mmir Metro Mirror maintains the remote mirror and copy relationship in a consistent manner by returning the I/O write completion status to the application when the updates are committed to the target. This process becomes slower as the physical distance between source and target increases. Global Copy maintains the remote mirror and copy relationship in a nonsynchronous manner. I/O write completion status is returned to the application when the updates are committed to the source. Updates to the target volume are performed at a later time. The original order of updates is not strictly maintained.
gcp
-cascade (Optional) Specifies that the remote mirror and copy target volume can also be a remote mirror and copy source volume of a different remote mirror and copy volume relationship. | | | -tgtse (Optional) Specifies that the PPRC secondary volume is a space efficient volume. -suspend (Optional) Specifies that the remote mirror and copy relationship be suspended when the task completes. Notes: 1. This parameter is not valid for a Global Copy (Extended Distance) remote mirror and copy volume relationship. 2. This parameter is not valid for a Metro Mirror (Synchronous) remote mirror and copy volume relationship that is established with the No Copy option activated. -tgtonline (Optional) Specifies that a remote mirror and copy volume relationship be established, including when the target volume is online to host systems. Note: This parameter applies only to S/390 or System z volumes. It does not apply to Open Systems volumes. -resetreserve (Optional) Specifies that a remote mirror and copy relationship be established when the volume on the secondary logical subsystem is reserved by another host. If this parameter is not specified and the volume on the secondary logical subsystem is reserved, the command fails. Note: This parameter applies only to fixed block volumes.
Chapter 12. Command-line interface commands
631
-force (Optional - DS8000 only) Specifies whether validation of the volumes involved in the establish request occurs or is bypassed. This parameter allows you to create a FlashCopy pair between two volumes who had no previous relationship and ONLY copy changed tracks. Notes: 1. This parameter can only be used as part of a Metro/Global Mirror (3-site) disaster recovery process. 2. Only use this parameter if you are fully aware of the affect this parameter has on your transactions. A couple of scenarios are provided in this guide that describe a set of circumstances that allow you to safely use this parameter. If your circumstances do not match those described in the scenarios, you are cautioned not to use this parameter unless advised to do so by IBM Technical Support. -tgtread (Optional) Specifies that host servers be allowed to read from the remote mirror and copy target volume. For a host server to read the volume, the remote mirror and copy pair must be in a full-duplex state. Note: This parameter applies only to Open System volumes. -disableautoresync (Optional - DS8000 only) Allows you to disable the mechanism that automatically resumes a suspended Global Copy relationship. The default is not disabled. SourceVolumeID:TargetVolumeID . . . | (Required). Specifies the remote mirror and copy volume pair IDs for the source and target volume pairs that are to undergo failback processing. The original values (before the disaster) return with the source volume IDs equal to the A volumes and the target volume IDs equal to the B volumes. This parameter accepts fully qualified volume IDs, which includes storage image IDs or a shortened version without storage image IDs if the -dev parameter is specified. You must separate multiple remote mirror and copy pair IDs with spaces. A remote mirror and copy volume pair ID consists of two volume IDs, one designated as the source and the other as the target volume for a remote mirror and copy relationship. You must separate the two volume IDs of a remote mirror and copy pair ID with a colon and no space. The first volume ID is the source volume. The second volume ID is the target volume. The volume ID is a 32 bit number that can be represented as 4 hexadecimal digits in the form of XYZZ, where: X (for DS6000 and DS8000 models) Specifies the address group, 0 - 1 for DS6000 and 0 - F for DS8000. XY (for a DS8000 model) Specifies the logical subsystem number, 00 - FE. XY (for a DS6000 model) Specifies the logical subsystem number, 00 - 1E. ZZ (for DS6000 and DS8000 models) Specifies the volume number, 00 - FF.
632
If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode. For DS8000, example of a fully qualified pair: IBM.2107-75FA120/ 0100:IBM.2107-75FA150/0100 Example of multiple pairs: 0101:0101 0102:0102 0103:0103
Example
You can issue the failbackpprc command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model, you cannot use the -force and -disableautoresync parameters and the storage image ID is different. Invoking the failbackpprc command
dscli>failbackpprc -dev IBM.2107-75FA120 -remotedev IBM.2107-75FA150 0100:0100 0101:0101 0102:0102 0103:0103
failoverpprc
The failoverpprc command is used only with disaster recovery processing. This command is used in the disaster recovery processes associated with sites using Metro Mirror, Global Mirror, or Metro/Global Mirror processing. The failoverpprc command succeeds even if the paths are down and the volume at the production site is unavailable or nonexistent.
failoverpprc -dev -type mmir gcp storage_image_ID -remotedev storage_image_ID
-tgtonline
-cascade
-force
-disableautoresync
SourceVolumeID:TargetVolumeID . . . -
Parameters
The failoverpprc command is used in the Global Mirror and Metro Mirror disaster recovery processes with the following results: v In a Global Mirror failover recovery process, the failoverpprc command initiates failover processing of B volumes to A volumes. This causes the B volumes to become the primary volumes and the A volumes to become the secondary volumes. The effect is that the Global Copy state of the B volumes changes from secondary to primary and suspended.
Chapter 12. Command-line interface commands
633
v In a Global Mirror failback recovery process (production is returned to the local site), the failoverpprc command initiates failover processing from A volumes to B volumes. This causes the A volumes to become the primary volumes and the B volumes to become the secondary volumes. v In a Metro Mirror disaster recovery process, failover processing to the Global Copy secondary volume causes the secondary volumes to become primary volumes and immediately suspends these volumes. When you run a Global Copy failover, the B volumes are the primary volumes and the A volumes are the secondary volumes. This action changes only the Global Copy state of the secondary volumes from Target Copy Pending to Suspended. The failoverpprc command changes a secondary device into a primary suspended device while leaving the primary device in its current state. This command succeeds even if the paths are down and the volume at the production site is unavailable or nonexistent. Note: When you specify the subsystem identifier (SSID), the source and target volumes are restricted to one LSS for the source and one LSS for the target. -dev storage_image_ID (Optional). Specifies the source storage image ID, which includes manufacturer, machine type, and serial number. The storage image ID is required if you do not specify a fully qualified source volume ID, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. Note: The use of the failoverpprc command requires that this parameter reflect a role reversal. The value for this parameter must be the original secondary site. For example: v Original primary site (Site A) has a value of IBM.2107-75FA120 with volumes 0100, 0101, 0102, 0103. v Original secondary site (Site B) has a value of IBM.2107-75FA150 with volumes 0200, 0201, 0202, 0203. v The following failoverpprc command is correct: dscli>failoverpprc -dev IBM.2107-75FA150 -remotedev IBM.2107-75FA120 0200:0100 0201:0101 0202:0102 0203:0103 -remotedev storage_image_ID (Optional). Specifies the target storage image ID, which includes manufacturer, type, and serial number. This parameter is required if you do not specify a fully qualified target volume ID or if you use the -dev parameter. Note: The use of the failoverpprc command requires that this parameter reflect a role reversal. The value for this parameter must be the original primary site. For example: v Original primary site (Site A) has a value of IBM.2107-75FA120 with volumes 0100, 0101, 0102, 0103. v Original secondary site (Site B) has a value of IBM.2107-75FA150 with volumes 0200, 0201, 0202,0203. v The following failoverpprc command is correct:
| | | | |
634
dscli>failoverpprc -dev IBM.2107-75FA150 -remotedev IBM.2107-75FA120 0200:0100 0201:0101 0202:0102 -type mmir | gcp (Required). Modifies one or more existing remote mirror and copy volume relationships as either Metro Mirror or Global Copy relationships. mmir Metro Mirror maintains the remote mirror and copy relationship in a consistent synchronous manner when the updates are committed to the target. This process becomes slower as the physical distance between source and target increases. Global Copy maintains the remote mirror and copy relationship in a nonsynchronous manner when the updates are committed to the source. Updates to the target volume are performed at a later time. The original order of updates is not strictly maintained.
gcp
-tgtonline (Optional). Establishes a remote mirror and copy volume relationship, including when the target volume is online to host systems. This parameter applies to S/390 or System z volumes. It does not apply to Open Systems volumes. -cascade (Optional). Specifies that the PPRC target volume can also be a PPRC source volume of a different PPRC volume relationship. -force (Optional - DS8000 only) Specifies whether validation of the volumes that are involved in the establish request occurs or is bypassed. This parameter allows you to create a FlashCopy pair between two volumes that had no previous relationship and only copy changed tracks. Notes: 1. This parameter can only be used as part of a Metro/Global Mirror (3-site) disaster recovery process. 2. Use the -force parameter if you are fully aware of the affect that this parameter has on your transactions. A couple of tasks are provided in this guide that describe a set of circumstances that allow you to safely use this parameter. If your circumstances do not match those described in the scenarios, you are cautioned not to use this parameter unless advised to do so by IBM Technical Support. -disableautoresync (Optional - DS8000 only) Allows you to disable the mechanism that automatically resumes a suspended Global Copy relationship. The default is not disabled. SourceVolumeID:TargetVolumeID . . . | (Required) Specifies the remote mirror and copy volume pair IDs of the source and target volumes that must have their relationships changed so that the target volumes (B volumes) become the source volumes and the original source volumes (A volumes) become the target volumes. This results in the following conditions: v The source volumes (B volumes) show as a suspended host. v The target volumes (A volumes) show as a suspended target and they are accessible for mounting.
Chapter 12. Command-line interface commands
635
This parameter also accepts fully qualified volume IDs, which includes storage image IDs or a shortened version without storage image IDs, if the -dev parameter is specified. You must separate multiple remote mirror and copy pair IDs with spaces. A remote mirror and copy pair ID consists of two volume IDs: one designated as the source and the other as the target volume for a remote mirror and copy relationship. You must separate the two volume IDs of a remote mirror and copy pair ID with a colon and no space. The first volume ID is the source volume. The second volume ID is the target volume. The volume ID is a 32 bit number that can be represented as 4 hexadecimal digits in the form of XYZZ, where: X (for DS6000 and DS8000 models) Specifies the address group, 0 - 1 for DS6000 and 0 - F for DS8000. XY (for a DS8000 model) Specifies the logical subsystem number, 00 - FE. XY (for a DS6000 model) Specifies the logical subsystem number, 00 - 1E. ZZ (for DS6000 and DS8000 models) Specifies the volume number, 00 - FF. If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode. For DS8000, example of a fully qualified pair: IBM.2107-75FA150/ 0100:IBM.2107-75FA120/0100 Example of a shortened version: 0100:0100 Example of multiple pairs: 0101:0101 0102:0102 0103:0103
Example
You can issue the failoverpprc command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model, you cannot use the -force and -disableautoresync parameters and the storage image ID is different. Invoking the failoverpprc command
dscli>failoverpprc -dev IBM.2107-75FA150 -remotedev IBM.2107-75FA120 0200:0100 0201:0101 0202:0102
The resulting output A confirmation message is presented for each remote mirror and copy pair that is successfully suspended.
lspprc
The lspprc command displays a list of remote mirror and copy (formerly PPRC) volume relationships for a storage image, and status information for each remote mirror and copy volume relationship in the list.
lspprc -dev storage_image_ID -remotedev storage_image_ID
636
-state
-s -l
source_volume_ID:target_volume_ID volume_ID -
. . .
Parameters
-dev storage_image_ID (Optional). Specifies the storage image ID, which consists of manufacturer, machine type, and serial number. The storage image ID is required if you do not specify a fully qualified ID for the source and target volumes, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. -remotedev storage_image_ID (Optional; however, required as noted). Specifies the target volume storage image ID, which consists of manufacturer, machine type, and serial number. Note: The -remotedev parameter is required when volume pairs are specified and the -dev parameter is specified, as well. -state copy-pending | full-duplex | suspended | target-copy-pending | target-full-duplex | target-suspended | invalid-state | validation-required | volume-inaccessible (Optional) Identifies the state of the remote mirror and copy relationship that you want to view. copy-pending Specifies that you want to view remote mirror and copy relationships that have copy processing that is pending. A Global Copy relationship is always copy-pending. full-duplex Specifies that you want to view remote mirror and copy relationships that are full duplex. suspended Specifies that you want to view remote mirror and copy relationships that are suspended. The Reason attribute might indicate why the relationship is suspended. target-copy-pending Specifies that you want to view remote mirror and copy relationships where the target volume has copy processing that is pending. In this state, the source volume is unknown or cannot be queried.
| | | | |
637
target-full-duplex Specifies that you want to view remote mirror and copy relationships where the target volume is full duplex. In this state, the source volume is unknown or cannot be queried. target-suspended Specifies that you want to view remote mirror and copy relationships where the target volume is suspended. In this state, the source volume is unknown or cannot be queried. The Reason attribute might indicate why the relationship is suspended. invalid-state Specifies that you want to view remote mirror and copy relationships with an Invalid State. The Invalid State means that a general internal error has occurred when the query was processed. The report that is generated with this query only displays the source and target volume IDs of a remote mirror and copy volume relationship and the state designation of Invalid State. All the other information columns are displayed with a null (-) value. validation-required Specifies that further validation is required. A re-run the of the lspprc command might display a different state output. However, if you request a query with just the validation-required designation, the report only displays the source and target volume IDs of a remote mirror and copy volume relationship that have a designation of validation-required. All the other information columns are displayed with a null (-) value. volume-inaccessible Specifies that you want to view remote mirror and copy relationships where the volume cannot be viewed, generally this means that the volume is fenced. The report that is generated with this query only displays the source and target volume IDs of a remote mirror and copy volume relationship and the state designation of volume-inaccessible. All the other information columns are displayed with a null (-) value. -s -l (Optional). Displays the remote mirror and copy volume pair IDs. You cannot use the -s and the -l parameters together. (Optional). Displays the default output plus additional attributes that are identified as long output. You cannot use the -l and the -s parameters together.
SourceVolumeID:TargetVolumeID | Volume_ID . . . | (Required) Displays the remote mirror and copy relationships for the source and target volume pairs, or for volumes with the specified IDs. This parameter accepts fully qualified volume IDs, which includes storage image IDs or a shortened version without storage image IDs, if the -dev parameter is specified. You must separate multiple remote mirror and copy pair IDs with spaces. A remote mirror and copy pair ID consists of two volume IDs: one designated as the source and the other as the target volume for a remote mirror and copy relationship. You must separate the two volume IDs of a remote mirror and copy pair ID with a colon and no spaces. The first volume ID is the source volume. The second volume ID is the target volume. You can enter remote mirror and copy pair IDs, a range of remote mirror and copy pair IDs, single volume IDs, or a range of volume IDs. You cannot enter a combination of remote mirror and copy pair IDs and volume IDs.
638
The volume ID is a 32 bit number that can be represented as 4 hexadecimal digits in the form of XYZZ, where: XY (for a DS8000 model) Specifies the logical subsystem number, 00 - FE. XY (for a DS6000 model) Specifies the logical subsystem number, 00 - 1E. ZZ (for DS6000 and DS8000 models) Specifies the volume number, 00 - FF. X (for DS6000 and DS8000 models) Specifies the address group, 0 - 1. If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode. Example of a shortened version pair: 0100:0100 Example of multiple pair IDs: 0100:0100 0200:0200 0300:0300 Example of a range of pair IDs: 0100-010F:0100-010F Example of a source or target volume ID: 0100 Example of a range of source or target volume IDs: 0100-010F Note: A query of target volume IDs is directed to the storage image that is identified by the -dev parameter or embedded in the fully qualified single volume IDs.
Example
You can issue the lspprc command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model the storage image ID is different. For this command and all other DS CLI list commands, the results are shown in table format to provide clarity. The actual reports do not display as tables. The following tables represent the headers that are displayed on the output report that is associated with the lspprc command using the -l parameter. Invoking the lspprc command
dscli>lspprc -dev IBM.2107-75FA120 -remotedev IBM.2107-75FA150 -l 0100:0100 0101:0101
639
State FullDuplex
Reason -
FullDuplex
Metro Mirror
Enabled
Disabled
Date Suspended -
Source LSS 01 02
DisableAutoResync -
640
Invalid State Indicates that a general internal error occurred when the query was processed. Note: The report that is generated with the Invalid State designation only displays the source and target volume IDs of a remote mirror and copy volume relationship and the state designation of Invalid State. All the other information columns are displayed with a null (-) value. Validation Required Indicates that the status of the volume can not be determined at this time. Further validation is required. Sometimes, to re-run the same lspprc command later will have different state output. Note: The report that is generated with the validation-required designation only displays the source and target volume IDs of a remote mirror and copy volume relationship and the state designation of validation-required. All the other information columns are displayed with a null (-) value. Volume Inaccessible Indicates that the volume could not be queried. Generally, this indicates that the volume is fenced. Note: The report that is generated with the Volume Inaccessible designation only displays the source and target volume IDs of a remote mirror and copy volume relationship and the state designation of Volume Inaccessible. All the other information columns are displayed with a null (-) value. Reason Indicates why the remote mirror and copy volume relationship is suspended. The following values can be displayed: Specifies that the volume is suspended but the reason for the suspension is not specifically defined within the system
Not in PPRC Relationship Specifies that the designated volume is not part of a remote mirror and copy pair. Host Source Specifies that the remote mirror and copy processing on the volume was suspended by the primary host. The host command might have specified an immediate suspension or that the volume be suspended when it entered a full duplex state. Host Target Specifies that remote mirror and copy processing was suspended on the secondary volume. Updates to primary volumes and out-of-sync tracks are still being processed. Update Target Specifies that remote mirror and copy processing was suspended on a secondary volume by the primary control unit update secondary device status command. Internal Conditions Both Specifies that remote mirror and copy processing was suspended
Chapter 12. Command-line interface commands
641
on a volume by either the primary control unit or the secondary control unit because of internal conditions. Simplex Target Specifies that remote mirror and copy processing was suspended on a volume when the secondary control unit sent a state change interrupt to the primary control unit indicating a transition to a simplex state. Internal Conditions Target Specifies that remote mirror and copy processing was suspended on a secondary volume when the primary control unit was notified that the secondary volume became suspended due to internal conditions. Power Specifies that remote mirror and copy processing was suspended on a volume when the primary or secondary control unit was shut down or restarted. Notes: 1. The paths to the secondary controller might not be available if the power to the primary controller was shut down. If only the secondary control unit was shut down, it might be possible for the paths to be restored depending on the path status. Use the following process to determine whether your remote mirror and copy processing can be restored on the affected volumes: a. Issue the lspprc command and use the generated report to determine the path status. b. Issue the mkpprc command if the paths are still in tact. This process resynchronizes the volume pairs. c. Continue with your processing. 2. If the above process cannot be performed, you must remove the pair relationships on the affected volumes and start your remote mirror and copy processing from the beginning on the affected volumes. Freeze Specifies that remote mirror and copy processing was suspended on a volume pair because the host issued a Freeze PPRC Group order. Volume Not Configured Specifies that remote mirror and copy processing was suspended on a volume because the volume is not part of a copy pair relationship. Type Indicates that the remote copy and mirror volume relationship is a Metro Mirror (synchronous) relationship, a Global Copy (extended distance) relationship, or the relationship type is unknown.
Out Of Sync Tracks Indicates the number of tracks that are not synchronized for this FlashCopy relationship. The maximum value is dependent on the source volume size. Notes:
642
1. If you issue the lspprc command to view the out-of-sync value for a volume pair (for example, 0000:0001) on a 2105, there is no observable decrease in the value from when you issue the query to the end of the process. 2. If you issue the lspprc command to view the out-of-sync value for a single volume (for example, 0000) on a 2105, there is an observable decrease in the value but only at 10 second intervals. If you issue the lspprc command and reissue it again before the 10 seconds has expired, there is no observable change in the value. 3. If you issue the lspprc command to view the out-of-sync value for a volume pair or a single volume on a DS8000 or a DS6000, there is an observable decrease in the value but only at 10 second intervals. Tgt Read Indicates that Read I/O operations to the target volume are allowed. Src Cascade Indicates that the source volume of this relationship is enabled to also be a target volume of a different relationship. Tgt Cascade Indicates that the target volume of this relationship is enabled so that it is also a source volume for a different relationship. No value is displayed for a DS6000 model. Date Suspended Indicates the date when this relationship was last suspended. The value can be displayed as a null (-). No value is displayed for a DS6000 model. SourceLSS Indicates the consistency group LSS ID that is associated with the source volume of this PPRC volume relationship. No value is displayed for a DS6000 model. Timeout (secs) Indicates the consistency group Long Busy Timeout setting for the LSS ID that is associated with the source volume of this PPRC volume relationship. This value may be modified using the chlss (FB) or the chlcu (CKD) command. No value is displayed for a DS6000 model. Critical Mode Indicates whether the remote copy and mirror primary volume represents a critical volume. No value is displayed for a DS6000 model. First Pass Status Indicates the first pass Global Copy state of the source volume. The data is valid only when you query the primary box and the queried pair is a Global Copy pair. No value is displayed for a DS6000 model. Incremental Resync Indicates if incremental resynchronization is running. No value is displayed for a DS6000 model. Tgt Write Indicates whether input is allowed to the remote mirror and copy secondary volume. No value is displayed for a DS6000 model.
| |
643
GMIR CG Indicates if the remote mirror and copy consistency group is enabled, disabled or not available. Notes: 1. This value is displayed when you designate the use of the -l parameter and when the primary volume is being queried. 2. This value is not reported for model 2105. If a model 2105 is being queried, the value displayed for this field is N/A (not available). 3. No value is displayed for a DS6000 model. PPRC CG Indicates if the volume is in consistent asynchronous remote mirror and copy mode or is not available. The values that can be displayed are enabled, disabled, or not available. Notes: 1. This value is displayed when you designate the use of the -l parameter. 2. This value is not reported for model 2105. If a model 2105 is using being queried, the value displayed for this field is N/A (not available). 3. No value is displayed for a DS6000 model. AllowTgtSE Specifies Enabled for every FlashCopy relationship that is established with the -tgtse parameter. Otherwise, the value is displayed as Disabled. Disabled is always displayed for a DS6000 model. DisableAutoResync Specifies whether the mechanism that automatically resumes a suspended Global Copy relationship is active. No value is displayed for a DS6000 model.
mkpprc
The mkpprc command establishes a remote mirror and copy (formerly PPRC) relationship for a volume pair.
mkpprc -dev storage_image_ID -remotedev storage_image_ID -type mmir gcp
-mode
full nocp
-cascade
-tgtonline
-tgtread
-critmode
-suspend
-resetreserve
-incrementalresync
-tgtse
644
Parameters
Notes: 1. When you specify subsystem IDs, the source and target volumes are restricted to one LSS for the source and one LSS for the target. 2. If you are using the Cisco MDS 9216 Multilayer Fabric Switch, you must not enable the write acceleration feature. The mkpprc command might fail if the write acceleration feature is enabled. -dev storage_image_ID (Optional). Specifies the source storage image ID, which includes manufacturer, machine type, and serial number. The storage image ID is required if you do not specify a fully qualified source volume ID, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. For DS8000, example: IBM.2107-75FA120 -remotedev storage_image_ID (Optional). Specifies the target storage image ID, which includes manufacturer, machine type, and serial number. This parameter is required if you do not specify a fully qualified target volume ID, or if the -dev parameter is selected. For DS6000, example: IBM.1750-75FA120 -type mmir | gcp (Required). Establishes one or more remote mirror and copy volume relationships as either Metro Mirror (synchronous) or Global Copy (extended distance) relationships. mmir Metro Mirror maintains the remote mirror and copy relationship in a consistent (synchronous) manner by returning I/O write completion status to the application when the updates are committed to the target. This process becomes slower as the physical distance between source and target increases. Global Copy maintains the remote mirror and copy relationship in a nonsynchronous manner. I/O write completion status is returned to the application when the updates are committed to the source. Updates to the target volume are performed at a later time. The original order of updates is not strictly maintained.
| | | | |
gcp
-mode full | nocp (Optional). Specifies the following initial data copy mode for the remote mirror and copy volume relationships: full nocp Full mode copies the entire source volume to the target volume. This is the default when you do not specify the no copy mode. No Copy mode does not copy data from source to target volumes. This option presumes that the volumes are already synchronized.
-cascade (Optional). Enables a remote mirror and copy target volume to be a remote
645
mirror and copy source volume for a different remote mirror and copy volume relationship. The default value for this parameter is disabled. -tgtonline (Optional). Establishes a remote mirror and copy volume relationship, including when the target volume is online to host systems. This parameter applies to S/390 or System z volumes and does not apply to Open Systems volumes. The default value for this parameter is disabled. -tgtread (Optional). Allows host servers to read from the remote mirror and copy target volume. For a host server to read the volume, the remote mirror and copy pair must be in a full-duplex state. This parameter applies to open systems volumes and does not apply to IBM S/390 or System z volumes. The default value for this parameter is disabled. -critmode (Optional). Protects the source volume from receiving new data. If the last path fails between the pairs and results in the inability to send information to the target, the source is protected. Current updates and subsequent attempts to update the source fail with a unit check on S/390. The default value for this parameter is disabled. Note: This parameter applies only to S/390 or System z volumes. Critical mode operates in one of three ways depending on the setting of the LCU critical mode and the setting of the -critmode parameter in this command. The following table presents an overview of how the critical volume mode works.
Critical Mode Normal LCU, Critical Heavy Disabled or Enabled Mkpprc critmode Disabled Description v Suspends the primary volume. v Allows write operations to the primary volume. Critical Volume Disabled Enabled v Suspends the primary volume when the last path to the secondary volume has failed. v Inhibits write operations to the primary volume. Critical Heavy Enabled Enabled v Suspends the primary volume when the secondary volume cannot be updated for any reason. v Inhibits write operations to the primary volume.
Notes:
646
1. Use the -critmode parameter only for log devices, not for devices that the system requires. In extreme cases, the host system might have to be IPLed in order to recover a device that is write inhibited. Whenever possible, use the freezepprc command as an alternative to using the -critmode parameter. 2. The -critmode parameter cannot be used with Global Copy or remote copy and mirror cascading volumes. 3. To reset a volume that is write inhibited because of critical mode, you can issue the mkpprc, pausepprc, or rmpprc command to this volume. 4. Use automation software as part of any solution that includes critical mode. Automation software is not a part of the software that is provided with the storage unit; you must supply it. However, IBM has offerings to assist with this automation. For more information, contact your IBM storage representative. -suspend (Optional - DS8000 only). Suspends the remote mirror and copy relationship when the task completes. This parameter is not valid for a Global Copy (extended distance) remote mirror and copy volume relationship. This parameter is not valid for a Metro Mirror (synchronous) remote mirror and copy volume relationship that is established with the No Copy option. The default value for this parameter is disabled. -resetreserve (Optional - open system volumes only). Allows the establishment of a remote mirror and copy relationship when the volume on the secondary logical subsystem is reserved by another host. This parameter can only be used with open system volumes. If this option is not specified and the volume on the secondary logical subsystem is reserved, the command fails. -incrementalresync enable | enablenoinit | disable | recover | override (Required for three-site Metro/Global Mirror recovery - DS8000 only). Specifies the resynchronization method used in a three-site Metro/Global Mirror disaster recovery configuration. A three-site Metro/Global Mirror configuration usually involves: Site A (local site), which contains the production volumes (or the A volumes); Site B (intermediate site), which contains the B volumes and a local, synchronous copy; and Site C (remote site), which contains the C volumes and an asynchronous copy that is located remotely from sites A and B. You can specify the following options when you first establish volume pairs using the mkpprc command or on established volume pairs using this command. enable Specifies that change recording features be created on each of the primary Metro Mirror volumes to enable the microcode to monitor and track data in a Metro/Global Mirror configuration. This is data that has been written to the primary volumes but has not been secured on the remote site volumes. enablenoinit Specifies that the change recording features are not created or started on the primary Metro Mirror volumes in a Metro/Global Mirror configuration. Only use this option in specific recovery scenarios. disable Specifies that the current incremental resynchronization function be stopped on the primary volumes of the Metro Mirror volume pairs.
Chapter 12. Command-line interface commands
647
recover Specifies that a new Global Mirror volume pair be established using an existing primary Metro Mirror (A) volume at the local site and a secondary Global Copy (C) volume at the remote site. When this command processes, only changes to the local Metro Mirror volumes are copied to the volumes at the remote site. Note: When you specify this option, the system verifies that the failed secondary volumes for the volumes in a Metro Mirror relationship are the primary volumes for the volumes in a Global Copy relationship and that the specified volumes have the intermediate volumes in common. That is, the primary specified volumes are the A volumes and the secondary specified volumes are the C volumes in a Metro/Global Mirror configuration. override Specifies that a new Global Mirror volume pair be established using an existing primary Metro Mirror (A) volume at the local site and a secondary Global Copy (C) volume at the remote site. When this command processes, only changes to the local Metro Mirror volumes are copied to the volumes at the remote site. Note: When you specify this option, there is no validation to ensure the secondary relationship in this configuration before processing the mkpprc command. Therefore, you must ensure that the primary specified volumes are the A volumes and the secondary specified volumes are the C volumes in a Metro/Global Mirror configuration. -tgtse (Optional - DS8000 only) Specifies that the secondary volume might be a space-efficient logical volume. -disableautoresync (Optional - DS8000 only) Allows you to disable the mechanism that automatically resumes a suspended Global Copy relationship. The default is not disabled. -wait (Optional). Delays the command response until the remote copy and mirror volumes are in one of the final states: simplex, full duplex, suspended, secondary full duplex, secondary suspended or secondary simplex (until the pair is not in the Copy Pending state). The default value for this parameter is disabled. Notes: 1. This parameter cannot be used with the -type gcp or -mode nocp parameters. 2. When you use the -wait parameter, you must wait until the original command completely processes before you can issue a new command. 3. If you are running in single-shot mode, you can periodically issue the lspprc command to check the remote mirror and copy volume pair state, and then continue with new commands when the correct state is reached.
648
SourceVolumeID:TargetVolumeID . . . | (Required). Specifies the remote mirror and copy volume relationship for the source and target volume pairs with the specified IDs. This parameter accepts fully qualified volume IDs, which includes storage image IDs or a shortened version without storage image IDs, if the -dev parameter is specified. You must separate multiple remote mirror and copy pair IDs with spaces. A remote mirror and copy pair ID consists of two volume IDs: one designated as the source and the other as the target volume for a remote mirror and copy relationship. You must separate the two volume IDs of a remote mirror and copy pair IDs with a colon and no space. The first volume ID is the source volume. The second volume ID is the target volume. The volume ID is a 32 bit number that can be represented as 4 hexadecimal digits in the form of XYZZ, where: XY (for a DS8000 model) Specifies the logical subsystem number, 00 - FE. XY (for a DS6000 model) Specifies the logical subsystem number, 00 - 1E. ZZ (for DS6000 and DS8000 models) Specifies the volume number, 00 - FF. X (for DS6000 and DS8000 models) Specifies the address group, 0 - 1. If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode. For DS8000, example of a fully qualified pair: IBM.2107-75FA120/ 0100:IBM.2107-75FA150/0100 Example of a shortened version: 0100:0100 Example of multiple pairs: 0101:0101 0102:0102 0103:0103
Using the grouping method in your command You can also group the volumes. However, the order of the volumes is critical when you group them, and they must be contiguous. The following shows how to code for grouping:
mkpprc -dev IBM.1750-13AB79A -remotedev IBM.1750-13AB76A type mmir -mode full -tgtread 1000-1004:1205-1209 1100-1104:1300-1304
Chapter 12. Command-line interface commands
649
Example
You can issue the mkpprc command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model, you cannot use the -suspend, -incrementalresync, -tgtse, and -disableautoresync parameters and the storage image ID is different. Invoking the mkpprc command
dscli>mkpprc -dev IBM.2107-75FA120 -remotedev IBM.2107-75FA150 0100:0100 -type mmir 2100-2107:2100-2107
dscli> mkpprc -dev IBM.2107--75FA120 -remotedev IBM.2107--75FA150 -type gcp -incrementalresync enablenoinit -mode nocp 2100-2107:2100-2107
freezepprc
The freezepprc command creates a new remote mirror and copy consistency group. It places the source logical subsystem (LSS) in the long busy state so that no I/Os can be directed to it. It also removes remote mirror and copy paths between the source LSS and target LSS and sets the queue full condition for the primary volume. This causes the host to queue writes to the primary volume until the queue full condition is reset. During the queue full condition, the primary volume reports long busy status.
freezepprc -dev storage_image_ID -remotedev storage_image_ID
Source_LSS_ID:Target_LSS_ID . . . -
Parameters
Note: When specifying SSIDs, the command is limited to one LSS pair. -dev storage_image_ID (Optional). Specifies the source storage image ID, which includes manufacturer, machine type, and serial number. The storage image ID is required if you do
650
| | | |
not specify a fully qualified LSS ID, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. For DS8000, example: IBM.2107-75FA120 -remotedev storage_image_ID (Optional). Specifies the target storage image ID, which includes manufacturer, type, and serial number. This parameter is required if you do not specify a fully qualified target LSS ID or if the -dev parameter is used. For DS6000, example: IBM.1750-68FA150 Source_LSS_ID:Target_LSS_ID . . . | (Required). Specifies that a consistency group for the source and target LSSs with the IDs specified be placed in a long busy state. Accepts fully qualified LSS IDs, which includes the storage image ID, or a shortened version without the storage image ID if the -dev parameter is specified. A remote mirror and copy path LSS pair ID consists of two LSS IDs, one designated as the source LSS and the other as the target LSS for a remote mirror and copy path relationship. The two LSS IDs must be separated with a colon and no spaces. The first LSS ID is the source LSS. The second LSS ID is the target LSS. The fully qualified LSS ID format is storage_image_ID/xx, where xx is a hexadecimal number in the range 00 - FE for the DS8000. The DS6000 value is in the range 00 - 1F. If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode. Example of a pair: 00:00 Example of multiple pairs: 00:00 01:01 02:02
Example
You can issue the freezepprc command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model the storage image ID is different. Invoking the freezepprc command
dscli>freezepprc -dev IBM.2107-75FA120 -remotedev IBM.2107-75FA150 01:01
pausepprc
The pausepprc command pauses an existing Remote Mirror and Copy volume pair relationship or pauses a single volume ID. To use this command with a single volume, you must specify either the -at src parameter option or the -at tgt parameter option. If neither of these options are specified in the command, single volumes are not valid.
651
Parameters
Note: When you specify SSIDs, the command is limited to one LSS pair. -dev storage_image_ID (Optional). Specifies the source storage image ID, which includes manufacturer, machine type, and serial number. The storage image ID is required if you do not specify a fully qualified source volume ID, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. Example of a fully-qualified storage image ID: IBM.2107-75FA120. Note: The only difference between a DS8000 and DS6000 storage image ID is the machine type. -remotedev storage_image_ID (Optional most times). Specifies the target storage image ID, which includes manufacturer, machine type, and serial number. Note: The -remotedev parameter is required when volume pairs are specified and the -dev parameter is specified, as well. -at src | tgt (Optional). Specifies that you want to initiate a suspend action from either the source volume or the target volume. src Initiates a suspend action from the source volume. After the task successfully runs, the source and target volumes are in the suspend state. The -at src parameter option can also be used with single volumes. When you specify a single volume using this option, the volume is treated as a source and the target is treated as a null. tgt Initiates a suspend action from the target volume. After the command successfully runs, the target volume is in the suspend state, but there is no guarantee that the source volume is suspended as well. For a suspend action that is issued to the target, the source can remain in the active state. The -at tgt parameter option can also be used with single volumes. When you specify a single volume using this parameter option, the volume is treated as a target and the source is treated as a null. Notes: 1. If you specify the -at tgt or -at src parameter and the -unconditional parameter, the value for the -remotedev parameter is ignored.
| | | | |
652
2. If you specify the -at tgt parameter and do not specify the -unconditional parameter, the values for the -dev and SourceVolumeID parameters are ignored. 3. If you specify the -at src parameter and do not specify the -unconditional parameter, the values for the -remotedev and TargetVolumeID parameters are ignored. -unconditional (Optional). Specifies that a source or target volume has been selected individually, and not as a pair. The -unconditional parameter is valid only if the -at parameter is selected. Do not use volume pair IDs. Notes: 1. The source volume ID must be specified when you specify the -at src parameter. 2. The target volume ID must be specified when you specify the -at tgt parameter. SourceVolumeID:TargetVolumeID . . . | (Required). Specifies that a Remote Mirror and Copy volume relationship for the source and target volume pairs with the IDs that are specified be paused. Note: Provide a single volume ID instead of a volume pair if you use the -unconditional parameter. Specifying pairs results in a format error. This parameter accepts fully qualified volume IDs, which includes storage image IDs, or a shortened version without storage image IDs if the -dev parameter is specified. You must separate multiple remote mirror and copy pair IDs with spaces. A Remote Mirror and Copy pair ID consists of two volume IDs, one designated as the source and the other as the target volume for a Remote Mirror and Copy relationship. You must separate the two volume IDs of a remote mirror and copy pair ID with a colon and no space. The first volume ID is the source volume. The second volume ID is the target volume. The volume ID is a 32-bit number that can be represented as 4 hexadecimal digits in the form of XYZZ, where: XY (for a DS8000 model) Specifies the logical subsystem number, 00 - FE. XY (for a DS6000 model) Specifies the logical subsystem number, 00 - 1E. ZZ (for DS6000 and DS8000 models) Specifies the volume number, 00 - FF. X (for DS6000 and DS8000 models) Specifies the address group, 0 - 1. If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode. Note: Requests directed to target volumes are sent to the Storage Image identified by the -dev parameter or is embedded in the fully qualified single volume IDs. For DS8000, example of a fully qualified pair: IBM.2107-75FA120/ 0100:IBM.2107-75FA150/0100
Chapter 12. Command-line interface commands
653
Example of a shortened version: 0100:0100 Example of multiple pairs: 0101:0101 0102:0102 0103:0103
Example
You can issue the pausepprc command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model the storage image ID is different. Invoking the pausepprc command
dscli>pausepprc -dev IBM.2107-75FA120 -remotedev IBM.2107-75FA150 0100:0100
resumepprc
The resumepprc command resumes a remote mirror and copy (formerly PPRC) relationship for a volume pair.
resumepprc -dev storage_image_ID -remotedev storage_image_ID -type mmir gcp
-cascade
-tgtonline
-tgtread
-critmode
-suspend
-resetreserve
Parameters
Notes: 1. When you specify subsystem IDs, the source and target volumes are restricted to one LSS for the source and one LSS for the target. 2. When you use the -wait parameter, periodically issue the lspprc command. This command allows you to verify which of the states that the pair has reached during processing. 3. You cannot issue other commands while the -wait parameter is processing. The entire transaction must complete before you can proceed with commands other than status commands like list commands or show commands. -dev storage_image_ID (Optional) Specifies the source storage image ID, which includes manufacturer, machine type, and serial number. The storage image ID is required if you do not specify a fully qualified source volume ID, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. -remotedev storage_image_ID (Optional) Specifies the target storage image ID, which includes manufacturer,
| | | | |
654
machine type, and serial number. This parameter is required if you do not specify a fully qualified target volume ID or if you specify the -dev parameter. -type mmir | gcp (Required) Modifies one or more remote mirror and copy volume relationships to be either Metro Mirror (synchronous) or Global Copy (extended distance) relationships. mmir Metro Mirror processing maintains the remote mirror and copy relationship in a consistent (synchronous) manner when the updates are committed to the target. This process becomes slower as the physical distance between source and target increases. Global Copy processing maintains the remote mirror and copy relationship in a nonsynchronous manner when the updates are committed to the source. Updates to the target volume are performed at a later point in time. The original order of updates is not strictly maintained.
gcp
-cascade (Optional) Enables a remote mirror and copy target volume to be a remote mirror and copy source volume for a different remote mirror and copy volume relationship. -tgtonline (Optional) Establishes a remote mirror and copy volume relationship, including when the target volume is online to host systems. This parameter applies to S/390 or System z volumes. It does not apply to Open Systems volumes. -tgtread (Optional) Allows host servers to read from the remote mirror and copy target volume. For a host server to read the volume, the remote mirror and copy pair must be in a full-duplex state. This parameter applies to open systems volumes and does not apply to S/390 or System z volumes. The default value for this parameter is disabled. -critmode (Optional) Protects the source volume from receiving new data. If the last path fails between the pairs, which results in the inability to send information to the target, the source is protected. Current updates and subsequent attempts to update the source fail, with a unit check on S/390. -suspend (Optional) Specifies that the remote mirror and copy relationship be suspended when the task completes. This parameter is not valid for a Global Copy (extended distance) remote mirror and copy volume relationship. This parameter is not valid for a Metro Mirror (synchronous) remote mirror and copy volume relationship that is established with the No Copy option. -resetreserve (Optional) Establishes the remote mirror and copy relationship when the volume on the secondary logical subsystem is reserved by another host. If this parameter is not specified and the volume on the secondary logical subsystem is reserved, the command fails. This parameter can only be used with fixed block volumes. -tgtse (Optional - DS8000 only) Specifies that the secondary volume might be a space-efficient logical volume.
655
-disableautoresync (Optional - DS8000 only) Allows you to disable the mechanism that automatically resumes a suspended Global Copy relationship. The default is not disabled. -wait (Optional). Specifies that the command response be delayed until the remote copy and mirror volumes are in one of the final states: simplex, full duplex, suspended, secondary full duplex, secondary suspended or secondary simplex (until the pair is not in the Copy Pending state). This parameter cannot be used with the -type gcp or -mode nocp parameters. SourceVolumeID:TargetVolumeID . . . | (Required) Specifies that a remote mirror and copy volume relationship for the source and target volume pairs with the specified IDs be resumed. This parameter accepts fully qualified volume IDs, which includes storage image IDs or a shortened version without storage image IDs, if the -dev parameter is specified. You must separate multiple remote mirror and copy pair IDs with spaces. A remote mirror and copy pair ID consists of two volume IDs: one designated as the source and the other as the target volume for a remote mirror and copy relationship. You must separate the two volume IDs of a remote mirror and copy pair ID with a colon and no space. The first volume ID is the source volume. The second volume ID is the target volume. The volume ID is a 32-bit number that can be represented as 4 hexadecimal digits in the form of XYZZ, where: XY (for a DS8000 model) Specifies the logical subsystem number, 00 - FE. XY (for a DS6000 model) Specifies the logical subsystem number, 00 - 1E. ZZ (for DS6000 and DS8000 models) Specifies the volume number, 00 - FF. X (for DS6000 and DS8000 models) Specifies the address group, 0 - 1. If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode.
Example
You can issue the resumepprc command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model, you cannot use the -tgtse and -disableautoresync parameters and the storage image ID is different. Invoking the resumepprc command
dscli>resumepprc -dev IBM.2107-75FA120 -remotedev IBM.2107-75FA150 0100:0100
656
Date/Time: Sun Aug 11 02:23:49 PST 2004 IBM DS CLI Version: 5.0.0.0 DS: IBM.2107-75FA120 Remote Mirror and Copy volume pair IBM.2107-75FA120/0100:0103 relationship successfully resumed. This message is being returned before the copy completes.
rmpprc
The rmpprc command removes a Remote Mirror and Copy volume pair relationship or removes a single volume ID. (You can remove a single volume ID when a disaster occurs, which allows you to specify only the available volume and not both the primary and secondary volumes.) You must specify either the -at src parameter option or the -at tgt parameter option when you process a single volume. If neither of these options are specified in the rmpprc command, a single volume cannot be processed. The -unconditional parameter must also be specified when you process a single volume; otherwise, an error occurs and the command process fails.
rmpprc -dev storage_image_ID -remotedev storage_image_ID -at src tgt
Parameters
Notes: 1. When you specify subsystem IDs, the source and target volumes are restricted to one LSS for the source and one LSS for the target. 2. If there is a communication problem between the primary server and the secondary server (2-site configuration) when the rmpprc command is issued, the following actions occur: v Error message CMUN03012E is issued. This error message indicates that there was a communication problem between the primary and secondary server and that the transaction has failed. However, a partial removal of the pair relationship has occurred. v The pair relationship is ended on either the primary volumes or the secondary volumes and the volumes that had the relationship removed enter a simplex state. If this circumstance has occurred, reissue the rmpprc command using the -at src or the -at tgt parameter and the -unconditional parameter for each volume that does not have its pair relationship removed. The following represents the format of the rmpprc command when you must remove a partial pair relationship: v If the source volume has not been removed from the pair relationship, enter the rmpprc command at the dscli command prompt with the following parameters and variables:
dscli>rmpprc -dev storage_image_ID -at src -unconditional SourceVolumeID
v If the target volume has not been removed from the pair relationship, enter the rmpprc command at the dscli command prompt with the following parameters and variables:
Chapter 12. Command-line interface commands
657
The value of the storage image ID must be the secondary server. The management console must be able to communicate with the secondary server for this command to process successfully. 3. If a disaster occurs involving a 3-site configuration, the rmpprc command with the -at tgt and -unconditional parameters are used in the recovery process. -dev storage_image_ID (Optional). Specifies the source storage image ID, which includes manufacturer, machine type, and serial number. The storage image ID is required if you do not specify a fully qualified ID for all source volumes, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. For DS8000, example: IBM.2107-75FA120 -remotedev storage_image_ID (Optional most times). Specifies the target storage image ID, which includes manufacturer, machine type, and serial number. Note: The -remotedev parameter is required when volume pairs are specified and the -dev parameter is specified, as well. For DS6000, example: IBM.1750-68FA150 -at src | tgt (Optional). Specifies that you want to initiate a break action from either a source volume or a target volume. src Select the -at src parameter option to initiate a break action from the source volume. After the task successfully runs, the source and target volumes are in the simplex state. Select the -at tgt parameter option to initiate a break action from the target volume. After the command successfully runs, the target volume is in the simplex state, but there is no guarantee that the source volume state will change. For a break action issued to the target, the source can remain in the suspend state. The -at tgt parameter option can also be used with single volumes but you must also specify the -unconditional parameter. When you specify a single volume using this parameter, the volume is treated as a target and the source is treated as a null. Notes: 1. If you specify the -at tgt or -at src parameter and the -unconditional parameter, the value for the -remotedev parameter is ignored. 2. If you specify the -at tgt parameter and do not specify the -unconditional parameter, the values for the -dev and SourceVolumeID parameters are ignored. 3. If you specify the -at src parameter and do not specify the -unconditional parameter, the values for the -remotedev and TargetVolumeID parameters are ignored.
| | | | |
tgt
658
-unconditional (Optional). Specifies that a source or target volume has been selected individually, and not as a pair. The -unconditional parameter is valid only if the -at parameter is selected. Do not use volume pair IDs. Notes: 1. The source volume ID must be specified when you specify the -at src parameter. 2. The target volume ID must be specified when you specify the -at tgt parameter. -quiet (Optional). Specifies that the confirmation prompt for this command be turned off. SourceVolumeID:TargetVolumeID . . . | (Required). Specifies the Remote Mirror and Copy volume relationship for the source and target volume pairs that is to be removed. Note: Provide a single volume ID instead of a volume pair if you use the -unconditional parameter. Specifying pairs results in a format error. This parameter accepts fully qualified volume IDs, which includes storage image IDs or a shortened version without storage image IDs, if the -dev parameter is specified. You must separate multiple Remote Mirror and Copy pair IDs with spaces. A Remote Mirror and Copy pair ID consists of two volume IDs, one designated as the source and the other as the target volume for a Remote Mirror and Copy relationship. You must separate the two volume IDs of a Remote Mirror and Copy pair ID with a colon and no space. The first volume ID is the source volume. The second volume ID is the target volume. The volume ID is a 32-bit number that can be represented as 4 hexadecimal digits in the form of XYZZ, where: XY (for a DS8000 model) Specifies the logical subsystem number, 00 - FE. XY (for a DS6000 model) Specifies the logical subsystem number, 00 - 1E. ZZ (for DS6000 and DS8000 models) Specifies the volume number, 00 - FF. X (for DS6000 and DS8000 models) Specifies the address group, 0 - 1. If you use the dash (-), the specified value is read from standard input. However, you cannot use the dash (-) while you are in the DS CLI interactive command mode.
Example
You can issue the rmpprc command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model the storage image ID is different. Invoking the rmpprc command
dscli>rmpprc -dev IBM.2107-75FA120 -remotedev IBM.2107-75FA150 0100:0100
659
unfreezepprc
The unfreezepprc command resumes I/O activity on a storage unit where the freezepprc command has been issued. The unfreezepprc command resets the queue full condition for the primary volume. All queued writes to the source volume are written.
unfreezepprc -dev storage_image_ID -remotedev storage_image_ID
Source_LSS_ID:Target_LSS_ID . . . -
Parameters
Notes: 1. This command affects all remote copy and mirror primary volumes that are contained by the LSS(s) that are defined by the Source_LSS_ID:Target_LSS_ID source volume. 2. When specifying subsystem IDs, the command is limited to one LSS pair. 3. Resuming I/O activity on a storage unit where the freezepprc command has been issued is sometimes referred to as the thaw operation. -dev storage_image_ID (Optional). Specifies the source storage image ID, which includes manufacturer, machine type, and serial number. The storage image ID is required if you do not specify a fully qualified LSS ID, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. For DS8000, example: IBM.2107-75FA120 -remotedev storage_image_ID (Optional). Specifies the target storage image ID, which includes manufacturer, type, and serial number. This parameter is required if you do not specify a fully qualified target LSS ID or if the -dev parameter is used. For DS6000, example: IBM.1750-68FA120 Source_LSS_ID:Target_LSS_ID . . . | (Required). Specifies that a consistency group for the source and target LSSs with the IDs specified be removed from the long busy state. This parameter accepts fully qualified LSS IDs, which includes the storage image ID, or a shortened version without the storage image ID if the -dev parameter is specified.
| | | | |
660
A remote mirror and copy path LSS pair ID consists of two LSS IDs, one designated as the source LSS and the other as the target LSS for a remote mirror and copy path relationship. The two LSS IDs must be separated with a colon and no spaces. Multiple remote mirror and copy path LSS pair IDs must be separated with a space between each value. The first LSS ID is the source LSS. The second LSS ID is the target LSS. The fully qualified LSS ID format is storage_image_ID/xx, where xx is a hexadecimal number in the range 00 - FE for the DS8000. The DS6000 value is in the range 00 - 1F. If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode. Example pair: 00:00 Example of multiple pairs: 00:00 01:01 02:02
Example
You can issue the unfreezepprc command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model the storage image ID is different. Invoking the unfreezepprc command
dscli>unfreezepprc -dev IBM.2107-75FA120 -remotedev IBM.2107-75FA150 01:01
The mkgmir command starts Global Mirror processing for a specified session. The pausegmir command pauses Global Mirror processing for the specified session. There are 2 primary reasons to pause Global Mirror processing: v To repair a part of the Global Mirror infrastructure, such as: Global Copy volume pairs or FlashCopy pairs v To make modifications to the Global Mirror tuning parameters
Chapter 12. Command-line interface commands
661
The resumegmir command resumes Global Mirror processing for a specified session. If you have issued a pausegmir command to pause Global Mirror processing, issue the resumegmir command to continue Global Mirror processing. The rmgmir command ends Global Mirror processing for the specified session. The showgmir command generates two reports. The first report displays the detailed properties about the current Global Mirror operations that are associated with a specified logical subsystem ID. The second report displays the performance metrics for the current Global Mirror operations that are associated with a specified logical subsystem ID. The showgmircg command generates a report that displays the consistency group status for the specified Global Mirror session. The showgmiroos command generates a report that displays the number of unsynchronized (out of sync) tracks for the specified Global Mirror session.
mkgmir
The mkgmir command starts Global Mirror for a specified session.
mkgmir -dev storage_image_ID -lss LSS_ID -cginterval -session -coordinate milliseconds -drain seconds seconds
session_ID
Master_Control_Path_LSS_ID:Subordinate_Control_Path_LSS_ID . . . -
Parameters
Note: If you are using the Cisco MDS 9216 Multilayer Fabric Switch, you must not enable the write acceleration feature. The mkgmir command might fail if the write acceleration feature is enabled. -dev storage_image_ID (Optional). Specifies the storage image ID, which includes manufacturer, machine type, and serial number. The storage image ID is required if you do not specify a fully qualified LSS ID, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. -lss LSS_ID (Required). Specifies the master logical subsystem (LSS) that receives the mkgmir command. This parameter accepts a fully qualified master LSS ID, which includes either the storage image ID or a shortened version without the storage image ID if the -dev parameter is specified. -cginterval seconds (Optional). Specifies the consistency group interval time, in seconds. This number specifies how long to wait between the formation of consistency groups. If this number is not specified or is set to zero, consistency groups are formed continuously. The consistency group interval setting is required for a
| | | | |
662
start action. If not specified, the default interval is zero. The consistency group interval setting can be modified for a resume action; otherwise, the interval that is specified for the start action is maintained. The maximum value is 65 535 seconds. -coordinate milliseconds (Optional). Specifies the maximum coordination interval, in milliseconds. This value indicates the maximum time that Global Mirror processing queues Primary/Host/IO to start forming a consistency group. The coordination interval setting is required for a start action. If this value is not specified, the default interval is 50 milliseconds. The coordination interval setting can be modified for a resume action: otherwise, the interval that is specified for the start action is maintained. The maximum value is 65 535 milliseconds. -drain seconds (Optional). Specifies the maximum consistency group drain time in seconds and the maximum amount of time that the consistent set of data is allowed to drain to the remote site before failing the current consistency group. The drain time setting is required for a start action. If the drain time is not specified, the default drain time is 30 seconds. The drain time setting can be modified for a resume action; otherwise, the time that is specified for the start action is maintained. -session session_ID (Required). Specifies that Global Mirror for the specified session be started or resumed. A session ID is a Global Mirror session number that you assign in the 01 - FF hexadecimal range. Example: 01 Master_Control_Path_LSS_ID:Subordinate_Control_Path_LSS_ID . . . | (Optional). Specifies one or more Global Mirror associations. A Global Mirror association consists of two fully qualified LSS IDs. The first is designated as the master resource and the second is the subordinate resource between which a PPRC path has been established. An LSS ID is a two character value hexadecimal value in the following ranges: v 00 - FE, for a DS8000 model v 00 - 1F, for a DS6000 model You must separate the fully qualified LSS IDs of a Global Mirror association with a colon and no spaces. The master resource must be identical for all relationships. If you use the dash (-), the specified value is read from standard input. However, you cannot use the dash (-) if you are using the DS CLI interactive mode.
Example
You can issue the mkgmir command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model, the storage image ID is different. Invoking the mkgmir command
dscli>mkgmir -dev IBM.2107-75FA120 -lss 10 -session 01 IBM.2107-75FA120/00:IBM.2107-75FA150/00
663
pausegmir
The pausegmir command pauses Global Mirror for the specified session.
pausegmir -dev storage_image_ID -lss ID -session session_ID
Master_Control_Path_LSS_ID:Subordinate_Control_Path_LSS_ID . . . -
Parameters
-dev storage_image_ID (Optional). Specifies the storage image ID, which includes manufacturer, machine type, and serial number. The storage image ID is required if you do not specify a fully qualified LSS ID, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. For DS8000, example: IBM.2107-75FA120 -lss ID (Required). Specifies the master logical subsystem (LSS) that receives the pausegmir command. Accepts a fully qualified master LSS ID, which includes the storage image ID, or a shortened version without the storage image ID if the -dev parameter is specified. For DS6000, example of a fully qualified LSS ID: IBM.1750-68FA120/10 -session session_ID (Required). Specifies the session ID for which the Global Mirror process is to be paused. A session ID is a Global Mirror session number that you assign in the 01 - FF hexadecimal range. Example: 01 Master_Control_Path_LSS_ID:Subordinate_Control_Path_LSS_ID . . . | (Optional). Specifies one or more Global Mirror path associations. A Global Mirror (Asynchronous PPRC) path association consists of two fully qualified LSS IDs, one designated as the master resource and the other as the subordinate resource between which a remote copy and mirror path has been established. A LSS ID is two hexadecimal characters in the range 00 - FE for the DS8000. The DS6000 value is in the range 00 - 1F. You must separate the fully qualified LSS IDs of a Global Mirror path association with a colon and no spaces. The master resource must be identical for all relationships. If you use the dash (-), the specified value is read from standard input. However, you cannot use the dash (-) if you are using the DS CLI interactive mode.
| | | | |
664
DS8000 example of one Global Mirror association with a single subordinate in the configuration: IBM.2107-75FA120/00:IBM.2107-75FA150/00 DS8000 example of multiple Global Mirror associations with two subordinates in the configuration: IBM.2107-75FA120/00:IBM.2107-75FA150/00 IBM.2107-75FA120/00:IBM.2107-75FA150/01 DS6000 example of one Global Mirror association with a single subordinate in the configuration: IBM.1750-68FA120/00:IBM.1750-68FA150/00 DS6000 example of multiple Global Mirror associations with two subordinates in the configuration: IBM.1750-68FA120/00:IBM.1750-68FA150/00 IBM.1750-68FA120/00:IBM.1750-68FA150/01
Example
You can issue the pausegmir command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model the storage image ID is different. Invoking the pausegmir command
dscli>pausegmir -dev IBM.2107-75FA120 -lss 10 -session 01 IBM.2107-75FA120/00:IBM.2107-75FA150/00
resumegmir
The resumegmir command resumes Global Mirror processing for a specified session.
resumegmir -dev storage_image_ID -session -cginterval seconds -coordinate milliseconds -drain seconds session_ID -lss LSS_ID
Master_Control_Path_LSS_ID:Subordinate_Control_Path_LSS_ID . . . -
Parameters
-dev storage_image_ID (Optional). Specifies the storage image ID, which includes manufacturer, machine type, and serial number. The storage image ID is required if you do not specify a fully qualified LSS ID, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. For DS8000, example: IBM.2107-75FA120 -lss LSS_ID (Required). Specifies the master logical subsystem (LSS) that is to receive the resumegmir command. Accepts a fully qualified LSS ID, which includes the
Chapter 12. Command-line interface commands
| | | | |
665
storage image ID, or a shortened version without the storage image ID if the -dev parameter is specified. The shortened version is two hexadecimal digits in the range 00 - FE for the DS8000. The DS6000 value is in the range 00 - 1F. For DS8000, example of a fully qualified LSS ID: IBM.2107-75FA120/10 Tuning parameters consist of the following three values: -cginterval seconds , -coordinate milliseconds , -drain seconds Tuning parameters have default values applied to them from the microcode. However, you can choose to change those values. You must designate a value for each of the parameters even if you are changing only one value. For example, if you decide to change only the value on the -cginterval parameter from 0 to 1, your command must include the default values for the other two parameters. The following example is the same for a DS6000 with the exception of the storage image ID being different:
dscli>resumegmir IBM.2107-75FA120/10 -cginterval 1 -coordinate 50 -drain 30 -session 01 IBM.2107-75FA120/00:IBM.2107-75FA150/00
-cginterval seconds: Specifies the consistency group interval time, in seconds. This number specifies how long to wait between the formation of consistency groups. If this number is not specified or is set to zero, consistency groups are formed continuously. The default value is 0. The maximum value is 65 535 seconds. -coordinate milliseconds: Specifies the maximum coordination interval, in milliseconds. This value indicates the maximum time that Global Mirror processing queues Primary/Host/IO to start forming a consistency group. The default value is 50 milliseconds. The maximum value is 65 535 milliseconds. -drain seconds: Specifies the maximum consistency group drain time in seconds and the maximum amount of time that the consistent set of data is allowed to drain to the remote site before failing the current consistency group. The default drain time is 30 seconds. -session session_ID (Required). Specifies the Global Mirror session that is to be started. A session ID is a Global Mirror session number that you assign in the 01 - FF hexadecimal range. Example: 01 Master_Control_Path_LSS_ID:Subordinate_Control_Path_LSS_ID . . . | (Optional). Specifies one or more Global Mirror path associations. A Global Mirror path association consists of two fully qualified LSS IDs. The first is designated as the master resource and the second is the subordinate resource between which a PPRC path has been established. A LSS ID is two hexadecimal characters in the range 00 - FE for the DS8000. The DS6000 value is in the range 00 - 1F. You must separate the fully qualified LSS IDs of a Global Mirror association with a colon and no spaces. The master resource must be identical for all relationships. If you use the dash (-), the specified value is read from standard input. However, you cannot use the dash (-) if you are using the DS CLI interactive mode. DS8000 example of one Global Mirror association with a single subordinate in the configuration: IBM.2107-75FA120/00: IBM.2107-75FA150/00
666
DS8000 example of multiple Global Mirror associations with two subordinates in the configuration: IBM.2107-75FA120/00: IBM.2107-75FA150/00 IBM.2107-75FA120/00: IBM.2107-75FA150/01 DS6000 example of one Global Mirror association with a single subordinate in the configuration: IBM.1750-68FA120/00: IBM.1750-68FA150/00 DS6000 example of multiple Global Mirror associations with two subordinates in the configuration: IBM.1750-68FA120/00: IBM.1750-68FA150/00 IBM.1750-68FA120/00: IBM.1750-68FA150/01
Example
You can issue the resumegmir command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model the storage image ID is different. Invoking the resumegmir command
dscli>resumegmir -dev IBM.2107-75FA120 -lss 10 -session 01 IBM.2107-75FA120/00:IBM.2107-75FA150/00
rmgmir
The rmgmir command ends Global Mirror processing for the specified session.
rmgmir -dev -session storage_image_ID -quiet -force -subordinate -lss ID
session_ID
Master_Control_Path_LSS_ID:Subordinate_Control_Path_LSS_ID . . . -
Parameters
Note: Although this command might interrupt the formation of a consistency group, every attempt is made to preserve the previous consistent copy of the data on the FlashCopy target volumes. If, due to failures, this command cannot complete without compromising the consistent copy, the command stops processing and an error code is issued. If this occurs, reissue this command (rmgmir) with the -force parameter to force the command to stop the Global Mirror process. -dev storage_image_ID (Optional). Specifies the storage image ID, which includes manufacturer, machine type, and serial number. The storage image ID is required if you do not specify a fully qualified LSS ID, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. For DS8000, example: IBM.2107-75FA120
Chapter 12. Command-line interface commands
| | | | |
667
-quiet (Optional). Turns off the confirmation prompt for this command. -force (Optional). Forces the Global Mirror process to stop regardless of the state of the Global Mirror associations. -subordinate (Optional). Indicates that the -lss parameter specifies a subordinate LSS ID. -lss ID (Required). Specifies the logical subsystem (LSS) that is participating in the Global Mirror session. Accepts a fully qualified LSS ID, which includes the storage image ID or a shortened version without the storage image ID, if the -dev parameter is specified. For DS8000, example of a fully qualified LSS ID: IBM.2107-75FA120/10 -session session_ID (Required). Specifies the session ID for which the Global Mirror path association will be removed. A session ID is a Global Mirror session number that you assign in the 01 - FF hexadecimal range. Example: 01 Master_Control_Path_LSS_ID:Subordinate_Control_Path_LSS_ID . . . | (Optional). Specifies one or more Global Mirror path associations. A Global Mirror path association consists of two fully qualified LSS IDs. The first is designated as the master resource and the second is the subordinate resource between which there is a remote mirror and copy path. A LSS ID is two hexadecimal characters in the range 00 - FE for the DS8000. The DS6000 value is in the range 00 - 1F. You must separate the fully qualified LSS IDs of a Global Mirror association with a colon and no spaces. The master resource must be identical for all relationships. If you use the dash (-), the specified value is read from standard input. However, you cannot use the dash (-) if you are using the DS CLI interactive mode. DS8000 example of one Global Mirror association with a single subordinate in the configuration: IBM.2107-75FA120/00: IBM.2107-75FA150/00 DS8000 example of multiple Global Mirror path associations with two subordinates in the configuration: IBM.2107-75FA120/00: IBM.2107-75FA150/00 IBM.2107-75FA120/00: IBM.2107-75FA150/01 DS6000 example of one Global Mirror path association with a single subordinate in the configuration: IBM.1750-68FA120/00: IBM.1750-68FA150/00 DS6000 example of multiple Global Mirror path associations with two subordinates in the configuration: IBM.1750-68FA120/00: IBM.1750-68FA150/00 IBM.1750-68FA120/00: IBM.1750-68FA150/01
Example
You can issue the rmgmir command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model the storage image ID is different. Invoking the rmgmir command
dscli>rmgmir -dev IBM.2107-75FA120 -lss 10 -session 01 IBM.2107-75FA120/00:IBM.2107-75FA150/00
668
showgmir
The showgmir command displays properties and performance metrics for a Global Mirror logical subsystem ID. You can issue this command on either the master storage unit or on any of the subordinate storage units. The report that is generated by this command varies significantly depending on which storage unit that you issue the command and the parameters that you specify.
showgmir -dev storage_image_ID -metrics LSS_ID -
Parameters
-dev storage_image_ID (Optional). Specifies the storage image ID, which includes manufacturer, machine type, and serial number. The storage image ID is required if you do not specify a fully qualified LSS ID, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. -metrics (Optional). Specifies that the logical subsystem ID and its performance statistics be displayed. LSS_ID | (Required). Specifies the logical subsystem (LSS) that receives the showgmir command. This parameter accepts a fully qualified LSS ID, which includes the storage image ID or a shortened version without the storage image ID if the -dev parameter is specified. The LSS ID is two hexadecimal digits in the range 00 - FE for the DS8000. The DS6000 value is in the range 00 - 1F. If you use the dash (-), the specified value is read from standard input. However, you cannot use the dash (-) if you are using the DS CLI interactive mode. Note: The type of report that you receive is determined by the value that you specify for the LSS ID as follows: v When you issue the showgmir command from the master storage unit and you specify an LSS ID that is the same type (both even numbers or both odd numbers) as the master, you receive the following results: Without the -metrics parameter: A properties report that includes the master information With the -metrics parameter: A properties and performance values report. v When you issue the showgmir command from the master storage unit and you specify an LSS ID that is not the same type (one even number and one odd number) as the master, you receive the following results:
Chapter 12. Command-line interface commands
| | | | |
669
Without the -metrics parameter: A properties report that displays only the fully qualified LSS_ID value and all the other input fields display a null (-) value. With the -metrics parameter: A properties and performance report that displays only the fully qualified LSS_ID value and all the other input fields display a null (-) value. v When you issue the showgmir command from the subordinate storage unit and you specify an LSS ID that is the same type (both even numbers or both odd numbers) as the master, you receive the following results: Without the -metrics parameter: A detailed properties report that displays only the master information (fully-qualified LSS ID, master session ID, and master storage unit ID). All the other fields display as a null (-) value. With the -metrics parameter: A detailed properties and performance values report that displays only the master information (fully qualified LSS ID, master session ID, and master storage unit ID). All the other fields display as a null (-) value. v When you issue the showgmir command from the subordinate storage unit and you specify an LSS ID that is not the same type (one even number and one odd number) as the master, you receive the following results: Without the -metrics parameter: A properties report that displays only the fully qualified LSS_ID value. All the other input fields on the report display a null (-) value. With the -metrics parameter: A properties and performance report that displays only the fully qualified LSS_ID value. All the other input fields on the report display a null (-) value.
670
Master Count 1
Copy State
Fatal Reason
Subordinate Count 1
Master Count Specifies the number of Global Mirror (asynchronous remote mirror and copy) masters. This value could be zero if none exist. When the value is zero, the master information fields of the report display a null (-) value Master Session ID Identifies the session ID that you assigned, 01 - FF hexadecimal range. Copy State Identifies the Global Mirror (asynchronous remote mirror and copy) copy state. The displayed value is one of the following: Running Indicates that the Global Mirror copy process is running. Paused Indicates that the Global Mirror copy process is paused. Fatal Indicates that the Global Mirror copy process is failed. Pause In Progress Indicates that the Global Mirror copy process is in the process of pausing. Fatal Reason Specifies a reason code for the failure. The displayed value is one of the following: Time out Revert FLC Failed Timeout
Chapter 12. Command-line interface commands
671
Revert FLC Failed Not Fatal Invalid Session ID Inaccessible or Failed Consistency Check Not Completed Consistency Check Failed Communication Failure CG Corrupted Busy Condition Preventing CG Interval Time (seconds) Specifies the consistency group interval time between attempts to form a consistency group, up to 65 535 seconds. Coord. Time (milliseconds) Specifies the maximum extended distance coordination interval. The default time is 50 milliseconds. Max CG Drain Time (seconds) Specifies the consistency group drain time. The consistency group drain time is the maximum time that the consistent set of data is allowed to drain to the remote site before failing the current consistency group. The maximum allowed time is 65 535 seconds. Current Time Indicates the time stamp for when this report was generated. The date is displayed in the MM/DD/YYYY format. The time is displayed in the HH:MM:SS format on a 24-hour clock. Note: If the clock is automatically adjusted at applicable times between standard and daylight saving time, daylight saving time is set to 1. If the clock is not automatically adjusted for daylight saving time, set to 0. For example, the report would display 12/04/2006 08:00:00 MST 0 if the clock is not automatically adjusted for daylight saving time. CG Time Specifies the recorded time stamp when the last successful consistency group was formed. Successful CG Percentage Specifies the percentage of successful attempts to form a consistency group, from 0% to 100%. FlashCopy Sequence Number Specifies the FlashCopy sequence number that is associated with the current consistency group. Note: This value does not apply to a 2105; a null (-) value is displayed in this column when a machine type 2105 is queried. Master ID Specifies the Global Mirror master storage image ID.
672
Subordinate Count Specifies the count of subordinate associations (with an allowed value of 1 to 16). The master-subordinate association fields repeat according to this count. Master/Subordinate Assoc Specifies the Global Mirror path associations. A Global Mirror path association consists of two fully qualified LSS IDs. One ID is designated as the master resource and the other ID is designated as the subordinate resource; a remote mirror and copy path has been established between the two resources.
Successful CG Percentage 40
673
Total Failed CG Count Specifies the total number of consistency groups that did not complete in the user-specified drain time. Total Successful CG Count Identifies the total number of consistency groups that completed before the user-specified drain time. Successful CG Percentage Identifies the percentage of attempts that were successful in forming a consistency group. Failed CG after Last Success Specifies the total number of failed consistency groups after the last successful completion. Last Successful CG Form Time Identifies the last successful consistency group completion time. Coord. Time (milliseconds) Specifies the value in milliseconds that indicates the maximum amount of time that Global Mirror queues the primary host I/O to start forming a consistency group. The default is 50 milliseconds. CG Interval Time (seconds) Specifies the value in seconds that indicates how long to wait between formation of consistency groups. Max CG Drain Time (seconds) Specifies the value in seconds that indicates the maximum amount of time that Global Mirror allows for the consistent set of data to drain to the remote site. First Failure Control Unit Identifies the Control Unit MTS that has caused the first failure of the consistency group formation. First Failure LSS Identifies the LSS number that has caused the first failure of the consistency group formation. First Failure Status Indicates the first failure status of the consistency group formation. The First Failure Reason and First Failure Master State fields display data only when this field contains Error.
674
First Failure Reason Specifies the error reason of the first failure of the consistency group formation attempt. First Failure Master State Identifies the master state for the first Global Mirror failure. Last Failure Control Unit Identifies the Control Unit MTS that has caused the last failure of the consistency group formation. Last Failure LSS Identifies the LSS number that has caused the last failure of the consistency group formation. Last Failure Status Indicates the last failure status of the consistency group formation. The Last Failure Reason and Last Failure Master State fields display data only when this field contains Error. Last Failure Reason Specifies the error reason of the last failure of the consistency group formation attempt. Last Failure Master State Identifies the master state for the last Global Mirror failure. Previous Failure Control Unit Identifies the Control Unit MTS that has caused the previous failure of the consistency group formation. Previous Failure LSS Identifies the LSS number that has caused the previous failure of the consistency group formation. Previous Failure Status Indicates the previous failure status of the consistency group formation. The Previous Failure Reason and Previous Failure Master State fields display data only when this field contains Error. Previous Failure Reason Specifies the error reason of the previous failure of the consistency group formation attempt. Previous Failure Master State Specifies the master state for the previous Global Mirror failure.
showgmircg
The showgmircg command displays consistency group status for the specified Global Mirror session.
showgmircg -dev storage_image_ID - -lss LSS_ID session_ID . . .
Parameters
-dev storage_image_ID (Optional). Specifies the storage image ID, which includes manufacturer, machine type, and serial number. The storage image ID is required if you do not specify a fully qualified LSS ID, do not set the devid variable in your profile
Chapter 12. Command-line interface commands
| |
675
| | |
or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. For DS8000, example: IBM.2107-75FA120 -lss LSS_ID (Required). Specifies the master logical subsystem (LSS) that receives the showgmircg command. LSS ID consists of two hexadecimal characters in the range of 00 - FE for the DS8000. The DS6000 value is in the range 00 - 1F. This parameter accepts a fully qualified master LSS ID, which includes either the storage image ID or a shortened version without the storage image ID if the -dev parameter is specified. For DS6000, example of a fully qualified LSS ID: IBM.1750-68FA120/10 session_ID . . . | (Required). Specifies one or more sessions to display. A session ID is a Global Mirror session number that you assign in the 01 - FF hexadecimal range. If you use the dash (-), the specified value is read from standard input. However, you cannot use the dash (-) if you are using the DS CLI interactive mode. Example: 01
Example
You can issue the showgmircg command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model the storage image ID is different. A separate example is not shown for the DS6000 as the information is the same for both. Invoking the showgmircg command
dscli>showgmircg dev IBM.2107-75FA120 -lss 01 10
676
showgmiroos
The showgmiroos command displays the number of unsynchronized (out of sync) tracks for the specified Global Mirror session.
showgmiroos -dev session_ID - storage_image_ID -scope si lss -lss LSS_ID
Parameters
Note: You might want to use this command to assist you in the following circumstances: v To see how data is transferring. The showgmiroos command lets you see how far behind the remote site is from the local site in the transfer of data. The displayed value represents how many tracks must be transferred to catch up (be synchronized). v You are not able to form consistency groups because you have exceeded the maximum drain time. The number of tracks that are not synchronized might be an indicator that you must adjust some values to allow for complete processing. -dev storage_image_ID (Optional). Specifies the storage image ID, which includes manufacturer, machine type, and serial number. The storage image ID is required if you do not specify a fully qualified LSS ID, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. -scope si | lss (Required) Specifies the scope of the data to be returned: storage image (si) or logical subsystem (lss). -lss LSS_ID (Required). Specifies the master logical subsystem (LSS) that receives the showgmiroos command. Accepts a fully qualified master LSS ID, which includes either the storage image ID or a shortened version without the storage image ID if the -dev parameter is specified. The LSS ID is two hexadecimal digits in the range 00 - FE for the DS8000 model. The DS6000 model value is in the range 00 - 1F. For DS6000, example of a fully qualified LSS ID: IBM.1750-68FA120/10 session_ID (Required). Specifies the session to display. A session ID is a Global Mirror session number that you assign in the 01 - FF hexadecimal range. If you use the dash (-), the specified value is read from standard input. However, you cannot use the dash (-) if you are using the DS CLI interactive mode.
| | | | |
Example
You can issue the showgmiroos command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model the storage image ID is different.
Chapter 12. Command-line interface commands
677
A separate example is not shown for the DS6000 as the information is the same for both. Invoking the showgmiroos command
dscli>showgmiroos dev IBM.2107-75FA120 -scope si -lss 10 01
678
-volume
volume_ID . . .
Session_ID -
Parameters -dev storage_image_ID (Optional). Specifies the ID of the storage image containing the logical subsystem. The storage image ID includes manufacturer, machine type, and serial number. The storage image ID is required if you do not specify a fully qualified LSS ID, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. -lss ID (Required). The logical subsystem (LSS) ID for the Global Mirror session. The format of the LSS ID is a hexadecimal number in the range 00 - FE for the DS8000. The DS6000 value is in the range 00 - 1F. This parameter accepts a fully qualified LSS ID, which includes either the storage image ID or a shortened version without the storage image ID if the -dev parameter is specified. For DS6000, example of a fully qualified LSS ID: IBM.1750-68FA120/10 -action add | remove (Required). add remove Specifies that volumes be removed from the session. -volume volume_ID . . . (Required). Specifies an array of one or more volume IDs or volume ID ranges to be added or removed for the Global Mirror session. All volumes must share a common logical subsystem. To specify a range of volume IDs, you must separate the volume IDs with a hyphen. To specify a combination of one or more volume IDs and a range of volume IDs, separate the volume IDs and ranges with commas. Do not qualify the volume ID with the storage image ID. The volume ID is a 32 bit number that can be represented as 4 hexadecimal digits in the form of XYZZ, where: XY (for a DS8000 model) Specifies the logical subsystem number, 00 - FE. XY (for a DS6000 model) Specifies the logical subsystem number, 00 - 1E. ZZ (for DS6000 and DS8000 models) Specifies the volume number, 00 - FF. X (for DS6000 and DS8000 models) Specifies the address group, 0 - 1. Example of a volume ID: 0010 Example of a range of volume IDs: 0010-001F Example of multiple volume IDs and ranges: 0100-010F,0180-018F,0120
Chapter 12. Command-line interface commands
| | | | |
679
Session_ID | (Required). Specifies the Global Mirror session that is modified for this session ID. A session ID is a hexadecimal number in the range 01 - FF. If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode. Example of a session ID: 01 Example You can issue the chsession command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model the storage image ID is different. Invoking the chsession command
dscli>chsession -dev IBM.2107-75FA120 -lss 10 -action add -volume 1000-1010 01
Parameters -dev storage_image_ID (Optional). Specifies the storage image ID, which includes manufacturer, machine type, and serial number. The storage image ID is required if you do not specify a fully qualified ID for the logical subsystem, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. For DS8000, example: IBM.2107-75FA120 -lss ID (Required). Creates a Global Mirror session for this logical subsystem. Accepts a fully qualified LSS ID, which includes the storage image ID, or a shortened version without the storage image ID if the -dev parameter is specified. The LSS ID is a hexadecimal number in the range of 00 - FE for the DS8000. The DS6000 value is in the range 00 - 1F. For DS6000, example of a fully qualified LSS ID: IBM.1750-68FA120/10
| | | | |
680
-volume volume_ID . . . (Optional). Specifies an array of one or more volume IDs or a range of volume IDs to be included in the Global Mirror session. All volumes must share a common logical subsystem. To specify a range of volume IDs, you must separate the volume IDs with a hyphen. To specify a combination of one or more volume IDs and a range of volume IDs, separate the volume IDs and ranges with commas. Do not qualify the volume ID with the storage image ID. The volume ID is a 32 bit number that can be represented as 4 hexadecimal digits in the form of XYZZ, where: XY (for a DS8000 model) Specifies the logical subsystem number, 00 - FE. XY (for a DS6000 model) Specifies the logical subsystem number, 00 - 1E. ZZ (for DS6000 and DS8000 models) Specifies the volume number, 00 - FF. X (for DS6000 and DS8000 models) Specifies the address group, 0 - 1. Example of a volume ID: 0010 Example of a range of volume IDs: 0010-001F Example of multiple volume IDs and ranges: 0100-010F,0180-018F,0120 Session_ID | (Required). Specifies the session ID for which Global Mirror processing is allowed. A session ID is a hexadecimal number in the range 01 - FF. If you use the dash (-), the specified value is read from standard input. You cannot use the dash (-) while you are in the DS CLI interactive command mode. Example of a session ID: 01 Example You can issue the mksession command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model the storage image ID is different. Invoking the mksession command
dscli>mksession -dev IBM.2107-75FA120 -lss 10 volume 1000-100F 01
lssession: The lssession command displays a list of Global Mirror sessions for a logical subsystem (LSS) and information regarding the volumes of each session in the list.
681
LSS_ID -
Parameters -dev storage_image_ID (Optional). Specifies the storage image ID, which includes manufacturer, machine type, and serial number. The storage image ID is required if you do not specify a fully qualified LSS ID, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. For DS8000, example: IBM.2107-75FA120 -s -l (Optional). Displays the session IDs. You cannot use the -l and the -s parameters together. (Optional). Displays the default output. You cannot use the -l and the -s parameters together.
| | | | |
LSS_ID | (Required). Specifies the logical subsystem (LSS) ID for the Global Mirror session. The format of the LSS ID is a hexadecimal value in the range 00 - FE for the DS8000. The DS6000 value is in the range 00 - 1F. This parameter accepts a fully qualified LSS ID, which includes the storage image ID, or a shortened version without the storage image ID if the -dev parameter is specified. If you use the dash (-), the specified value is read from standard input. However, you cannot use the dash (-) if you are using the DS CLI interactive mode. For DS6000, example of a fully qualified LSS ID: IBM.1750-68FA120/10 Example You can issue the lssession command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model the storage image ID is different. For this command and all other DS CLI list commands, the results are shown in table format to provide clarity. The actual reports do not display as tables. The following tables represent the headers that are displayed on the output report that is associated with the lssession command using the -l parameter. A separate example is not shown for the DS6000 because the information is the same for both machine types. When you use the -s parameter with the lssession command only 3 ID items are displayed in the resulting report: LSSID, SessionID, and VolumeID. A separate example is shown for this scenario. Invoking the lssession command using the -l parameter
dscli>lssession dev IBM.2107-75FA120 -l 01
682
Date/Time: Sun Aug 11 02:23:49 PST 2004 IBM DS CLI Version: 5.0.0.0 DS: IBM.2107-75FA120 VolumeStatus Active
LSSID IBM.210775FA120 /10 IBM.210775FA120 /10 IBM.210775FA120 /10 IBM.210775FA120 /10 IBM.210775FA120 /10 IBM.210775FA120 /10
Session 01
Status Normal
Volume IBM.210775FA120 /1001 IBM.210775FA120 /1002 IBM.210775FA120 /1003 IBM.210775FA120 /1011 IBM.210775FA120 /1012 IBM.210775FA120 /1013
01
Normal
Active
01
Normal
Active
02
Normal
Active
02
Normal
02
Normal
PrimaryStatus Primary Full Duplex Primary Full Duplex Primary Full Duplex Primary Full Duplex Primary Simplex Primary Simplex
SecondaryStatus Secondary Simplex Secondary Simplex Secondary Simplex Secondary Simplex Secondary Simplex Secondary Simplex
FirstPassComplete True
AllowCascading Disabled
True
Disabled
True
Disabled
True
Disabled
True
Disabled Disabled
False
683
Report field definitions LSSID Specifies the unique identifier that is assigned to this logical subsystem object. The LSS ID is a hexadecimal value in the range 00 - FE for the DS8000. The DS6000 value is in the range 00 - 1F. Session Specifies the Session ID number that you assigned in the 01 - FF hexadecimal range. Status Specifies the state of the session. One of the following values is displayed: CG in progress Indicates that the consistency group for the session is in progress. Increment Pending Indicates that the Increment process is in progress. Normal Indicates that the session is in a normal state. Volume Specifies the volume ID. If no volume is active for the session a null (-) value is displayed. VolumeStatus Specifies the status of the volume in the session. One of the following values is displayed: Join Pending Indicates that the volume is not active for the current session. However, it will be added to the session in the next cycle. Remove Pending Indicates that the volume is active for the current session. However, it will be removed in the next cycle. Active Indicates that the volume is an active member of the session. PrimaryStatus Specifies the primary remote copy and mirror status of the volume. One of the following values is displayed: Primary Simplex Indicates that the volume is not part of a remote mirror and copy relationship.
684
Primary Copy Pending Indicates that the volume is primary in a remote mirror and copy relationship and the relationship is in a Copy Pending state, which means that the source and target volume are out-of-sync. In this situation, data still needs to be copied from the source to the target volume. Primary Full Duplex Indicates that the volume is primary in a remote mirror and copy relationship and the relationship is in a Full Duplex state, which means that the copy operation has completed and the volume pair is synchronized, and that any updates to the primary volume will be transferred synchronously to the secondary volume. Primary Suspended Indicates that the volume is primary in a remote mirror and copy relationship and the relationship is suspended, which means that the primary is no longer transferring data to the secondary, and any changed data that is at the primary will be tracked in an out-of-sync bitmap. - (null) Indicates that there are no active volumes for the session. SecondaryStatus Specifies the secondary remote copy and mirror status of the volume. One of the following values is displayed: Secondary Simplex Indicates that the volume is not part of a remote mirror and copy relationship. Secondary Copy Pending Indicates that the volume is secondary in a remote mirror and copy relationship and the relationship is in a Copy Pending state, which means that the source and target volume are out-of-sync. In this situation, data still needs to be copied from the source to the target volume. Secondary Full Duplex Indicates that the volume is secondary in a remote mirror and copy relationship and the relationship is in a Full Duplex state, which means that the copy operation has completed and the volume pair is synchronized, and that any updates to the secondary volume will be transferred synchronously from the primary volume. Secondary Suspended Indicates that the volume is secondary in a remote mirror and copy relationship and the relationship is suspended, which means that the primary is no longer transferring data to the secondary, and any changed data that is at the primary will be tracked in an Out of Sync bitmap. - (null) Indicates that there are no active volumes for the session. FirstPassComplete Specifies whether the first cycle of the volume in the global mirror relationship has ended. The value displayed is either True or False.
685
AllowCascading Specifies whether the volume can be a secondary in a remote mirror and copy relationship. The value displayed is either Enabled or Disabled. rmsession: The rmsession command closes an existing Global Mirror session.
rmsession -dev storage_image_ID -lss ID -quiet Session_ID -
Parameters -dev storage_image_ID (Optional) Specifies the storage image ID, which includes manufacturer, machine type, and serial number. The storage image ID is required if you do not specify a fully qualified LSS ID, do not set the devid variable in your profile or via the setenv command, and the HMC is aware of more than one storage image. Using the -dev parameter will temporarily override any defined value for devid for the current command. For DS8000, example: IBM.2107-75FA120 -lss ID (Required). Specifies the logical subsystem (LSS) ID for the Global Mirror session that is being closed. The format of the LSS ID is a hexadecimal value in the range 00 - FE for the DS8000. The DS6000 value is in the range 00 - 1F. This parameter accepts a fully qualified LSS ID, which includes the storage image ID, or shortened version without the storage image ID if the -dev parameter is specified. For DS6000, example of a fully qualified LSS ID: IBM.1750-68FA120/10 -quiet (Optional). Turns off the confirmation prompt for this command. Session_ID | (Required). Specifies the session ID on which Global Mirror processing is to be closed. A session ID is a hexadecimal number in the range 01 - FF. If you use the dash (-), the specified value is read from standard input. However, you cannot use the dash (-) if you are using the DS CLI interactive mode. Example of a session ID: 01 Example You can issue the rmsession command either for a DS8000 model or for a DS6000 model. However, for the DS6000 model the storage image ID is different. Invoking the rmsession command
dscli>rmsession -dev IBM.2107-75FA120 -lss 10 01
| | | | |
686
Date/Time: Sun Aug 11 02:23:49 PST 2004 DS CLI Version: 5.0.0.0 DS: IBM.2107-75FA120 Are you sure you want to close Session ID 01? y/n Y Global Mirror Session ID 01 closed successfully.
Audit commands
This section contains commands that are used for audit logging. Use the offloadauditlog command to create activity reports for the consoles and storage units. The offloadauditlog command generates an activity report for a console that includes basic information, such as, a list of who logged in, when they logged in, and what they did during their session.
offloadauditlog
The offloadauditlog command provides an activity report for a console (identified as smc1 or smc2). The report includes basic information, such as, a list of who logged in, when they logged in, and what they did during their session. In addition, a log of service actions (phone connection started, phone connection ended WebSM session started, WebSM session ended) is appended to the end of the audit log.
offloadauditlog -logaddr smc1 smc2 audit_log_file -quiet
Parameters
Notes: 1. Only users with administrator authority are authorized to use this command. 2. A separate log entry is added each time a resource is created, deleted, modified. Entries are added to the audit file only after the operation has completed. 3. You must periodically extract the log using the offloadauditlog command and save the log file in a directory of your choice. The log file is automatically reduced (old entries removed first) by the subsystem so that it does not consume more than 50 megabytes of disk storage. When the log is 60% full, an entry (Audit_Log_At_60%) is placed in the audit log. Another entry is added when the log is 75% (Audit_Log_At_75%) full. At 100%, the log is reduced to 50% full. 4. When viewing the service actions section of the report, there might be cases where a WebSM session started entry might not have a corresponding WebSM session ended entry. 5. As noted in the example of the report, the service action report begins after the line of text that states:
"-----BEGIN SERVICE AUDIT LOG-----"
-logaddr smc1|smc2 (Required) Specifies that the audit log be offloaded for the designated storage
Chapter 12. Command-line interface commands
687
management console. The designated storage management console must be configured and available to offload the audit log successfully. -quiet (Optional) Specifies that the confirmation prompt be turned off. audit_log_file (Required) Specifies the file name to which the audit log entries are extracted. Note: If you specify a file name that contains prior log entries, these entries are overwritten with the current data.
Example
Note: The following example displays only a portion of an actual Service action report appended to the end of the Audit log report. Invoking the offloadauditlog command
dscli>dscli> offloadauditlog logaddr smc1 auditlog-200509.txt
Representative report The following is an example of the report information that is extracted when you use the offloadauditlog command (the wrapping is done simply for clarity and is not representative of your actual report):
U,2005/10/04 15:08:46:834 MST,admin,1,,W,1002,User_Login_Fail,,1, "IP = N996304B.tucson.ibm.com/9.11.178.201" U,2005/10/04 15:29:37:432 MST,admin,1,,W,1001,User_Login_Expire,,0, "IP = N996304B.tucson.ibm.com/9.11.178.201" U,2005/10/04 15:32:56:979 MST,admin,1,,N,1000,User_Login,,0, "IP = N996304B.tucson.ibm.com/9.11.178.201" U,2005/10/04 15:34:21:020 MST,admin,1,,N,1000,User_Login,,0, "IP = N996304B.tucson.ibm.com/9.11.178.201" U,2005/10/05 16:54:32:171 MST,admin,1,,N,1103, User_Password_Change,,be741104,"userName = admin" S,2005/10/06 00:01:10:239 MST,,1,,W,1200,Audit_Log_At_60%,,,"" U,2005/10/06 00:23:09:817 MST,admin,1,IBM.2107-AZ12341,N,2050, Array_Create,A0,0,"A0" U,2005/10/06 00:23:10:518 MST,admin,1,IBM.2107-AZ12341,N,2060, Rank_Create,R0,-1,"R0" U,2005/10/06 00:23:12:110 MST,admin,1,IBM.2107-AZ12341,N,2070, XPool_Create,P0,0,"P0" U,2005/10/06 00:23:12:761 MST,admin,1,,N,2073,XPool_Assign_Rank,,,"" U,2005/10/06 00:23:16:947 MST,admin,1,IBM.2107-AZ12341,N,2090, Volume_Create,1000,0,"1000" U,2005/10/06 00:23:17:187 MST,admin,1,IBM.2107-AZ12341,N,2090, Volume_Create,1001,,"1001" S,2005/10/06 00:23:24:508 MST,,1,,W,1201,Audit_Log_At_75%,,,"" U,2005/10/06 12:47:16:345 MST,admin,1,IBM.2107-AZ12341,N,2092, Volume_Delete,2005,0,"2005" U,2005/10/06 12:47:16:656 MST,admin,1,IBM.2107-AZ12341,N,2092, Volume_Delete,2006,-1,"2006" -----BEGIN SERVICE AUDIT LOG----U,2007/08/21 12:05:24:000 MST,CE,1,IBM.2107-75R0830,N,8020, Web_SM_session_start,Web_SM_session_started,,,
688
U,2007/08/21 12:05:27:000 MST,CE,1,IBM.2107-75R0830,N,8022, Web_SM_session_ended,,,, U,2007/08/24 11:59:36:000 MST,CE,1,IBM.2107-75R0830,N,8020, Web_SM_session_start,Web_SM_session_started,,, U,2007/08/24 12:02:31:000 MST,CE,1,IBM.2107-75R0830,N,8022, Web_SM_session_ended,,,, U,2007/08/30 11:36:21:000 MST,CE,1,IBM.2107-75R0830,N,8020, Web_SM_session_start,Web_SM_session_started,,, U,2007/08/30 11:38:37:000 MST,CE,1,IBM.2107-75R0830,N,8022, Web_SM_session_ended,,,, U,2007/09/04 16:19:36:000 MST,,1,IBM.2107-75R0830,N,8022, Web_SM_session_ended,,,, U,2007/09/04 16:22:57:000 MST,hscroot,1,IBM.2107-75R0830,N,8020, Web_SM_session_start,Web_SM_session_started,,, U,2007/09/04 16:23:00:000 MST,hscroot,1,IBM.2107-75R0830,N,8022, Web_SM_session_ended,,,,
Timestamp
Represents the date, time, and time zone of the log entry. Represents the user account that is making the request. Represents the management console that processed the user request. Represents the storage image ID that consists of the following values: manufacture, type, and serial number.
User MC
Device
16 char
689
Field NWC
Format 1 char
Description Represents the following message types: N = notification, W = warning, and C = critical. Represents the unique identifier that is associated with the activity that is represented by the log entry. A text description that corresponds to the Entry ID. Represents a unique identifier that identifies the object. Represents the final result code. Represents unformatted text that includes input parameters in the format: attr1 = value1, attr2 = value2 with a comma (,) separator between parameters and double quotation marks around the entire field.
Entry ID
4 char
690
| | |
| | | |
691
| | | | | | | | | | | | | | | | | | | | | | | | | |
Preparing CONSOLE Mode Installation... =================================================================== IBM System Storage DS Command Line Interface (created with InstallAnywhere by Macrovision) ------------------------------------------------------------------=================================================================== Uninstall IBM System Storage DS Command Line Interface -----------------------------------------------------About to uninstall... IBM System Storage DS Command Line Interface This will remove features installed by InstallAnywhere. It will not remove files and folders created after the installation. Hit "Enter" to uninstall. PRESS Enter TO CONTINUE:
3. Press Enter to continue. The DS CLI is now uninstalled from your system. You might have to restart to complete the removal of files that were locked during the uninstallation process.
| | | | | | | | | | | | | | | | | |
692
| | | | | | |
d. From the command prompt, specify the -i swing flag to open the uninstaller in graphical mode. The Uninstall IBM System Storage DS Command Line Interface window is displayed. Click the Uninstall button to complete the uninstallation process, or Cancel to cancel the uninstallation. e. The Uninstall Complete window is displayed after the uninstallation process has completed. Click OK to close the window. 2. Alternately, you can use the Add/Remove Programs facility of the Windows operating system to remove the DS CLI from your system. When you have processed the uninstall steps, restart your system to complete the uninstall. Perform the following steps to remove the DS CLI using the graphical mode. a. Navigate to the Windows Control Panel and open the Add/Remove program facility. b. Scroll the list of currently installed programs and click the listing for IBM System Storage DS Command-Line Interface. c. Click the Change/Remove button and the Welcome window for the Uninstaller is displayed. d. Click Next to continue or click Cancel to exit the removal process. When you click Next, the Confirmation window is displayed that shows the directory from which the DS CLI program is removed. e. Click Remove to continue or Cancel to stop the removal and exit the uninstall process. Click Back to return to the previous window. When you click Remove, the Uninstallation Progress window is displayed. When the uninstall process is finished, the Finish window is displayed, which contains a statement about the success or failure of the uninstall process. Click Finish to close. If the uninstall program does not remove some information from your system, the Restart window is displayed. You must restart so that previously locked files are released and automatically deleted. f. Close the Add/Remove Programs window. g. Restart your system, if required (now or later), to complete the removal process.
Layered Product
693
3. Press Enter to confirm the uninstallation. The following uninstallation confirmation message with completion status is displayed.
The following product will be removed from destination: IBM AXPVMS DSCLI V5.0-1F96 DISK$V732_ALPHA:[VMS$COMMON.] Portion done: 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
When the uninstallation process ends, a message similar to the following is displayed.
The following product has been removed: IBM AXPVMS DSCLI V5.0-1F96
Layered Product
4. Remove the command-line interface startup, login, and shutdown functions from your system startup, login, and shutdown processes.
694
process. However, it is possible to use your System i model directly (bypassing the uninstaller) to remove the DS CLI application. You cannot use the uninstaller that was created for the DS CLI when you originally installed the DS CLI because it was created for the remote system that you used for the installation and not for the System i model.
Substitute your uninstall directory for yourdir. 2. Wait until the uninstall process is complete before you continue with your next process.
Removing the DS CLI from your System i model using the remote method
Complete this task to remove the DS CLI from your System i model using the remote method.
695
| | | | | |
1. Navigate to the _uninst folder on the Windows desktop. The _uninst folder was created when the DS CLI installer was initially run on the remote Windows machine. 2. Run the uninstaller.exe file to uninstall the DS CLI on the remote System i system. Enter the system name, user name, and password to complete the uninstallation.
696
697
dscli> chvolgrp -dev ID -action add | remove | replace -volume ID,ID,...,ID volume_group_ID You can add or remove volume IDs to the list in order to add or remove volumes. This command applies the updated volume ID list.
698
Notes: 1) The -portgrp port_grp_number parameter is used to only list those port IDs that are associated with a port group number that you assigned when you originally created the host connection. 2) The -l parameter is used to generate the detailed status report for each host connection. b. Issue the rmhostconnect command to delete the SCSI host port IDs that are associated with the storage volumes to be removed. Enter the rmhostconnect at the dscli command prompt as follows:
dscli>rmhostconnect -dev IBM.210775FA120 1
Notes: 1) The host_connect_ID parameter (1 in the command example) is required and is a unique identifier (0 - 65 534) within the scope of a storage image. 2) A message is displayed with a request that you confirm the deletion of the host connection. 2. Find the volume groups and volume group storage maps by issuing the lsvolgrp and showvolgrp commands. a. Issue the lsvolgrp command to display a list of defined volume group IDs and their characteristics. Enter the lsvolgrp command at the dscli command prompt as follows:
dscli>lsvolgrp -dev IBM.210775FA120 -l
b. Issue the showvolgrp command to display the detailed properties of the volume group that you want to delete. Enter the showvolgrp command at the dscli command prompt as follows:
dscli>showvolgrp -dev IBM.210775FA120 -lunmap V1001
Repeat the showvolgrp command for each volume group you want to delete. Note: The Volume_Group_ID (V1001) parameter is required. The shortened form is allowed when you designate the -dev parameter.
Chapter 14. Command-line interface scenarios
699
c. Copy the list of volumes within the volume group for later use when you analyze which volumes that you want to remove. 3. Remove the volume groups, as a means to remove volume access by host systems, by issuing the rmvolgrp command. Enter the rmvolgrp command at the dscli command prompt as follows:
dscli>rmvolgrp -dev IBM.210775FA120 V123-V125
Notes: a. All volume groups that are specified for deletion must belong to the same storage unit. b. The Volume_Group_ID parameter (V123-V125 in the example) is required. The shortened version of the ID is allowed if you designate the -dev parameter. c. The example command shows a range of volume group IDs. If you have another volume group or another volume group range, you must add a blank between the designations (for example, V123-V125 V130-V133 V135) d. A message is displayed for each deleted volume group ID or range of volume group IDs. The message requests that you confirm the deletion. 4. Remove the fixed block volumes by issuing the rmfbvol command. This action enables the removal of the associated ranks, arrays and extent pools. Enter the rmfbvol command at the dscli command prompt as follows:
dscli>rmfbvol -dev IBM.2107-75FA120 0100 0101
Notes: a. The associated logical subsystem (LSS) is automatically removed when the last volume that is contained by the LSS is removed. b. The Volume_ID parameter (represented by 0100 0101 in the example) is required when you issue the rmfbvol command. The shortened version of the ID is allowed if you designate the -dev parameter. c. A message is displayed for each volume that is deleted. The message requests that you confirm the deletion. 5. Remove the ranks by issuing the lsrank and rmrank commands. a. Issue the lsrank command to display a list of rank IDs to be removed. Use the command parameters to develop a selective list of rank IDs. Enter the lsrank command at the dscli prompt as follows:
dscli>lsrank -dev IBM.2107-75FA120 -l
Note: Rank IDs that indicate extents used = 0 are eligible to be removed. If extents used are greater than 0 then rank segments are currently assigned to existing volume IDs. b. Issue the rmrank command to remove the ranks that are assigned to the arrays. Enter the rmrank command at the dscli prompt as follows:
dscli>rmrank -dev IBM.2107-75FA120 R23
Notes: 1) The rank_ID parameter (R23 in the example) is required. The shortened version of the ID is allowed if you designate the -dev parameter. 2) You must remove the ranks before you can remove the arrays and extent pools.
700
3) The processing time that is associated with the rmrank command can be lengthy and might inhibit your use of the array on which this command is being processed. 4) When the rmrank command is issued, the following processing occurs: v The rank is unassigned from the array. v The rank is removed. When this is successful, a message is displayed. This part of the process does not take long; however, the processing that is associated with this command is not complete even though you have received a message that the rank was removed. v The array is formatted. This processing can take some time. During this processing the array cannot be removed or assigned to another rank. Also, until this process is fully completed, the rank is listed as assigned to the array from which it is has been removed. v You can check the progress of the rmrank command by logging onto another session of DS CLI. Issue the lsarray command against the storage image where the rank or ranks are being deleted. When you no longer see the rank that is assigned to the array from which you removed it, the remove rank process is complete. 6. Remove the arrays by issuing the lsarray and rmarray commands. a. Issue the lsarray command to obtain a list of array IDs to be removed. Enter the lsarray command at the dscli prompt as follows:
dscli>lsarray -dev IBM.2107-75FA120 -state unassigned
Notes: 1) The -state unassigned parameter allows you to narrow your list to just the array IDs that are not assigned to a rank ID. 2) If you issue the lsarray command without using the -state parameter, it is possible you will see a list of arrays that have a state of unavailable. This is generally a good indication that the ranks have not been removed and that the drives are still formatting. You must wait until the ranks have been removed and the drives have been formatted before you can proceed. 3) Proceed to the next step (remove arrays) only after all the associated arrays are displayed with a state of unassigned. b. Issue the rmarray command to delete the unassigned arrays so that the array sites can be redefined as new arrays. Enter the rmarray command at the dscli command prompt as follows:
dscli>rmarray -dev IBM.2107-75FA120 A44-A48 A51
Notes: 1) The example command displays the use of a range of array IDs plus one additional array ID.(A44-A48 A51). A range of arrays requires the use of a hyphen and a space between the next array or another range of arrays. 2) A message is displayed for each array being deleted that requests your confirmation before processing. 7. Remove the extent pools by issuing the lsextpool and rmextpool commands.
701
a. Issue the lsextpool command to obtain a list of extent pool IDs to be removed. Enter the lsextpool command at the dscli command prompt as follows:
dscli>lsextpool -dev IBM.2107-75FA120 -l -stgtype fb
Note: v The -stgtype fb parameter allows you to narrow the list so that it displays only those extent pools that are assigned for use with fixed block volumes. v Extent pool IDs that indicate assigned ranks = 0 are eligible to be removed. If the assigned ranks are greater than 0, the extent pool potentially contains assigned storage volumes. The rank indicator must be 0 before you can remove the extent pool. b. Issue the rmextpool command to delete extent pool IDs that do not contain assigned rank IDs. Enter the rmextpool command at the dscli command prompt as follows:
dscli>rmextpool -dev IBM.2107-75FA120 P21-P25 P30
Notes: 1) All rank assignments must be deleted before the extent pool can be deleted. 2) The example command displays the use of a range of extent pool IDs plus one additional extent pool ID (P21-P25 P30). A range of extent pool IDs requires the use of a hyphen and a space between the next extent pool ID or next range of extent pool IDs.
702
a. Issue the lsckdvol command to display a list of CKD volume IDs. Analyze the list to determine which IDs can be removed. Enter the lsckdvol command at the dscli command prompt as follows:
dscli>lsckdvol -dev IBM.210775FA120 -lcu 00 -l
Notes: 1) You can narrow the list of volume IDs for the designated storage image by using the supported parameters of the lsckdvol command. 2) The example displays the use of the -lcu parameter with a value of 00. Logical control unit (LCU) values are in the range 00 - FE for the DS8000 and in the range 00 - 1E for the DS6000. You must specify a specific LCU; otherwise, the entire storage unit is queried, which results in a longer processing time. b. Issue the rmckdvol command to delete volumes. This action enables the removal of the associated ranks, arrays, and extent pools. Enter the rmckdvol command at the dscli command prompt as follows:
dscli>rmckdvol -dev IBM.2107-75FA120 0100 0101
Note: v The Volume_ID parameter (represented by the values 0100 0101 in the command example) is required when you issue the rmckdvol command. v A message is displayed for each volume that is being deleted. The message requests that you confirm the deletion. 2. Issue the rmlcu command to delete LCUs so that the address groups can be redefined for use with fixed block or CKD volumes. Enter the rmlcu command at the dscli command prompt as follows:
dscli>rmlcu -dev IBM.2107-75FA120 00-03 08
Note: The example command displays the use of a range of LCU IDs plus one additional LCU ID (00-03 08). A range of LCU IDs requires the use of a hyphen. If you add an additional LCU ID or a range of LCU IDs, you must allow a space between the next LCU ID or another range of LCU IDs. 3. Remove the ranks by issuing the lsrank and rmrank commands. a. Issue the lsrank command to display a list of rank IDs to be removed. Use the lsrank command parameters to develop a selective list of rank IDs. Enter the lsrank command at the dscli command prompt as follows:
dscli>lsrank -dev IBM.2107-75FA120 -l
Note: Rank IDs that indicate extents used = 0 are eligible to be removed. If the displayed value for extents used is greater than 0, it indicates that the ranks are currently assigned to existing volume IDs. b. Issue the rmrank command to remove the ranks that are assigned to the arrays. Enter the rmrank command at the dscli prompt as follows:
dscli>rmrank -dev IBM.2107-75FA120 R23
Notes: 1) You must remove the ranks before you can remove the arrays and extent pools.
703
2) The processing time that is associated with the rmrank command can be lengthy and might inhibit your use of the array on which this command is being processed. 3) When the rmrank command is issued, the following processing occurs: v The rank is unassigned from the array. v The rank is removed. When this is successful, a message is displayed. This part of the process does not take long; however, the processing that is associated with this command is not complete even though you have received a message that the rank was removed. v The array is formatted. This processing can take some time. During this processing the array cannot be removed or assigned to another rank. Also, until this process is fully completed, the rank is listed as assigned to the array from which it is has been removed. v You can check the progress of the rmrank command by logging onto another session of DS CLI. Issue the lsarray command against the storage image where the rank or ranks are being deleted. When you no longer see the rank that is assigned to the array from which you removed it, the remove rank process is complete. 4. Remove the arrays by issuing the lsarray and rmarray commands. a. Issue the lsarray command to obtain a list of array IDs to be removed. Enter the lsarray command at the dscli prompt as follows:
dscli>lsarray -dev IBM.2107-75FA120 -state unassigned
Notes: 1) The -state unassigned parameter allows you to narrow your list to just the array IDs that are not assigned to a rank ID. 2) If you issue the lsarray command without using the -state parameter, it is possible you will see a list of arrays that have a state of unavailable. This is generally a good indication that the ranks have not been removed and that the drives are still formatting. You must wait until the ranks have been removed and the drives have been formatted before you can proceed. Proceed to the next step (remove arrays) only after all the associated arrays are displayed with a state of unassigned. b. Issue the rmarray command to delete the unassigned arrays so that the array sites can be redefined as new arrays. Enter the rmarray command at the dscli command prompt as follows:
dscli>rmarray -dev IBM.2107-75FA120 A44-A48 A51
Notes: 1) The example command displays the use of a range of array IDs plus one additional array ID (A44-A48 A51). A range of arrays requires the use of a hyphen and a space between the next array or another range of arrays. 2) A message is displayed for each array being deleted that requests your confirmation before processing. 5. Remove the extent pools by issuing the lsextpool and rmextpool commands.
704
a. Issue the lsextpool command to obtain a list of extent pool IDs to be removed. Enter the lsextpool command at the dscli command prompt as follows:
dscli>lsextpool -dev IBM.2107-75FA120 -stgtype fb -l
Notes: 1) Use the -stgtype fb parameter to narrow the list so that it displays only those extent pools that are assigned for use with fixed block volumes. 2) Extent pool IDs that indicate assigned ranks = 0 are eligible to be removed. If the value for assigned ranks is greater than 0, the extent pool potentially contains assigned storage volumes. The rank indicator must be 0 before you can remove the extent pool. b. Issue the rmextpool command to delete extent pool IDs that do not contain assigned rank IDs. Enter the rmextpool command at the dscli command prompt as follows:
dscli>rmextpool -dev IBM.2107-75FA120 P21-P25 P30
Notes: 1) All rank assignments must be deleted before the extent pool can be deleted. 2) The example command displays the use of a range of extent pool IDs plus one additional extent pool ID (P21-P25 P30). A range of extent pool IDs requires the use of a hyphen. When you add an additional extent pool ID or another range of extent pool IDs, you must put a space between the current extent pool ID value and the next extent pool ID value.
705
a. Issue the lsavailpprcport command to obtain a report that lists which volumes are available for use. Enter the lsavailpprcport command at the dscli command prompt with the following parameters and variables:
dscli> lsavailpprcport -dev IBM.2107-1300861 -remotedev IBM.2107-1300871 -remotewwnn 5005076303FFC03D 22:2A
b. Issue the mkpprcpath command to establish the remote mirror and copy path between LSS 22 and LSS 2A. Enter the mkpprcpath command at the dscli command prompt with the following parameters and variables:
dscli>mkpprcpath -dev IBM.2107-1300861 -remotedev IBM.2107-1300871 -remotewwnn 5005076303FFC03D -srclss 22 -tgtlss 2A I0030:I0031 I0100:I0101
2. Issue the mkpprc command to establish a remote mirror and copy pair (2200 to 2A00). Enter the mkpprc command at the dscli command prompt with the following parameters and variables:
dscli>mkpprc -dev IBM.2107-1300861 -remotedev IBM.2107-1300871 -type mmir 2200:2A00
3. Issue the mkremoteflash command to use LSS 22 on the local site as a conduit LSS for new remote Flash Copy relationships on the remote storage unit. These new relationships use volume 2A00 as their source. The target can be any other volume on the remote storage unit (in this scenario, 2A01). Enter the mkremoteflash command at the dscli command prompt with the following parameters and variables:
dscli>mkremoteflash -dev IBM.2107-1300871 -conduit IBM.2107-1300861/22 -record 2A00:2A01
4. Issue the resyncremoteflash command because the remote FlashCopy relationship (2A00:2A01) was created with the -record parameter. Enter the resyncremoteflash command at the dscli command prompt with the following parameters and variables:
dscli>resyncremoteflash -dev IBM.2107-1300871 -conduit IBM.2107-1300861/22 -record 2A00:2A01
706
CMUC00175I resyncremoteflash: Remote FlashCopy volume pair 2A00:2A01 successfully resynched. Use the lsremoteflash command to determine copy completion.
5. Issue the lsremoteflash command to verify that the transaction has processed as you intended. Enter the lsremoteflash command at the dscli command prompt with the following parameters and variables:
dscli>lsremoteflash -dev IBM.2107-1300871 -conduit IBM.2107-1300861/22 2A00:2A01
Persistent Enabled
Revertible Disabled
Metro Mirror test scenario: failback operation from local to remote site
This scenario describes the steps required to test the failover and failback procedures in which a failback is done from the local site to the remote site.
As a result of the freeze action, the following processing occurs: v I/O processing to the Metro Mirror volume pairs is temporarily queued during the time that updates are frozen.
707
v The volume pairs that are associated with the source and target LSSs are suspended. During this time, updates are collected using the change recording feature on the Site A volumes. v The established paths between the LSS pairs are disabled. 2. Resume operations following a freeze. Issue the unfreezepprc command to allow I/O activity to resume for the specified volume pairs. Enter the unfreezepprc command at the dscli command prompt with the following parameters and variables: Note: This action is sometimes referred to as a thaw operation.
dscli> unfreezepprc -dev IBM.2107-130165X -remotedev IBM.2107-75ALA2P 07:12
3. At Site B (remote site), issue a failover command to the B to A volume pairs. Enter the failoverpprc command at the dscli command prompt with the following parameters and variables:
dscli> failoverpprc -dev IBM.2107-75ALA2P -remotedev IBM.2107-130165X -type mmir 1200-125f:1a00-1a5f
When this command processes, the following occurs: v The B volumes become suspended primary volumes. Updates are collected using the change recording feature on the volumes. v The A volumes are suspended primary volumes. 4. Allow test I/O to start at Site B. 5. When testing is complete, perform the following steps: a. Quiesce test I/O at Site B (remote site). b. Enable the remote mirror and copy links between the storage units across the two sites. (The paths will not reestablish automatically.) c. Reestablish paths between the local and remote site LSSs that contain the Metro Mirror volume pairs. Enter the mkpprcpath command at the dscli command prompt with the following parameters and variables:
dscli> mkpprcpath -dev IBM.2107-130165X -remotedev IBM.2107-75ALA2P -remotewwnn 5005076303FFC550 -srclss 07 -tgtlss 12 -consistgrp I0102:I0031 I0002:I0102
6. At the local site, issue a failback command to the A to B volume pairs. Enter the failbackpprc command at the dscli command prompt with the following parameters and variables
dscli> failbackpprc -dev IBM.2107-130165X -remotedev IBM.2107-75ALA2P -type mmir 1a00-1a5f:1200-125f
708
v Updates that are made to the volumes at Site B are recorded with the change recording feature. Changed tracks of data are copied from the Site A volumes to Site B volumes. v When the copy process is complete, the Site A volumes will be synchronized with the Site B volumes. 7. Production I/O continues to the A volumes.
Example
dscli>mkpprcpath -dev IBM.2107-75FA120 -remotedev IBM.2107-75FA150 -srclss 01 -tgtlss 00 remotewwnn 12341234000A000F I1A10:I2A20
Example
dscli>mkpprc -dev IBM.2107-75FA120 -remotedev IBM.2107-75FA150 0100:0100 -type gcp 0101:0101 0102:0102 0103:0103
709
Example
dscli>mkpprc -dev IBM.2107-75FA120 -remotedev IBM.2107-75FA150 0100:0100 -type mmir 0101:0101 0102:0102 0103:0103
710
Notices
This information was developed for products and services offered in the U.S.A. IBM may not offer the products, services, or features discussed in this document in other countries. Consult your local IBM representative for information on the products and services currently available in your area. Any reference to an IBM product, program, or service is not intended to state or imply that only that IBM product, program, or service may be used. Any functionally equivalent product, program, or service that does not infringe any IBM intellectual property right may be used instead. However, it is the users responsibility to evaluate and verify the operation of any non-IBM product, program, or service. IBM may have patents or pending patent applications covering subject matter described in this document. The furnishing of this document does not give you any license to these patents. You can send license inquiries, in writing, to: IBM Director of Licensing IBM Corporation North Castle Drive Armonk, NY 10504-1785 U.S.A. The following paragraph does not apply to the United Kingdom or any other country where such provisions are inconsistent with local law: INTERNATIONAL BUSINESS MACHINES CORPORATION PROVIDES THIS PUBLICATIONS AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Some states do not allow disclaimer of express or implied warranties in certain transactions, therefore, this statement may not apply to you. This information could include technical inaccuracies or typographical errors. Changes are periodically made to the information herein; these changes will be incorporated in new editions of the publication. IBM may make improvements and/or changes in the product(s) and/or the program(s) described in this publication at any time without notice. Any references in this information to non-IBM Web sites are provided for convenience only and do not in any manner serve as an endorsement of those Web sites. The materials at those Web sites are not part of the materials for this IBM product and use of those Web sites is at your own risk. IBM may use or distribute any of the information you supply in any way it believes appropriate without incurring any obligation to you. Any performance data contained herein was determined in a controlled environment. Therefore, the results obtained in other operating environments may vary significantly. Some measurements may have been made on development-level systems and there is no guarantee that these measurements will be the same on generally available systems. Furthermore, some measurement may have been
711
estimated through extrapolation. Actual results may vary. Users of this document should verify the applicable data for their specific environment. Information concerning non-IBM products was obtained from the suppliers of those products, their published announcements or other publicly available sources. IBM has not tested those products and cannot confirm the accuracy of performance, compatibility or any other claims related to non-IBM products. Questions on the capabilities of non-IBM products should be addressed to the suppliers of those products. All statements regarding IBMs future direction or intent are subject to change or withdrawal without notice, and represent goals and objectives only. This information is for planning purposes only. The information herein is subject to change before the products described become available. This information contains examples of data and reports used in daily business operations. To illustrate them as completely as possible, the examples include the names of individuals, companies, brands, and products. All of these names are fictitious and any similarity to the names and addresses used by an actual business enterprise is entirely coincidental.
Accessibility
Accessibility features provide users who have disabilities with the ability to successfully access information and use technology. Accessibility features help a user who has a physical disability, such as restricted mobility or limited vision, to use software products successfully.
Features
These are the major accessibility features in the IBM System Storage DS8000 information: v You can use screen-reader software and a digital speech synthesizer to hear what is displayed on the screen. Window-Eyes version 5.5 has been tested. v You can operate features using the keyboard instead of the mouse.
Navigating by keyboard
You can use keys or key combinations to perform operations and initiate menu actions that can also be done through mouse actions. You can navigate the IBM System Storage DS8000 information from the keyboard by using the shortcut keys for your browser or screen-reader software. See your browser or screen-reader software Help for a list of shortcut keys that it supports.
712
Trademarks
This topic lists IBM trademarks. The following terms are trademarks of the International Business Machines Corporation in the United States, other countries, or both: v AIX v AS/400 v v v v v v v v v v v v DB2 developerWorks DFSMS/MVS DFSMS/VM DS4000 DS6000 DS8000 eServer Enterprise Storage Server ES/9000 ESCON FICON
v e (logo)
v FlashCopy v GDPS v Graphically Dispersed Parallel Sysplex v v v v v v v v v v v v HACMP i5/OS iSeries IBM IntelliStation MVS/ESA Netfinity NetVista OpenPower Operating System/400 OS/400 pSeries
v System p5
Notices
713
v v v v v v v v v v v v v v v v v
x z z9 z10 Storage
System Storage DS Tivoli TotalStorage Versatile Storage Server Virtualization Engine VM/ESA VSE/ESA xSeries z/Architecture z/OS z/VM zSeries
Adobe, the Adobe logo, PostScript, and the PostScript logo are either registered trademarks or trademarks of Adobe Systems Incorporated in the United States, and/or other countries. Java and all Java-based trademarks are trademarks of Sun Microsystems, Inc. in the United States, other countries, or both. Linux is a trademark of Linus Torvalds in the United States, other countries, or both. Microsoft, Windows, and Windows NT are trademarks of Microsoft Corporation in the United States, other countries, or both. Intel, Intel logo, Intel Inside, Intel Inside logo, Intel Centrino, Intel Centrino logo, Celeron, Intel Xeon, Intel SpeedStep, Itanium, and Pentium are trademarks or registered trademarks of Intel Corporation or its subsidiaries in the United States and other countries. UNIX is a registered trademark of The Open Group in the United States and other countries. Other company, product, and service names may be trademarks or service marks of others.
714
Commercial Use: You may reproduce, distribute and display these Publications solely within your enterprise provided that all proprietary notices are preserved. You may not make derivative works of these Publications, or reproduce, distribute or display these Publications or any portion thereof outside your enterprise, without the express consent of IBM. Except as expressly granted in this permission, no other permissions, licenses or rights are granted, either express or implied, to the Publications or any information, data, software or other intellectual property contained therein. IBM reserves the right to withdraw the permissions granted herein whenever, in its discretion, the use of the Publications is detrimental to its interest or, as determined by IBM, the above instructions are not being properly followed. You may not download, export or re-export this information except in full compliance with all applicable laws and regulations, including all United States export laws and regulations. IBM MAKES NO GUARANTEE ABOUT THE CONTENT OF THESE PUBLICATIONS. THE PUBLICATIONS ARE PROVIDED AS-IS AND WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
Notices
715
716
Zulassungsbescheinigung laut dem Deutschen Gesetz ber die elektromagnetische Vertrglichkeit von Gerten (EMVG) vom 18. September 1998 (bzw. der EMC EG Richtlinie 89/336) fr Gerte der Klasse A. Dieses Gert ist berechtigt, in bereinstimmung mit dem Deutschen EMVG das EG-Konformittszeichen - CE - zu fhren. Verantwortlich fr die Konformittserklrung nach Paragraf 5 des EMVG ist die IBM Deutschland GmbH, 70548 Stuttgart. Informationen in Hinsicht EMVG Paragraf 4 Abs. (1) 4: Das Gert erfllt die Schutzanforderungen nach EN 55024 und EN 55022 Klasse A.
VS07171L
Notices
717
718
Index Numerics
2105 to DS8000 DS CLI upgrade 5 ckd volume creating arrays 79 CKD volume rank 81 ckd volumes, creating 83 CLI displaying WWNN 120 pause 127 postinstallation 31 resuming Metro Mirror relationship 126 CLI commands on a command line 32 CLI commands, overview 259 CLI default configuration profile file 45 CLI help 37 CLI history function 35 CLI interactive mode 35 command flags 259 command line presentation 32 commands applykey 338 chauthpol 313 chckdvol 481 chextpool 456 chfbvol 512 chhostconnect 398 chkeymgr 342 chlcu 470 chlss 507 chpass 315 chrank 443 chsession 678 chsestg 556 chsi 376 chsp 363 chsu 369 chuser 315 chvolgrp 540 commitflash 569 commitremoteflash 594 cpauthpol 318 diagsi 377 dscli 302 failbackpprc 629 failoverpprc 633 freezepprc 650 helpmsg 305 initckdvol 483 initfbvol 515 lsaddressgrp 468 lsarray 434 lsarraysite 428 lsauthpol 319 lsavailpprcport 615 lsckdvol 484 lsda 354 lsddm 359 lsextpool 457 lsfbvol 516 lsflash 574 lsframe 353 commands (continued) lshba 357 lshostconnect 402 lshosttype 419 lshostvol 408 lsioport 386 lskey 339 lskeygrp 346 lskeymgr 343 lslcu 472 lslss 508 lsnetworkport 423 lsportprof 410 lspprc 636 lspprcpath 617 lsrank 444 lsremoteflash 599 lsserver 378 lssession 682 lssestg 558 lssi 380 lsstgencl 349 lssu 371 lsuser 319 lsvolgrp 543 lsvolinit 552 lsvpn 366 managehostconnect 411 managepwfile 321 mkaliasvol 495 mkarray 438 mkauthpol 320 mkckdvol 491 mkesconpprcpath 622 mkextpool 460 mkfbvol 524 mkflash 579 mkgmir 662 mkhostconnect 412 mkkeygrp 344 mkkeymgr 342 mklcu 474 mkpprc 644 mkpprcpath 624 mkrank 449 mkremoteflash 604 mksession 680 mksestg 554 mkuser 323 mkvolgrp 545 offloadauditlog 687 overview structure 259 pausegmir 664 pausepprc 652 resumegmir 665 resumepprc 654 resyncflash 571 resyncremoteflash 596 reverseflash 583 revertflash 586 revertremoteflash 608
A
accessibility 712 account setup 42 add volumes to session, CLI 143 adding ranks to extent pool, DS CLI 96 address group 65 AIX CLI installation considerations 9 LIBPATH handling 9 AIX LIBPATH 22 alias volumes 491 applykey 338 arrays status 93 arrays, creating (ckd) 79 arrays, creating (FB) 63 arrays, deleting 95 assigning ranks 81 audit report, console 687
B
background copy 177
C
changing volume states Metro Mirror (DS CLI) 129, 139 chauthpol 313 chckdvol 481 checking command usage 35 chextpool 456 chfbvol 512 chhostconnect 398 chkeymgr 342 chlcu 470 chlss 507 chpass 315 chrank 443 chsession 678 chsestg 556 space-efficient storage 556 chsi 376 chsp 363 chsu 369 chuser 315 chvolgrp 540 Cisco MDS 9216 Multilayer Fabric Switch 7, 644, 662 ckd creating LCU 82 CKD deleting configurations 698 volume removal 494 CKD configuration error 83 CKD configuration error, correcting 85 Copyright IBM Corp. 2004, 2009
719
commands (continued) rmarray 439 rmauthpol 325 rmckdvol 494 rmextpool 462 rmfbvol 527 rmflash 587 rmgmir 667 rmhostconnect 416 rmkeygrp 345 rmkeymgr 343 rmlcu 477 rmpprc 657 rmpprcpath 626 rmrank 450 rmremoteflash 609 rmsession 686 rmsestg 557 rmuser 325 rmvolgrp 547 setauthpol 326 setenv 306 setflashrevertible 591 setioport 391 setnetworkport 421 setoutput 307 setremoteflashrevertible 612 setrmpw 332 setvpn 365 showarray 440 showarraysite 431 showauthpol 333 showckdvol 497 showenv 310 showextpool 463 showfbvol 530 showgmir 669 showgmircg 675 showgmiroos 677 showhostconnect 417 showioport 393 showkeygrp 347 showlcu 478 showlss 510 shownetworkport 426 showpass 335 showrank 451 showsestg 563 showsi 382 showsp 367 showsu 373 showuser 335 showvolgrp 548 testauthpol 336 unfreezeflash 590 unfreezepprc 660 ver 340 whoami 337 commitflash 569 commitremoteflash 594 concurrent copy modifying timeout value (DS CLI) 130 conduit LSS 705 configuration error 69 configuration profile file 45
configuring fibre-channel I/O ports 73, 86 configuring I/O port, System i 73, 86 connection ID, caution 398 consistency group 171 inconsistencies 246 modifying timeout value (DS CLI) 131 consistency group parameters, CLI 144 consistency groups creating (DS CLI) 133 console audit report 687 console mode installation, DS CLI 16 controlling CLI page help 37 conversions Global Copy to Metro Mirror 709 Metro Mirror to Global Copy 709 converting Metro Mirror (DS CLI) 137 volume pairs 137 Copy Services across 2105 and DS6000 140 across 2105 and DS8000 140 correcting path-related configuration error 122 wrong value for remote WWNN 122 wrong value for target LSS ID 122 correcting a CKD configuration error 85 correcting fixed block configuration error 69 correcting FlashCopy relationships, commitflash command 175 correcting FlashCopy relationships, revertflash command 173 count key data volumes creating extent pools 77 cpauthpol 318 create FlashCopy relations, Global Mirror 157 create Global Copy pairs 156 create paths, Global Mirror 153 creating ckd volumes 83 consistency group (DS CLI) 125, 133 extent pools, fixed block 61 fixed block volume groups 70 fixed block volumes 65 FlashCopy relationship 105 LUN volumes 67 Metro Mirror volume pair using a 2105 (DS CLI) 141 persistent FlashCopy 106 ranks for CKD volumes 81 SCSI host port connections 75 volume groups for System i 71 creating a rank, DS CLI 64 creating arrays (ckd) 79 creating arrays (FB) 63 creating extent pools, CKD 77 critical heavy mode 644 critical mode setting (DS CLI) 132 critical volume mode 644
D
DDM status 92 default CLI settings 45 default directories 32 default report format 307 delete arrays 95 delete extent pools, DS CLI 91 delete LCUs 103 delete ranks 100 deleting FlashCopy relationships 108 paths 122 single volume relationship (DS CLI) 139 volume pair (DS CLI) 129 deleting CKD configurations 702 deleting fixed block configuration 698 delim report format 307 determining available I/O ports 137 diagsi 377 disableautoresync failbackpprc 629 failoverpprc 633 mkpprc 644 resumepprc 654 disaster recovery drain time 182 failback scenario (DS CLI) 135 failover (DS CLI) 135 failover B volumes to A volumes 170 first pass 182 OOS 182 quiesce your system 182 restoring operations (planned) to the intermediate site 224 restoring operations to the intermediate site 200, 235 planned outage 193 restoring operations to the remote site 205 restoring to the intermediate site 247 disaster recovery, Global Mirror background copy 177 begin the failback recovery process 179 checking status 169 consistency group analysis 171 correcting FlashCopy relationships, commitflash command 175 end Global Mirror processing 168 fast reverse restore 176 Global Copy failback 186 Global Copy failover 185 process overview 167 reestablish FlashCopy relationships, B to C 178 reestablishing paths 183 resume Global Mirror processing 187 resume Global Mirror processing at the A site 187 resynchronize B volumes to A volumes 181 revertflash and FlashCopy relationships 173 disk drive module 92
720
displaying paths 119 DS CLI console mode installation 16 create paths 120 creating volume pairs 124, 128 default directories 32 determining 137 ESS machine types 5 first time login 32 graphical mode installation 13 I/O ports 137 installation on Linux 16 interactive mode 35 limitations 7 OpenVMS messages 300 persistent setup, OpenVMS 29 script mode 34 session limitation 7 silent mode installation 20 silent mode installation, DS CLI 20 single-shot mode 33 upgrade preparation 5 DS CLI command format 32 DS CLI commands System i 87 DS CLI exit codes 39 DS CLI installation AIX considerations 9 default directories 9 HP Tru64 considerations 9 key aspects 9 mounting the installation CD 12 System i considerations 9 DS CLI Tasks Global Mirror add volumes to session 143 create FlashCopy relationships 157 create Global Copy pairs 156 create session 158 end a session 161 end processing, no script 152 end processing, script mode 152 modify tuning parameters 144 pausing processing 149 query Global Mirror session 149 remove FlashCopy relationships 161 remove Global Copy relationships 163 remove paths 164 remove volumes 159 resume processing 150 setup, creating paths 153 start processing 151 view session 148 DS CLI Tasksmodify topology Global Mirror 146 DS CLI uninstall Linux systems 691 DS CLI upgrade, 2105 to DS8000 5 dscli command 302 during an unplanned outage 213
E
eam (extent allocation method) lsckdvol 484 lsfbvol 516 mkckdvol 491 mkfbvol 524 showckdvol 497 showfbvol 530 EAV (extended addressing volume) mkckdvol 491 end Global Mirror script mode 152 ending Global Mirror processing 168 exit codes, obtaining 39 extent pool modifications, CLI 89 extent pool names 61 extent pool, adding ranks with DS CLI 96 extent pools, delete with DS CLI 91 extent pools, System i 61
F
failback disaster recovery scenario (DS CLI) 135 local to remote 707 restoring operations (planned) to the intermediate site 224 restoring operations (unplanned) to the intermediate site 235 using -force 224, 235 failback recovery process 179 failbackpprc 629 disableautoresync 629 tgtse 629 failover disaster recovery (DS CLI) 135 during an unplanned outage 213 planned outage restoring operations to the intermediate site 193 restoring operations (planned) to the intermediate site 224 restoring operations (unplanned) to the intermediate site 235 restoring operations to the intermediate site 200, 247 restoring operations to the remote site 205 using -force 224, 235 failoverpprc 633 disableautoresync 633 tgtse 633 fast reverse restore 176 fibre-channel I/O ports configuring 73, 86 fc-al 73, 86 ficon 73, 86 scsi-fcp 73, 86 first pass 182 first time login 32 fixed block deleting configurations 698 fixed block configuration error, correcting 69
fixed block volume creating arrays 63 fixed block volume groups, creating 70 fixed block volume groups, modifying 697 fixed block volumes creating extent pools 61 fixed block volumes, creating 65 FlashCopy background copy 114 creating a FlashCopy relationship 105 deleting relationships 108 inconsistent data on target volumes 246 persistent creating 106 refreshing target volumes 111 reversing relationship 112 revertible option 113 revertible option defined 113 setflashrevertible 113 target volumes on Metro Mirror source 116 removing write inhibits 115 viewing information about FlashCopy relationships 107 FlashCopy relationships, create 157 force parameter 629, 633 freezepprc 650
G
Global Copy creating volume pairs 128 Global Copy failback 186 Global Copy failover 185 Global Copy pairs, create 156 Global Mirror - CLI add volumes to session 143 create FlashCopy relationships 157 create Global Copy pairs 156 create session 158 end processing, no script 152 end processing, script mode 152 end session 161 modify topology 146 modify tuning parameters 144 pausing processing 149 query session 149 remove FlashCopy relationships 161 remove Global Copy pair 163 remove paths 164 remove volumes 159 resume processing 150 setup environment, paths 153 start processing 151 view session 148 Global Mirror processing, ending 168 graphical mode installation, DS CLI 13
H
help, CLI 37 helpmsg 305 Index
721
398
I
I/O ports available 137 i5/OS command format 33 green screen, DS CLI 87 library QDSCLI 87 removing DS CLI directly 694 silent mode CLI installation 20 i5/OS password file directory 321 IBMDSCLI$STARTUP.COM procedure 29 inband transactions 109, 705 incremental FlashCopy copying updated tracks only 111 incremental resynchronization during a planned outage at an intermediate site 247 incrementalresync 644 initckdvol 483 initfbvol 515 installing the CLI 31 interactive mode history function 35 setoutput command 35 issuing DS CLI commands 87 i5/OS 87
J
Java Virtual Machine Not Found Error 22
K
keyboards accessibility features 712
L
LCU creation 82 LCU status 102 LCU status, one 103 LCU, modify with CLI 101 LCUs, deleting 103 legal terms and conditions 714 library QDSCLI 87 limitations remote FlashCopy 109 Linux DS CLI installation, console mode 16 lshostvol command considerations 408 Linux password file directory 321 Linux, DS CLI upgrade considerations 5 Linux, uninstall DS CLI 691 lock account 315 logical control unit creation 82 logical control unit properties 103
lsaddressgrp 468 lsarray 434 lsarraysite 428 lsauthpol 319 lsavailpprcport 615 lsckdvol eam (extent allocation method) 484 sam (standard allocation method) 484 lsda 354 lsddm 359 lsextpool 457 lsfbvol 516 eam (extent allocation method) 516 tse 516 lsflash 574 tgtse, space-efficient volume 574 lsframe 353 lshba 357 lshostconnect 402 lshosttype 419 lshostvol Linux considerations 408 OpenVMS considerations 408 lsioport 386 lskey 339 lskeygrp 346 lskeymgr 343 lslcu 472 lslss 508 lsnetworkport 423 lsportprof 410 lspprc 636 lspprcpath 617 command 119 lsrank 444 lsremoteflash 599 tgtse, space-efficient volume 599 lsserver 378 lssession 682 lssestg 558 space-efficient storage 558 lssi 380 command 120 lsstgencl 349 lssu 371 lsuser 319 lsvolgrp 543 lsvolinit 552 lsvpn 366 LUN sizes 524 LUN volumes, creating 67
M
managehostconnect 411 managepwfile 321 message types 300 Metro Mirror consistency groups 125 creating volume pairs 124 FlashCopy target on Metro Mirror source 116 scenario 707
Metro/Global Mirror restoring operations (planned) to the intermediate site 224 restoring operations (unplanned) to the intermediate site 235 setting up 189 mkaliasvol 495 mkarray 438 mkauthpol 320 mkckdvol 491 eam (extent allocation method) 491 EAV (extended addressing volume) 491 tse 491 mkesconpprcpath 622 mkextpool 460 mkfbvol 524 eam (extent allocation method) 524 space-efficient storage 524 mkflash 579 tgtse, space-efficient volume 579 mkgmir 662 mkhostconnect 412 mkkeygrp 344 mkkeymgr 342 mklcu 474 mkpprc 644 disableautoresync 644 tgtse 644 volume pairs 124, 128 mkpprcpath 624 creating paths 120 mkrank 449 mkremoteflash 604 tgtse, space-efficient volume 604 mksession 680 mksestg 554 space-efficient storage 554 mkuser 323 mkvolgrp 545 modify extent pool, CLI 89 modify a rank, CLI 97 modify an LCU, CLI 101 modify topology, CLI 146 modify tuning parameters, CLI 144 modifying concurrent copy timeout value (DS CLI) 130 consistency group timeout (DS CLI) 131 critical mode setting (DS CLI) 132 fixed block volume groups 697 timeout values (DS CLI) 130 z/OS Global Mirror (DS CLI) 131 mounting the DS CLI installation CD 12 multiple LCU status 102 multiple ranks status 98
N
nonrevertible 173, 175 Novell DS CLI graphical installation 13
722
O
offloadauditlog 687 OpenVMS DS CLI message considerations 300 ECOs for installation 23 IBMDSCLI$STARTUP.COM procedure 29 installing CLI 24 lshostvol command considerations 408 mounting the installation CD 24 persistent setup 29 Polycenter software installation utility 23 preparing for CLI installation 23 operational limitations 7 OS/400 DS CLI graphical installation 13 os400all 71 os400mask 71 out-of-sync 182
R
RAID 6 creating extent pools 77 fixed block volumes 61 lsarray 434 lsrank 444 LUN volumes 67 showarray 440 rank configuration 64, 81 rank group 1 or 1 81 rank status, one 99 rank, create with DS CLI 64 rank, modify with CLI 97 ranks status 98 ranks, deleting 100 reestablishing remote mirror and copy paths 183 relationship reversing FlashCopy 112 release rank, CLI 97 remote FlashCopy limitations 109 remote FlashCopy transactions 705 Remote Mirror and Copy relationships viewing (DS CLI) 136 remove arrays 95 remove LCUs 103 remove ranks 100 removing uncorrupted incremental backup 115 write inhibits from FlashCopy target volumes 115 removing DS CLI, i5/OS 694 report formats controlling 35 default 307 delim 307 setoutput command 307 stanza 307 XML 307 reserve rank, CLI 97 restoring operations (planned) to the intermediate site 224 restoring operations (unplanned) to the intermediate site 235 restoring operations to the intermediate site 193, 200 restoring operations to the remote site 205, 213 resume Global Mirror processing 150 resumegmir 665 resumepprc 654 disableautoresync 654 resuming volumes 126 tgtse 654 resync target volumes in FlashCopy relationship 111 resyncflash 571 tgtse, space-efficient volume 571 resynchronize B volumes to A volumes 181 resyncremoteflash 596 tgtse, space-efficient volume 596 reverse a FlashCopy relationship 176 reverseflash 583 tgtse, space-efficient volume 583
P
password file directories i5/OS 321 LINUX 321 UNIX 321 Windows 321 paths creating 120 deleting 122 displaying 119 lspprcpath 134 mkpprcpath 120 port considerations 120 view existing 134 Paths correcting configuration error 122 pausegmir 664 pausepprc 652 suspending volumes 127 persistent FlashCopy creating 106 persistent setup 29 planned outage restoring operations to the intermediate site 193 Polycenter software installation utility 23 postinstallation CLI 31 postinstallation tasks 31 primary volumes 170 processing tips 3 site recovery 644 cascade 644 incrementalresync 644 multiple volumes 644 volume grouping method 644
revertflash 586 revertremoteflash 608 rmarray 439 rmauthpol 325 rmckdvol 494 rmextpool 462 rmfbvol 527 rmflash 587 tgtse, space-efficient volume rmgmir 667 rmhostconnect 416 rmkeygrp 345 rmkeymgr 343 rmlcu 477 rmpprc 657 rmpprcpath 626 rmrank 450 rmremoteflash 609 tgtse, space-efficient volume rmsession 686 rmsestg 557 space-efficient storage 557 rmuser 325 rmvolgrp 547
587
609
S
script mode 34 script mode, end processing 152 SCSI host port connections creating 75 serial number, obtaining 36 service action report, console 687 service audit log 687 setauthpol 326 setenv 306 setflashrevertible 591 tgtse, space-efficient volume 591 setioport 391 setnetworkport 421 setoutput 307 setremoteflashrevertible 612 tgtse, space-efficient volume 612 setrmpw 332 setting up Metro/Global Mirror 189 setup, account 42 setvpn 365 showarray 440 showarraysite 431 showauthpol 333 showckdvol 497 eam (extent allocation method 497 tse 497 showenv 310 showextpool 463 showfbvol 530 eam (extent allocation method) 530 tse 530 showgmir 669 showgmircg 675 showgmiroos 677 showhostconnect 417 showioport 393 showkeygrp 347 showlcu 478 showlss 510 Index
Q
query Global Mirror session quiesce your system 182 149
723
shownetworkport 426 showpass 335 showrank 451 showsestg 563 space-efficient storage 563 showsi 382 showsp 367 showsu 373 showuser 335 showvolgrp 548 single volume relationship deleting (DS CLI) 139 single-shot mode command format, i5/OS 33 command format, Windows 33 space-efficient storage chsestg 556 lsfbvol 516 lssestg 558 mkfbvol 524 mksestg 554 rmsestg 557 showsestg 563 space-efficient volume lsflash 574 lsremoteflash 599 mkflash 579 mkremoteflash 604 resyncflash 571 resyncremoteflash 596 reverseflash 583 rmflash 587 rmremoteflash 609 setflashrevertible 591 setremoteflashrevertible 612 stanza report format 307 starting FlashCopy 114 status information, fixed block volume 516 stop the process Global Mirror 667 storage image ID, obtaining 36 System i bypassing uninstaller 694 CLI installation considerations 9 configuring I/O port 73, 86 creating FlashCopy relationships 105 Global Copy pairs 128 Metro Mirror pairs 124 DS CLI commands 87 extent pool considerations 61 host connections 75 interactive mode 35 issuing 87 LUN volumes 67 lunmapping 548 os400all 71 os400mask 71 postinstallation tasks 31 removing CLI, direct method 694 removing CLI, remote method 695 script mode 34 serial number reporting 382 showvolgrp 548 single-shot mode 33
System i (continued) volume group creation external load source consideration 71 multipath consideration
321
71
V
ver 340 view a specific LCU 103 view a specific rank 99 view array sites status 93 view arrays status 93 view LCU status 102 view ranks status 98 view session, CLI 148 viewing existing paths 134 information about FlashCopy relationships 107 Remote Mirror and Copy relationships (DS CLI) 136 volume format processing options 644 volume pair deleting (DS CLI) 129 volume removal, CKD 494 volumes FlashCopy target volumes commit changes 118 discard changes 117 volumes, alias 491
T
target volume commit changes 118 discard changes 117 FlashCopy commit changes 118 discard changes 117 testauthpol 336 tgtse failbackpprc 629 failoverpprc 633 lsflash 574 lsremoteflash 599 mkflash 579 mkpprc 644 mkremoteflash 604 resumepprc 654 resyncflash 571 resyncremoteflash 596 reverseflash 583 rmflash 587 rmremoteflash 609 setflashrevertible 591 setremoteflashrevertible 612 thaw operation 193, 200, 205, 213, 224, 235, 660, 707 timeout connection 45 timeout values modifying concurrent copy (DS CLI) 130 consistency group (DS CLI) 130 critical mode enabled (DS CLI) 130 z/OS Global Mirror (DS CLI) 130 topology defined, CLI 146 Trademarks 713 tse lsckdvol 484 lsfbvol 516 mkckdvol 491 showckdvol 497 showfbvol 530 space-efficient storage lsckdvol 484 tse, mksestg mkfbvol 524 tuning parameters, CLI 144
W
whoami 337 Windows DS CLI graphical installation 13 Windows password file directory 321 write acceleration restriction 7, 644, 662 write inhibits mkflash command 115 removing from FlashCopy target volumes 115 wwnn displaying for paths 120
X
XML report format 307
Z
z/OS Global Mirror modifying critical mode setting (DS CLI) timeout value (DS CLI) 131 132
U
unassign rank, CLI 97 unattended (silent) mode installation 20 unattended (silent) mode installation, DS CLI 20 unfreezeflash 590 unfreezepprc 660 uninstall.dat 695 uninstall.jar 695 UNIX DS CLI graphical installation 13
724
Printed in USA