질문&답변
클라우드/리눅스에 관한 질문과 답변을 주고 받는 곳입니다.
리눅스 분류

리눅스 LVM

작성자 정보

  • 김동건 작성
  • 작성일

컨텐츠 정보

본문

안녕하십니까

얼마전에 제가 LVM으로 삼바서버를 사용하고 있었는데요, (하드 2개) 하나의 하드가 고장나서 나머지 다른 하나에 들어있던 자료만이라도 복구할수 없을까 하고 방법을 찾고 있습니다.
volumngroup을 스캔을 하고 vgchange를 하면 아래와 같이 에러가 납니다.
그래서 mount도 안되네요.
복구할 수 있는 방법이 없을까요?
부탁드립니다.

[root@localhost ~]# vgscan
Reading all physical volumes. This may take a while...
/dev/mapper/VolGroup00-LogVol03-missing_0_0: read failed after 0 of 4096 at 320042106880: Input/output error
/dev/mapper/VolGroup00-LogVol03-missing_0_0: read failed after 0 of 4096 at 320042164224: Input/output error
/dev/mapper/VolGroup00-LogVol03-missing_0_0: read failed after 0 of 4096 at 0: Input/output error
/dev/mapper/VolGroup00-LogVol03-missing_0_0: read failed after 0 of 4096 at 4096: Input/output error
/dev/mapper/VolGroup00-LogVol03-missing_0_0: read failed after 0 of 4096 at 0: Input/output error
/dev/VolGroup00/LogVol03: read failed after 0 of 4096 at 0: Input/output error
/dev/VolGroup00/LogVol03: read failed after 0 of 4096 at 4096: Input/output error
/dev/VolGroup00/LogVol03: read failed after 0 of 4096 at 0: Input/output error
/dev/mapper/VolGroup00-LogVol03-missing_0_0: read failed after 0 of 4096 at 0: Input/output error
/dev/VolGroup00/LogVol03: read failed after 0 of 4096 at 0: Input/output error
Couldn't find device with uuid 'k4MJFb-oda2-U26e-CH1H-l2Ft-JPEO-EtIPN6'.
Found volume group "VolGroup00" using metadata type lvm2


vgchange -ay VolGroup00
/dev/mapper/VolGroup00-LogVol03-missing_0_0: read failed after 0 of 4096 at 0: Input/output error
/dev/VolGroup00/LogVol03: read failed after 0 of 4096 at 0: Input/output error
/dev/mapper/VolGroup00-LogVol03-missing_0_0: read failed after 0 of 4096 at 320042106880: Input/output error
/dev/mapper/VolGroup00-LogVol03-missing_0_0: read failed after 0 of 4096 at 320042164224: Input/output error
/dev/mapper/VolGroup00-LogVol03-missing_0_0: read failed after 0 of 4096 at 0: Input/output error
/dev/mapper/VolGroup00-LogVol03-missing_0_0: read failed after 0 of 4096 at 4096: Input/output error
/dev/mapper/VolGroup00-LogVol03-missing_0_0: read failed after 0 of 4096 at 0: Input/output error
/dev/VolGroup00/LogVol03: read failed after 0 of 4096 at 0: Input/output error
/dev/VolGroup00/LogVol03: read failed after 0 of 4096 at 4096: Input/output error
/dev/VolGroup00/LogVol03: read failed after 0 of 4096 at 0: Input/output error
Couldn't find device with uuid 'k4MJFb-oda2-U26e-CH1H-l2Ft-JPEO-EtIPN6'.
/dev/mapper/VolGroup00-LogVol03-missing_0_0: read failed after 0 of 4096 at 0: Input/output error
/dev/VolGroup00/LogVol03: read failed after 0 of 4096 at 0: Input/output error
Couldn't find device with uuid 'k4MJFb-oda2-U26e-CH1H-l2Ft-JPEO-EtIPN6'.
/dev/mapper/VolGroup00-LogVol03-missing_0_0: read failed after 0 of 4096 at 0: Input/output error
/dev/VolGroup00/LogVol03: read failed after 0 of 4096 at 0: Input/output error
Couldn't find device with uuid 'k4MJFb-oda2-U26e-CH1H-l2Ft-JPEO-EtIPN6'.
/dev/mapper/VolGroup00-LogVol03-missing_0_0: read failed after 0 of 4096 at 0: Input/output error
/dev/VolGroup00/LogVol03: read failed after 0 of 4096 at 0: Input/output error
Couldn't find device with uuid 'k4MJFb-oda2-U26e-CH1H-l2Ft-JPEO-EtIPN6'.
Refusing activation of partial LV LogVol03. Use --partial to override.
3 logical volume(s) in volume group "VolGroup00" now active

[root@localhost ~]# mount /dev/VolGroup00/LogVol03 /mnt/fcroot
mount: you must specify the filesystem type

참고로 vg01, vg02, vg03이 있고요 01,02는 용량이 작아 모두 이 하드안에 있어서 문제가 없는데 vg03이 다른 하드와 연결되어 있어서 복구가 active는 되는데 mount가 안되네요.

lvdisplay 결과는 다음과 같습니다.
[root@localhost ~]# lvdisplay
/dev/mapper/VolGroup00-LogVol03-missing_0_0: read failed after 0 of 4096 at 0: Input/output error
/dev/VolGroup00/LogVol03: read failed after 0 of 4096 at 0: Input/output error
/dev/mapper/VolGroup00-LogVol03-missing_0_0: read failed after 0 of 4096 at 320042106880: Input/output error
/dev/mapper/VolGroup00-LogVol03-missing_0_0: read failed after 0 of 4096 at 320042164224: Input/output error
/dev/mapper/VolGroup00-LogVol03-missing_0_0: read failed after 0 of 4096 at 0: Input/output error
/dev/mapper/VolGroup00-LogVol03-missing_0_0: read failed after 0 of 4096 at 4096: Input/output error
/dev/mapper/VolGroup00-LogVol03-missing_0_0: read failed after 0 of 4096 at 0: Input/output error
/dev/VolGroup00/LogVol03: read failed after 0 of 4096 at 0: Input/output error
/dev/VolGroup00/LogVol03: read failed after 0 of 4096 at 4096: Input/output error
/dev/VolGroup00/LogVol03: read failed after 0 of 4096 at 0: Input/output error
Couldn't find device with uuid 'k4MJFb-oda2-U26e-CH1H-l2Ft-JPEO-EtIPN6'.
--- Logical volume ---
LV Name /dev/VolGroup00/LogVol00
VG Name VolGroup00
LV UUID rK3g04-DoVQ-zD0J-Bo0y-bhwu-YF0Z-klouGv
LV Write Access read/write
LV Status available
# open 0
LV Size 10.00 GB
Current LE 320
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:0

--- Logical volume ---
LV Name /dev/VolGroup00/LogVol01
VG Name VolGroup00
LV UUID 24OPJZ-bTd0-yNau-A2HQ-VZwE-ulP7-iC1XcV
LV Write Access read/write
LV Status available
# open 0
LV Size 1.00 GB
Current LE 32
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:1

--- Logical volume ---
LV Name /dev/VolGroup00/LogVol03
VG Name VolGroup00
LV UUID kjtvcF-dFfY-UJju-gjIP-xOR1-3hSl-Pa9VYU
LV Write Access read/write
LV Status available
# open 0
LV Size 398.00 GB
Current LE 12736
Segments 2
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:3

도와주세요~~

관련자료

댓글 0
등록된 댓글이 없습니다.

공지사항


뉴스광장


  • 현재 회원수 :  60,133 명
  • 현재 강좌수 :  36,172 개
  • 현재 접속자 :  297 명