HP D2D4004i HP StorageWorks Linux and UNIX configuration guide for D2D Backup
HP D2D4004i Manual
View all HP D2D4004i manuals
Add to My Manuals
Save this manual to your list of manuals |
HP D2D4004i manual content summary:
- HP D2D4004i | HP StorageWorks Linux and UNIX configuration guide for D2D Backup - Page 1
HP StorageWorks D2D Backup System Linux and UNIX Configuration Guide Part Number: EJ001-90978 Edition 7.0 edition: July 2010 - HP D2D4004i | HP StorageWorks Linux and UNIX configuration guide for D2D Backup - Page 2
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. HP shall not be liable - HP D2D4004i | HP StorageWorks Linux and UNIX configuration guide for D2D Backup - Page 3
guide 7 Intended audience ...7 Related documentation ...7 Document conventions and symbols 7 HP technical support ...8 Customer self repair ...9 Product warranties ...9 Subscription service 17 How to configure the Open-iSCSI module manually using the command line 18 Configuring the HP - HP D2D4004i | HP StorageWorks Linux and UNIX configuration guide for D2D Backup - Page 4
27 How to install the iSCSI software initiator 27 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 D2D4004i | HP StorageWorks Linux and UNIX configuration guide for D2D Backup - Page 5
Tables 1 Document conventions 7 D2D Backup System 5 - HP D2D4004i | HP StorageWorks Linux and UNIX configuration guide for D2D Backup - Page 6
6 - HP D2D4004i | HP StorageWorks Linux and UNIX configuration guide for D2D Backup - Page 7
StorageWorks D2D Backup System user guide, available in 13 languages • HP StorageWorks D2D Backup System installation poster, available in 4 languages You can find these documents from the Manuals page of the HP Business Support Center website: http://www.hp.com/support/manuals Search on the product - HP D2D4004i | HP StorageWorks Linux and UNIX configuration guide for D2D Backup - Page 8
: Provides clarifying information or specific instructions. NOTE: Provides additional information. TIP: Provides helpful hints and shortcuts. HP technical support For worldwide technical support information, see the HP support website: http://www.hp.com/support Before contacting HP, collect the - HP D2D4004i | HP StorageWorks Linux and UNIX configuration guide for D2D Backup - Page 9
information website: http://www.hp.com/go/storagewarranty Subscription service HP recommends that you register your product at the 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 - HP D2D4004i | HP StorageWorks Linux and UNIX configuration guide for D2D Backup - Page 10
10 About this guide - HP D2D4004i | HP StorageWorks Linux and UNIX configuration guide for D2D Backup - Page 11
instructions on installing the HP D2D Backup System and optional tape drive. The User Guide also describes how to use the Web Management Interface. Software requirements 1. Refer to http://www.hp.com/go/connect or http://www.hp.com/go/ebs to find out which versions of UNIX and Linux are supported - HP D2D4004i | HP StorageWorks Linux and UNIX configuration guide for D2D Backup - Page 12
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. 12 Introduction - HP D2D4004i | HP StorageWorks Linux and UNIX configuration guide for D2D Backup - Page 13
server is available, the HP StorageWorks D2D Backup System must be configured manually using the HP Discovery tool, provided on the HP StorageWorks CD-ROM using a supported web browser and that Active Scripting or JavaScript is en- abled. See the HP StorageWorks D2D Backup System User Guide for - HP D2D4004i | HP StorageWorks Linux and UNIX configuration guide for D2D Backup - Page 14
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. NOTE: If no HP StorageWorks D2D Backup Systems are - HP D2D4004i | HP StorageWorks Linux and UNIX configuration guide for D2D Backup - Page 15
To configure the network settings of a device 1. Select the device in the list and click Configure. 2. Enter the network details and click Configure to send the details to the HP StorageWorks D2D Backup System. The list of available HP StorageWorks D2D Backup System on the network will be displayed - HP D2D4004i | HP StorageWorks Linux and UNIX configuration guide for D2D Backup - Page 16
16 Discovery - HP D2D4004i | HP StorageWorks Linux and UNIX configuration guide for D2D Backup - Page 17
Advanced Server 4 (x86, x64 and IA64) • RedHat Advanced Server 5 (x86, x64 and IA64) NOTE: HP StorageWorks D2D Backup Systems with iSCSI interfaces are only supported with SLES 10 SP1 and RedHat 5 or greater. Configuring the HP D2D Backup System for iSCSI How to install the Open-iSCSI module SLES 10 - HP D2D4004i | HP StorageWorks Linux and UNIX configuration guide for D2D Backup - 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 - HP D2D4004i | HP StorageWorks Linux and UNIX configuration guide for D2D Backup - Page 19
2. 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 - HP D2D4004i | HP StorageWorks Linux and UNIX configuration guide for D2D Backup - Page 20
5. To enable the iSCSI target devices to remain persistent across system reboots, the open-iscsi service must be configured to run at system startup. This can be done by issuing the following command: SLES 10 localhost:~ $ chkconfig open-iscsi on RedHat 5 - HP D2D4004i | HP StorageWorks Linux and UNIX configuration guide for D2D Backup - Page 21
be mounted in Linux using the mount command. For example: localhost:~ $ mount 192.168.0.100:/nas/D2DBackupShare /mnt/D2DBackupShare The D2D Backup System supports NFSv3. To explicitly mount the D2D Backup System using NFSv3, the following syntax should be used: localhost:~ $ mount -t nfs -o nfsvers - HP D2D4004i | HP StorageWorks Linux and UNIX configuration guide for D2D Backup - Page 22
from the console using a command called MTX. If the MTX utility is not installed, it can be added using the package manager. The complete MTX manual can also be accessed from any Linux console using the command man mtx. The following examples illustrate how to complete common tasks with the HP - HP D2D4004i | HP StorageWorks Linux and UNIX configuration guide for D2D Backup - Page 23
The output will be similar to this: Vendor: HP Model: Ultrium 3-SCSI Rev: pc81 Type: Sequential-Access ANSI SCSI revision: 03 2:0:0:0: Attached scsi generic sg3 type 1 st: version 20050830, fixed bufsize 32768, s/g segs 256 st 2:0:0:0: Attached scsi tape st0 In this example the SCSI tape - HP D2D4004i | HP StorageWorks Linux and UNIX configuration guide for D2D Backup - Page 24
Loading a cartridge into a library tape drive To load a cartridge into the tape drive, the mtx load command should be used. For example, to move a cartridge from slot 2 to the first tape drive the command would be: localhost:~ $ mtx -f /dev/sg2 load 2 0 Unloading a cartridge from a library tape - HP D2D4004i | HP StorageWorks Linux and UNIX configuration guide for D2D Backup - Page 25
Back up the Linux kernel 1. Check to see what media is available. localhost:~ $ mtx -f /dev/sg2 status Storage Changer /dev/sg2:1 Drives, 24 Slots ( 1 Import/Export ) Data Transfer Element 0:Empty Storage Element 1:Full :VolumeTag=72255101 Storage Element 2:Full :VolumeTag=72255102 Storage Element - HP D2D4004i | HP StorageWorks Linux and UNIX configuration guide for D2D Backup - Page 26
3. Restore the Linux kernel to the temporary folder. localhost:~ $ tar xvf /dev/st0 4. Move the cartridge back to slot 1. localhost:~ $ mtx -f /dev/sg2 unload 1 0 5. Compare the original Linux kernel with the restored Linux kernel. localhost:~ $ cmp /boot/vmlinux* /temp/boot/vmlinux* If no - HP D2D4004i | HP StorageWorks Linux and UNIX configuration guide for D2D Backup - Page 27
version that you would like to download. 6. In the Document column (next to the Download Software column), click on Installation Instruction to download instructions for using the Software Distributor tool to install the iSCSI Software Initiator. NOTE: The Software Distributor is used for software - HP D2D4004i | HP StorageWorks Linux and UNIX configuration guide for D2D Backup - Page 28
7. After the system reboots, verify that the installation was successful by issuing the swlist command as follows: swlist iSCSI-00 If the HP-UX iSCSI Software Initiator is installed correctly, the output will be: HP-UX 11i V2 # Initializing... # Contacting target "localhost"... # # Target: localhost - HP D2D4004i | HP StorageWorks Linux and UNIX configuration guide for D2D Backup - Page 29
/dev/rmt/c6t0d0BESTnb DEVICE HP 1x8 G2 AUTOLDR 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 - HP D2D4004i | HP StorageWorks Linux and UNIX configuration guide for D2D Backup - Page 30
5. 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 HP Ultrium 3-SCSI 255 - HP D2D4004i | HP StorageWorks Linux and UNIX configuration guide for D2D Backup - Page 31
6. To display operational target devices, type: # iscsiutil -pO The output will be similar to this: Operational Target Information Target # 1 ----------- Target Name : iqn.1986- 03.com.hp:storage.d2d.cr209107ff.500110a6656e596f.library1 .drive1 Target Alias : No. of Target Addresses : - HP D2D4004i | HP StorageWorks Linux and UNIX configuration guide for D2D Backup - Page 32
7. To optionally configure uni-directional CHAP authentication you should update the iSCSI Authentication details in the Web Management Interface, as shown below. NOTE: In the following commands, items in parentheses are user-defined strings. Substitute the appropriate information for , < - HP D2D4004i | HP StorageWorks Linux and UNIX configuration guide for D2D Backup - Page 33
9. 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. Module State - HP D2D4004i | HP StorageWorks Linux and UNIX configuration guide for D2D Backup - Page 34
11. To display the device files associated with the operational target devices, type: # ioscan -fnH 255 Class I H/W Path Driver S/W State H/W Type Description iscsi 0 255/0 iscsi CLAIMED VIRTBUS iSCSI Virtual Node ext_bus 8 255/0/0.0 iscsial CLAIMED INTERFACE iSCSI-SCSI Protocol Interface - HP D2D4004i | HP StorageWorks Linux and UNIX configuration guide for D2D Backup - Page 35
Output needs checking. 1. To discover operational target devices, type the following: # ioscan The output will be similar to this: H/W Path Class Description 0/5 ba Local PCI-X Bus Adapter (783) 0/5/1/0 fc HP AB379-60001 4Gb Dual Port PCI/PCI-X Fibre Channel Adapter (FC Port 1) - HP D2D4004i | HP StorageWorks Linux and UNIX configuration guide for D2D Backup - Page 36
2. 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. Module State - HP D2D4004i | HP StorageWorks Linux and UNIX configuration guide for D2D Backup - Page 37
4. To display the device files associated with the operational target devices, type: # ioscan -fn Class I H/W Path Driver S/W State H/W Type Description ba 4 0/5 lba CLAIMED BUS_NEXUS Local PCI-X Bus Adapter (783) fc 5 0/5/1/0 fcd CLAIMED INTERFACE HP AB379-60001 4Gb Dual Port PCI/PCI-X - HP D2D4004i | HP StorageWorks Linux and UNIX configuration guide for D2D Backup - Page 38
The D2D Backup System supports NFSv3. To explicitly mount the D2D Backup System using NFSv3, the following syntax and can be controlled from the console using a command called MC. The complete MC manual can also be accessed using the command man mc. The following examples illustrate how to complete - HP D2D4004i | HP StorageWorks Linux and UNIX configuration guide for D2D Backup - Page 39
ST_slot_12:Full 72255110C ST_slot_13:Full 72255110D ST_slot_14:Full 72255110E ST_slot_15:Full 72255110F ST_slot_16:Full 722551110 ST_slot_17:Full 722551111 ST_slot_18:Full 722551112 ST_slot_19:Full 722551113 ST_slot_20:Full 722551114 ST_slot_21:Full 722551115 ST_slot_22:Full 722551116 ST_slot_23: - HP D2D4004i | HP StorageWorks Linux and UNIX configuration guide for D2D Backup - Page 40
Back up the HP-UX kernel 1. 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 - HP D2D4004i | HP StorageWorks Linux and UNIX configuration guide for D2D Backup - Page 41
4. Move the cartridge back to slot 1. # mc -p /dev/rac/c9t0d0 -s D1 -d S1 5. 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 41 - HP D2D4004i | HP StorageWorks Linux and UNIX configuration guide for D2D Backup - Page 42
42 HP-UX 11i V2/V3 (PA-RISC & IA64) - HP D2D4004i | HP StorageWorks Linux and UNIX configuration guide for D2D Backup - Page 43
SPARC) NOTE: HP StorageWorks D2D Backup Systems with iSCSI interfaces are only supported with Solaris 10u4 or greater. Configuring the HP D2D Backup System for svc:/network/iscsi_initiator:default enabled 2. Verify the iSCSI services are running: # svcs -a | grep iscsi_initiator Online - HP D2D4004i | HP StorageWorks Linux and UNIX configuration guide for D2D Backup - Page 44
03.com.hp%3Astorage.d2d.cr2070143b .500110a250017b86.library1.drive0001,0:cb 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 - HP D2D4004i | HP StorageWorks Linux and UNIX configuration guide for D2D Backup - Page 45
2. 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 - HP D2D4004i | HP StorageWorks Linux and UNIX configuration guide for D2D Backup - Page 46
4. 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 -- - HP D2D4004i | HP StorageWorks Linux and UNIX configuration guide for D2D Backup - Page 47
7. To create generic devices drivers for the iSCSI target devices, using the following commands: # update_drv -ai '"scsiclass,08"' sgen # devfsadm -i iscsi 8. To verify devices files for the iSCSI target device have been created, use these commands: # ls -l /dev/scsi/changer lrwxrwxrwx 1 root - HP D2D4004i | HP StorageWorks Linux and UNIX configuration guide for D2D Backup - Page 48
in Solaris using the mount command. For example: # mount -F nfs -o vers=3 192.168.0.100:/nas/D2DBackupShare /mnt/D2DBackupShare The D2D Backup System supports NFSv3. To explicitly mount the D2D Backup System using NFSv3, the following syntax should be used: # mount -F nfs -o vers=3 x.x.x.x:/ - HP D2D4004i | HP StorageWorks Linux and UNIX configuration guide for D2D Backup - Page 49
Verify you are controlling the correct library The robotics of the library will be assigned a SCSI device file. To discover the device file assigned, use the following command: # ls /dev/scsi/changer The response will the name of the device file. e.g. c3t1d0.Therefore, the library can be controlled - HP D2D4004i | HP StorageWorks Linux and UNIX configuration guide for D2D Backup - Page 50
Storage Element 3:Full :VolumeTag=72255103 Storage Element 4:Full :VolumeTag=72255104 Storage Element 5:Full :VolumeTag=72255105 Storage Element 6:Full :VolumeTag=72255106 Storage Element 7:Full :VolumeTag=72255107 Storage Element 8:Full :VolumeTag=72255108 Storage Element 9:Full :VolumeTag=72255109 - HP D2D4004i | HP StorageWorks Linux and UNIX configuration guide for D2D Backup - Page 51
Back up the kernel 1. Check to see what media is available. # mtx -f /dev/scsi/changer/c3t1d0 status 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 - HP D2D4004i | HP StorageWorks Linux and UNIX configuration guide for D2D Backup - Page 52
3. Restore the kernel to the temporary folder. # tar xvf /dev/rmt/2cb 4. Move the cartridge back to slot 1. # mtx -f /dev/scsi/changer/c3t1d0 unload 1 0 5. Compare the original kernel with the restored kernel. # cmp /platform/`arch -k`/kernel/sparcv9/unix /temp/platform/`arch -k`/kernel/sparcv9/unix
HP StorageWorks
D2D Backup System
Linux and UNIX Configuration Guide
Part Number: EJ001-90978
Edition 7.0 edition: July 2010