Friday, 11 July 2008

Replacing an SVM disk


root@sun-system:/ # metastat d6
d6: Mirror
Submirror 0: d46
State: Needs maintenance
Submirror 1: d86
State: Okay
Pass: 1
Read option: roundrobin (default)
Write option: parallel (default)
Size: 8395200 blocks (4.0 GB)

d46: Submirror of d6
State: Needs maintenance
Invoke: metareplace d6 c0t2d0s6
Size: 8395200 blocks (4.0 GB)
Stripe 0:
Device Start Block Dbase State Reloc Hot Spare
c0t2d0s6 0 No Maintenance Yes


d86: Submirror of d6
State: Okay
Size: 8395200 blocks (4.0 GB)
Stripe 0:
Device Start Block Dbase State Reloc Hot Spare
c1t2d0s6 0 No Okay Yes


Device Relocation Information:
Device Reloc Device ID
c1t2d0 Yes id1,sd@SFUJITSU_MAT3073N_SUN72G_000529B0909M____AAN0P570909M

root@sun-system:/ # metasync d6
root@sun-system:/ # metareplace -e d6 c0t2d0s6
d6: device c0t2d0s6 is enabled
root@sun-system:/ # metastat d6
d6: Mirror
Submirror 0: d46
State: Resyncing
Submirror 1: d86
State: Okay
Resync in progress: 1 % done
Pass: 1
Read option: roundrobin (default)
Write option: parallel (default)
Size: 8395200 blocks (4.0 GB)

d46: Submirror of d6
State: Resyncing
Size: 8395200 blocks (4.0 GB)
Stripe 0:
Device Start Block Dbase State Reloc Hot Spare
c0t2d0s6 0 No Resyncing Yes


d86: Submirror of d6
State: Okay
Size: 8395200 blocks (4.0 GB)
Stripe 0:
Device Start Block Dbase State Reloc Hot Spare
c1t2d0s6 0 No Okay Yes


Device Relocation Information:
Device Reloc Device ID
c0t2d0 Yes id1,sd@SSEAGATE_ST373207LSUN72G_34311C8E____________3KT11C8E
c1t2d0 Yes id1,sd@SFUJITSU_MAT3073N_SUN72G_000529B0909M____AAN0P570909M

No comments: