Shrink lvmthin
Trapim sa na Proxmoxe so zmensenim lvmka a vyzera to, ze bez straty dat nepojde.
root@pve1:/dev# lvdisplay
File descriptor 7 (pipe:[14654309]) leaked on lvdisplay invocation. Parent PID 18213: bash
--- Logical volume ---
LV Path /dev/pve/swap
LV Name swap
VG Name pve
LV UUID AnsxPx-ZLtd-K5yy-MkgW-1x85-RKBv-ydNLL4
LV Write Access read/write
LV Creation host, time proxmox, 2018-07-31 12:30:51 +0200
LV Status available
# open 2
LV Size 8.00 GiB
Current LE 2048
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:0--- Logical volume ---
LV Path /dev/pve/root
LV Name root
VG Name pve
LV UUID 8nlqRq-Ri0g-y9d7-LgNt-zNXl-EEFe-OC21vC
LV Write Access read/write
LV Creation host, time proxmox, 2018-07-31 12:30:51 +0200
LV Status available
# open 1
LV Size 96.00 GiB
Current LE 24576
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:1--- Logical volume ---
LV Name data
VG Name pve
LV UUID q34TiC-6Ad1-htOv-IJwG-2trW-NLCR-50S8qm
LV Write Access read/write
LV Creation host, time pve1, 2018-09-18 23:44:33 +0200
LV Pool metadata data_tmeta
LV Pool data data_tdata
LV Status available
# open 0
LV Size 3.50 TiB
Allocated pool data 0.00%
Allocated metadata 0.43%
Current LE 917504
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:4
Zmensil som particiu (ext4) z 3.6T na 2.6T, ale ked idem zmensit lvmko dostanem toto:
root@pve1:/dev# lvreduce -L -1000G /dev/pve/data
File descriptor 7 (pipe:[14654309]) leaked on lvreduce invocation. Parent PID 18213: bash
Thin pool volumes pve/data_tdata cannot be reduced in size yet..
Smutne je, ze jedine co som zatial nasiel je riesenie s vymazanim /dev/pve/data a zaloznemim novej mensej, ale v tomto pripade bez zalohy pridem o data na nej.
Nebolo by predsa len ine riesenie?