Closed jelly closed 1 year ago
Hi
You may likely want to try --fs ignore option. As this operation leads to potential data loss - there was added this 'extra' option.
This also reproduces with the --force
option. Shouldn't --force
imply --fs ignore
?
# lvresize --force --verbose --size 25M /dev/mapper/testvg-test
Rounding size to boundary between physical extents: 28.00 MiB.
File system ntfs found on testvg/test.
File system device usage is not available from libblkid.
Well the '--fs ignore' is a way to tell lvm2 to ignore anything what is on the storage when reducing a volume - as there were many reports from users who where losing their data during volume reduction too 'easily' - so yeah - when you always use '--fs ignore' it's kind of erasing protection added on lvm2 side.... - but at least we now have journaled commands with 'ignore' being passed as an intentional option...
Resizing a logical volume with a ntfs filesystem created by
ntfs-3g
errors out since2.03.22
Reproducer
Prepare lvm
Try to resize
On lvm2
2.03.21
this succeededOn
2.03.22