HP StorageWorks Storage Mirroring for Linux Getting Started First Edition (February 2008) Part Number: T2558-96077
© Copyright 2008 Hewlett-Packard Development Company, L.P. Hewlett-Packard Company makes no warranty of any kind with regard to this material, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose. Hewlett-Packard shall not be liable for errors contained herein or for incidental or consequential damages in connection with the furnishing, performance, or use of this material.
Table of Contents Server Requirements .................................................................................................................. 1 Installing Storage Mirroring ....................................................................................................... 1 Configuring Your Storage Mirroring Installation ..................................................................... 2 Upgrading Storage Mirroring .........................................................................
Server Requirements Verify that each machine that will be used as a Storage Mirroring source or target meets the following system requirements. ! Operating System—Each server must be running a 32-bit or 64-bit version of Red Hat® Enterprise Linux® 4.2 through ! System memory—At a minimum, you should have 512 MB of memory on each server. Ideally, you should have 1 GB. ! Disk Usage—The amount of disk space required for the Storage Mirroring program files is approximately 45 MB.
Configuring Your Storage Mirroring Installation After you have installed Storage Mirroring, you need to configure your installation prior to using the software. Storage Mirroring contains a DTSetup menu-driven application to provide easy access to the installation configuration. 1. Run the DTSetup command from the shell prompt. NOTE: Do not run DTSetup using the sudo command.
! Troubleshooting and documentation—Use this menu option to access troubleshooting tasks and the Storage Mirroring documentation. ! Log file—LogViewer is a utility that gathers Storage Mirroring alerts. These alerts, which are proccessing notifications, warnings, and error messages, are written to disk and can be displayed using DTSetup or the LogViewer. ! Diagnostics—You may need to collect configuration data when reporting problems to technical support.
Installing the Storage Mirroring Client for Windows Use the instructions to install the Storage Mirroring clients on a Microsoft® Windows® machine. 1. Close any open applications. 2. Start the installation program using the appropriate instructions, depending on your media source. ! CD—Load the Storage Mirroring CD into the local CD-ROM drive. If auto-run is enabled, the installation program will start automatically. To manually start the program, select Start, Run and specify :\autorun.exe.
Storage Mirroring Clients There are several clients available for Storage Mirroring. ! Management Console—This client is a 32-bit Microsoft Windows client that can manage and monitor all Storage Mirroring components including failover configuration. This client cannot initiate failover or failback or monitor failover activity. For basic details on the Management Console, begin with The Management Console below.
Understanding the display The left pane is a tree view displaying each machine running Storage Mirroring. As each machine name is highlighted, note the following items: ! The status bar at the top of the pane displays the modules loaded on each machine: Source, Target, Source and Target, or None. (None indicates that the core functionality of Storage Mirroring is running, but neither the source nor target modules have been loaded.
Left Pane Right Pane Description Source Machine Target Tab The display is blank. Target Machine Source Tab The display is blank. Target Machine Target Tab The active connections, if any, to that target machine are displayed. Replication Set No Tabs The available target machines are displayed so that you can drag and drop a replication set onto a target to establish a connection. Volume or Directory No Tabs The directories and files contained in that volume or directory are displayed. a a.
Logging on and off of Storage Mirroring To ensure protection of your data, Storage Mirroring offers multi-level security using native operating system security features. Privileges are granted through membership in user groups defined on each machine running Storage Mirroring. To gain access to a particular Storage Mirroring source or target, the user must provide a valid operating system user name and password and the specified user name must be a member of one of the Storage Mirroring security groups.
Getting help for the Management Console Context-sensitive help is available in the Management Console by: ! Clicking Help when it appears on various dialog boxes ! Pressing the F1 key ! Selecting Help, Help Topics Exiting the Management Console To exit the Management Console, select File, Exit or select the Exit button on the toolbar.
Storage Mirroring text clients The Double-Take Command Language (DTCL) is a scripting language that can be used in either the Text Client or Command Line Client to manage and monitor Storage Mirroring components. It can also be used in script files to execute series and combinations of commands to meet specific needs. Because the Text Client and Command Line Client use the same DTCL commands, all examples use the Text Client.
The Command Line Client The Command Line Client can be run from a command prompt. It can manage and monitor Storage Mirroring components on any platform regardless of the Command Line Client platform. The Command Line Client is run from the operating system command line and the DTCL commands are run from the Storage Mirroring command line.
Logging on and off of Storage Mirroring To ensure protection of your data, Storage Mirroring uses native operating system security and requires a valid system username and password. If you do not have a valid system username and password for a selected machine, you will not be able to configure Storage Mirroring for that machine. As you enter DTCL commands, Storage Mirroring automatically attempts to log on to the source or target machine. You can verify your access by the resulting message.
Getting help in the text clients A listing of the DTCL commands and their syntax is available in the Storage Mirroring Text Client and Command Line Client by typing the help command. Command HELP Description Displays the DTCL commands and their syntax Syntax HELP Notes ! Press any key to scroll through the list of commands. ! Press q to exit the help function. ! You can also type DTCL help to display the DTCL commands and their syntax.
Establishing a Connection You have three options for establishing a connection: ! Using the automated Connection Wizard in the Management Console ! Using the Connection Manager in the Management Console ! Using the Text Client Connection Wizard connection The first time you start the Storage Mirroring Management Console, the Welcome screen leads you to the Storage Mirroring Connection Wizard. The Connection Wizard will guide you through the essential steps necessary to establish a basic connection.
5. Choose to create a new replication set or use a replication set that already exists. ! If you choose to create a new replication, specify a replication set name. ! If you choose to use an existing replication set, specify the name of that replication set by selecting it from the pull-down menu. Click Next to continue. 6. If you choose to create a new replication set, a tree display appears identifying the volumes and directories available on that source machine.
10. If your Connection Wizard settings are correct, establish your connection by completing one of the two options below: ! If you do not want to set advanced options, click Finish. NOTE: If you created a new replication set in step 5, you will be prompted at this time to save the replication set. Click Yes to save the replication set or click No to go back to the Finished dialog box. Click Back if you need to return to the replication set selection.
Connection Manager connection 1. There are four methods available for opening the Connection Manager and establishing a connection manually: ! Highlight a replication set and select Tools, Connection Manager. ! Right-click on a replication set and select Connection Manager. ! Drag and drop a replication set to a target machine on the left pane of the Management Console.
Text client connection 1. Log on to the Storage Mirroring source machine. This is the machine where the files reside that you wish to protect. Log on by using the login command. Command LOGIN Description Log on to a Storage Mirroring machine Syntax LOGIN [domain] Options ! machine—Name of the machine ! username—Name of the user ! password—Password associated with username. ! domain—If logging in using a domain account, this is the domain name.
5. Specify the data to be protected by creating replication set rules. Define a rule by using the repset rule add command. Command REPSET RULE ADD Description Adds a rule to a replication set. A rule is the specification of a path including volume, directories, wild cards, and/or file names.
9. After you have added all of the rules, save the replication set by using the repset save command. Command REPSET SAVE Description Saves all replication set rules for the currently selected source Syntax REPSET SAVE 10. Connect the repset to the target by using the connect command. Command CONNECT Description Establishes a connection between a replication set and a target machine Syntax CONNECT TO MAP EXACT | BASE | TO [,...