CentOS 5.11에서 yum 업데이트 후 볼륨 그룹에 모든 볼륨을 마운트할 수 없는 문제가 발생했습니다.
장치 매퍼가 1.02.24-1에서 1.02.67-2로 업그레이드되었습니다.
머신은 /로 마운트된 /dev/mapper/VolGroup00-LogVol00에서 올바르게 부팅되지만 /dev/mapper/vg_data에 모든 볼륨 마운트를 거부합니다.
/var/log/messages의 오류는 [...]
kernel: device-mapper: multipath: version 1.0.6 loaded
kernel: device-mapper: table: 253:2: mirror: Device lookup failure
kernel: device-mapper: ioctl: error adding target to table
kernel: device-mapper: ioctl: device doesn't appear to be in the dev hash table.
kernel: device-mapper: table: device /dev/mapper/lsi_ccfafeaadcb too small for target
kernel: device-mapper: table: 253:6: linear: dm-linear: Device lookup failed
kernel: device-mapper: ioctl: error adding target to table
kernel: device-mapper: table: 253:6: linear: dm-linear: Device lookup failed
kernel: device-mapper: ioctl: error adding target to table
[...]
lv 노드는 시작 시 존재하지 않지만 다음 명령을 사용하여 생성할 수 있습니다.
vgscan --mknodes
다음과 같은 이유로 볼륨 그룹 활성화 시도가 실패합니다.
[root@www ~]# vgchange -ay vg_data
Found duplicate PV WquAN3yEQuOqUhNhTbrawTqp3YoFxp32: using /dev/hdc2 not /dev/hda2
device-mapper: reload ioctl failed: Invalid argument
device-mapper: reload ioctl failed: Invalid argument
device-mapper: reload ioctl failed: Invalid argument
device-mapper: reload ioctl failed: Invalid argument
device-mapper: reload ioctl failed: Invalid argument
device-mapper: reload ioctl failed: Invalid argument
device-mapper: reload ioctl failed: Invalid argument
device-mapper: reload ioctl failed: Invalid argument
device-mapper: reload ioctl failed: Invalid argument
device-mapper: reload ioctl failed: Invalid argument
device-mapper: reload ioctl failed: Invalid argument
그런데 이상한 기분이 드는 건
[root@www ~]# pvs
Found duplicate PV WquAN3yEQuOqUhNhTbrawTqp3YoFxp32: using /dev/hdc2 not /dev/hda2
PV VG Fmt Attr PSize PFree
/dev/hdc2 VolGroup00 lvm2 a-- 74.41G 0
/dev/hdd4 vg_data lvm2 a-- 60.95G 19.95G
[root@www ~]# vgs
Found duplicate PV WquAN3yEQuOqUhNhTbrawTqp3YoFxp32: using /dev/hdc2 not /dev/hda2
VG #PV #LV #SN Attr VSize VFree
VolGroup00 1 2 0 wz--n- 74.41G 0
vg_data 1 11 0 wz--n- 60.95G 19.95G
[root@www ~]# lvs
Found duplicate PV WquAN3yEQuOqUhNhTbrawTqp3YoFxp32: using /dev/hdc2 not /dev/hda2
LV VG Attr LSize Origin Snap% Move Log Copy% Convert
LogVol00 VolGroup00 -wi-ao 72.47G
LogVol01 VolGroup00 -wi-ao 1.94G
lv_ftp vg_data -wi-d- 3.00G
lv_ftpAIRONE vg_data -wi-d- 5.00G
lv_ftpAZI vg_data -wi-d- 5.00G
lv_ftpBAX vg_data -wi-d- 3.00G
lv_ftpBER vg_data -wi-d- 3.00G
lv_ftpBERPCMC vg_data -wi-d- 3.00G
lv_ftpBERTEX vg_data -wi-d- 3.00G
lv_ftpPAST vg_data -wi-d- 3.00G
lv_ftpROC vg_data -wi-d- 3.00G
lv_ftpTEA vg_data -wi-d- 5.00G
lv_ftpWURTH vg_data -wi-d- 5.00G
[root@www ~]# lvscan
Found duplicate PV WquAN3yEQuOqUhNhTbrawTqp3YoFxp32: using /dev/hdc2 not /dev/hda2
ACTIVE '/dev/vg_data/lv_ftp' [3.00 GB] inherit
ACTIVE '/dev/vg_data/lv_ftpTEA' [5.00 GB] inherit
ACTIVE '/dev/vg_data/lv_ftpBAX' [3.00 GB] inherit
ACTIVE '/dev/vg_data/lv_ftpROC' [3.00 GB] inherit
ACTIVE '/dev/vg_data/lv_ftpBER' [3.00 GB] inherit
ACTIVE '/dev/vg_data/lv_ftpAZI' [5.00 GB] inherit
ACTIVE '/dev/vg_data/lv_ftpBERPCMC' [3.00 GB] inherit
ACTIVE '/dev/vg_data/lv_ftpBERTEX' [3.00 GB] inherit
ACTIVE '/dev/vg_data/lv_ftpWURTH' [5.00 GB] inherit
ACTIVE '/dev/vg_data/lv_ftpAIRONE' [5.00 GB] inherit
ACTIVE '/dev/vg_data/lv_ftpPAST' [3.00 GB] inherit
ACTIVE '/dev/VolGroup00/LogVol00' [72.47 GB] inherit
ACTIVE '/dev/VolGroup00/LogVol01' [1.94 GB] inherit
이
[root@www ~]# dmsetup table
lsi_ccfafeaadcb: 0 240121727 linear 22:64 0
vg_data-lv_ftpBERPCMC:
vg_data-lv_ftpROC:
vg_data-lv_ftpAZI:
vg_data-lv_ftpBAX:
vg_data-lv_ftpBER:
vg_data-lv_ftpPAST:
vg_data-lv_ftpBERTEX:
vg_data-lv_ftpWURTH:
vg_data-lv_ftpTEA:
VolGroup00-LogVol01: 0 4063232 linear 22:2 151978368
lsi_ccfafeaadcbp3: 0 108004176 linear 253:2 4300128
VolGroup00-LogVol00: 0 151977984 linear 22:2 384
lsi_ccfafeaadcbp2: 0 4095504 linear 253:2 204624
lsi_ccfafeaadcbp1: 0 204561 linear 253:2 63
vg_data-lv_ftpAIRONE:
vg_data-lv_ftp:
[root@www ~]# dmsetup info vg_data-lv_ftp
Name: vg_data-lv_ftp
State: ACTIVE
Read Ahead: 256
Tables present: None
Open count: 0
Event number: 0
Major, minor: 253, 6
Number of targets: 0
UUID: LVM-Sca5tWOe0K5PirphI5mojzGxfMoA3HuJZimNY8LgZcH0afeMWrOoTE3AI1jyunJn
따라서 모든 vg_data 볼륨에는 dmsetup에 테이블이 없습니다. 모든 데이터가 거기에 있고 테이블을 다시 작성하면 된다고 생각하는데 실제로 방법을 모르겠습니다. 나는 성공하지 못한 채 vgcfgrestore를 시도했습니다.
누구든지 올바른 방향으로 나를 가리킬 수 있습니까? 이 모든 혼란이 yum 업데이트로 인한 것인가요?
감사해요
자스칼
답변1
지금까지 이에 대해 생각을 갖고 있는 사람이 있나요? 장치 맵에 빈 항목이 있는 이유는 무엇입니까?
[root@www ~]# dmsetup table
lsi_ccfafeaadcb: 0 240121727 linear 22:64 0
vg_data-lv_ftpBERPCMC:
vg_data-lv_ftpROC:
vg_data-lv_ftpAZI:
vg_data-lv_ftpBAX:
vg_data-lv_ftpBER:
vg_data-lv_ftpPAST:
vg_data-lv_ftpBERTEX:
vg_data-lv_ftpWURTH:
vg_data-lv_ftpTEA: