- 2.1 ZFS Pool Concepts
- 2.2 Creating a Dynamic Stripe
- 2.3 Creating a Pool with Mirrored Devices
- 2.4 Creating a Pool with RAID-Z Devices
- 2.5 Creating a Spare in a Storage Pool
- 2.6 Adding a Spare Vdev to a Second Storage Pool
- 2.7 Replacing Bad Devices Automatically
- 2.8 Locating Disks for Replacement
- 2.9 Example of a Misconfigured Pool
2.8 Locating Disks for Replacement
Locating the correct disk for replacement is crucial. If the wrong disk is replaced, it could corrupt the whole ZFS pool. There is a simple process for locating a disk in an array using the format command. This technique works best when the disks are relatively quiet and have disk-access LEDs that can be seen while in operation.
If the disk is still accessible to Solaris, follow these steps:
- Start the format command, and select the disk you want to locate by selecting the number before the drive.
- Type analyze , and hit the Enter/Return key.
- Select read test by typing read , and then hit Enter/Return.
- Look at the array, and find the disk LED with constant access.
- Once the disk is located, stop the read test by pressing Ctrl+C.
- To exit the format utility, type quit and hit Return, and then type quit and hit Return again.
- Replace the disk according to manufacturer's instructions.
If the damaged disk is not seen by format, try to light up the LEDs of the disks above and below the target number of the damaged disk. For example, if you were looking to find c5t6d0 and it was not seen by the format command, you would first locate c5t5d0 by using the format read test and then locate c5t7d0 by using the same method. The drive in between should be c5t6d0.