Greetings!
We have just installed this amazing VE. Still running without any serious problems but a few.
We use lvm-thin storage for the vm in question and need to reduce one of it's disk down in size. Initially disk was about 480Gb in size.
First we cut the filesystem inside a vm. Next stopped vm and run the following:
It said:
After that I see a warning in lvs output:
Can someone tell me is it dangerous or not and how to get rid of that warning?
We have just installed this amazing VE. Still running without any serious problems but a few.
We use lvm-thin storage for the vm in question and need to reduce one of it's disk down in size. Initially disk was about 480Gb in size.
First we cut the filesystem inside a vm. Next stopped vm and run the following:
lvreduce /dev/pve/vm-107-disk-2 --size 320G -v
It said:
WARNING: Reducing active logical volume to 320.00 GiB.
THIS MAY DESTROY YOUR DATA (filesystem etc.)
Do you really want to reduce pve/vm-107-disk-2? [y/n]: y
Accepted input: [y]
Archiving volume group "pve" metadata (seqno 224).
Reducing logical volume pve/vm-107-disk-2 to 320.00 GiB
Size of logical volume pve/vm-107-disk-2 changed from 330.00 GiB (84480 extents) to 320.00 GiB (81920 extents).
Loading pve-data_tdata table (253:3)
Suppressed pve-data_tdata (253:3) identical table reload.
Loading pve-data_tmeta table (253:2)
Suppressed pve-data_tmeta (253:2) identical table reload.
Loading pve-data-tpool table (253:4)
Suppressed pve-data-tpool (253:4) identical table reload.
Loading pve-vm--107--disk--2 table (253:14)
Not monitoring pve/data with libdevmapper-event-lvm2thin.so
Suspending pve-vm--107--disk--2 (253:14) with device flush
Suspending pve-data-tpool (253:4) with device flush
Suspending pve-data_tdata (253:3) with device flush
Suspending pve-data_tmeta (253:2) with device flush
Loading pve-data_tdata table (253:3)
Suppressed pve-data_tdata (253:3) identical table reload.
Loading pve-data_tmeta table (253:2)
Suppressed pve-data_tmeta (253:2) identical table reload.
Loading pve-data-tpool table (253:4)
Suppressed pve-data-tpool (253:4) identical table reload.
Resuming pve-data_tdata (253:3)
Resuming pve-data_tmeta (253:2)
Resuming pve-data-tpool (253:4)
Resuming pve-vm--107--disk--2 (253:14)
Monitoring pve/data
Creating volume group backup "/etc/lvm/backup/pve" (seqno 225).
Logical volume pve/vm-107-disk-2 successfully resized.
After that I see a warning in lvs output:
root@pve:~# lvs
WARNING: Thin volume pve/vm-107-disk-2 maps 463.49 GiB while the size is only 320.00 GiB.
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
data pve twi-aotz-- 1.52t 93.67 46.51
root pve -wi-ao---- 96.00g
swap pve -wi-ao---- 8.00g
vm-100-disk-1 pve Vwi-aotz-- 40.00g data 40.18
vm-101-disk-1 pve Vwi-aotz-- 40.00g data 37.36
vm-102-disk-4 pve Vwi-aotz-- 40.00g data 75.55
vm-103-disk-1 pve Vwi-a-tz-- 32.00g data 24.45
vm-104-disk-1 pve Vwi-aotz-- 80.00g data 55.43
vm-104-disk-2 pve Vwi-aotz-- 600.00g data 99.99
vm-105-disk-2 pve Vwi-aotz-- 32.00g data 70.70
vm-107-disk-2 pve Vwi-aotz-- 320.00g data 100.00
vm-108-disk-1 pve Vwi-aotz-- 40.00g data 99.43
vm-108-disk-2 pve Vwi-aotz-- 250.00g data 86.17
Can someone tell me is it dangerous or not and how to get rid of that warning?