Solaris Volume Manager (SVM) How to Repair a "Needs Maintenance" Metadevice in a One-Way Mirror

(Doc ID 1008147.1)

Last updated on MAY 08, 2017

Applies to:

Solstice DiskSuite Software - Version 4.2.1 to 4.2.1 [Release 4.0]
Solaris Operating System - Version 10 11/06 U3 to 11.3 [Release 10.0 to 11.0]
Sun Solaris Volume Manager (SVM) - Version 11.9.0 to 11.11 [Release 11.0]
Oracle Solaris on x86 (32-bit)
Oracle Solaris on SPARC (32-bit)
Oracle Solaris on x86-64 (64-bit)
Oracle Solaris on SPARC (64-bit)

Goal

The SVM command metastat reports state information for one-way mirror devices. When the mirror is healthy, the state will report "Okay" for the mirror, submirror and any sub-component (such as a soft partition). For example:

# metastat

d100: Soft Partition
Device: d20
State: Okay
Size: 2097152 blocks (1.0 GB)
    Extent    Start Block    Block count
         0           3616        2097152

d20: Mirror
Submirror 0: d10
State: Okay
Pass: 1
Read option: roundrobin (default)
Write option: parallel (default)
Size: 17682084 blocks (8.4 GB)

d10: Submirror of d20
State: Okay
Size: 17682084 blocks (8.4 GB)
Stripe 0:
    Device    Start Block   Dbase      State   Reloc   Hot Spare
    c0t9d0s0         0      No          Okay     Yes


Device Relocation Information:
Device Reloc Device ID
c0t9d0 Yes id1,sd@SSEAGATE_ST39173W_SUN9.0GLMD69076000079291K9W


It is possible to have the mirror report something other than "Okay", yet all I/O and operations appear normal. Here is the same functioning one-way mirror, only with metastat reporting problems.

# metastat
d100: Soft Partition
Device: d20
State: Errored
Size: 2097152 blocks (1.0 GB)
    Extent    Start Block    Block count
         0           3616        2097152

d20: Mirror
Submirror 0: d10
State: Needs maintenance
Pass: 1
Read option: roundrobin (default)
Write option: parallel (default)
Size: 17682084 blocks (8.4 GB)

d10: Submirror of d20
State: Needs maintenance
Invoke: after replacing "Maintenance" components:
metareplace d20 c0t9d0s0
Size: 17682084 blocks (8.4 GB)
Stripe 0:
    Device    Start Block   Dbase      State   Reloc   Hot Spare
    c0t9d0s0         0      No    Last Erred     Yes


Device Relocation Information:
Device Reloc Device ID
c0t9d0 Yes id1,sd@SSEAGATE_ST39173W_SUN9.0GLMD69076000079291K9W


This document provides instructions on how to handle this issue.

This example deals with a soft partition on top of the the one-way mirror to show the behavior of soft partition in such a case. If you have no soft partitions on the one-mirror then simply ignore all commands and outputs of soft partition.

 

Solution

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms