Saturday, 16 July 2011

C4 TAPE LIBRARY CONFIGURATION ON SOLARIS WITH NETWORKER 7.2 TOOL

Today i have configured a C4 tape Library to a solaris server. We are running backup using networker 7.2.
The C4 tape library has got 38 slot with 2 drives.I made sure that all the connections are given properly with my colleagues working on hardware part.After that i logged into the server and i configured as root user.
Below i have mentioned steps on how to configure that.I have als o configured SL500 Tape library which i will include in my blog during the coming days

1)First take the output of cfgadm -al command output.After that,Run the networker command inquire which will display  all the SCSI devices connected with the manufacturer name and its serial number.


bash-2.05# cfgadm -al
Ap_Id                          Type         Receptacle   Occupant     Condition
c0                             scsi-bus     connected    configured   unknown
c0::dsk/c0t0d0                 CD-ROM       connected    configured   unknown
c1                             scsi-bus     connected    configured   unknown
c1::/dev/lus                   disk         connected    configured   unknown
c1::dsk/c1t0d0                 disk         connected    configured   unknown
c1::dsk/c1t1d0                 disk         connected    configured   unknown
c1::dsk/c1t2d0                 disk         connected    configured   unknown
c1::dsk/c1t3d0                 disk         connected    configured   unknown
c2                             scsi-bus     connected    configured   unknown
c2::lus1                       unknown      connected    configured   unknown
c3                             fc-private   connected    unconfigured   unknown
c3::100000e002236d82           med-changer  connected    configured   unknown
c4                             fc           connected    unconfigured unknown
usb0/1                         unknown      empty        unconfigured ok
usb0/2                         unknown      empty        unconfigured ok
bash-2.05# ./inquire
scsidev@1.0.0:FUJITSU MAW3073NCSUN72G 1703|Disk, /dev/rdsk/c1t0d0s2
                                           S/N: 000633B0G3TN    DAN0P680G3TN
scsidev@1.1.0:FUJITSU MAW3147NCSUN146G1703|Disk, /dev/rdsk/c1t1d0s2
                                           S/N: 000634C09CRW    DAC0P6809CRW
scsidev@1.2.0:FUJITSU MAW3147NCSUN146G1703|Disk, /dev/rdsk/c1t2d0s2
                                           S/N: 000634C09F90    DAC0P6809F90
scsidev@1.3.0:FUJITSU MAW3147NCSUN146G1703|Disk, /dev/rdsk/c1t3d0s2
                                           S/N: 000634C09F8H    DAC0P6809F8H
scsidev@3.100.0:QUANTUM PX500           000B|Autochanger (Jukebox)
                                           S/N: QP0633BDC00011
                                           ATNN=QUANTUM PX500           QP0633BDC00011
                                           IENN=00E09EFFFF0B086C
                                           WWNN=100000E09E0B086C
-----------------------------------------------------------------------------------------------------------
2)Now check for the cfgadm -al command and you can see that the med-changer type device is configured
bash-2.05# cfgadm -al
Ap_Id                          Type         Receptacle   Occupant     Condition
c0                             scsi-bus     connected    configured   unknown
c0::dsk/c0t0d0                 CD-ROM       connected    configured   unknown
c1                             scsi-bus     connected    configured   unknown
c1::/dev/lus                   disk         connected    configured   unknown
c1::dsk/c1t0d0                 disk         connected    configured   unknown
c1::dsk/c1t1d0                 disk         connected    configured   unknown
c1::dsk/c1t2d0                 disk         connected    configured   unknown
c1::dsk/c1t3d0                 disk         connected    configured   unknown
c2                             scsi-bus     connected    configured   unknown
c2::lus1                       unknown      connected    configured   unknown
c3                             fc-private   connected    configured   unknown
c3::100000e002236d82           med-changer  connected    configured   unknown
c4                             fc           connected    unconfigured unknown
usb0/1                         unknown      empty        unconfigured ok
usb0/2                         unknown      empty        unconfigured ok
---------------------------------------------------------------------------
3) Give the command ./lus_add_fp_devs which is a script that is made for solaris only which will update the lus.conf(Legato lus Driver configuration file ) file. This will reload the driver for the tape library.
bash-2.05# ./lus_add_fp_devs

                Updating /usr/kernel/drv/lus.conf

  Found Sun StorEdge(TM) HBA device:  /devices/pci@1d,700000/SUNW,qlc@1/fp@0,0:devctl

Mapping tape devices starting at target 0 connected via
   HBA  /devices/pci@1d,700000/SUNW,qlc@1/fp@0,0:devctl
   Adding:

