Problem
I have an OpenServer 6.0.0 server installed and I would now like to attach a SCSI tape drive to the system. How can I do this?
Solution
To install and configure a SCSI tape drive on your OpenServer 6.0.0 system you will need to do the following:
1) If your server does not already have a SCSI card then you will need to install a SCSI card into the server and reboot the server. You can also connect the Tape drive to the SCSI Bus at this time if you wish, making sure that the SCSI Bus is terminated correctly.
Please note OpenServer 6 only loads drivers for the HBAs it detects in your server at install time.
2) If your server does not already have a HBA driver loaded for the SCSI card then you will need to install the HBA driver for the card. You can check to see if your kernel recognises your SCSI card using:
# sdiconfig -lSome sample output of this command may look like:
0:0,7,0: HBA : (c8xx,1)Symbios 1066-0 42400
0,0,0: DISK : SEAGATE ST318404LC 0002
1:0,2,0: HBA : (ide,1) Generic IDE/ATAPI
0,0,0: CDROM : MITSUMI CD-ROM FX4830T!BR02NIf your kernel does not see your SCSI card then you will need to install a HBA driver for the card.
Please note SCO periodically posts updated versions of HBA drivers for SCO OpenServer 6.0.0 at:
http://www.sco.com/support/update/download/product.php?pfid=12&prid=20If you find the driver you are looking for at the above URL then please follow the installation instructions included with the driver to install it onto your system.
If you don't find the HBA driver you are looking for on the URL above then you may find it on the SCO OpenServer 6.0.0 CD1 Media. For a list of HBA drivers available on your OpenServer 6.0.0 Media please see:
http://osr600doc.xinuos.com/en/GetStart/gsgC.HWconfig.html#gsgC.HWconfig.HBAsuppTo install a specific driver (e.g. the Adaptec adst70 HBA), place the OpenServer 6.0.0 CD1 media into the CD-ROM drive and run:
# pkgadd -d /dev/cd0 adst70To select from a list of all the drivers available on the CD run the command:
# pkgadd -d /dev/cd0and follow the prompts to select the HBA(s) you want to install.
3) Once you have installed the required HBA driver you must load the HBA driver into your running kernel.
You can do this using the modadmin(ADM) command as follows:
# modadmin -l adst70Please note that OpenServer 6.0.0 autodetects and autoloads HBA drivers at boot time.
On each subsequent reboot your will NOT therefore have to manually load the driver as described above.
If the modadmin command is successful, then when you run
# sdiconfig -lyou should now see the HBA you have added. For example if we have loaded the adst70 we should see something similar to:
0:0,7,0: HBA : (c8xx,1)Symbios 1066-0 42400
0,0,0: DISK : SEAGATE ST318404LC 0002
1:0,2,0: HBA : (ide,1) Generic IDE/ATAPI
0,0,0: CDROM : MITSUMI CD-ROM FX4830T!BR02N
2:0,7,0: HBA : (adst70,1) Adaptec Ultra160You are now ready to configure the Tape Drive.4) If the Tape Drive is not already connected to the SCSI bus of your HBA then you will need to connect it. This can be done in two ways:
- You can power down your server, attach the Tape drive to your system and reboot.
or:- You can use sdiadd(ADM) to "hot add" the tape drive to the SCSI bus. To do this your HBA must support hot add functionality.
To hot add a tape drive to a running server do the following:
As root run the command:# sdiaddYou will see the message:INFO: Successfully stopped SCSI bus. INFO: Hit return when device changes have been made.
Connect the Tape drive to the SCSI Bus of your HBA, power it on and press Enter/Carriage Return when the tape is powered up. You should now see a message similar to:
INFO: Successfully continued SCSI busINFO: Device added
INFO: 2:0,3,0:VOID :HP Ultrium 4-SCSI W22DIf you now run the command:# sdiconfig -lYou should see output similar to:0:0,7,0: HBA : (c8xx,1)Symbios 1066-0 42400
0,0,0: DISK : SEAGATE ST318404LC 0002
1:0,2,0: HBA : (ide,1) Generic IDE/ATAPI
0,0,0: CDROM : MITSUMI CD-ROM FX4830T!BR02N
2:0,7,0: HBA : (adst70,1) Adaptec Ultra160
0,3,0: TAPE : HP Ultrium 4-SCSI W22Dwhere in the example above we have added a HP Ultruim SCSI Tape on ID 3 of an Adaptec Ultra160 SCSI HBA.
You should also now find that the directory:
/dev/rmt/has been populated with the device names for your tape drive. For more on device names see st01(HW).
For more on tape control commands see tape(C).