HP StorageWorks D2D Configuration Manual

Hp storageworks linux and unix configuration guide for d2d backup systems (ej001-90978, july 2010)
Hide thumbs Also See for StorageWorks D2D:
Table of Contents

Advertisement

HP StorageWorks
D2D Backup System
Linux and UNIX Configuration Guide
Part Number: EJ001-90978
Edition 7.0 edition: July 2010

Advertisement

Table of Contents
loading

Summary of Contents for HP StorageWorks D2D

  • Page 1 HP StorageWorks D2D Backup System Linux and UNIX Configuration Guide Part Number: EJ001-90978 Edition 7.0 edition: July 2010...
  • Page 2 Legal and notice information © Copyright 2007 2010-NaN Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. The only warranties for HP products and services are set forth in the express warranty statements accompanying such products and services. Nothing herein should be construed as constituting an additional warranty.
  • Page 3: Table Of Contents

    How to configure the Open-iSCSI module using the D2Dsetup script ......... 17 How to configure the Open-iSCSI module manually using the command line ......18 Configuring the HP StorageWorks D2D Backup System for Fibre Channel ......... 20 Configuring the HP D2D Backup System for NAS (NFS) ..............21 Controlling an HP StorageWorks D2D Backup System using Linux ...........
  • Page 4 How to configure the iSCSI software initiator using the D2Dsetup script ........28 How to manually configure the iSCSI software initiator using the command line ......29 Configuring the HP StorageWorks D2D Backup System for Fibre Channel ........34 Configuring the HP D2D Backup System for NAS (NFS) ..............37 Controlling an HP StorageWorks D2D Backup System using HP-UX ..........
  • Page 5 Tables Document conventions ....................7 D2D Backup System...
  • Page 7: About This Guide

    About this guide This guide provides information about: • Configuring UNIX™ and Linux for use with the HP D2D Backup System • Controlling an HP D2D Backup System Intended audience This guide is intended for network administrators and users with knowledge of: •...
  • Page 8: Hp Technical Support

    Convention Element • File and directory names • System output Monospace text • Code • Commands, their arguments, and argument values • Code variables Monospace, italic text • Command variables Monospace, bold text Emphasized monospace text WARNING! Indicates that failure to follow directions could result in bodily harm or death. CAUTION: Indicates that failure to follow directions could result in damage to equipment or data.
  • Page 9: Customer Self Repair

    • http://www.hp.com/go/connect • http://www.hp.com/go/ebs • http://www.hp.com/service_locator • http://www.hp.com/support/manuals • http://www.hp.com/support/downloads Documentation feedback HP welcomes your feedback. To make comments and suggestions about product documentation, please send a message to storagedocs.feedback@hp.com. All submissions become the property of HP. D2D Backup System...
  • Page 10 About this guide...
  • Page 11: Introduction

    Network-Attached Storage (NAS) or Virtual Tape Library (VTL) targets for backup applications. The total number of “devices” provided by a D2D appliance is split between VTL and NAS devices. For example: an HP D2D4000 Series device supports the creation of a maximum of 16 devices; an HP D2D4112 device supports the creation of a maximum of 24 devices;...
  • Page 12: Configuration Stages

    Configuration stages There are two stages to configuration: • Discover the HP D2D Backup System on the network, give it a name and, if DHCP is not supported, assign network settings • Create a base configuration to get started This guide describes how to perform these two stages.
  • Page 13: Discovery

    The IP address and other network settings are assigned automatically when you connect the HP D2D Backup System to the network. You only need to know the serial number of the HP D2D Backup System to complete the installation and create a library configuration. The serial number can be found on a label on the top of the unit.
  • Page 14: To Identify The Required Device

    When the HP Discovery tool is run it will find any HP StorageWorks D2D Backup Systems on the local network and list them by name. The name displayed by the HP Discovery tool should match the label on the top of the HP StorageWorks D2D Backup System.
  • Page 15: To Configure The Network Settings Of A Device

    Backup System. The list of available HP StorageWorks D2D Backup System on the network will be displayed again, this time with the updated network settings shown. Make a note of the IP address of the HP StorageWorks D2D Backup System because it will be required during iSCSI configuration.
  • Page 16 Discovery...
  • Page 17: Linux (X86, X64 And Ia64)

    3 Linux (x86, x64 and IA64) Overview This chapter describes how to configure the HP D2D Backup System for use with the following Linux operating systems: • SuSE Linux Enterprise Server 9 (x86, x64 and IA64) • SuSE Linux Enterprise Server 10 (x86, x64 and IA64) •...
  • Page 18: How To Configure The Open-Iscsi Module Manually Using The Command Line

    The command line tool for configuring the Open-iSCSI package is iscsiadm. Detailed instructions for iscsiadm can be found in the iscsiadm(8) man documents. The following instructions guide the user through the following steps required to connect a Linux host to an HP StorageWorks D2D Backup System.
  • Page 19 To optionally configure CHAP authentication you should update the iSCSI Authentication details in the web management GUI, as shown below. Once the HP StorageWorks D2D Backup System has been modified, the operating system should be modified as follows for each available target discovered in step 1: NOTE: In the following commands, items in parentheses are user-defined strings.
  • Page 20: Configuring The Hp Storageworks D2D Backup System For Fibre Channel

    To verify that the Linux machine now has access to the target device, use the following command: localhost:~ $ cat /proc/scsi/scsi The output of this command will be a list of all the configured SCSI devices on the system, including the HP StorageWorks D2D Backup System. An example output would be: Attached devices: Host: scsi4...
  • Page 21: Configuring The Hp D2D Backup System For Nas (Nfs)

    ANSI SCSI revision: 03 Configuring the HP D2D Backup System for NAS (NFS) The D2D Backup System NAS interface should be configured to use NFS as the Access Protocol when backing up data using Linux. The NFS share can then be mounted in Linux using the mount command. For example: localhost:~ $ mount 192.168.0.100:/nas/D2DBackupShare /mnt/D2DBackupShare...
  • Page 22: Controlling An Hp Storageworks D2D Backup System Using Linux

    Controlling an HP StorageWorks D2D Backup System using Linux The HP StorageWorks D2D Backup System appears to the Linux operating system as a 1x8 G2 autoloader and Ultrium tape drive. The robotics within the autoloader can be controlled from the console using a command called MTX.
  • Page 23: Reviewing The Media In A Library

    Each data transfer element represents an Ultrium tape drive within the library. Storage elements 1 to 24 represent the 24 configured slots within the library. Storage element 25 represents the import/export slot of the library, also known as the Mail Slot in the HP StorageWorks D2D Backup System Web Management Interface.
  • Page 24: Loading A Cartridge Into A Library Tape Drive

    This section describes how to perform a simple backup and recovery of files to an HP StorageWorks D2D Backup System using the console applications; MTX and TAR. In the examples, the autoloader robotics is controlled using generic SCSI device file sg2 and the autoloader tape drive uses tape device file st0.
  • Page 25: Back Up The Linux Kernel

    Restore the Linux kernel Move the cartridge from slot 1 to the first tape drive. localhost:~ $ mtx –f /dev/sg2 load 1 0 Create a temporary folder to restore the backup into. localhost:~ $ mkdir temp localhost:~ $ cd /temp D2D Backup System...
  • Page 26 Restore the Linux kernel to the temporary folder. localhost:~ $ tar xvf /dev/st0 Move the cartridge back to slot 1. localhost:~ $ mtx –f /dev/sg2 unload 1 0 Compare the original Linux kernel with the restored Linux kernel. localhost:~ $ cmp /boot/vmlinux* /temp/boot/vmlinux* If no differences are found between the two files, no message will be displayed.
  • Page 27: Hp-Ux 11I V2/V3 (Pa-Risc & Ia64)

    4 HP-UX 11i V2/V3 (PA-RISC & IA64) Overview This chapter describes how to configure the HP D2D Backup System for use with the following HP-UX operating systems: • HP-UX 11i V2 (PA-RISC and IA64) • HP-UX 11i V3 (PA-RISC and IA64) NOTE: A block size no larger than 256 KB is strongly recommended when working with HP-UX 11i V2.
  • Page 28: How To Configure The Iscsi Software Initiator Using The D2Dsetup Script

    # D2Dsetup <Initiator_CHAP_Username> <Initiator_CHAP_Password> <Target_CHAP_Username> <Target_CHAP_Password> <IP_address> The response from the HP D2D Backup System will be similar to the following: HP StorageWorks D2D Backup System Linux and UNIX iSCSI Configuration Tool Detecting OS........done Checking iSCSI package......done...
  • Page 29: How To Manually Configure The Iscsi Software Initiator Using The Command Line

    The command line tool for configuring the HP-UX iSCSI software initiator is iscsiutil. Detailed instructions for iscsiutil can be found in the iscsiutil(1M) man documents. The following instructions provide the minimum steps required to connect an HP-UX host to an HP StorageWorks D2D Backup System.
  • Page 30 To discover operational target devices, type the following: # ioscan -H 255 The output will be similar to this: H/W Path Class Description ================================================== 255/0 iscsi iSCSI Virtual Node 255/0/0.0 ext_bus iSCSI-SCSI Protocol Interface 255/0/0.0.0 target 255/0/0.0.0.0 tape Ultrium 3-SCSI 255/0/2.0 ext_bus iSCSI-SCSI Protocol Interface...
  • Page 31 IP Address : x.x.x.x iSCSI TCP Port : 3260 iSCSI Portal Group Tag User Configured: ---------------- Authenticaton Method CHAP Method : CHAP_UNI Initiator CHAP Name CHAP Secret Header Digest : None,CRC32C (default) Data Digest : None,CRC32C (default) D2D Backup System...
  • Page 32 In the following commands, items in parentheses are user-defined strings. Substitute the appropriate information for <iqn...>, <chap_password> and <chap_username>. Once the HP StorageWorks D2D Backup System has been modified, the operating system should be modified as follows: # iscsiutil –t authmethod CHAP None # iscsiutil –u –H CHAP_UNI...
  • Page 33 (next boot) static explicit eschgr (now) static best (next boot) static explicit estape (now) static best (next boot) static explicit To create device files for the target devices, type the following: # insf –H 255 D2D Backup System...
  • Page 34: Configuring The Hp Storageworks D2D Backup System For Fibre Channel

    /dev/rmt/c8t0d0BESTnb And the autochanger device file is: /dev/rac/c9t0d0 Configuring the HP StorageWorks D2D Backup System for Fibre Channel For a Switched Fabric Configuration, zone the individual devices to the host concerned using the virtual device WWNs shown on the GUI.
  • Page 35 Local PCI-X Bus Adapter (783) 0/5/1/0 HP AB379-60001 4Gb Dual Port PCI/PCI-X Fibre Channel Adapter (FC Port 1) 0/5/1/0.166 FCP Domain 0/5/1/0.166.0.255.0 t_bus FCP Device Interface 0/5/1/0.166.0.255.0.1 target 0/5/1/0.166.0.255.0.1.0 autoch MSL G3 Series 0/5/1/0.166.0.255.0.2 target 0/5/1/0.166.0.255.0.2.0 tape Ultrium 3-SCSI D2D Backup System...
  • Page 36 If the device type shown above is UNKNOWN instead of TAPE or AUTOCH then you must configure the stape and schgr modules for the HP-UX kernel. This can be done as follows: HP-UX 11i V2 # kcmodule –B stape=static schgr=static *The automatic 'backup' configuration has been updated.
  • Page 37: Configuring The Hp D2D Backup System For Nas (Nfs)

    /dev/rac/c33t1d0 Configuring the HP D2D Backup System for NAS (NFS) The D2D Backup System NAS interface should be configured to use NFS as the Access Protocol when backing up data using HP-UX. The NFS share can then be mounted in HP-UX using the mount command. For example: # mount 192.168.0.100:/nas/D2DBackupShare /mnt/D2DBackupShare...
  • Page 38: Controlling An Hp Storageworks D2D Backup System Using Hp-Ux

    The D2D Backup System supports NFSv3. To explicitly mount the D2D Backup System using NFSv3, the following syntax should be used: # mount –t nfs –o nfsvers=3 x.x.x.x:/<name of share> <local mount> Controlling an HP StorageWorks D2D Backup System using...
  • Page 39: Loading A Cartridge Into A Library Tape Drive

    This section describes how to perform a simple backup and recovery of files to an HP StorageWorks D2D Backup System using the console applications; MC and TAR. In the examples, the library robotics is controlled using generic SCSI device file /dev/rac/c9t0d0 and the autoloader tape drive uses tape device file /dev/rmt/1mnb.
  • Page 40: Back Up The Hp-Ux Kernel

    Back up the HP-UX kernel Check to see what media is available. # mc –p /dev/rac/c9t0d0 –rDSI DT_slot_1 EMPTY ST_slot_1:Full 72255101 ST_slot_2:Full 72255102 ST_slot_3:Full 72255103 ST_slot_4:Full 72255104 ST_slot_5:Full 72255105 ST_slot_6:Full 72255106 ST_slot_7:Full 72255107 ST_slot_8:Full 72255108 ST_slot_9:Full 72255109 ST_slot_10:Full 72255110A ST_slot_11:Full 72255110B ST_slot_12:Full 72255110C ST_slot_13:Full 72255110D ST_slot_14:Full 72255110E...
  • Page 41 Move the cartridge back to slot 1. # mc –p /dev/rac/c9t0d0 –s D1 –d S1 Compare the original HP-UX kernel with the restored HP-UX kernel. # cmp /stand/vmunix /temp/stand/vmunix If no differences are found between the two files, no message will be displayed. D2D Backup System...
  • Page 42 HP-UX 11i V2/V3 (PA-RISC & IA64)
  • Page 43: Solaris (X86 And Sparc)

    5 Solaris (x86 and SPARC) Overview This chapter describes how to configure the HP D2D Backup System for use with the following Solaris operating systems: • Solaris 9 (SPARC) • Solaris 10 (x86 and SPARC) NOTE: HP StorageWorks D2D Backup Systems with iSCSI interfaces are only supported with Solaris 10u4 or greater.
  • Page 44: How To Manually Configure The Iscsi Software Initiator Using The Command Line

    The command line tool for configuring the iSCSI is iscsiadm. Detailed instructions for iscsiadm can be found in the iscsiadm man documents. The following instructions provide the minimum steps to connect a Solaris host to an HP StorageWorks D2D Backup System. Find the iSCSI initiator node for the Solaris host: # iscsiadm list initiator-node Initiator node name: iqn.1986-03.com.sun:01:00144f1d9196.4715d8a3...
  • Page 45 Configure the Solaris host to discover available iSCSI targets as follows, where x.x.x.x is the IP address of the HP StorageWorks D2D Backup System: # iscsiadm add discovery-address x.x.x.x:3260 # iscsiadm list discovery-address Discovery Address: x.x.x.x:3260 # iscsiadm modify discovery -t enable...
  • Page 46 To optionally configure CHAP authentication you should update the iSCSI Authentication details in the web management GUI, as shown below. Once the HP StorageWorks D2D Backup System has been modified, the operating system should be modified as follows: # iscsiadm modify initiator-node --authentication CHAP # iscsiadm modify initiator-node --CHAP-name <chap_username>...
  • Page 47: Configuring The Hp Storageworks D2D Backup System For Fibre Channel

    116 Apr 18 14:51 /dev/rmt/2cb -> ../../devices/iscsi/tape@0000iqn.1986-03.com.hp%3Astorage .d2d.cr203f18f4.01a9754150ae013a.library1.drive10001,0:cb Configuring the HP StorageWorks D2D Backup System for Fibre Channel For a Switched Fabric Configuration, zone the individual devices to the host concerned using the virtual device WWNs shown on the GUI.
  • Page 48: Configuring The Hp D2D Backup System For Nas (Nfs)

    Configuring the HP D2D Backup System for NAS (NFS) The D2D Backup System NAS interface should be configured to use NFS as the Access Protocol when backing up data using Solaris. The NFS share can then be mounted in Solaris using the mount command. For example: # mount –F nfs –o vers=3 192.168.0.100:/nas/D2DBackupShare /mnt/D2DBackupShare...
  • Page 49: Verify You Are Controlling The Correct Library

    The output for a MSL 2024 library with 1 tape drive and 24 cartridges configured would look similar to this: Storage Changer /dev/scsi/changer/c3t1d0:1 Drives, 24 Slots ( 1 Import/Export ) Data Transfer Element 0:Empty Storage Element 1:Full :VolumeTag=72255101 Storage Element 2:Full :VolumeTag=72255102 D2D Backup System...
  • Page 50: Loading A Cartridge Into A Library Tape Drive

    Each data transfer element represents an Ultrium tape drive within the library. Storage elements 1 to 24 represent the 24 configured slots within the library. Storage element 25 represents the import/export slot of the library, also known as the Mail Slot in the HP StorageWorks D2D Backup System Web Management Interface.
  • Page 51: Back Up The Kernel

    # mtx –f /dev/scsi/changer/c3t1d0 unload 1 0 Restore the kernel Move the cartridge from slot 1 to the first tape drive. # mtx –f /dev/scsi/changer/c3t1d0 load 1 0 Create a temporary folder to restore the backup into. # mkdir temp # cd /temp D2D Backup System...
  • Page 52 Restore the kernel to the temporary folder. # tar xvf /dev/rmt/2cb Move the cartridge back to slot 1. # mtx –f /dev/scsi/changer/c3t1d0 unload 1 0 Compare the original kernel with the restored kernel. # cmp /platform/`arch -k`/kernel/sparcv9/unix /temp/platform/`arch -k`/kernel/sparcv9/unix If no differences are found between the two files, no message will be displayed. Solaris (x86 and SPARC)

Table of Contents