Adding medium changer devices starting at target 100 connected via
   HBA  /devices/pci@1d,700000/SUNW,qlc@1/fp@0,0:devctl
   Adding:
     port WWN: 100000e002236d82 as SCSI target 100


The changes made to lus.conf will not take effect until lus is reloaded.

If you are sure that no process is currently using lus to control
     a tape library, then it may be safely unloaded.

Would you like to unload lus? (y/n) y

lus is not currently loaded

Would you like to load and configure lus using the newly modified lus.conf? (y/n) y

Would you like to run inquire? (y/n) y

scsidev@1.0.0:FUJITSU MAW3073NCSUN72G 1703|Disk, /dev/rdsk/c1t0d0s2
                                           S/N: 000633B0G3TN    DAN0P680G3TN
scsidev@1.1.0:FUJITSU MAW3147NCSUN146G1703|Disk, /dev/rdsk/c1t1d0s2
                                           S/N: 000634C09CRW    DAC0P6809CRW
scsidev@1.2.0:FUJITSU MAW3147NCSUN146G1703|Disk, /dev/rdsk/c1t2d0s2
                                           S/N: 000634C09F90    DAC0P6809F90
scsidev@1.3.0:FUJITSU MAW3147NCSUN146G1703|Disk, /dev/rdsk/c1t3d0s2
                                           S/N: 000634C09F8H    DAC0P6809F8H
scsidev@3.100.0:QUANTUM PX500           000B|Autochanger (Jukebox)
                                           S/N: QP0633BDC00011
                                           ATNN=QUANTUM PX500           QP0633BDC00011
                                           IENN=00E09EFFFF0B086C
                                           WWNN=100000E09E0B086C
---------------------------------------------------------------------------------------------------------
4) Once the drivers are loaded then you can carry on with the configuration of Library using the command jbconfig
bash-2.05# jbconfig

Jbconfig is running on host hbak020 (SunOS 5.9),
  and is using hbak020 as the NetWorker server.

         1) Configure an AlphaStor Library.
         2) Configure an Autodetected SCSI Jukebox.
         3) Configure an Autodetected NDMP SCSI Jukebox.
         4) Configure an SJI Jukebox.
         5) Configure an STL Silo.
What kind of Jukebox are you configuring? [1] 2
14484:jbconfig: Scanning SCSI buses; this may take a while ...
Installing 'Standard SCSI Jukebox' jukebox - scsidev@3.100.0.

What name do you want to assign to this jukebox device? hotfix-c4
15814:jbconfig: Attempting to detect serial numbers on the jukebox and drives ...

15815:jbconfig: Will try to use SCSI information returned by jukebox to configure drives.

Turn NetWorker auto-cleaning on (yes / no) [yes]?
The drives in this jukebox cannot be auto-configured with the available
 information. You will need to provide the path for the drives.
Is (any path of) any drive intended for NDMP use? (yes / no) [no]
Is any drive going to have more than one path defined? (yes / no) [no]

Please enter the device path information in one of the following formats:

/dev/rmt/1cbn --for local path or
host:device-path --for remote node or NDMP device(s) or
host:drive-letter:directory path --for Windows disk file

Drive  1, element 128
Drive path ? /dev/rmt/0cbn
This path already exists in the database. Proceed with the same path?
(yes / no) [yes]

Drive  2, element 129
Drive path ? /dev/rmt/1cbn
This path already exists in the database. Proceed with the same path?
(yes / no) [yes]

Only model LTO Ultrium-2 drives have been detected.
Are all drives in this jukebox of the same model?  (yes / no) [yes]
14416:jbconfig:
Found device /dev/rmt/0cbn already configured in NetWorker.
 Delete existing definition? (yes / no) [no]
14416:jbconfig:
Found device /dev/rmt/1cbn already configured in NetWorker.


 Delete existing definition? (yes / no) [no]


Jukebox has been added successfully

The following configuration options have been set:

> Jukebox description to the control port and model.
> Autochanger control port to the port at which we found it.
> Networker managed tape autocleaning on.
> Barcode reading to on.
> Volume labels that match the barcodes.
> Slot intended to hold cleaning cartridge to 38.  Please insure that a
        cleaning cartridge is in that slot
> Number of times we will use a new cleaning cartridge to 50.

You can review and change the characteristics of the autochanger and its
        associated devices using the NetWorker Management Console.
Thus the C4 tape library is configured and now after starting the backup you can see in the nwadmin & output that the C4 tape library with the 2 drives.
In the above "jbconfig" option you can select option 2 also but you will have to answer couple of questions.

No comments:

Post a Comment