Dynamic Relocation of HDD’s in Solaris Volume Manager
===========================================
Let say you have a Solaris 10 box connected to StorEdge S1 Array’s
having boot disks in it as below.
Array 1: Array 2:
c0t0d0 (rootdisk) c1t0d0 (mirrordisk)
c0t1d0 (not in use) c1t1d0 (rootdg)
c0t2d0 (rootdg) c1t2d0 (rootdg)
Now you are doing live-upgrade to Solaris 10 on disk c0t1d0, and
mirroed the disk with c1t0d0 using Solaris Volume Manager. Later
on decided to move that disk to location c0t0d0. Is it possible
without breaking the mirror?
YES, you can do it as Solaris 10 SVM allows HOT Relocation of disk
similar to Veritas Volume Manager.
Run metastat and look for field “Reloc”. If it say Yes, that means
you can relocate the disk.
d17: Submirror of d7
State: Okay
Size: 196437504 blocks (93 GB)
Stripe 0:
Device Start Block Dbase State Reloc Hot Spare
c1t0d0s7 0 No Okay Yes
Device Relocation Information:
Device Reloc Device ID
c0t1d0 Yes id1,sd@n5000c5000781e83f
c1t0d0 Yes id1,sd@n5000c500078208c7
Follow the procedure:
- bring down the machine to ok prompt.
- swap the disk c0t1d0 with c0t0d0.
- boot the system up.
- SVM will update the database automatcally without affecting the
mirror.
- verify the state of mirror using metastat.