My Oracle Support Banner

Solaris Volume Manager (SVM): Understanding the "Needs Maintenance" and "Last Erred" States (Doc ID 1004417.1)

Last updated on DECEMBER 07, 2018

Applies to:

Solstice DiskSuite Software - Version 4.2.1 to 4.2.1 [Release 4.0]
Sun Solaris Volume Manager (SVM) - Version 11.9.0 to 11.11 [Release 11.0]
Oracle Solaris on SPARC (32-bit)
Oracle Solaris on x86-64 (64-bit)
Oracle Solaris on x86 (32-bit)
Oracle Solaris on SPARC (64-bit)

Purpose

The current state of Solaris Volume Manager (SVM) metadevices is shown by the metastat command. The normal state is "Okay". If errors have occurred, a metadevice may show a state of "Needs Maintenance" or "Last Erred". This article explains the reason metadevices can enter one of these states, and the difference between them.

Scope

A metadevice in an errored state requires your attention. If the error is due to a transient problem and there is no persistent hardware issue, it may not be necessary to replace a disk. You can simply use the metareplace command to return the metadevice to the "Okay" status if it is part of a RAID-1 (mirror) or RAID-5 redundant metadevice.

In the following example, c1t0d0s0 experienced a transient failure.

# metastat -t d1
d1: Mirror
    Submirror 0: d11
      State: Needs maintenance Mon Mar 26 16:22:17
    Submirror 1: d21
      State: Okay         Mon Mar 26 16:16:48
    Pass: 1
    Read option: roundrobin (default)
    Write option: parallel (default)
    Size: 412965 blocks (201 MB)

d11: Submirror of d1
    State: Needs maintenance Mon Mar 26 16:22:17
    Invoke: metareplace d1 c1t0d0s0 <new device>
    Size: 412965 blocks (201 MB)
    Stripe 0: (interlace: 32 blocks)
        Device     Start Dbase State       Reloc Hot Spare Time
        c1t0d0s0       0 No    Maintenance Yes             Mon Mar 26 16:22:17
        c1t1d0s0       0 No    Okay        Yes             Mon Mar 26 16:13:43


d21: Submirror of d1
    State: Okay         Mon Mar 26 16:16:48
    Size: 412965 blocks (201 MB)
    Stripe 0: (interlace: 32 blocks)
        Device     Start Dbase State       Reloc Hot Spare Time
        c1t2d0s0       0 No    Okay        Yes             Mon Mar 26 16:14:12
        c1t3d0s0       0 No    Okay        Yes             Mon Mar 26 16:14:12


Because the failure was transient and it has been determined that there is no need to replace the disk, you can use the following command to return c1t0d0s0 to the "Okay" state:

# metareplace -e d1 c1t0d0s0


If there is a disk hardware failure, the disk must be replaced. Disk replacement procedures are described in detail in the Solaris Volume Manager Administration Guide. Please consult the appropriate chapter:

 



Details

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Purpose
Scope
Details
 RAID-1 (Mirror) with Multiple Failures but Redundancy Intact
 RAID-1 (Mirror) with Multiple Failures and Redundancy Lost
 RAID-5 with Multiple Failures and Redundancy Lost
 Want to know more?
References

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.