4.Create the RAID 1 volume:

#raidctl -cprimary secondary

The creation of the RAID volume is interactive, by default. For example:

#raidctl -c c0t0d0 c0t1d0

Creating RAID volume c0t0d0 will destroy all data on member disks, proceed

(yes/no)? yes

Volume ’c0t0d0’ created

#

As an alternative, you can use the –foption to force the creation if you are sure of the member disks, and sure that the data on both member disks can be lost. For example:

#raidctl -f-c c0t0d0 c0t1d0 Volume ’c0t0d0’ created

When you create a RAID mirror, the secondary drive (in this case, c0t1d0) disappears from the Solaris device tree.

5. Check the status of a RAID mirror.

# raidctl

 

 

 

RAID

Volume

RAID

RAID

Disk

Volume

Type

Status

Disk

Status

--------------------------------------------------------

c0t0d0 IM

RESYNCING

c0t0d0

OK

 

 

c0t1d0

OK

The RAID status might be OK, indicating that the RAID volume is online and fully synchronized, but the volume also might be RESYNCING in the event that the data between the primary and secondary member disks in an IM are still synchronizing. The RAID status might also be DEGRADED, if a member disk is failed or otherwise offline. Finally, it might be FAILED, indicating that volume should be deleted and reinitialized. This failure can occur when any member disk in an IS volume is lost, or when both disks are lost in an IM volume.

Chapter 3 Managing Disk Volumes 45