In RHEL7
I created an LVM partition with vfat filesystem
I am unable to reduce the size
for ext4 file system i sued below commands to reduce the lvm
# umout /lvm (mount point)
# e2fsck -f /dev/vgname/lvname
# resize2fs /dev/vgname/lvname 100M (Say from 200M)
# lvreduce -L 100M /dev/vgname/lvname
I was told the above commands should work for vfat file system.
However when i perform the e2fsck command i get error related to superblocks.
I couldn't get the exact error response since i did on lab.
You can't use e2fsck on a vfat file system. Try fsck -t vfat or fsck.msdos .
And, I'm not sure if and how you can resize a vfat fs. You may need to save the data to somewhere, resize the partition, and restore the data back.
I would always use the -r flag on lvreduce and get the filesystem reduction AND logical volume reduction done in one step. I'm not familiar with vfat, so it might not apply. You would at least need to specify the type though as RudiC says.
Using the -r flag does the whole process, i.e. unmounts, reduces FS & LV and re-mounts, so:-
# umout /lvm (mount point)
# e2fsck -f /dev/vgname/lvname
# resize2fs /dev/vgname/lvname 100M (Say from 200M)
# lvreduce -L 100M /dev/vgname/lvname