
일부 중요한 라이브러리 제거로 인해 충돌이 발생하는 VMWARE 기반 VM이 있었습니다.
이제 vmdk 파일을 다른 VM의 디스크로 마운트하려고 하는데 실패합니다.
디스크는 fdisk에 표시됩니다.
Disk /dev/sdd: 32.2 GB, 32212254720 bytes
64 heads, 32 sectors/track, 30720 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000402ed
Device Boot Start End Blocks Id System
/dev/sdd1 * 2 501 512000 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sdd2 502 30720 30944256 8e Linux LVM
Partition 2 does not end on cylinder boundary.
이제 물리 볼륨을 생성하려고 하면 다음 오류가 발생합니다.
# pvcreate /dev/sdd2
dev_is_mpath: failed to get device for 8:50
Can't initialize physical volume "/dev/sdd2" of volume group "vg_mon01" without -ff
PV 디스플레이
# pvdisplay /dev/sdd2
--- Physical volume ---
PV Name /dev/sdd2
VG Name vg_mon01
PV Size 29.51 GiB / not usable 3.00 MiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 7554
Free PE 0
Allocated PE 7554
PV UUID mzEURV-XSSx-8I3Z-y43s-MQNk-qMo2-GsAlbt
vgdisplay
#vgdisplay vg_mon01
--- Volume group ---
VG Name vg_mon01
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 3
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 2
Open LV 0
Max PV 0
Cur PV 1
Act PV 1
VG Size 29.51 GiB
PE Size 4.00 MiB
Total PE 7554
Alloc PE / Size 7554 / 29.51 GiB
Free PE / Size 0 / 0
VG UUID qrELxN-WtX5-y7ZB-u8bk-LIrO-3Ctp-In7gi4
LV디스플레이
lvdisplay vg_mon01
--- Logical volume ---
LV Path /dev/vg_mon01/lv_root
LV Name lv_root
VG Name vg_mon01
LV UUID owQu23-Xp1A-Sh9z-pcv9-3baB-BXcL-LVn45Y
LV Write Access read/write
LV Creation host, time mon01.mfino.net, 2015-05-13 10:35:44 +0530
LV Status NOT available
LV Size 27.57 GiB
Current LE 7058
Segments 1
Allocation inherit
Read ahead sectors auto
--- Logical volume ---
LV Path /dev/vg_mon01/lv_swap
LV Name lv_swap
VG Name vg_mon01
LV UUID 6eOpOI-eTst-i7fY-WPbr-RMtY-dWMR-7d6Awt
LV Write Access read/write
LV Creation host, time mon01.mfino.net, 2015-05-13 10:35:50 +0530
LV Status NOT available
LV Size 1.94 GiB
Current LE 496
Segments 1
Allocation inherit
Read ahead sectors auto
여기서는 이것이 기존 LVM 파티션 디스크를 사용하는 올바른 방법인지 아니면 뭔가 빠졌는지 알 수 없습니다.
답변1
디스크를 추가했을 때 VM에서는 감지되었지만 LV 상태는사용 불가, VM을 다시 시작한 후 LV 상태가 다음으로 변경되었습니다.사용 가능그리고 아무 문제 없이 마운트할 수 있었습니다.