HP-UX

RAID에 관련 DISK문제

 
한종관
기여자

RAID에 관련 DISK문제

시스템에 현재 상태로 구성이 되어 있는데



vg05에 보면 /dev/dsk/c4t13d0 의 PV Status 가 unavailable



되어 있는데 lvoldisplya 의 미러내용엔 current라 나오는데



뭐가 문제 일까요 그리고 현재 상태를 보면



/dev/dsk/c4t12d0과 /dev/dsk/c5t12d0 이 미러되있고

이서서 /dev/dsk/c4t13d0 과 /dev/dsk/c5t13d0 이 미러되있는 상태입니다.



4개가 vg05/lovl1에 묶여 있는데

문제는 이것이 미러링만 되있는건지

lvdisplay 상에서는 미러링만 되있는걸로 보이는데

단순 vgextend 인지 아니면 스트라이핑이 되있는지

되있다면 어떻게 디스크를 교체 해야 하는지 알고 싶습니다.

#strings /etc/lvmtab으로 보면 이순서대로 보입니다.

/dev/dsk/c4t12d0

/dev/dsk/c4t13d0

/dev/dsk/c5t13d0

/dev/dsk/c5t12d0









rp5470b:root> strings /etc/lvmtab

/dev/vg00

c-qF

/dev/dsk/c1t2d0

/dev/dsk/c2t2d0

/dev/vg01

/dev/dsk/c4t0d0

/dev/dsk/c4t1d0

/dev/dsk/c5t0d0

/dev/dsk/c5t1d0

/dev/vg02

/dev/dsk/c5t2d0

/dev/dsk/c4t2d0

/dev/dsk/c4t3d0

/dev/dsk/c5t3d0

/dev/vg04

c-qF

/dev/dsk/c2t0d0

/dev/vg05

c-qF&m7

/dev/dsk/c4t12d0

/dev/dsk/c4t13d0

/dev/dsk/c5t13d0

/dev/dsk/c5t12d0

/dev/vg03

F&j

/dev/dsk/c4t11d0

/dev/dsk/c5t10d0

/dev/dsk/c5t11d0

/dev/dsk/c4t10d0

rp5470b:root> vgdisplay -v vg05

--- Volume groups ---

VG Name /dev/vg05

VG Write Access read/write

VG Status available, exclusive

Max LV 255

Cur LV 1

Open LV 1

Max PV 16

Cur PV 4

Act PV 4

Max PE per PV 4375

VGDA 8

PE Size (Mbytes) 32

Total PE 17496

Alloc PE 17496

Free PE 0

Total PVG 0

Total Spare PVs 0

Total Spare PVs in use 0



--- Logical volumes ---

LV Name /dev/vg05/lvol1

LV Status available/syncd

LV Size (Mbytes) 279936

Current LE 8748

Allocated PE 17496

Used PV 4





--- Physical volumes ---

PV Name /dev/dsk/c4t12d0

PV Status available

Total PE 4374

Free PE 0

Autoswitch On



PV Name /dev/dsk/c4t13d0

PV Status ====>> unavailable

Total PE 4374

Free PE 0

Autoswitch On



PV Name /dev/dsk/c5t13d0

PV Status available

Total PE 4374

Free PE 0

Autoswitch On



PV Name /dev/dsk/c5t12d0

PV Status available

Total PE 4374

Free PE 0

Autoswitch On





rp5470b:root> cd /etc

rp5470b:root> ls lvm*

lvmmigrate lvmrc lvmtab



lvmconf:

lvm_lock vg00.mapfile vg01.mapfile vg02.mapfile vg04.conf.old vg05.conf.old

vg00.conf vg01.conf vg02.conf vg03.mapfile vg04.mapfile vg05.mapfile

vg00.conf.old vg01.conf.old vg02.conf.old vg04.conf vg05.conf



rp5470b:root> lvdisplay -v /dev/vg05/lvol1 |more

--- Logical volumes ---

LV Name /dev/vg05/lvol1

VG Name /dev/vg05

LV Permission read/write

LV Status available/syncd

Mirror copies 1

Consistency Recovery MWC

Schedule parallel

LV Size (Mbytes) 279936

Current LE 8748

Allocated PE 17496

Stripes 0

Stripe Size (Kbytes) 0

Bad block on

Allocation strict

IO Timeout (Seconds) default



