Avaya Logo

Previous Topic

Next Topic

Book Contents

Book Index

Running the metastat command

For additional disk status information when using Disk Mirroring, you can run the metastat command.

To run the metastat command:

  1. If you are not logged in, log in as root.
  2. At the command prompt, enter metastat

    The system displays detailed information for each metadevice (virtual device) similar to the following sample output:

    d1: Mirror
    Submirror 0: d11
    State: Okay
    Submirror 1: d12
    State: Okay
    Pass: 2
    Read option: roundrobin (default)
    Write option: parallel (default)
    Size: 4202688 blocks

    d11: Submirror of d1
    State: Okay
    Size: 4202688 blocks
    Stripe 0:
    Device Start Block Dbase State Hot Spare
    c1t0d0s1 0 No Okay

    d12: Submirror of d1
    State: Okay
    Size: 4202688 blocks
    Stripe 0:
    Device Start Block Dbase State Hot Spare
    c1t1d0s1 0 No Okay

    In this sample, d1 is the metadevice that contains the submirrors d11 and d12. Submirror d11 is actually c1t0d0s1 (slice 1 on disk 0) and d12 is c1t1d0s1 (slice 1 on disk 1). In this sample, the status of all three devices is "Okay." If there are errors you will see it in the output for the affected device.

    For more information about this command and the possible errors, see the documentation for the DiskSuite tools for your system (http://docs.sun.com/db/doc/).

© 2006 Avaya Inc. All Rights Reserved.