Solaris Volume Manager Administration Guide

How to Expand a RAID 1 Volume

  1. Make sure that you have root privilege and that you have a current backup of all data.

  2. Read Background Information for RAID 1 Volumes.

  3. Use one of the following methods to expand a mirror.

    • From the Enhanced Storage tool within the Solaris Management Console, open the Volumes node, choose the mirror, then choose Action->Properties and click the Components tab. Follow the instructions on screen. For more information, see the online help.

    • Use the metattach command to attach additional slices to each submirror. For example, to attach a component to a submirror, use the following:


      # metattach submirror component
      

      Each submirror in a mirror must be expanded. See the metattach(1M) man page for more information.

Example—Expanding a Two-Way Mirror That Contains a Mounted File System


# metastat
d8: Mirror
    Submirror 0: d9
      State: Okay        
    Submirror 1: d10
      State: Okay        
...
# metattach d9 c0t2d0s5
d9: component is attached
# metattach d10 c0t3d0s5
d10: component is attached

This example shows how to expand a mirrored mounted file system by concatenating two disk drives to the mirror's two submirrors. The mirror is named d8 and contains two submirrors named d9 and d10.

Where to Go From Here

For a UFS, run the growfs(1M) command on the mirror volume. See How to Grow a File System.

An application, such as a database, that uses the raw volume must have its own way of growing the added space.