Technical article 105087

How to configure a RAID 10 array using SCO Virtual Disk Manager 1.1.0.

OpenServer 5.0.0

Written · Last revised

Problem

How do I configure a RAID 10 array using SCO Virtual Disk Manager Release 1.1.0?

RAID 10 is a virtual disk consisting of striped mirrors (RAID 1 + RAID 0), which are usually duplexed (the disks use separate buses for I/O). The minimum number of pieces in a RAID 10 array is four, which consists of two two-disk mirrors striped together into one virtual disk. RAID 10 offers the best rating for I/O performance and rates very high in the Resilience category.

The following example assumes that there are four 525 megabyte
SCSI disks that are attached to two SCSI host adapters.  None are
part of the root or bootable hard drive, and the entire disk space
for each of the drives will be used in the RAID 10 array.

Solution

Virtual Disk Manager requires Release Supplement 1.1.0 to be
installed.  This can be downloaded using one of several file
transfer protocols available via SCO's Online Support Services.
The directory names are:
Supplements/vdm110
If Release Supplement 1.0.0 was previously installed, read
the Release Notes that accompany 1.1.0 thoroughly.  Ensure
that 1.1.0 is installed before proceeding.
NOTE: Virtual Disk Manager Release Supplement 1.1.0 should not be
      installed on SCO Virtual Disk Manager 5.0.2Dp, which ships on
      the Open Server 5.0.2 media.  Virtual Disk Manager 5.0.2Dp
      already contains the features and functionality supplied by
      Virtual Disk Manager Release Supplement 1.1.0.

Setting up a RAID 10 array consists of 5 steps:

1. Adding hard drives to the system.

2. Configure two or more mirrored virtual disks using the Virtual Disk Manager, making sure to restore parity for each disk before proceeding to step 3. (Create filesystems later, but parity should be restored during disk configuration.)

3. Select "Disk==>New" and choose Vdisk type RAID 10.

4. Continue into the RAID 10 allocation menu and use the virtual disks defined in step 2 for the pieces of this new RAID 10 disk.

5. Create a filesystem, if desired, and use the Filesystem Manager to configure the mount options.

Before proceeding, obtain the following information about the SCSI hard disks and host adapters:

* host adapter type and its prefix (spad, eiad, arad, alad, and so on)

* host adapter number
* bus id
(Note: You will be asked for the bus id.  For a dual channel
host adapter, Channel A will be bus id = 0 and Channel B will
be bus id = 1.  The host adapter number will be the same for
either channel.  For example, when trying to add a SCSI disk
that is attached to a host adapter, and the host adapter is
the first of its type in the system, the host adapter number is
0, regardless of the channel to which the device is attached.)
* target id of the SCSI disk
After obtaining the above information you are ready to proceed.
You must be in System Maintenance mode to continue.  Type:
# mkdev hd
You will see:

1. Add a hard disk to IDE controller 2. Add a hard disk to SCSI controller 3. Add a hard disk to IDA controller

Choose 1, 2 or 3.

Enter the prefix of the SCSI host adapter that supports this device or press <Enter> for the default of ad.

Note: This may not always read 'ad' as the default.

Enter the prefix.  You will see:
Which xxxx SCSI host adapter supports this device?

where 'xxxx' is the prefix you entered previously.

Enter the host adapter number.

The following parameters will be used to configure xxxx SCSI host adapter z. Change these parameters y/n

where 'xxxx' is the prefix you entered previously and 'z' is the host adapter number.

You will see the setup parameters.  If they are correct, choose
'n'.  If you need to change them, choose 'y' and enter the hardware
details about the host adapter card; confirm that you want to save
these values.

What SCSI bus is this device attached to? Press <Enter> to use the default: 0.

Enter the bus id.  You will see:
What is the target id for this device?

Note: This is the target id of the hard drive, not the host adapter.

Enter the target id.  You will see:
What is the LUN?
Enter 0.  You will see:

You are about to add the following SCSI device.

Host Adapter Type     Device   Adapter    Id   Lun    Bus
---------------------------------------------------------
xxxx                    Sdsk     0         1     0      0

