This is a quick post and video that shows how to add an additional Hard Drive to a Virtual SCO Openserver 5 system.
When I configure SCO Openserver Systems I always use the LSI Logic Parrallel controller. It seems to provide reasonable performance and makes it easy to add additional virtual drives if required.
The virtual machine in the video already has two SCSI drives and I demonstrate how to add a third. When completed the /etc/conf/cf.d/mscsi file looks like this:
*ha attach number ID lun bus * lsil Sdsk 0 0 0 0 wd Srom 1 0 0 0 lsil Sdsk 0 1 0 0 lsil Sdsk 0 2 0 0
The highlighted line represents the virtual disk that is going to be added. Note that in the mscsi file an asterisk symbol denotes a comment. So this virtual machine has 3 hard drives, all using the “lsil” controller at IDs 0,1 and 2.
How to add an Additional Virtual Drive
Adding an additional drive is easy, but not very intuitive in my opinion. Here is how to do it:
- From a root prompt run:
mkdev hd
- Choose Option:
2) Add a hard disk to a SCSI controller
- You are now prompted for the prefix of the SCSI Host Adapter that will support the new drive. In this case it is “lsil”. You can just press enter if that is already the default.
- When asked which SCSI Host Adapter supports the new device (0 or 1). Put in whatever you specified on the Virtual Hard Drive. But more than likely it will be zero.
- Next you are asked what the Target ID for the device is. Again, match this to the SCSI ID specified with the Virtual machine.
- The LUN will be Zero.
- Finally you are asked if you would like to update the SCSI configuration. Press y for Yes.
Now relink the kernel and reboot. When you have logged back in run the procedure above and answer the questions in the same way again. This time around “mkdev hd” actually does some work with the drive.
From here it is up to you how you want to setup the drive, but in a ESXi environment I always just make a single division and use the entire drive for Unix.
After the new drive is added and you have created a division you can mount it with scoadmin.
It is far easier to watch the video below than understand the written explanation. If you have any questions, feel free to ask.
Todd Porter says
Good article.. on par with aplawrence stuff 🙂 I have one question. Do you know WHY most disk imagers have a problem with this? I would assume any image progam would just make a block by block copy of the disk and not care about the underlying OS / filesystem (if given the correct settings). I have yet to find one that will work for this exact scenario (havent tried older clonezilla yet). Most times, I will attach the imaged disk file to a SCO VM and SCO sees 3 unknown partitions on it instead of 1 partition with the x3 divisions…
Paulie says
In my experience and understanding (which may be incorrect) the disk imaging programs don’t have a problem, it’s the machines I’ve tried to run them on that have had the problems. Hence the reason I used the old Clonezilla. But even having done that I had to use a new bootstring. Which imaging tool did you try (and fail) with? I don’t think I have ever tried what I think you are doing – are you mounting a virtual disk that has been cloned from an existing system on a VM that has already been created?
It is a shame most of the aplawrence stuff has vanished from his site, it was an excellent resource.
bwchuah says
Awesome… This save me alot!!! Thanks..