Problem
I need to have more than the default 7 filesystems on my root, second, third, or any other disk on my SCO OpenServer Release 5.0.x system. Since divvy only allows up to 7, is there a way to accomplish this?
NOTE: If you are only installing SCO UNIX on your disk, you can divide
your disk into a maximum of 4 partitions. Your root partition will
allow you to create 3 filesystems in addition to the defaults.
The other 3 partitions will allow you to create a maximum of 7
filesystems on each. If this solution is not an option or will not
suffice, see the SOLUTION section below. Solution
The Virtual Disk Manager product allows you to accomplish this. If what you need is simply more filesystems and you are not interested in any of the RAID capabilities (such as RAID-0, RAID-5, RAID-1, and so on), then the best method is to create a concatenated disk. A simplified definition of a concatenated disk is a grouping of two or more disks into one logical disk. When the first disk becomes full, the second disk will be written to, and eventually the third. So, for example, if you had three 1GB drives, you could concatenate them to appear as one 3GB drive.
If you want to leave your root disk separate from your other disks, but still want more than the default number of filesystems, Virtual Disk Manager will allow it. You can concatenate 2 pieces of your root disk even if they are contiguous, _if_ you meet these two requirements:
I. You must have some leftover free space on your root hard drive. This would have required you to take the following path during installation:
A. At the Hard disk setup: Preserve existing layout: Bad blocking OFF option, press the space bar and choose the Interactive fdisk/divvy.
B. By taking step A above you will later see the following:
Initialization Selection:1. Continue with hard disk initialization. 2. Return to Interactive.........
Choose option 1, to continue with your disk layout. This will bring you into fdisk. If you only want 1 UNIX partition, choose the Use Entire Disk for Unix option. You will eventually be asked whether or not you want a separate /u filesystem. Choose "No" here as you will be creating virtual disks in that space and will be putting a filesystem on each virtual disk.
C. You will next see the following:
Do you wish to make any manual adjustments to the sizes or names of the filesystems or swap area before they are created on the hard disk? (y/n)
Choose yes. You will see that root is being used for the majority of the disk. Choose the end option to change the Last Block for root. For example, if you have a 9GB disk drive you might choose to end your root filesystem at 1GB and leave the rest of the disk free for your virtual disks.
II. You must have a second disk in addition to your root disk that has some free space on it. If not, the Virtual Disk Manager will not allow you to create a concatenated disk. The reason VDM behaves this way is because it already sees the root disk as concatenated. It requires a minimum of 2 pieces, so if you only have the root disk it will fail as it is looking for another disk with free space on it.
Once you have met the above requirements you are ready to use the Virtual Disk Manager to configure your concatenated pieces. You can create them to be whatever length you specify by adjusting the length field when choosing to allocate pieces. You can choose to put both pieces on just your root disk, (/dev/dsk/0s1) or have one piece on your root disk and concatenate it to a piece on your second disk, (/dev/dsk/1s1). Once the virtual disks are successfully created, use the Filesystem Manager to add an entry in /etc/default/filesys so that your filesystem will mount during bootup. By choosing Mount==>Add Mount Configuration==>Local, you will be brought to a window that wants a Device File and a mount point. Your Device file is the virtual disk you created. If it was vdisk4, for example, you would enter:
/dev/dsk/vdisk4in this field. Your mount point can be whatever you choose. If it does not exist, it will be created. You are not limited to concatenated disks in achieving your goal of obtaining more than the default 7 filesystems. You could also choose the other RAID capabilities previously mentioned. Again, you are limited to one filesystem per virtual disk, but you can add as many virtual disks as you want.
See also
SCO OpenServer System Administration Guide, Chapter 8, Administering Virtual Disks.
Other related Technical Articles in this Database.