--- Distribution of logical volume ---

PV Name LE on PV PE on PV

/dev/dsk/c4t12d0 4374 4374

/dev/dsk/c4t13d0 4374 4374

/dev/dsk/c5t13d0 4374 4374

/dev/dsk/c5t12d0 4374 4374



--- Logical extents ---

LE PV1 PE1 Status 1 PV2 PE2 Status 2

00000 /dev/dsk/c4t12d0 00000 current /dev/dsk/c5t12d0 00000 current

00001 /dev/dsk/c4t12d0 00001 current /dev/dsk/c5t12d0 00001 current

00002 /dev/dsk/c4t12d0 00002 current /dev/dsk/c5t12d0 00002 current

00003 /dev/dsk/c4t12d0 00003 current /dev/dsk/c5t12d0 00003 current

00004 /dev/dsk/c4t12d0 00004 current /dev/dsk/c5t12d0 00004 current

00005 /dev/dsk/c4t12d0 00005 current /dev/dsk/c5t12d0 00005 current

00006 /dev/dsk/c4t12d0 00006 current /dev/dsk/c5t12d0 00006 current

00007 /dev/dsk/c4t12d0 00007 current /dev/dsk/c5t12d0 00007 current

00602 /dev/dsk/c4t12d0 00602 current /dev/dsk/c5t12d0 00602 current

00603 /dev/dsk/c4t12d0 00603 current /dev/dsk/c5t12d0 00603 current

00604 /dev/dsk/c4t12d0 00604 current /dev/dsk/c5t12d0 00604 current

00605 /dev/dsk/c4t12d0 00605 current /dev/dsk/c5t12d0 00605 current

00606 /dev/dsk/c4t12d0 00606 current /dev/dsk/c5t12d0 00606 current

00607 /dev/dsk/c4t12d0 00607 current /dev/dsk/c5t12d0 00607 current

00670 /dev/dsk/c4t12d0 00670 current /dev/dsk/c5t12d0 00670 current

00671 /dev/dsk/c4t12d0 00671 current /dev/dsk/c5t12d0 00671 current

00672 /dev/dsk/c4t12d0 00672 current /dev/dsk/c5t12d0 00672 current

00673 /dev/dsk/c4t12d0 00673 current /dev/dsk/c5t12d0 00673 current

00674 /dev/dsk/c4t12d0 00674 current /dev/dsk/c5t12d0 00674 current

00675 /dev/dsk/c4t12d0 00675 current /dev/dsk/c5t12d0 00675 current

00676 /dev/dsk/c4t12d0 00676 current /dev/dsk/c5t12d0 00676 current

00677 /dev/dsk/c4t12d0 00677 current /dev/dsk/c5t12d0 00677 current

00678 /dev/dsk/c4t12d0 00678 current /dev/dsk/c5t12d0 00678 current

00679 /dev/dsk/c4t12d0 00679 current /dev/dsk/c5t12d0 00679 current

00680 /dev/dsk/c4t12d0 00680 current /dev/dsk/c5t12d0 00680 current

00681 /dev/dsk/c4t12d0 00681 current /dev/dsk/c5t12d0 00681 current

00730 /dev/dsk/c4t12d0 00730 current /dev/dsk/c5t12d0 00730 current

00731 /dev/dsk/c4t12d0 00731 current /dev/dsk/c5t12d0 00731 current

00732 /dev/dsk/c4t12d0 00732 current /dev/dsk/c5t12d0 00732 current

00733 /dev/dsk/c4t12d0 00733 current /dev/dsk/c5t12d0 00733 current

00734 /dev/dsk/c4t12d0 00734 current /dev/dsk/c5t12d0 00734 current

00735 /dev/dsk/c4t12d0 00735 current /dev/dsk/c5t12d0 00735 current

00736 /dev/dsk/c4t12d0 00736 current /dev/dsk/c5t12d0 00736 current

00737 /dev/dsk/c4t12d0 00737 current /dev/dsk/c5t12d0 00737 current

.

.

.

.

08734 /dev/dsk/c4t13d0 04360 current /dev/dsk/c5t13d0 04360 current

08735 /dev/dsk/c4t13d0 04361 current /dev/dsk/c5t13d0 04361 current

08736 /dev/dsk/c4t13d0 04362 current /dev/dsk/c5t13d0 04362 current

