1752603 會員
5443 線上
108788 解決方案
發表新文章

有解嗎

 
watermelonyu
教授

有解嗎

我的vg跨了兩顆disk disk1 and disk2

vg上有兩個lv

lv1 只在disk1上

lv2跨在disk1 and disk2上

當disk2壞掉的時候

1)lv1還能mount 起來嗎,怎mount

2)lv2在disk1上的資料還有辦法救回來嗎

5則回覆 5
watermelonyu
教授

有解嗎

answer 1)



你看一下vgchange的-l和-q n的參數. 然後用lvchange -a y ${lvpath}試著把lvol1帶起來後再mount.



answer 2)

maybe(use dd), 還是要問HP..ccc
watermelonyu
教授

有解嗎

# vgdisplay -v joey

vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c8t0d6":

The specified path does not correspond to physical volume attached to

this volume group

vgdisplay: Warning: couldn't query all of the physical volumes.

--- Volume groups ---

VG Name /dev/joey

VG Write Access read/write

VG Status available

Max LV 255

Cur LV 2

Open LV 2

Max PV 16

Cur PV 2

Act PV 1

Max PE per PV 1016

VGDA 2

PE Size (Mbytes) 4

Total PE 255

Alloc PE 255

Free PE 0

Total PVG 0

Total Spare PVs 0

Total Spare PVs in use 0



vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c8t0d6":

The specified path does not correspond to physical volume attached to

this volume group

vgdisplay: Warning: couldn't query all of the physical volumes.

--- Logical volumes ---

LV Name /dev/joey/joey1

LV Status available/syncd

LV Size (Mbytes) 500

Current LE 125

Allocated PE 125

Used PV 1



vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c8t0d6":

The specified path does not correspond to physical volume attached to

this volume group

vgdisplay: Warning: couldn't query all of the physical volumes.

LV Name /dev/joey/joey2

LV Status available/syncd

LV Size (Mbytes) 1000

Current LE 250

Allocated PE 250

Used PV 1





--- Physical volumes ---

PV Name /dev/dsk/c8t0d5

vgdisplay: Warning: couldn't query physical volume "/dev/dsk
watermelonyu
教授

有解嗎

vg joey include two disk

/dev/dsk/c8t0d5

/dev/dsk/c8t0d6(bad)整個path 都已經不再了

watermelonyu
教授

有解嗎

請問你有實際的範例嗎

因為我已經-q n了,但是在vgchange -a y 的過程還是出現該顆disk 不見

# vgchange -a y -q n -l /dev/joey

vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk/c8t0d6":

A component of the path of the physical volume does not exist.

Activated volume group

Volume group "/dev/joey" has been successfully changed.
watermelonyu
教授

有解嗎

# strings /etc/lvmtab

/dev/vg00

/dev/dsk/c2t0d0s2

/dev/vg01

/dev/dsk/c8t0d3

/dev/vgoradata

CA'P

/dev/dsk/c8t1d0

/dev/joey

/dev/dsk/c8t0d5

/dev/dsk/c8t0d6



Use vgscan -v to recreate /etc/lvmtab.



# strings /etc/lvmtab

/dev/vg00

/dev/dsk/c2t0d0s2

/dev/vg01

/dev/dsk/c8t0d3

/dev/joey

/dev/dsk/c8t0d5

/dev/vgoradata

CA'P

/dev/dsk/c8t1d0

接下來就可以將 /dev/joey/lvol1 mount起來了

但是lvol2我還測不出來可以救回來的方法