Solaris Volume Manager Administration Guide

ProcedureHow to Expand a RAID-1 Volume

Before You Begin

Read Creating and Maintaining RAID-1 Volumes.

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

  2. 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 Submirror tab. Follow the onscreen instructions. For more information, see the online help.

    • Use the metattach command to attach additional slices to each submirror.

      # metattach submirror slice

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

  3. Use the metattach command to cause the mirror to recompute its size based on the size of the submirror.

    # metattach mirror

Example 11–17 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
# metattach d8

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.

See Also

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

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