where 'xxxx' is the prefix added previously.

The assumed host adapter is 0, target id of scsi disk is 1,
lun is always 0, and, in this case, the bus id was 0.  You
will see:
Update SCSI configuration? (y/n)
Choose 'y' if all is as it should be.  You will see:

The SCSI configuration file has been updated.

A new kernel must be built and rebooted before disk configuration can continue. Would you like to relink at this time (y/n)

Choose 'n' and add the other disks following the same directions.

Note: Since you are adding two of the drives to one of the host adapters and two to the other, keeping track of which drives are configured where is extremely important. In the following example the first drive (/dev/dsk/1s0, as this is the second drive added to the system, root drive 0s0 being the first) is added to SCSI Bus 1 (the first host adapter). The second drive to be used in the array will be /dev/dsk/2s0 and will be attached to SCSI Bus 2. Remember to note which device nodes are attached to which SCSI bus to ensure you are mirroring across host adapters which will protect you in the event one of the host adapters fails.

After adding each drive, select 'y' to have the kernel relinked. At this point, you will see:

Do you want the kernel to boot by default?

Choose 'y'.  You will see:
Do you want the kernel environment rebuilt?
Choose 'y'.

Reboot the system and enter System Maintenance mode.

You must run 'mkdev hd' again and enter the same parameters as you did previously in order to finish configuring the hard drives. You must perform this process separately for each drive. After adding the same parameters for the first drive you will see:

During installation you may choose to overwrite all or part of the present contents of your hard disk. Continue y/n

Choose 'y'.  You will see:

The hard disk installation program will now invoke /etc/fdisk. Entering 'q' at the following menu will exit /etc/fdisk, and the hard disk installation will continue.

1. Display Partition Table 2. Use Entire Disk for Unix 3. Use Rest of Disk for Unix 4. Create Unix Partition 5. Activate Partition 6. Delete Partition 7. Create Partition

Enter choice or q to quit

Note: For this example, the entire disk for Unix will be used for each of the four disks.

Choose "2. Use Entire Disk for Unix".

Note: If you previously had data on the disk, you will see this message:

Warning! All data on your disk will be lost! Do you wish to continue (y/n)

Choose 'y'.  You will see:
Total disk size .....
Press <return> to continue

1. Scan entire Unix partition 2. Scan a specified range of blocks 3. Scan a specified filesystem 4. List current bad block table 5. Add entries to bad block table 6. Delete entries from bad block table 7. Clear bad block table 8. Re-allocate bad blocks

Enter choice or q to quit
Choose "1. Scan entire Unix partition".  Choose the destructive
(as opposed to non-destructive) installation option, to ensure
there is no data such as previous divisions.  You may then choose
either "quick" or "thorough".  You will then see:

The virtual disk driver is installed. Do not create a division table on partitions which will be used for virtual disk pieces.

Choose one of the following options below or quit.

`y' to create a division table on the active partition
`n' to avoid creating a division table
Enter `y', `n', or enter `q' to quit

It is important that you choose either 'q' to quit or "'n'.

NOTE: IT IS IMPERATIVE THAT YOU NOT CHOOSE 'Y'.  CREATING
DIVISION TABLES ON PARTITIONS BEING USED FOR RAID 5 WILL
PREVENT THEM FROM EASILY BEING CONFIGURED IN THE ARRAY.
When you have completed this for each of the drives, enter
multiuser mode and bring up the Virtual Disk Manager.  To do
this, click on the System Administration ==>Filesystems ==>
Virtual Disk Manager.
You will see:
+----------------------------------------------------------------+
|       Disk   Piece   Database   Boot   View   Options          |
|                                                                |
+----------------------------------------------------------------+
Click on 'Disk'.  A list will appear.  Click on 'New'.
This will bring up the window:
+----------------------------------------------------------------+
|                                                                |
|
|   |   Include a hot spare  :   +-----------+              |    |
|   |                            | y    n    |              |    |
|   |                            +-----------+              |    |
|   +-------------------------------------------------------+    |
+----------------------------------------------------------------+

"Virtual type"- by default it will show Raid 5. Click on the arrow down key and select Mirror.

"Number of data pieces" - by default it will show 3. Change this to 2.

"Size of disk cluster" - A cluster consists of a set of
contiguous blocks of data written to a physical hard disk
within a disk array.  In other words, it is the size of the
data chunks written to the pieces in an array.  The cluster
size is the parameter that has the most impact on performance
of array systems.  Improperly matched I/O and cluster sizes can
adversely affect performance.  By default, you will see 32.  This
figure is an approximation based on test results, but may not be
ideal for all applications.  Modifying cluster size will require
reconfiguration.  That will mean backing up the data, reconfiguring
the array with the new cluster size and restoring from backups.

"vdisk4" - Assuming the Release Supplement 1.1.0 has been installed, vdisk4 will show in device if this is the first array you are configuring.

Click on 'Continue' after making any necessary modifications. You will see this table:

+------------------------------------------------------------------+
|                       New Mirror                                 |
|   +---Vdisk parameters---------------------------------------+   |
|   |                                                          |   |
|   |   Type: Mirror                                           |   |
|   |                                                          |   |
|   |   Virtual Device: /dev/dsk/vdisk4                        |   |
|   +----------------------------------------------------------+   |
|                                                                  |
|                                                                  |
|   Select a piece to allocate                                     |
|                                                                  |
|   +----------------------------------------------------------+   |
|   |                                                          |   |
|   |Piece 1: Not Allocated   *this one will be highlighted*   |   |
|   |                                                          |   |
|   | Piece 2: Not Allocated                                   |   |
|   |                                                          |   |
|   |                                                          |   |
|   +----------------------------------------------------------+   |
|                                                                  |
|   +-----------------+                                            |
|   |Allocate piece   |                                            |
|   +-----------------+                                            |
|                                                                  |
|   +--------------+          +--------------+      +--------+     |
|   | Create       |          | Cancel       |      | Help   |     |
|   +--------------+          +--------------+      +--------+     |
+------------------------------------------------------------------+

Click on 'Allocate piece' with 'Piece 1' highlighted.

+------------------------------------------------------------------+
|                 vdisk4: Mirror   piece 1 of 2                    |
+------------------------------------------------------------------+
|                                                                  |
|   Select the device this piece will reside on and then           |
|   enter the offset and length of this piece:                     |
|                                                                  |
|   Device       Disk       Partition       Length                 |
|   +-------------------------------------------------+            |
|   |/dev/dsk/1s1  1          1             1073120   |            |
|   |                                                 |            |
|   |/dev/dsk/2s1  2          1             1073120   |            |
|   |                                                 |            |
|   |/dev/dsk/3s1  3          1             1073120   |            |
|   |                                                 |            |
|   |/dev/dsk/4s1  4          1             1073120   |            |
|   +-------------------------------------------------+            |
|                                                                  |
|   offset: 2016                        Disk map                   |
|                                       --------                   |
|   Length: see note                    0....    2015              |
|                                      2016.... 1073119            |
|                                                                  |
|                                                                  |
|   OK                  CANCEL               HELP                  |
+------------------------------------------------------------------+

"Offset" - This space is used by the Virtual Disk Manager for protecting the fdisk table and for bookkeeping.

"Length" - Creating disks with parity data (mirror, RAID 5, RAID 4) where whole disks are being used as pieces in the array, the default piece size should not be accepted. Some arrays give disk errors during restoration and the virtual disk goes offline. As a workaround, select a piece size of about 5% smaller than the total disk size.

Take 1073119-2016=1071103X.05=53555.15 Now 1071103-53555.15=1017548 Change the default length to 1017548

You may see a message that the length is not a multiple of the cluster size and it will be changed automatically.

Click on 'OK' to allocate the piece after making necessary
modifications.  Continue allocating the second piece.  You will
see /dev/dsk/2s1 highlighted next.  There will be no need to
adjust the length for the other piece; it will set the size for
you, as all pieces must have the same size.  In fact, it will be
shaded out to prevent you from modifying it.

NOTE: Remember you will be allocating the first piece for a drive on your first host adapter and the second piece for a drive on the second host adapter.

