UsMan's WoRkSpAce

Tuesday, December 26, 2006

Proactively replacing boot disk under Solaris Volume Manager (SVM)

Below is the procedure to pro-actively replace alternate mirrored boot disk that has reported errors without SVM detecting it. Disk has not been put in maintenance state by SVM. However 'iostat -En' is reporting a few hard errors.

Assumption: There are five meta slices on the disk, d0, d1, d3, d4 and d6.

1) Detach sub-mirrors from the disk by using metadetach command such as 'metadetach d0 d20'.
2) Delete state database replicas on the disk by using 'metadb -d c1t1d0s7' where c1t1d0s7 is the slice containing meta database. It can be determined by running metadb command without an option.
3) Replace the disk
4) New disk should be partitioned into exactly the same slices as the primary disk by using format command. Select the primary disk and enter 'p' for partition table. Choose 'n' to save partition table and give it a name. Then choose the new alternate disk and press 's' to select the previously saved partition table. New disk will be partitioned. Label the disk by using 'l' in the partition menu.
5) Create state database replicas on the new disk by using 'metadb -afc3 c1t1d0s7'
6) Attach sub-mirrors to the new disk by running 'metattach d0 d20' command and following it up for other sub-mirrors
7) SVM will start syncing of sub-mirrors to the new disk. Verify syncing progress from 'metastat' command. Syncing may take around 15-20 minutes per 1 GB of file system.

0 Comments:

Post a Comment

<< Home