08737 /dev/dsk/c4t13d0 04363 current /dev/dsk/c5t13d0 04363 current

08738 /dev/dsk/c4t13d0 04364 current /dev/dsk/c5t13d0 04364 current

08739 /dev/dsk/c4t13d0 04365 current /dev/dsk/c5t13d0 04365 current

08740 /dev/dsk/c4t13d0 04366 current /dev/dsk/c5t13d0 04366 current

08741 /dev/dsk/c4t13d0 04367 current /dev/dsk/c5t13d0 04367 current

08742 /dev/dsk/c4t13d0 04368 current /dev/dsk/c5t13d0 04368 current

08743 /dev/dsk/c4t13d0 04369 current /dev/dsk/c5t13d0 04369 current

08744 /dev/dsk/c4t13d0 04370 current /dev/dsk/c5t13d0 04370 current

08745 /dev/dsk/c4t13d0 04371 current /dev/dsk/c5t13d0 04371 current

08746 /dev/dsk/c4t13d0 04372 current /dev/dsk/c5t13d0 04372 current

08747 /dev/dsk/c4t13d0 04373 current /dev/dsk/c5t13d0 04373 current





rp5470b:root>

rp5470b:root>

rp5470b:root> vgdisplay -v vg05

--- Volume groups ---

VG Name /dev/vg05

VG Write Access read/write

VG Status available, exclusive

Max LV 255

Cur LV 1

Open LV 1

Max PV 16

Cur PV 4

Act PV 4

Max PE per PV 4375

VGDA 8

PE Size (Mbytes) 32

Total PE 17496

Alloc PE 17496

Free PE 0

Total PVG 0

Total Spare PVs 0

Total Spare PVs in use 0



--- Logical volumes ---

LV Name /dev/vg05/lvol1

LV Status available/syncd

LV Size (Mbytes) 279936

Current LE 8748

Allocated PE 17496

Used PV 4





--- Physical volumes ---

PV Name /dev/dsk/c4t12d0

PV Status available

Total PE 4374

Free PE 0

Autoswitch On



PV Name /dev/dsk/c4t13d0

PV Status unavailable

Total PE 4374

Free PE 0

Autoswitch On



PV Name /dev/dsk/c5t13d0

PV Status available

Total PE 4374

Free PE 0

Autoswitch On



PV Name /dev/dsk/c5t12d0

PV Status available

Total PE 4374

Free PE 0

Autoswitch On



그런데 의문점은 pv status가 unavailable인데 current라는 것입니다.



















2 응답 2
고재진
중학생

RAID에 관련 DISK문제

안녕하세요.



구성이 참 이상하네요.

스토리지 인것 같은데 거기서 또 lvol 미러를 걸었다는게 ^^~





확인해야 될 부분이 있습니다.

1. vg에서 exclusive 로 보이는데 클러스터 구성되어있는지



2. lvol은 stripe 구성은 아닙니다. 디스크가 의심되면 교체하시면 될듯합니다.



3. 현재 디스크의 ioscan -fnCdisk 값이 궁금합니다.



4. pvdisplay /dev/dsk/c4t13d0 값도 궁금합니다.



5. 현재 시스템 os-version 과 패치가 어느정도 되어있는지 도 필요할듯 싶네요.



6. 디스크 관련에러로그도 있는지 확인해야 됩니다.



명령어로 디스크를 unavailable 할 수 있기 때문에 이걸 임의 명령어로 했을수도 있거든요..^^

단지 stale 이 안나오는게 의심이 되긴한데요.



pvchange -a n diskpath

pvchange -a y diskpath



이런식으로 가능하긴한데 다른 정보가 더 필요합니다.

그럼.
서보인
유치원

RAID에 관련 DISK문제

안녕하세요...

시스템의 기본적인 정보를 너무 안주셨네요...ㅎㅎ



rp5470 이면...L3000 인데...

일단 보기에 외장 array 인것 같은데...미러를 걸었다고 하니..

ds2405 인가? ㅎㅎ 알수가 없군요...



암튼...

pv status 는 pcchange 명령어로 변경가능하니까...

unavailable은 별로 신경쓸만한 것은 아니구요...

stale 은 안떨어졌으니 disk 장애로 판별하기에는 무리가 있습니다.



뭐...패치문제 일수도 있구요..

일단 올려주신것만 보아서는 disk 장애는 아니라고 판명됩니다.



Good luck~