Problems encountered at work
Linux Luks encryption of hard disks, and partitions are LVM. Using RESIZE2FS to scale file systems can be problematic
Common knowledge of LVM expansion is two commands, LVEXTECD and RESIZE2FS.
The following error is reported when using the RESIZE2FS command if the path following the LV path is added
resize2fs 1.41.12 (17-may-2010)
RESIZE2FS: Device or resource busy when trying to open/dev/vg_lzyl/lv_data
A valid file system Super block could not be found.
So the path of the Encrypting File System must be used behind the resize2fs , but if the same partition is enlarged two times, there is a problem .
resize2fs 1.41.12 (17-may-2010)
The filesystem is already 27524608 blocks long. Nothing to Do!
At present, my solution is to restart the device and run all over resize2fs Fortunately, the equipment is a test machine, if the equipment under production will be in trouble. If a friend solves this problem, leave a message for me.
This article from the "Linux" blog, reproduced please contact the author!
Expansion of LVM partitions under Luks