取消
顯示結果 
搜尋替代 
您的意思是: 

How to check disk status on K260?

How to check disk status on K260?

This is HP K260 with HP-UX 10.20. All LVs are set mirror. How could I check any disk failed?



Thanks



Eric
6 回覆

How to check disk status on K260?

Hi Eric :



If any disk fail then the PE will be mark as

stale. So the followings script can help to

check any stale PE. for your reference.



#!/usr/bin/sh

LVS=`vgdisplay -v | grep lvol| awk '{print $3}`



for lv in $LVS

do

echo ========================================

echo checking ths stale PE for $lv

echo ========================================

lvdisplay -v $lv | grep -i stale

echo

done



.

..

How to check disk status on K260?

cd /dev



for i in `ls -d vg*`

> do

> echo $i

> lvdisplay -v /dev/$i/lvol*|grep stale

> done



How to check disk status on K260?

root@hp1:/dev#for i in `ls -d vg*`

> do

> echo $i

> lvdisplay -v /dev/$i/lvol*|grep stale

> done



vg00

vg01

vg03

lvdisplay: 無法查詢邏輯容體 "/dev/vg03/lvol1":

容體群組尚未啟動.



lvdisplay: 無法顯示邏輯容體 "/dev/vg03/lvol1".

vg04

vg05

vg06

==============================

lvdisplay: 無法查詢邏輯容體 "/dev/vg03/lvol1":

容體群組尚未啟動.

這是什麼意思?







How to check disk status on K260?

如果你的環境是有MC/SG的, 是否在另一個NODE, VG03,VG04,VG05,VG06是被ACTIVATE的. 注意,

不能兩個node同時activate共用vg, 否則會造成

filesystem異常



you can try

vgchange -a r /dev/vg03 # enable your vg03 in read only mode.

How to check disk status on K260?

只有一個 node, 並沒有 MC/SG

How to check disk status on K260?

then use, vgchange -a y /dev/vg03