HP StoreOnce B6000, StoreOnce B6200, StoreOnce D2D4000 Configuration Manual

HP StoreOnce Backup System
Linux and UNIX Configuration Guide
HP Part Number: EJ022-90910 Published: December 2011 Edition: Edition 7.0
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. HP shall not be liable for technical or editorial errors or omissions contained herein.
Intel, Itanium, Pentium, Intel Inside, and the Intel Inside logo are trademarks or registered trademarks of Intel Corporation or its subsidiaries in the United States and other countries.
Microsoft, Windows, Windows XP, and Windows NT are U.S. registered trademarks of Microsoft Corporation.
Adobe and Acrobat are trademarks of Adobe Systems Incorporated.
Java is a US trademark of Sun Microsystems, Inc.
Oracle is a registered US trademark of Oracle Corporation, Redwood City, California.
UNIX is a registered trademark of The Open Group.
Contents
1 Introduction...............................................................................................5
Overview ...............................................................................................................................5
NAS targets for backup applications......................................................................................5
Virtual Tape Library targets for backup applications..................................................................5
Hardware installation ...............................................................................................................5
Software requirements ..............................................................................................................5
Configuration stages.................................................................................................................5
2 Discovery .................................................................................................6
Overview................................................................................................................................6
Using DHCP to discover the HP StoreOnce Backup System ............................................................6
Using the HP Discovery tool ......................................................................................................6
To identify the required device...............................................................................................7
To configure the network settings of a device...........................................................................7
3 Linux (x86, x64 and IA64)..........................................................................9
Overview ...............................................................................................................................9
Configuring the HP StoreOnce Backup System for iSCSI.................................................................9
How to install the Open-iSCSI module....................................................................................9
How to configure the Open-iSCSI module using the D2Dsetup script...........................................9
How to configure the Open-iSCSI module manually using the command line.............................10
Configuring the HP StoreOnce Backup System for Fibre Channel...................................................11
Configuring the HP StoreOnce Backup System for NAS (NFS).......................................................12
Controlling an HP StoreOnce Backup System using Linux.............................................................13
Verify you are controlling the correct library .........................................................................13
To verify the device file for the robotics of the library..........................................................13
To verify the tape device file for the tape drive..................................................................13
Reviewing the media in a library..........................................................................................14
Loading a cartridge into a library tape drive.........................................................................14
Unloading a cartridge from a library tape drive ....................................................................14
Moving a cartridge to the library Mail Slot............................................................................15
Moving a cartridge from the library Mail Slot .......................................................................15
Backup and restore files using TAR in Linux.................................................................................15
Back up the Linux kernel......................................................................................................15
Restore the Linux kernel ......................................................................................................16
4 HP-UX 11i V2/V3 (PA-RISC & IA64)............................................................17
Overview..............................................................................................................................17
Configuring the HP StoreOnce Backup System for iSCSI...............................................................17
How to install the iSCSI software initiator..............................................................................17
How to configure the iSCSI software initiator using the D2Dsetup script.....................................18
How to manually configure the iSCSI software initiator using the command line.........................18
Configuring the HP StoreOnce Backup System for Fibre Channel ..................................................21
Configuring the HP StoreOnce Backup System for NAS (NFS).......................................................23
Controlling an HP StoreOnce Backup System using HP-UX............................................................24
Using large block sizes with HP-UX 11i V2.............................................................................24
Reviewing the media in a library..........................................................................................24
Loading a cartridge into a library tape drive.........................................................................25
Unloading a cartridge from a library tape drive ....................................................................25
Moving a cartridge to the library Mail Slot............................................................................25
Moving a cartridge from the library Mail Slot .......................................................................25
Backup and restore files using TAR in HP-UX...............................................................................25
Back up the HP-UX kernel....................................................................................................26
Contents 3
Restore the HP-UX kernel ....................................................................................................26
5 Solaris (x86 and SPARC)...........................................................................27
Overview .............................................................................................................................27
Configuring the HP StoreOnce Backup System for iSCSI...............................................................27
How to enable the iSCSI software initiator.............................................................................27
How to configure the iSCSI software initiator using the D2Dsetup script.....................................27
How to manually configure the iSCSI software initiator using the command line.........................28
Configuring the HP StoreOnce Backup System for Fibre Channel...................................................30
Configuring the HP StoreOnce Backup System for NAS (NFS).......................................................31
Controlling an HP StoreOnce Backup System using Solaris...........................................................31
Verify you are controlling the correct library .........................................................................31
To verify the device file for the robotics of the library..........................................................32
To verify the tape device file for the tape drive..................................................................32
Reviewing the media in a library..........................................................................................32
Loading a cartridge into a library tape drive.........................................................................33
Unloading a cartridge from a library tape drive ....................................................................33
Backup and restore files using TAR............................................................................................33
Back up the kernel.............................................................................................................33
Restore the kernel ..............................................................................................................34
About this guide..........................................................................................35
Intended audience..................................................................................................................35
Related documentation............................................................................................................35
Document conventions and symbols..........................................................................................35
HP technical support...............................................................................................................36
Customer self repair................................................................................................................36
Product warranties..................................................................................................................36
Subscription service................................................................................................................36
HP websites...........................................................................................................................36
Documentation feedback.........................................................................................................37
4 Contents
1 Introduction
Overview
HP StoreOnce Backup Systems are a family disk-based storage appliance for backing up host network servers or PCs to target devices on the appliance. These devices are configured as either Network-Attached Storage (NAS) or Virtual Tape Library (VTL) targets for backup applications.
The total number of “devices” depends upon the StoreOnce appliance ranging from the low end HP D2D4000 Series Backup Systems that support the creation of a maximum of 16 devices to the enterprise class B6200 Series that support the creation of 96 devices. These devices may be all VTL, all NAS or any combination of NAS and VTL devices.
For specific details of the VTL and NAS device options available, please refer to the User Guide for your Product.
NAS targets for backup applications
Support for both CIFS and NFS protocols means that NAS target devices may be created as backup targets for both Windows and UNIX/Linux hosts, and may be used with most backup applications that support backup to disk. NAS targets on an HP StoreOnce Backup System provide network file share access that is optimized for backup to disk. They should not be used for general purpose file storage.
Virtual Tape Library targets for backup applications
The backup target appears to the host as an Ultrium Tape Library and requires a backup application that supports backup to tape. Tape Library emulation type is selected during initial configuration and this determines the number of cartridge slots and embedded tape drives that may be configured for the device. Virtual Tape Libraries provide considerable flexibility for a variety of backup rotation schemes.
For specific details of the VTL device options available, please refer to the User Guide for your Product.
Hardware installation
Please refer to the installation instructions provided with your product for detailed instructions on installing the HP StoreOnce Backup System and optional tape drive.
Software requirements
1. Refer to www.hp.com/go/connect or http://www.hp.com/go/ebs to find out which versions of UNIX and Linux are supported and which backup applications are supported.
2. Make sure that your operating system is patched with the latest service packs.
3. Upgrade your backup application to the latest version.
Configuration stages
Configuration requirements are specific to each HP StoreOnce Backup System. This guide provides details for all products so please cross check the information provided to ensure it is relevant for your product.
In general, there are two stages to configuration:
Assign IP addresses to the appliance network settings
Create a base configuration to get started
This guide describes how to perform these two stages.
Overview 5
2 Discovery
Overview
The HP StoreOnce Backup System must be assigned an IP address before an iSCSI connection or access to the Web Management Interface can be made.
If your product has been installed by HP Engineers, this configuration will have been carried out. Go to Chapter 3.
If your product is a customer self-install product, use the remainder of this chapter to perform the required configuration:
If the network has a DHCP server, the HP StoreOnce Backup System will be configured
automatically with an IP address
If no DHCP server is available, the HP StoreOnce Backup System must be configured manually
using the HP Discovery tool, provided on the HP StoreOnce CD-ROM supplied with your product
Using DHCP to discover the HP StoreOnce Backup System
The IP address and other network settings are assigned automatically when you connect the HP StoreOnce Backup System to the network. You only need to know the serial number of the HP StoreOnce 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.
In the web browser type in: D2D-<serial number> If you cannot connect to the HP StoreOnce Backup System using the Web Management interface:
Check that you are using a supported web browser and that Active Scripting or JavaScript is
enabled. See the HP StoreOnce Backup System User Guide for more information about recommended web browser settings.
Check that the network light is on, on the front of the HP StoreOnce Backup System as this
indicates an IP address has been configured.
Try connecting to the HP StoreOnce Backup System using the DHCP assigned IP address
instead.
Using the HP Discovery tool
The HP Discovery tool is a java application for configuring HP StoreOnce Backup Systems. The tool can be run from HP StorageWorks CD-ROM by selecting HPdiscovery in the UNIX folder or by launching it from a console as follows:
localhost:~ $ cd /media/cdrom/UNIX/ localhost:~ $ ./HPdiscovery
NOTE: Java must be installed on the system for the HP Discovery tool to work. Java can be
installed using the package manager or by visiting http://java.sun.com
When the HP Discovery tool is run it will find any HP StoreOnce 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 StoreOnce Backup System.
6 Discovery
NOTE: If no HP StoreOnce Backup Systems are discovered, ensure that UDP port 8106 is open
in any firewalls that are running.
To identify the required device
If you have multiple HP StoreOnce Backup Systems on the network you can use the Beacon button to help identify the unit that you wish to configure. Select a device in the list and click Beacon. The lights on the front of the selected HP StoreOnce Backup System will flash.
To configure the network settings of a device
1. Select the device in the list and click Configure.
Using the HP Discovery tool 7
2. Enter the network details and click Configure to send the details to the HP StoreOnce Backup
System. The list of available HP StoreOnce Backup System on the network will be displayed again, this time with the updated network settings shown.
3. Make a note of the IP address of the HP StoreOnce Backup System because it will be required during iSCSI configuration.
8 Discovery
3 Linux (x86, x64 and IA64)
Overview
This chapter describes how to configure the HP StoreOnce 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)
RedHat Advanced Server 4 (x86, x64 and IA64)
RedHat Advanced Server 5 (x86, x64 and IA64)
NOTE: HP StoreOnce Backup Systems with iSCSI interfaces are only supported with SLES 10
SP1 and RedHat 5 or greater.
Configuring the HP StoreOnce Backup System for iSCSI
If your product supports iSCSI use the information in this section to configure it. If your product does not support iSCSI, go to Configuring the HP Backup System for Fibre
Channel (page 11).
How to install the Open-iSCSI module
SLES 10
1. Open the Software Management tool from within YaST Control Center.
2. Select and install the open-iscsi module.
RedHat 5
1. Open the Package Manager tool.
2. Select and install the iscsi-initiator-utils package.
How to configure the Open-iSCSI module using the D2Dsetup script
Use the D2Dsetup script to configure the Open-iSCSI module automatically. You must provide the IP address as a parameter to the script.
localhost:~ $ D2Dsetup <IP_address>
If you wish to configure CHAP authentication, you should also provide the user name and password for the initiator and the target, if required.
localhost:~ $ D2Dsetup <Initiator_CHAP_Username> <Initiator_CHAP_Password> <Target_CHAP_Username> <Target_CHAP_Password> <IP_address>
The response from the HP StoreOnce Backup System will be similar to the following:
HP StoreOnce Backup System Linux and UNIX iSCSI Configuration Tool
Detecting OS...................................done
Checking iSCSI package.........................done
Contacting HP StoreOnce Backup System...done
Discovering available targets..................done
Configuring CHAP authentication................done
Configuring persistant logins..................done
Logging in to targets..........................done
The following library devices have been configured: Vendor: HP Model: 1x8 G2 AUTOLDR Rev: ai89 Type: Medium Changer ANSI SCSI revision: 03 6:0:0:0: Attached scsi generic sg2 type 8
-­ Vendor: HP Model: Ultrium 3-SCSI Rev: ai89
Overview 9
Type: Sequential-Access ANSI SCSI revision: 03 st 7:0:0:0: Attached scsi tape st0
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 StoreOnce Backup System.
Discover iSCSI target devices on the HP StoreOnce Backup System
Configure CHAP authentication
Configure automatic iSCSI logins
Verify the HP StoreOnce Backup System is connected
1. To discover available iSCSI target devices on an HP StoreOnce Backup System type the following, where x.x.x.x is the IP address of the HP StoreOnce Backup System:
localhost:~ $ iscsiadm --mode discovery --type sendtargets --portal x.x.x.x | grep x.x.x.x
The response from the HP StoreOnce Backup System will be two iSCSI Qualified Names (IQN) for each available iSCSI target. For example:
[7db5cb] x.x.x.x:3260,1 iqn.1986-
03.com.hp:storage.d2d.cr204c84d5.500110aa76f68fcb.library1.robotics [ebf06d] x.x.x.x:3260,1 iqn.1986-
03.com.hp:storage.d2d.cr204c84d5.500110a05ed5497b.library1.drive1
In the following configuration the parameter <iqn...> should be replaced with the IQN value discovered in this step. Each command will need to be repeated for each IQN discovered.
NOTE: Note: If iscsiadm does not return a list of iSCSI targets, ensure that port 3260 is
open in any running firewalls.
2. To optionally configure CHAP authentication you should update the iSCSI Authentication details in the web management GUI, as shown below.
Once the HP StoreOnce 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. Substitute
the appropriate information for <iqn...>, <chap_password> and <chap_username>.
localhost:~ $ iscsiadm --mode node --targetname <iqn...>
--portal x.x.x.x:3260 --op update –-name node.session.auth.authmethod
--value CHAP
localhost:~ $ iscsiadm --mode node --targetname <iqn...>
--portal x.x.x.x:3260 --op update –-name node.session.auth.username
--value <chap_username>
10 Linux (x86, x64 and IA64)
localhost:~ $ iscsiadm --mode node --targetname <iqn...>
--portal x.x.x.x:3260 --op update –-name node.session.auth.password
--value <chap_password>
If the target is required to logon to the Initiator then the following two commands are also required:
localhost:~ $ iscsiadm --mode node --targetname <iqn...>
--portal x.x.x.x:3260 --op update –-name node.session.auth.username_in
--value <chap_username>
localhost:~ $ iscsiadm --mode node --targetname <iqn...>
--portal x.x.x.x:3260 --op update –-name node.session.auth.password_in
--value <chap_password>
3. The iSCSI nodes may be configured to log in automatically on system startup. The configuration settings for each available target are modified as follows:
localhost:~ $ iscsiadm --mode node --targetname <iqn...>
--portal x.x.x.x:3260 --op update –-name node.conn[0].startup
--value automatic
4. The Linux host must now log in to each iSCSI target device. This is done using the three command, where the IQN value matches those returned by the iscsiadm discovery command above:
localhost:~ $ iscsiadm --mode node --targetname <iqn...>
--portal x.x.x.x:3260 --login
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
localhost:~ $ chkconfig iscsi on
6. To verify that this configuration change has been accepted, use the following command:
SLES 10
localhost:~ $ chkconfig –-list open-iscsi open-iscsi 0:off 1:off 2:off 3:on 4:off 5:on 6:off
RedHat 5
localhost:~ $ chkconfig –-list iscsi iscsi 0:off 1:off 2:off 3:on 4:off 5:on 6:off
7. 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 StoreOnce Backup System. An example output would be:
Attached devices: Host: scsi4 Channel: 00 Id: 00 Lun: 00 Vendor: HP Model: MSL G3 Series Rev: pc81 Type: Medium Changer ANSI SCSI revision: 03 Host: scsi5 Channel: 00 Id: 00 Lun: 00 Vendor: HP Model: Ultrium 3-SCSI Rev: pc81 Type: Sequential-Access ANSI SCSI revision: 03
Configuring the HP StoreOnce 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 product's GUI.
Configuring the HP StoreOnce Backup System for Fibre Channel 11
An example of a GUI is shown below; for details of the GUI specific to your product, please refer to the product's User Guide.
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 StoreOnce Backup System. An example output would be:
Attached devices: Host: scsi4 Channel: 00 Id: 00 Lun: 00 Vendor: HP Model: MSL G3 Series Rev: pc81 Type: Medium Changer ANSI SCSI revision: 03 Host: scsi5 Channel: 00 Id: 00 Lun: 00 Vendor: HP Model: Ultrium 3-SCSI Rev: pc81 Type: Sequential-Access ANSI SCSI revision: 03
Configuring the HP StoreOnce Backup System for NAS (NFS)
The StoreOnce 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
The StoreOnce Backup System supports NFSv3. To explicitly mount the StoreOnce Backup System using NFSv3, the following syntax should be used:
localhost:~ $ mount –t nfs –o nfsvers=3 x.x.x.x:/<name of share> <local mount>
12 Linux (x86, x64 and IA64)
Loading...
+ 25 hidden pages