How to replace disk on SVM Solaris

Minggu, Januari 29, 20170 komentar

This is the step how to replace disk failed on SVM solaris server. I dont know why all of solaris server use OS raid configuration that can make engineer thinking twice to do that. Why they dont do just like HP with their RedHat raid by HW.

But, it's ok. This is the step.

root@awan # metastat -c
d40              m   10GB d41 (maint) d42
    d41          s   10GB c1t1d0s4 (maint)
    d42          s   10GB c1t0d0s4
d30              m   20GB d31 (maint) d32
    d31          s   20GB c1t1d0s3 (maint)
    d32          s   20GB c1t0d0s3
d20              m   61GB d21 d22
    d21          s   61GB c1t1d0s1
    d22          s   61GB c1t0d0s1
d10              m   15GB d11 (maint) d12
    d11          s   15GB c1t1d0s0 (maint)
    d12          s   15GB c1t0d0s0
d50              m   30GB d51 (maint) d52
    d51          s   30GB c1t1d0s5 (maint)
    d52          s   30GB c1t0d0s5

step 1 :

Detach The disk.

root@awan #metadetach -f d40 d41
root@awan #metadetach -f d30 d31
root@awan #metadetach -f d20 d21
root@awan #metadetach -f d10 d11
root@awan #metadetach -f d50 d51

Delete the metadb

root@awan #metadb -d c1t1d0s7

Unconfigure the disk

root@awan #cfgadm -al
root@awan #cfgadm -c unconfigure c1::dsk/c1t1d0

Do the replacement..

root@awan #replace disk then insert new disk
root@awan #cfgadm -c configure cX::dsk/c1t1d0 ( some case the disk is autoconfigured, so you dont need to do this command)
root@awan #cfgadm -al
root@awan #format

Please make label the new disk

root@awan # metaclear d11
d11: Concat/Stripe is cleared
root@awan # metaclear d21
d21: Concat/Stripe is cleared
root@awan # metaclear d31
d31: Concat/Stripe is cleared
root@awan # metaclear d41
d41: Concat/Stripe is cleared
root@awan # metaclear d51
d51: Concat/Stripe is cleared

root@awan #prtvtoc /dev/rdsk/c1t0d0s2 | fmthard -s - /dev/rdsk/c1t1d0s2
root@awan #metadb -a -c3 c1t1d0s7

root@awan #metainit -f d41 1 1 c1t1d0s4
root@awan #metainit -f d31 1 1 c1t1d0s3
root@awan #metainit -f d21 1 1 c1t1d0s1
root@awan #metainit -f d11 1 1 c1t1d0s0
root@awan #metainit -f d51 1 1 c1t1d0s5

root@awan # metattach d40 d41
d40: submirror d41 is attached
root@awan # metattach d30 d31
d30: submirror d31 is attached
root@awan # metattach d20 d21
d20: submirror d21 is attached
root@awan # metattach d10 d11
d10: submirror d11 is attached
root@awan # metattach d50 d51
d50: submirror d51 is attached
Share this article :
Support : Awan Argoho San Storage Solution
Copyright © 2011. Welcome To Awan Argoho's Website - All Rights Reserved
Email | Whatsapp | 08111929925
Proudly powered by Blogger