Technical article 104785

How do I configure a RAID 10.5 virtual disk?

OpenServer 5.0.0

Written · Last revised

Problem

I do not see an option to configure RAID 10.5 arrays from within the Virtual Disk Manager.

Cause

RAID level 10.5 is a derived RAID level, meaning it is
a more complex configuration of the other existing RAID
levels.  In this case, it is a variation of RAID 10,
which is a combination of RAID 1 and RAID 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, consisting of two two-disk
mirrors striped together into one virtual disk.

RAID 10.5 is a somewhat less expensive version of RAID 10, in that the striped pieces are configured and then mirrored onto ONE disk (rather than a mirror for each piece of the striped array). The minimum number of pieces in a RAID 10.5 array is three, consisting of at least one two-piece striped virtual disk and one piece for mirroring.

For more detailed information on RAID levels and terminology, see another article in this database entitled "General information about RAID and the Virtual Disk Manager."

Solution

At this time RAID 10.5 is not configurable using the Virtual
 Disk Manager.  However, a RAID 10.5 array can be configured
 manually if some caution is observed.
!! WARNING !!          !! WARNING !!           !! WARNING !!
This procedure involves manually editing the master virtual
disk configuration file /etc/dktab, which is used to keep track
of all virtual disks on the system.  If this file becomes
corrupted or erased, you risk losing all record of virtual
disks on your system and they cannot be reconfigured.  All of
your data on these virtual disks may be lost.  Do not attempt
this procedure before backing up /etc/dktab and defining
vdisk0 to keep track of changes to /etc/dktab.
Also, you should be familiar with the various fields in
/etc/dktab.  For more information and examples, see the dktab(F)
man page.

In order to set up a RAID 10.5 array, the following steps are necessary:

1.  Define a striped array using the Virtual Disk Manager.
2.  Close the Virtual Disk Manager.
3.  Copy the file /etc/dktab to /etc/dktab.safe or some other
    filename.
4.  Edit the file /etc/dktab to include a mirrored virtual
    disk.  The disk definition will look something like this:
/dev/dsk/vdisk5  mirror         2       32
     /dev/dsk/vdisk4            0       636928
     /dev/dsk/6s1               100     637028

This indicates that vdisk5 is a mirrored virtual disk with two pieces and a cluster size of 32 blocks (16k). The two pieces of vdisk5 are a) the striped array previously defined (vdisk4 in this example) with a total block size of 636928, and b) the mirror (parity) disk on /dev/dsk/6s1 with the same size as vdisk4.

Save your changes and quit.
5.  Re-start the Virtual Disk Manager and watch for any
    errors.  During startup, VDM will parse /etc/dktab and if
    any errors are found it will complain with an message like:
FATAL ERROR:  Unable to parse /etc/dktab
The most common errors will be about disks that don't
exist, improper offsets, wrong block sizes, or the
incorrect number of pieces.  All of these are usually
fatal errors and VDM will not start properly; appropriate
changes must be made to /etc/dktab and VDM must be re-
started.

For more information, see the man pages on dktab(F).

6.  Create a filesystem, if necessary.

Your RAID 10.5 virtual disk is now online and ready for use. Every cluster of data written to the striped array will also be written to the mirror disk.

See also

See the man pages for dktab(F) and dkconfig(ADM); System Administrator's Guide.

From the Xinuos technical article database, record 104785. Reproduced with permission. The original is at www.sco.com/ta/104785, 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.