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.
Page 3
Contents
About this guide ................................................................................... 7
• GUI elements that are clicked or selected, such as menu
and list items, buttons, tabs, and check boxes
Text emphasisItalic text
D2D Backup System7
Page 8
Monospace text
ElementConvention
• File and directory names
• System output
• Code
• Commands, their arguments, and argument values
Monospace, italic text
Monospace, bold text
• Code variables
• Command variables
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.
IMPORTANT:
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 following information:
• Product model names and numbers
• Technical support registration number (if applicable)
• Product serial numbers
• Error messages
• Operating system type and revision level
About this guide8
Page 9
• Detailed questions
Customer self repair
HP customer self repair (CSR) programs allow you to repair your StorageWorks product. If a CSR
part needs replacing, HP ships the part directly to you so that you can install it at your convenience.
Some parts do not qualify for CSR. Your HP-authorized service provider will determine whether a
repair can be accomplished by CSR.
For more information about CSR, contact your local service provider. For North America, see the CSR
website:
http://www.hp.com/go/selfrepair
Product warranties
For information about HP StorageWorks product warranties, see the warranty information website:
http://www.hp.com/go/storagewarranty
Subscription service
HP recommends that you register your product at the Subscriber's Choice for Business website:
http://www.hp.com/go/e-updates
After registering, you will receive e-mail notification of product enhancements, new driver versions,
firmware updates, and other product resources.
HP websites
For additional information, see the following HP websites:
• http://www.hp.com
• http://www.hp.com/go/storage
• 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 System9
Page 10
About this guide10
Page 11
1 Introduction
Overview
The HP StorageWorks D2D Backup System is a 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” 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; an HP D2D2502i device
supports the creation of a maximum of 4 devices, an HP D2D2503i device supports the creation of
a maximum of 6 devices and an HP D2D2504i device supports the creation of a maximum of 8
devices. These devices may be all VTL, all NAS or any combination of NAS and VTL devices.
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 D2D 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. The default configuration for HP D2D2500 Series appliances emulates the HP StorageWorks
1/8 G2 Ultrium Tape Autoloader. The default configuration for HP D2D4000 Series and HP D2D4112
appliances emulates the HP StorageWorks MSL2024 Tape Library. Virtual Tape Libraries provide
considerable flexibility for a variety of backup rotation schemes.
Hardware installation
Please refer to the printed poster and the HP StorageWorks D2D Backup System User Guide on the
HP StorageWorks CD-ROM for detailed 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 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.
D2D Backup System11
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.
Introduction12
Page 13
2 Discovery
Overview
The HP StorageWorks D2D Backup System must be assigned an IP address before an iSCSI connection
or access to the Web Management Interface can be made.
• If the network has a DHCP server, the HP StorageWorks D2D Backup System will be configured
automatically with an IP address
• If no DHCP 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 DHCP to discover the HP D2D Backup System
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.
In the web browser type in: D2D-<serial number>
If you cannot connect to the HP D2D Backup System using the Web Management interface:
• Check that you are using a supported web browser and that Active Scripting or JavaScript is en-
abled. See the HP StorageWorks D2D 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 StorageWorks D2D Backup System as
this indicates an IP address has been configured.
• Try connecting to the HP StorageWorks D2D 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 StorageWorks D2D 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
D2D Backup System13
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 discovered, ensure that UDP port 8106 is open in
any firewalls that are running.
To identify the required device
If you have multiple HP StorageWorks D2D 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 StorageWorks D2D Backup System will flash.
Discovery14
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 again, this time with the updated network settings shown.
3.Make a note of the IP address of the HP StorageWorks D2D Backup System because it will be
required during iSCSI configuration.
D2D Backup System15
Page 16
Discovery16
Page 17
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)
• RedHat 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
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.
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.
• Discover iSCSI target devices on the HP StorageWorks D2D Backup System
• Configure CHAP authentication
• Configure automatic iSCSI logins
• Verify the HP StorageWorks D2D Backup System is connected
1.To discover available iSCSI target devices on an HP StorageWorks D2D Backup System type
the following, where x.x.x.x is the IP address of the HP StorageWorks D2D Backup System:
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.
Linux (x86, x64 and IA64)18
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 1:
NOTE:
In the following commands, items in parentheses are user-defined strings. Substitute the
appropriate information for <iqn...>, <chap_password> and <chap_username>.
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 StorageWorks D2D Backup System. An example output would be:
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.
Linux (x86, x64 and IA64)20
Page 21
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:
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
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=3 x.x.x.x:/<name of share> <local mount>
D2D Backup System21
Page 22
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. 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 StorageWorks D2D
Backup System.
• Verify you are controlling the correct library
• Review the media
• Load a cartridge into the tape drive
• Unload a cartridge from the tape drive
• Move a cartridge to the mail slot
• Move a cartridge from the mail slot
Verify you are controlling the correct library
The robotics of the library will be assigned a generic SCSI device file. To discover the device file
assigned, use the following command:
For an MSL 2024 library the output will be similar to this:
Vendor: HPModel: MSL G3 SeriesRev: pc81
Type:Medium ChangerANSI SCSI revision: 03
1:0:0:0: Attached scsi generic sg2 type 8
In this example the device file that has been assigned is sg2. Therefore, the library can be controlled
using the device file /dev/sg2.
To verify the device file for the robotics of the library
To verify the correct device file has been determined, the following command should be used:
localhost:~ $ mtx –f /dev/sg2 inquiry
The output for an MSL 2024 library should be:
Product Type: Medium Changer
Vendor ID: ‘HP‘
Product ID: ‘MSL G3 Series‘
Revision: ‘pc81’
Attached Changer: No
To verify the tape device file for the tape drive
The tape drive(s) of the library will also be assigned a generic SCSI device file(s), along with SCSI
tape device file(s). To discover the SCSI tape device file(s) assigned, use the following command:
In this example the SCSI tape device file that has been assigned is st0. To verify the tape device file
for the tape drive, the MT command should be used:
localhost:~ $ mt -f /dev/st0 status
The output should be:
mt: /dev/st0 : No medium found
This indicates that the tape drive files are valid but no media is loaded into the drive.
Reviewing the media in a library
To verify the contents of the media slots within a library, the following command should be used:
localhost:~ $ mtx –f /dev/sg2 status
The output for a MSL 2024 library with 1 tape drive and 24 cartridges configured would look similar
to this:
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 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
Storage Element 10:Full :VolumeTag=72255110A
Storage Element 11:Full :VolumeTag=72255110B
Storage Element 12:Full :VolumeTag=72255110C
Storage Element 13:Full :VolumeTag=72255110D
Storage Element 14:Full :VolumeTag=72255110E
Storage Element 15:Full :VolumeTag=72255110F
Storage Element 16:Full :VolumeTag=722551110
Storage Element 17:Full :VolumeTag=722551111
Storage Element 18:Full :VolumeTag=722551112
Storage Element 19:Full :VolumeTag=722551113
Storage Element 20:Full :VolumeTag=722551114
Storage Element 21:Full :VolumeTag=722551115
Storage Element 22:Full :VolumeTag=722551116
Storage Element 23:Full :VolumeTag=722551117
Storage Element 24:Full :VolumeTag=722551118
Storage Element 25 IMPORT/EXPORT:Empty
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.
D2D Backup System23
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 drive
To unload a cartridge and place it in a storage slot, the mtx unload command should be used.
For example, to unload a cartridge from the first tape drive and place it in to storage slot 2, the
command would be:
localhost:~ $ mtx –f /dev/sg2 unload 2 0
Moving a cartridge to the library Mail Slot
To move a cartridge to the mail slot for exporting to an attached tape drive, the mtx transfer
command should be used. For example, to move the cartridge in slot 1 to the mail slot 25, the following
command should be used:
localhost:~ $ mtx –f /dev/sg2 transfer 1 25
Moving a cartridge from the library Mail Slot
To move a cartridge from the mail slot following an import from an attached tape drive, the mtx
transfer command should be:
localhost:~ $ mtx –f /dev/sg2 transfer 25 1
Backup and restore files using TAR in Linux
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. The file to be backed up and restored is the Linux kernel.
Linux (x86, x64 and IA64)24
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 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
Storage Element 10:Full :VolumeTag=72255110A
Storage Element 11:Full :VolumeTag=72255110B
Storage Element 12:Full :VolumeTag=72255110C
Storage Element 13:Full :VolumeTag=72255110D
Storage Element 14:Full :VolumeTag=72255110E
Storage Element 15:Full :VolumeTag=72255110F
Storage Element 16:Full :VolumeTag=722551110
Storage Element 17:Full :VolumeTag=722551111
Storage Element 18:Full :VolumeTag=722551112
Storage Element 19:Full :VolumeTag=722551113
Storage Element 20:Full :VolumeTag=722551114
Storage Element 21:Full :VolumeTag=722551115
Storage Element 22:Full :VolumeTag=722551116
Storage Element 23:Full :VolumeTag=722551117
Storage Element 24:Full :VolumeTag=722551118
Storage Element 25 IMPORT/EXPORT:Empty
2.Move the cartridge from slot 1 to the tape drive.
localhost:~ $ mtx –f /dev/sg2 load 1 0
3.Ensure you are in the root directory.
localhost:~ $ cd /
4.Back up the Linux kernel using tar.
localhost:~ $ tar cvf /dev/st2 ./boot/vmlinux*
5.Move the cartridge back to slot 1.
localhost:~ $ mtx –f /dev/sg2 unload 1 0
Restore the Linux kernel
1.Move the cartridge from slot 1 to the first tape drive.
localhost:~ $ mtx –f /dev/sg2 load 1 0
2.Create a temporary folder to restore the backup into.
localhost:~ $ mkdir temp
localhost:~ $ cd /temp
D2D Backup System25
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.
If the software is installed correctly, the generated output will look similar to this:
Class I H/W Path Driver S/W State H/W Type Description
=====================================================================
iscsi 0 255/0 iscsi CLAIMED VIRTBUS iSCSI Virtual Node
How to configure the iSCSI software initiator using the D2Dsetup script
Use the D2Dsetup script to configure the iSCSI software initiator automatically. You must provide the
IP address as a parameter to the script.
# 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.
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.
1.Add the path for iscsiutil and other iSCSI executables to the root path:
# PATH=$PATH:/opt/iscsi/bin
2.Find the iSCSI initiator node for the HP-UX host:
This initiator node name is required by the HP StorageWorks D2D Backup System web
management interface when manually configuring library devices.
3.To discover available iSCSI target devices on a HP StorageWorks D2D Backup System and add
them to iSCSI persistent information type the following, where x.x.x.x is the IP address of the
HP StorageWorks D2D Backup System:
# iscsiutil –aI x.x.x.x
The response will be:
Target address “x.x.x.x:3260,1” has been successfully added.
4.To display the discovery target that has been configured, type the following:
# iscsiutil –pD
The output will be similar to this:
Discovery Target Information
---------------------------Target # 1
-----------
IP Address: x.x.x.x
iSCSI TCP Port: 3260
iSCSI Portal Group Tag : 1
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 System29
Page 30
5.To discover operational target devices, type the following:
---------------Authenticaton Method:
CHAP Method: CHAP_UNI
Initiator CHAP Name:
CHAP Secret:
Header Digest: None,CRC32C (default)
Data Digest: None,CRC32C (default)
IP Address: x.x.x.x
iSCSI TCP Port: 3260
iSCSI Portal Group Tag: 1
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 System31
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 <iqn...>, <chap_password> and <chap_username>.
Once the HP StorageWorks D2D Backup System has been modified, the operating system should
be modified as follows:
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
D2D Backup System37
Page 38
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
HP-UX
The HP StorageWorks D2D Backup System appears to the HP-UX operating system as a changer
device and Ultrium tape drive. The changer device represents the robotics within the library 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 common tasks with the HP StorageWorks D2D
Backup System.
• Review the media
• Load a cartridge into the tape drive
• Unload a cartridge from the tape drive
• Move a cartridge to the mail slot
• Move a cartridge from the mail slot
Using large block sizes with HP-UX 11i V2
A block size no larger than 256 KB (262144 bytes) is strongly recommended when working with
HP-UX 11i V2 and tape or VTL devices. Backup applications should be configured to work with I/O
block sizes that are no larger than 256 KB. Please check your application documentation to find out
how to check or configure block sizes used for transfers to and from tape or VTLdevices.
Block sizes no larger than 256 KB (262144 bytes) are recommended with HP-UX 11i V2 because,
by default, the HP-UX stape driver processes a block size larger than 256 KB by subdividing it into
256 KB blocks for writing to tape (giving a net effect of 256 KB I/O transfers). During restore, stape
attempts to reconstruct the original block size that was larger than 256 KB with the 256 KB blocks
from tape. This subdivision and subsequent reconstruction process of block sizes larger than 256 KB
adds unnecessary complexity and risk to tape positioning and restore operations and offers no net
gain in terms of increased block size. It should, therefore, be avoided.
Reviewing the media in a library
To verify the contents of the media slots within a library, the following command should be used:
The DT_slot 1 represent Ultrium tape drives within the library. The ST_slots 1 to 24 represent the 24
configured slots within the library. The IE_slot_1 represents the import/export slot of the library, also
known as the Mail Slot in the HP StorageWorks D2D Backup System Web Management Interface.
Loading a cartridge into a library tape drive
To load a cartridge into the tape drive, the mc —s —d command should be used. For example, to
move a cartridge from slot 2 to the drive the command would be:
# mc –p /dev/rac/c9t0d0 –s S2 –d D1
Unloading a cartridge from a library tape drive
To unload a cartridge from the first tape drive and return it to storage slot 2, the command should
be:
# mc –p /dev/rac/c9t0d0 –s D1 –d S2
Moving a cartridge to the library Mail Slot
To move a cartridge from storage slot 3 to the mail slot for exporting to an attached tape drive, the
command will be:
# mc –p /dev/rac/c9t0d0 –s S3 –d I1
Moving a cartridge from the library Mail Slot
To move a cartridge from the Import/Export slot to Storage slot 4, following an import from an attached
tape drive, the command will be:
# mc –p /dev/rac/c9t0d0 –s I1 –d S4
Backup and restore files using TAR in HP-UX
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. The file to be backed up and restored is the HP-UX kernel.
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.
1.Find the iSCSI initiator node for the Solaris host:
In this example the initiator node name is
iqn.1986-03.com.sun:01:00144f1d9196.4715d8a3 This initiator node name is required
by the HP StorageWorks D2D Backup System web management interface when manually
configuring library devices.
Solaris (x86 and SPARC)44
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:
In the following commands, items in parentheses are user-defined strings. Substitute the
appropriate information for <iqn...>, <chap_password> and <chap_username>.
D2D Backup System45
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:
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
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:/<name of share> <local mount>
Controlling an HP StorageWorks D2D Backup System using
Solaris
The HP StorageWorks D2D Backup System appears to the Solaris operating system as a changer
device and Ultrium tape drive. The changer device represents the robotics within the library and can
be controlled from the console using a command called mtx. mtx is not installed with Solaris by
default but it can be downloaded and installed from sourceforge.net
The following examples illustrate how to complete common tasks with the HP StorageWorks D2D
Backup System.
• Verify you are controlling the correct library
• Review the media
• Load a cartridge into the tape drive
• Unload a cartridge from the tape drive
• Move a cartridge to the mail slot
• Move a cartridge from the mail slot
Solaris (x86 and SPARC)48
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
using the device file /dev/scsi/changer/c3t1d0.
To verify the device file for the robotics of the library
To verify the correct device file has been determined, the following command should be used:
# mtx –f /dev/scsi/changer/c3t1d0 inquiry
The output for an MSL 2024 library should be:
Product Type: Medium Changer
Vendor ID: ‘HP‘
Product ID: ‘MSL G3 Series‘
Revision: ‘pc81’
Attached Changer: No
To verify the tape device file for the tape drive
The tape drive(s) of the library will be assigned SCSI tape device files. To discover the SCSI tape
device files assigned, use the following command:
ls /dev/rmt/*cb
The output will be a list of device files for each configured tape drive. e.g. /dev/rmt/2cb.
In this example the SCSI tape device file that has been assigned is 2cb. To verify the tape device file
for the tape drive, the MT command should be used:
# mt -f /dev/rmt/2cb status
The output should be:
HP Ultrium LTO 3 tape drive:
sense key(0x6)= Unit Attentionresidual= 0retries= 0
file no= 0block no= 0
This indicates that the tape drive files are valid but no media is loaded into the drive.
Reviewing the media in a library
To verify the contents of the media slots within a library, the following command should be used:
# mtx –f /dev/scsi/changer/c3t1d0 status
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 System49
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
Storage Element 10:Full :VolumeTag=72255110A
Storage Element 11:Full :VolumeTag=72255110B
Storage Element 12:Full :VolumeTag=72255110C
Storage Element 13:Full :VolumeTag=72255110D
Storage Element 14:Full :VolumeTag=72255110E
Storage Element 15:Full :VolumeTag=72255110F
Storage Element 16:Full :VolumeTag=722551110
Storage Element 17:Full :VolumeTag=722551111
Storage Element 18:Full :VolumeTag=722551112
Storage Element 19:Full :VolumeTag=722551113
Storage Element 20:Full :VolumeTag=722551114
Storage Element 21:Full :VolumeTag=722551115
Storage Element 22:Full :VolumeTag=722551116
Storage Element 23:Full :VolumeTag=722551117
Storage Element 24:Full :VolumeTag=722551118
Storage Element 25 IMPORT/EXPORT:Empty
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.
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:
# mtx –f /dev/scsi/changer/c3t1d0 load 2 0
Unloading a cartridge from a library tape drive
To unload a cartridge and place it in a storage slot, the mtx unload command should be used.
For example, to unload a cartridge from the first tape drive and place it in to storage slot 2, the
command would be:
# mtx –f /dev/scsi/changer/c3t1d0 unload 2 0
Backup and restore files using TAR
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 SCSI device file /dev/scsi/changer/c3t1d0 and the library drive
uses tape device file /dev/rmt/2cb. The file to be backed up and restored is the kernel.
Solaris (x86 and SPARC)50
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
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
Storage Element 10:Full :VolumeTag=72255110A
Storage Element 11:Full :VolumeTag=72255110B
Storage Element 12:Full :VolumeTag=72255110C
Storage Element 13:Full :VolumeTag=72255110D
Storage Element 14:Full :VolumeTag=72255110E
Storage Element 15:Full :VolumeTag=72255110F
Storage Element 16:Full :VolumeTag=722551110
Storage Element 17:Full :VolumeTag=722551111
Storage Element 18:Full :VolumeTag=722551112
Storage Element 19:Full :VolumeTag=722551113
Storage Element 20:Full :VolumeTag=722551114
Storage Element 21:Full :VolumeTag=722551115
Storage Element 22:Full :VolumeTag=722551116
Storage Element 23:Full :VolumeTag=722551117
Storage Element 24:Full :VolumeTag=722551118
Storage Element 25 IMPORT/EXPORT:Empty
2.Move the cartridge from slot 1 to the tape drive.
# mtx –f /dev/scsi/changer/c3t1d0 load 1 0
3.Ensure you are in the root directory.
# cd /
4.Back up the kernel using tar.
# tar cvf /dev/rmt/2cb ./platform/`arch -k`/kernel/sparcv9/unix
5.Move the cartridge back to slot 1.
# mtx –f /dev/scsi/changer/c3t1d0 unload 1 0
Restore the kernel
1.Move the cartridge from slot 1 to the first tape drive.
# mtx –f /dev/scsi/changer/c3t1d0 load 1 0
2.Create a temporary folder to restore the backup into.
# mkdir temp
# cd /temp
D2D Backup System51
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.