Problem
How do I add a SCSI hard drive under SCO OpenServer 5.0.x?
Solution
First, establish whether the hard drive has information you want to keep.
************************* IMPORTANT ******************************If the hard drive does have data you want to preserve, DO NOT follow the instruction in this article. Instead see ta104863, "How do I add a SCSI disk that has data I want to keep?"
********************************************************************Then, after physically installing the new hard drive and checking for correct termination and proper cable connections, you are ready to install the new hard drive into the operating system. Follow these steps:
1. Boot the system and enter single-user mode by typing the root password at the "control-d" prompt.
Once in single-user mode, type the following:
# mkdev hd2. In the information that will be displayed, you should see the following:
1) Add a hard disk to IDE controller 2) Add a hard disk to SCSI controller
Enter '1', '2' or enter 'q' to quit.
Enter a '2' to add a hard disk to the SCSI controller.
3. The next prompt will be the following:
Enter the prefix of the SCSI host adapter that supports this device or press <Return> for the default: 'xxxx' Enter h for a list of host adapters or enter q to quit:
where 'xxxx' is the driver name of the SCSI controller to which the existing hard drive is connected.
Press <Enter> to select the default adapter (if this is the adapter that the new hard drive is connected to), or enter the proper adapter driver name if the new drive is connected to an adapter other than the default. (This assumes any other adapter has already been configured on the system.)
4. Now you will see the following:
Which 'xxxx' SCSI host adapter supports this device? Select 0-4, or enter q to quit:
where 'xxxx' once again is the driver name of the SCSI controller to which the hard drive being added is connected.
If you only have one SCSI controller, enter '0'.
5. Next you will see:What SCSI Bus is this device attached to? Press <Return> to use the default:0 Select 0-n, or h for help, or q to quit:
Press <Enter> for the default "0" if you have only one SCSI controller and it has the new hard drive on the First Bus.
6. Next you will see:What is the Target ID for this device? Select 0-15, or h for help, or q to quit:
The SCSI ID is determined by jumper settings on the new hard drive.
You will need to refer to the documentation included with the hard
drive to determine the proper ID, or use the SCSI Controller's
utility to determine the ID. See the Controllers documentation
to find out if this utility is available for your controller and
how to use it.7. When you have entered the proper SCSI ID and pressed <Enter> you will see:
What is the LUN of this Device? Press <Return> to use the default: 0 Select 0-7, or h for help, or q to quit:
In most cases, the LUN will be 0.
8. Now you will see a listing of the Host Adapter Type, Device, Adapter Number, ID, LUN and BUS along with the following prompt:
Update SCSI configuration? (y/n)Enter 'y' and press <Enter>.9. The SCSI configuration file will now be updated. You will
be prompted to relink the kernel; enter a 'y' <Enter> to do so.
At the next prompt, to have the kernel boot by default, enter
a 'y' <Enter>, and then enter a 'y' to rebuild the kernel
environment.10. When the system has returned to a prompt, type the following to shut down the system:
# /etc/init 0 <Enter>Then press any key to restart the system when the "Safe to Power Off" message appears.
11. Once the system has started, again go into single-user mode.
Once in single-user mode, type:# mkdev hd(This needs to be run a second time.)
Enter the same information you entered above.
12. Then you will see a message that the Disk is already configured and that you can choose to overwrite all or part of the present contents of your hard disk.
Do you wish to continue? (y/n)Enter 'y' and press <Enter>.13. You will now be brought into fdisk. Check that the '%disk'
settings are proper for the new hard drive, since any changes
in fdisk or divvy can wipe information off the drive.At this point you can set up the new hard drive partitions.
14. Once you have set up the new hard drive partitions, choose
'q' to quit. You will now see a list of choices that will allow
you to scan the new UNIX partition for bad spots on the hard
drive. The conservative choice here is to select '1' to scan
the entire UNIX partition. However, in most cases this will
not be necessary. Once you have scanned the drive, or if you
choose not to, select 'q' to quit.15. The next choice is to select the number of bad blocks for which to allocate space; press <Enter> to accept the default.
16. Now you will be brought into the divvy table and can set up
the filesystems on the new hard drive. Once you have set up the
filesystems, select 'q' to quit, then 'i' to install.NOTES: To remove a SCSI disk see ta105052, "How can I remove and reinstall
an additional hard disk on SCO OpenServer 5?"If you are configuring Hardware RAID, you will need to configure
the RAID setup on the hardware level before adding the RAID
configuration to the operating system. Consult your hardware
documentation or hardware vendor regarding instructions for this
procedure. See also
man pages mkdev(ADM), divvy(ADM), badtrk(ADM), fdisk(ADM)SCO OpenServer Handbook, Chapter 17, "Adding hard disks"ta104863, "How do I add a SCSI disk that has data I want to keep?"
ta105052, "How can I remove and reinstall an additional hard disk on SCO OpenServer 5?"