미러 LV를 생성할 때 알려진 문제가 발생했습니다.
# lvcreate --type mirror -l 100%FREE -m1 t1_VG1 -n t1_db01_lv /dev/mapper/t1_db01_rz1 /dev/mapper/t1_db01_gc
Insufficient free space for log allocation for logical volume.
Unable to allocate extents for mirror log.
하나의 PE로는 로깅에 충분하지 않다는 것을 알고 있지만 그 이유를 이해하지 못합니다. 동일한 시스템의 다른 PV와도 문제 없이 작동합니다... (아래 참조)
시스템에 미러 로그를 쓰고 싶지 않습니다. 따라서 --corelog는 나에게 옵션이 아닙니다.
당신이 나를 도울 수 있기를 바랍니다.
# vgdisplay t1_VG1
--- Volume group ---
VG Name t1_VG1
System ID
Format lvm2
Metadata Areas 12
Metadata Sequence No 16
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 0
Open LV 0
Max PV 0
Cur PV 12
Act PV 12
VG Size 2.87 TiB
PE Size 4.00 MiB
Total PE 753380
Alloc PE / Size 0 / 0
Free PE / Size 753380 / 2.87 TiB
VG UUID ####
# pvdisplay /dev/mapper/t1_db01_1
--- Physical volume ---
PV Name /dev/mapper/t1_db01_1
VG Name t1_VG1
PV Size <298.02 GiB / not usable 4.00 MiB
Allocatable yes
PE Size 4.00 MiB
Total PE 76292
Free PE 76292
Allocated PE 0
PV UUID ####
# pvdisplay /dev/mapper/t1_db01_2
--- Physical volume ---
PV Name /dev/mapper/t1_db01_2
VG Name t1_VG1
PV Size <298.02 GiB / not usable 4.00 MiB
Allocatable yes
PE Size 4.00 MiB
Total PE 76292
Free PE 76292
Allocated PE 0
PV UUID #####
# vgs -o +vg_free_count,vg_extent_count
VG #PV #LV #SN Attr VSize VFree Free #Ext
t1_VG1 12 0 0 wz--n- 2.87t 2.87t 753380 753380
---------------- 기타 PV ------------------
# lvcreate --type mirror -l 100%FREE -m1 newVG -n newLV /dev/mapper/mpathbf /dev/mapper/mpathbg
Logical volume "newLV" created.
# vgs -o +vg_free_count,vg_extent_count
newVG 2 1 0 wz--n- 9.30g 4.00m 1 2382
# lvdisplay -m /dev/newVG/newLV
--- Logical volume ---
LV Path /dev/newVG/newLV
LV Name newLV
VG Name newVG
LV UUID #####
LV Write Access read/write
LV Creation host, time lxtsmtest1, 2022-02-04 11:20:00 +0100
LV Status available
# open 0
LV Size <4.65 GiB
Current LE 1190
Mirrored volumes 2
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 8192
Block device 253:13
--- Segments ---
Logical extents 0 to 1189:
Type mirror
Monitoring monitored
Mirrors 2
Mirror size 1190
Mirror log volume newLV_mlog
Mirror region size 2.00 MiB
Mirror original:
Logical volume newLV_mimage_0
Logical extents 0 to 1189
Mirror destinations:
Logical volume newLV_mimage_1
Logical extents 0 to 1189