Click on 'OK' after making any necessary modifications for each
piece.  After all have been allocated, click on 'CREATE' to create
the virtual disk.
You will then be prompted as to whether you want to restore parity.
Click on 'OK' to restore parity.  The next menu is to Select
Filesystem type.  Choose Cancel.  We will choose the filesystem
type when creating our RAID 10 array, which is done after creating
the Mirror arrays.

Now configure the next Mirror the same way vdisk4 was created. This time the virtual device will be /dev/dsk/vdisk5, again assuming these are the first two arrays configured. When getting to the menu for "Selecting the device this piece will reside on..." you will still see /dev/dsk/1s1 and 2s1. You are seeing the leftover portions you excluded from the Length field (the 5%). Do not choose these. Choose /dev/dsk/3s1 and continue.

Now that you have successfully created your Mirror arrays, you
are ready to configure your RAID 10 array.  Bring up the Virtual
Disk Manager again.
+----------------------------------------------------------------+
|       Disk   Piece   Database   Boot   View   Options          |
|                                                                |
+----------------------------------------------------------------+
|                                                                |
| virtual disks on <hostname>                                    |
|                                                                |
| vdisk4: 2 piece-mirror 1017536 blks, cluster 32                |
|                                                                |
| vdisk5: 2 piece-mirror 1017536 blks, cluster 32                |
|                                                                |
+----------------------------------------------------------------+
Click on Disk==>New
+----------------------------------------------------------------+
|                                                                |
|   Select the virtual disk type and device name                 |
|                                                                |
|   Virtual type:   +--------------+                             |
|                   | Raid  5      |                             |
|                   +--------------+                             |
|         Device:   +--------------+                             |
|                   | vdisk 6      |                             |
|                   +--------------+                             |
|   +---Vdisk parameters------------------------------------+    |
|   |                                                       |    |
|   |   Number of data pieces:   +-----------+              |    |
|   |                            | 3         |              |    |
|   |                            +-----------+              |    |
|   |   Size of disk cluster :   +-----------+              |    |
|   |                            | 32        |              |    |
|   |                            +-----------+              |    |
|   +-------------------------------------------------------+    |
|                                                                |
|   Continue               Cancel               Help             |
+----------------------------------------------------------------+

Click on the arrow in the Raid 5 box so you can then choose Raid 10. This will automatically change the Number of data pieces to 2. Click on Continue.

+------------------------------------------------------------------+
|                       New Raid 10                                |
|   +---Vdisk parameters---------------------------------------+   |
|   |                                                          |   |
|   |   Type: Raid 10                                          |   |
|   |                                                          |   |
|   |   Virtual Device: /dev/dsk/vdisk6                        |   |
|   +----------------------------------------------------------+   |
|                                                                  |
|                                                                  |
|   Select a piece to allocate                                     |
|                                                                  |
|   +----------------------------------------------------------+   |
|   |                                                          |   |
|   |Piece 1: Not Allocated   *this one will be highlighted*   |   |
|   |                                                          |   |
|   | Piece 2: Not Allocated                                   |   |
|   |                                                          |   |
|   |                                                          |   |
|   +----------------------------------------------------------+   |
|                                                                  |
|   +-----------------+                                            |
|   |Allocate piece   |                                            |
|   +-----------------+                                            |
|                                                                  |
+------------------------------------------------------------------+
Click on Allocate piece
+------------------------------------------------------------------+
|   vdisk:6  Raid 10 piece 1 0f 2                                  |
+------------------------------------------------------------------+
|                                                                  |
|   Select the device this piece will reside on and then           |
|   enter the offset and length of this piece:                     |
|                                                                  |
|   Device           Disk      Partition       Length              |
|   +-------------------------------------------------+            |
|   |/dev/dsk/vdisk4  mirror                1017536   |            |
|   |                                                 |            |
|   |/dev/dsk/vdisk5  mirror                1017536   |            |
|   |                                                 |            |
|   +-------------------------------------------------+            |
|                                                                  |
|   offset: 0                           Disk map                   |
|                                       --------                   |
|   Length: 1017536                     0....    1017535           |
|                                                                  |
|                                                                  |
|   OK                  CANCEL               HELP                  |
+------------------------------------------------------------------+

Click on OK, which will bring you to the "Select a Piece to allocate" menu again. This time Piece 2 will be highlighted. Click on Allocate piece. This will bring you to the same menu shown above but with only the vdisk5 mirror shown. Click on OK and then Create.

You will then receive an informational message stating:

Successfully created virtual disk /dev/dsk/vdisk6
+------------------------------------------------------------------+
|                     Create Filesystem                            |
+------------------------------------------------------------------+
| Select filesystem type to create on vdisk6 (2035072 blocks)       |
|                                                                  |
| Filesystem type: HTFS                                            |
|                                                                  |
|                                                                  |
| OK                            Cancel                  Help       |
+------------------------------------------------------------------+

Note: HTFS will be shown as the default filesystem type. You may click the down arrow to get more choices. After making your choice and clicking OK, you will get the following information:

Successfully created XXXX filesystem on /dev/dsk/vdisk6 use the Filesystem Manager to administer this filesystem.

where 'XXXX' is the filesystem type you chose earlier.

Click on 'OK'.
You must now bring up the Filesystem Manager so you can mount the
filesystem and access the data.  You can do this on the Desktop by
clicking on System Administration ==>Filesystems ==>Filesystem
Manager, which brings you to this screen:
+------------------------------------------------------------------+
|         Mount   Status of filesystems on <machine name>          |
|                                                                  |
|   [  /dev/boot            /stand           read-only             |
|                                                                  |
|   [  /dev/root           /stand            read-write            |
|                                                                  |
+------------------------------------------------------------------+

Note: You may see other filesystems listed, depending on your system.

Click on Mount==>Add Mount Configuration.
+-----------------------------------------------------------------+
|                                                                 |
|   Device File: /dev/dsk/vdisk6                                  |
|                                                                 |
|   Mount Point: /u1                                              |
|                                                                 |
|   Description optional:                                         |
|                                                                 |
|   +----------------------------------+  +--Mount Options------+ |
|   |   Filesystem Type   HTFS         |  | Check and Repair    | |
|   |                                  |  |                     | |
|   |   Access Mode:  Read-Write       |  | Advanced Options    | |
|   |                                  |  |                     | |
|   |   Can user mount?                |  | When to mount       | |
|   |                                  |  |                     | |
|   |                                  |  | [] Now              | |
|   |                                  |  | [] At system startup| |
|   +----------------------------------+  +---------------------+ |
|                                                                 |
|   OK                    CANCEL                 HELP             |
+-----------------------------------------------------------------+
Note: In this example, /u1 was chosen as the mount point.
So, to access data, you would cd to /u1.  To fsck the filesystem,
however, you would umount by typing umount  /u1 and type fsck
/dev/dsk/vdisk6.

After making any necessary modifications, click on 'OK'.

You will see a message about adding mount configuration. A window will come up showing this new filesystem added. You can now cd to /u1 to access the filesystem.

IMPORTANT NOTE:
It is essential that good reliable backups of the filesystem exist.
If a drive fails, you can jumper the replacement drive to the
same ID as the failed drive.  Run mkdev hd as you did the previous
drive. Since you already have an entry in your configuration files
for a drive at this ID, you will be brought into your second pass,
which will bring you into fdisk.  Follow same steps in fdisk, choose
quit to prevent entering divvy and then go to multiuser mode. Parity
should automatically be restored.  RAID 10 will protect you from
failure of one of the host adapters, multiple disk failures on a
single bus or multiple disk failures on either bus, with the
exception of simultaneous disk failures of a mirrored combination.

See also

SCO OpenServer 5.0 System Administration Guide, Chapter 8.

TA107233, "How can I download software supplements from SCO?"

From the Xinuos technical article database, record 105087. Reproduced with permission. The original is at www.sco.com/ta/105087, which is reachable but blocked from search engines. Xinuos marks this article against a retired product line. That refers to the product’s lifecycle, not to whether the advice still works — plenty of it still applies to running systems.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.