- 論壇徽章:
- 0
|
just for reference
Document Audience: SPECTRUM
Document ID: 5970
Title: Solstice DiskSuite[TM] - 'metastat' shows all metadevices as "needs maintenance" after a reboot
Update Date: Mon Apr 11 00:00:00 MDT 2005
Products: Solstice DiskSuite 4.2.1 Software
Technical Areas: LVM (Logical Volume Management)
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Keyword(s) iskSuite, Online DiskSuite, On-Line DiskSuite, SDS, ODS, error, fail, failure, fails, mirror, mirroring
Problem Statement Top
On a system running Solstice DiskSuite[TM], all mirrors show a state of "Needs maintenance" after rebooting the system. This occurs on all mirrors on the system, including the root disk, if that, too, is under DiskSuite control.
The mirrors are able to be turned into an "Okay" state by using the metaclear and metainit commands. However, when the system is rebooted, the mirrors return to a state of "Needs maintenance."
An example of this condition is seen by the metastat command:
# metastat
d0: Mirror
Submirror 0: d10
State: Needs maintenance
Submirror 1: d20
State: Needs maintenance
Pass: 1
Read option: roundrobin (default)
Write option: parallel (default)
Size: 6298425 blocks
d10: Submirror of d0
State: Needs maintenance
Size: 6298425 blocks
Stripe 0:
Device Start Block Dbase State Hot Spare
c0t0d0s0 0 No Okay
d20: Submirror of d0
State: Needs maintenance
Size: 6298614 blocks
Stripe 0:
Device Start Block Dbase State Hot Spare
c1t1d0s0 0 No Okay
Resolution Top
This may be caused by the "metasync -r" command not getting executed when the system boots, or if the system boots up only to single-user mode.
This metasync command is normally executed in one of the startup scripts run at boot time.
For Online: DiskSuite[TM] 1.0, the metasync command is located in the /etc/rc.local script. This entry is placed in that file by the metarc command.
For Solstice DiskSuite versions between 3.x and 4.2, inclusive, the metasync command is located in the /etc/rc2.d/S95SUNWmd.sync file.
For Solstice DiskSuite version 4.2.1 and above, the metasync command is located in the file /etc/rc2.d/S95lvm.sync.
In all cases, because this script is not run until the system transitions into run state 3 (multi-user mode), it is to be expected to have both submirrors in a "Needs maintenance" state until the command is run. I/O to these metadevices works just fine while in this state, so there is no need to worry. |
|