Extending LUKS encrypted btrfs filesystem
After some experiments with dm-crypt, cleaning some partitions and finally making some order in my disks, I got into a state when I had LUKS encrypted btrfs filesystem on one of the partitions but the filesystem wasn't using all the partitions space. I wanted to extend the filesystem so all that unallocated space could be used.
I had to:
- unmount the partition (in my case it was for a regular user
homedirectory, so I just logged in asroot) cryptsetup open {device} {name}cryptsetup resize {name}btrfs filesystem resize max {mount-path}cryptesetup close {name}
And that's it! No space left!