Shrinking a crypted FS

view story

http://www.linuxquestions.org – I'm experimenting with a crypted fs, trying to make sure I understand how it works before I use it for any data storage. I can create, delete, add and grow a crypted FS, but I cannot seem to be able to reliably shrink it. I have my test crypted fs inside a LVM (if that makes a difference), but I have it setup so that it is called "CryptTesting", and I unlock it using a key I created: Code: cryptsetup luksOpen --key-file=~/crypttest.key /dev/mapper/HitachiVG-CryptTesting DecryptedTest I can see the status of my crypt: Code: # cryptsetup status DecryptedTest/dev/mapper/Decrypt (HowTos)