ADDING PERIPHERAL DEVICES



Disk Drives | Printers | Tape Drives | CD-ROM Drives

From time to time it will be necessary to increase the resources available on the system. The following paragraphs provide procedural guidance for adding disk devices, tape drives, printers, and CD-ROM drives to the system. Addition of CPU devices and system memory are items requiring Hewlett-Packard support, and will not be covered here.



DISK DRIVES -

The addition of a disk drive is a multi-step process consisting of hardware configuration, hardware installation, recognition of the device by the operating system and creation of its associated device files, and identification of the device as an LVM physical device. Installation of kernel device drivers is not discussed here, since they should already exist


Hardware Configuration -
Each disk drive or other peripheral device on a SCSI bus requires its own physical address. Two types of SCSI interface are in general use--single-ended, and fast-and-wide. The possible device address ranges are 1-7 for single-ended, and 1-15 for fast-and-wide. Address 0 (zero) is reserved for system use in both cases. It is essential that this address not duplicate that of an existing device on the same bus. The disk drive unit contains a counter-type switch which must be set to the selected address number. For other HP equipment - location varies by model, refer to the hardware manual for further information. The new setting only takes effect on power-up on some devices, so perform this configuration step before turning on device power.

Finally, determine which SCSI port is the "input" port for the model of disk drive being installed and attach one end of the interface cable to this port.


Hardware Installation/Device Recognition -
    Because of the need to reconfigure the SCSI bus, it will be necessary to power-down the system.
Once the system is powered down, remove the SCSI terminator from the last device on the "chain" and place it on the "output" port of the new drive.
Position the new drive in the system cabinet and attach the free end of the interface cable to the port you removed the terminator from.
Connect the drive power cable to an appropriate electrical power outlet.
Turn on the device power switch.
Turn on the power. The system should initiate an auto-reboot sequence.

HP-UX Version 10 supports autoconfiguration of peripheral devices. During boot-up, the operating system will find, identify, and build device files for, the new disk drive.


Creation of LVM Physical Device -
The final step in adding a disk drive is creation of its associated LVM physical device. Although strictly speaking this is an LVM procedure, it is discussed here because it must be done any time a disk drive is added, and generally is not done otherwise. To create a physical volume on the disk drive it is necessary to know the raw device file name, where [raw_device_file] has the format /dev/rdsk/cXtYdZ. X indicates the controller number, Y the SCSI target address number, and Z the unit number (generally zero (0)).
If you do not happen to know the device file for the newly-added drive (a distinct possibility) a list of candidates can be generated using:
        lssf /dev/dsk/*
This command will generate output similar to that shown below:

sdisk card instance 0 SCSI target 4 SCSI LUN 0 section 0 at address 2/0/1.4.0 /dev/dsk/c0t4d0
sdisk card instance 0 SCSI target 5 SCSI LUN 0 section 0 at address 2/0/1.5.0 /dev/dsk/c0t5d0
sdisk card instance 0 SCSI target 6 SCSI LUN 0 section 0 at address 2/0/1.6.0 /dev/dsk/c0t6d0

If you are still unsure, choose the most likely candidate and issue:
        pvdisplay /dev/dsk/cXtYdZ
(substitute the appropriate numbers, of course). A previously-configured physical volume which has been added to a Volume Group will output a tabulation of data. Otherwise the command will exit with an error message. Once you have identified the device file, the command used to create the physical volume is:
        pvcreate [raw_device_file]
where [raw_device_file] has the format /dev/rdsk/cXtYdZ. X indicates the controller number, Y the SCSI target address number, and Z the unit number (generally zero (0)).

If the command fails, it is possible you chose a previously configured disk by mistake, or that the disk came to you with an old file system on it. Verify that you are attempting to use the correct device file name. If you are absolutely certain, the "-f" option to the pvcreate command will force creation of the new physical device.

The physical device must now be added to a Volume Group.



PRINTERS -

Two possibilities exist for addition of printers to the system -- a local printer or a remote printer.

Local Printer Installation/Configuration

Remote Printer Configuration -
Any printer installed and configured on a UNIX host which is accessible over the network can be used as a remote printer. Three pieces of information are required before beginning the configuration:
    Host name of the computer where the printer is installed.
IP Address of the above computer.
Print queue name (printer name).

          First, ensure that the remote server host name/IP address are listed in the /etc/hosts file. Add them if they are not present.
Issue the command, ping [hostname] to verify network access to the print host.
Launch sam and select the menu Printers and Plotters->Printers and Plotters->add Printer.
Fill in the host and printer name information, and specify a remote printer. If this is to be the system default printer, so indicate.

After exiting sam verify operation by issuing:
        lp -d [printer_name] /etc/hosts

You should get a response indicating a print request has been generated, and printout of the local /etc/hosts file at the remote printer. If both occur, the system is properly configured.



TAPE DRIVES -

The addition of a tape drive is a multi-step process consisting of hardware configuration, hardware installation, and recognition of the device by the operating system and creation of its associated device files. Installation of kernel device drivers is not discussed here, since they should already exist. This paragraph further assumes that addition of a SCSI interface card to the Server is not required, i.e. an unused SCSI address is available on an existing card.

Hardware Configuration -
Each tape drive or other peripheral device on a SCSI bus requires its own physical address. Two types of SCSI interface are in general use--single-ended, and fast-and-wide. Refer to the hardware manual for the device to determine which type of interface it uses. The possible device address ranges are 1-7 for single-ended, and 1-15 for fast-and-wide. Address 0 (zero) is reserved for system use in both cases. It is essential that this address not duplicate that of an existing device on the same bus.. The tape drive unit contains a counter-type switch which must be set to the selected address number. Location varies by model, refer to the hardware manual for further information. The new setting only takes effect on power-up on some devices, so perform this configuration step before turning on device power.

Finally, determine which SCSI port is the "input" port for the model of tape drive being installed and attach one end of the interface cable to this port.

Hardware Installation/Device Recognition -
    Because of the need to reconfigure the SCSI bus, it will be necessary to power-down the system.
Once the system is powered down, remove the SCSI terminator from the last device on the "chain" and place it on the "output" port of the new drive.
Position the new drive in the system cabinet and attach the free end of the interface cable to the port you removed the terminator from.
Connect the drive power cable to an appropriate electrical power outlet.
Turn on the device power switch.
Turn on the power. The system should initiate an auto-reboot sequence.

HP-UX Version 10 supports autoconfiguration of peripheral devices. During boot-up, the operating system will find, identify, and build device files for, the new tape drive.



CD-ROM DRIVES -
Using the sam utility find the device address of the CD-ROM
    sam
           Peripheral Devices
               Device List
                   CD-ROM
                       Actions
                           Show Device Files

Create a mount point by making an empty directory under root.
    cd /
mkdir CD-ROM

Mount the drive
    mount /dev/dsk/c?t?d?

Now you can move into the CD-ROM directory and look around;
    cd CD-ROM
ll

REMEMBER:you have to umount (un-mount) the CD-ROM directory before you can remove the CD-ROM disk from the drive.
    umount /dev/dsk/c?t?d?

Prepared by: Everette Smith, Impact Innovations Government Group, Inc.


Back

Home | Index | Startup & Shutdown | SAM | LVM | Devices
| Security | Workbook | Disaster | Information Sources | Glossary


Continue