본문 바로가기

Work/Solaris

SVM Raid 5

* Raid 5 구성 *


[t:/]metainit d10 -r c1t1d0s0 c1t2d0s0 c1t3d0s0

d10: RAID is setup

  ==> SVM Raid 5 구성 c1t1d0s0 c1t2d0s0 c1t3d0s0 


[t:/]metastat 

d10: RAID

    State: Initializing 

    Initialization in progress:  0.2% done

    Interlace: 32 blocks

    Size: 167720832 blocks (79 GB)

Original device:

    Size: 167740480 blocks (79 GB)

        Device     Start Block  Dbase        State Reloc  Hot Spare

        c1t1d0s0      20682        No Initializing   Yes 

        c1t2d0s0      20682        No Initializing   Yes 

        c1t3d0s0      20682        No Initializing   Yes 


Device Relocation Information:

Device   Reloc  Device ID

c1t1d0   Yes    id1,sd@n5000cca0006d3000

c1t2d0   Yes    id1,sd@n5000cca000743ad4

c1t3d0   Yes    id1,sd@n5000cca0003993c0


[t:/]metastat

d10: RAID

    State: Okay         

    Interlace: 32 blocks

    Size: 167720832 blocks (79 GB)

Original device:

    Size: 167740480 blocks (79 GB)

        Device     Start Block  Dbase        State Reloc  Hot Spare

        c1t1d0s0      20682        No         Okay   Yes 

        c1t2d0s2      20682        No         Okay   Yes 

        c1t3d0s2      20682        No         Okay   Yes 


Device Relocation Information:

Device   Reloc  Device ID

c1t1d0   Yes    id1,sd@n5000cca0006d3000

c1t2d0   Yes    id1,sd@n5000cca000743ad4

c1t3d0   Yes    id1,sd@n5000cca0003993c0

[t:/]metastat

d10: RAID

    State: Okay         

    Interlace: 32 blocks

    Size: 167720832 blocks (79 GB)

Original device:

    Size: 167740480 blocks (79 GB)

        Device     Start Block  Dbase        State Reloc  Hot Spare

        c1t1d0s0      20682        No         Okay   Yes 

        c1t2d0s0      20682        No         Okay   Yes 

        c1t3d0s0      20682        No         Okay   Yes 


Device Relocation Information:

Device   Reloc  Device ID

c1t1d0   Yes    id1,sd@n5000cca0006d3000

c1t2d0   Yes    id1,sd@n5000cca000743ad4

c1t3d0   Yes    id1,sd@n5000cca0003993c0



* 장애 처리 *


d10: RAID
    상태: 관리 필요   
    호출: metareplace d10 c0t1d0s2 <새 장치>
    인터레이스: 32 블록
    크기: 573336192 블록(273 GB)
원래의 장치:
    크기: 573355840 블록(273 GB)
        장치       시작 블록    Dbase         상태 Reloc  핫 스패어
        c0t1d0s0      20682      아니         관리    예
        c0t2d0s0      20682      아니         확인    예
        c0t3d0s0      20682      아니         확인    예 


==> c0t1d0 디스크 장애


1. metadb 삭제

 # metadb

        flags           first blk       block count

     a        u         16              8192             /dev/dsk/c0t1d0s7

     a        u         8208            8192            /dev/dsk/c0t1d0s7

     a        u         16400           8192            /dev/dsk/c0t1d0s7

     a        u         16              8192             /dev/dsk/c0t2d0s7

     a        u         8208            8192            /dev/dsk/c0t2d0s7

     a        u         16400           8192            /dev/dsk/c0t2d0s7

     a        u         16              8192             /dev/dsk/c0t3d0s7

     a        u         8208            8192            /dev/dsk/c0t3d0s7

     a        u         16400           8192            /dev/dsk/c0t3d0s7


 # metadb -d c0t1d0s7 

 # metadb 

        flags           first blk       block count

     a        u         16              8192             /dev/dsk/c0t2d0s7

     a        u         8208            8192            /dev/dsk/c0t2d0s7

     a        u         16400           8192            /dev/dsk/c0t2d0s7

     a        u         16              8192             /dev/dsk/c0t3d0s7

     a        u         8208            8192            /dev/dsk/c0t3d0s7

     a        u         16400           8192            /dev/dsk/c0t3d0s7


2. Disk 교체

 2-1. 디스크 사용 안함 설정

# cfgadm -al
Ap_Id                          Type         Receptacle   Occupant     Condition
c0                             scsi-bus     connected    configured   unknown
c0::dsk/c0t0d0                 disk         connected    configured   unknown
c0::dsk/c0t1d0                 disk         connected    configured   unknown
c0::dsk/c0t2d0                 disk         connected    configured   unknown
c0::dsk/c0t3d0                 disk         connected    configured   unknown


# cfgadm -c unconfigure c0::dsk/c0t1d0


# cfgadm -al
Ap_Id                          Type         Receptacle   Occupant     Condition
c0                             scsi-bus     connected    configured   unknown
c0::dsk/c0t0d0                 disk         connected    configured   unknown
c0::dsk/c0t1d0                 disk         connected    unconfigured unknown
c0::dsk/c0t2d0                 disk         connected    configured   unknown
c0::dsk/c0t3d0                 disk         connected    configured   unknown


2-1. 물리적 디스크 교체 


2-2. 디스크 사용 설정

# cfgam -c configure c0::dsk/c0t1d0

# cfgadm -al | grep c0::dsk/c0t1d0
c0::dsk/c0t1d0                 disk         connected    configured   unknown

# devfsadm


2-2. 슬라이스 정보 일치

# prtvtoc -h /dev/rdsk/c0t2d0s2 | fmthard -s - /dev/rdsk/c0t1d0s2


3. Sync 맞춰주기

# metareplace -e d10 c0t1d0s2
d10: device c0t1d0s2 is enabled


4. Device ID updqte

# metadevadm -u c0t1d0

Updating Solaris Volume Manager device relocation information for c0t2d0
   Old device reloc information:
           id1,sd@SFUJITSU_MAG3182L_SUN18G_xxxxxxx
   New device reloc information:
           id1,sd@SSEAGATE_ST318203LSUN18G_xxxxxxxxxx


** 참고 **

4번의 Device ID update 의 경우

 Fujitsu 장비에서 사용하게 될 것 같다. 

 Fujitsu 장비에서는 /kernel/drv/md.conf 파일을 수정함으로써 devid 를 삭제 해버리는데

 그런 설정 안했을시 metadevadm 명령어 사용 하면 될듯하다.


** 요약 **

1. 구성 

# metainit d10 -r c1t1d0s0 c1t2d0s0 c1t3d0s0


2. 장애 disk 교체

 2-1. metadb 삭제

 # metadb -d c0t0d0s? 

 2-2. 물리적 디스크 교체 

 # cfgadm -c unconfigure Ap_id

 # cfgadm -c configure Ap_id

 2-3. sync 맞춰주기

 # metareplace -e d? c0t0d0s?

 2-4. dev id update 

 # metadevadm -u c0t0d0


'Work > Solaris' 카테고리의 다른 글

solaris package ftp 사이트  (0) 2015.07.08
oracle vm for sparc(ldom)_patch  (0) 2015.07.06
solaris vi editor 에서 한글 깨질때  (0) 2015.06.09
solaris 복구  (0) 2015.06.09
solaris 10 prtdiag 관련 서비스  (0) 2015.06.01