|
|||
1. Getting Started With Solaris Volume Manager 2. Storage Management Concepts 3. Solaris Volume Manager Overview 4. Solaris Volume Manager for Sun Cluster (Overview) 5. Configuring and Using Solaris Volume Manager (Scenario) 8. RAID-0 (Stripe and Concatenation) Volumes (Overview) 9. RAID-0 (Stripe and Concatenation) Volumes (Tasks) 10. RAID-1 (Mirror) Volumes (Overview) 11. RAID-1 (Mirror) Volumes (Tasks) How to Create a RAID-1 Volume From Unused Slices How to Create a RAID-1 Volume From a File System SPARC: How to Create a RAID-1 Volume From the root (/) File System x86: How to Create a RAID-1 Volume From the root (/) File System How to Place a Submirror Offline and Online How to Enable a Slice in a Submirror How to View the Status of Mirrors and Submirrors How to Change RAID-1 Volume Options How to Cancel a Volume Resynchronization Process How to Resume a Volume Resynchronization Process Removing RAID-1 Volumes (Unmirroring) How to Unmirror a File System That Cannot Be Unmounted Backing Up Data on a RAID-1 Volume How to Perform an Online Backup of a RAID-1 Volume 12. Soft Partitions (Overview) 16. Hot Spare Pools (Overview) 20. Maintaining Solaris Volume Manager (Tasks) 21. Best Practices for Solaris Volume Manager 22. Top-Down Volume Creation (Overview) 23. Top-Down Volume Creation (Tasks) 24. Monitoring and Error Reporting (Tasks) 25. Troubleshooting Solaris Volume Manager (Tasks) A. Important Solaris Volume Manager Files B. Solaris Volume Manager Quick Reference |
Responding to RAID-1 Volume Component FailuresHow to Replace a Slice in a SubmirrorBefore You BeginRead Overview of Replacing and Enabling Components in RAID-1 and RAID-5 Volumes and Creating and Maintaining RAID-1 Volumes.
The following example illustrates how to replace a failed slice when the system is not configured to use hot spare pools for the automatic replacement of failed disks. See Chapter 16, Hot Spare Pools (Overview) for more information about using hot spare pools. # metastat d6 d6: Mirror Submirror 0: d16 State: Okay Submirror 1: d26 State: Needs maintenance ... d26: Submirror of d6 State: Needs maintenance Invoke: metareplace d6 c0t2d0s2 <new device> ... # metareplace d6 c0t2d0s2 c0t2d2s2 d6: device c0t2d0s2 is replaced with c0t2d2s2 The metastat command confirms that mirror d6 has a submirror, d26, with a slice in the “Needs maintenance” state. The metareplace command replaces the slice as specified in the “Invoke” line of the metastat output with another available slice on the system. The system confirms that the slice is replaced, and starts resynchronizing the submirror. How to Replace a SubmirrorBefore You BeginRead Overview of Replacing and Enabling Components in RAID-1 and RAID-5 Volumes and Creating and Maintaining RAID-1 Volumes.
The following example illustrates how to replace a submirror in an active mirror. # metastat d20 d20: Mirror Submirror 0: d21 State: Okay Submirror 1: d22 State: Needs maintenance ... # metadetach -f d20 d22 d20: submirror d22 is detached # metaclear -f d22 d22: Concat/Stripe is cleared # metainit d22 2 1 c1t0d0s2 1 c1t0d1s2 d22: Concat/Stripe is setup # metattach d20 d22 d20: components are attached In this example, the metastat command confirms that the two-way mirror, d20, has a submirror, d22, in the “Needs maintenance” state. In this case, the entire submirror needs to be cleared and recreated. The metadetach command detaches the failed submirror from the mirror by using the -f option, which forces the detachment to occur. The metaclear command clears the submirror. The metainit command recreates submirror, d22, with new slices. Finally, the metattach command attaches the rebuilt submirror. A mirror resynchronization begins automatically. The specific configuration of the new volume, d22, depends on the component you are replacing. A concatenation, as shown here, can sufficiently replace a concatenation. However, a concatenation would not be an ideal replacement for a stripe because it could impact performance. You temporarily lose the capability for data redundancy while the mirror is a one-way mirror. |
||
|