Firstly, I'd like to thank the folks at Excito for having the foresight to lvm 90% of the drive.
Here's what I've done so far:
-- first reduce /home to 100 gigs
Code: Select all
# umount /home
# resize2fs -p /dev/mapper/bubba-storage 100G
# e2fsck -f /dev/mapper/bubba-storage
# resize2fs -p /dev/mapper/bubba-storage 100G
# e2fsck -f /dev/mapper/bubba-storage
# lvm
lvm> lvreduce -L100G /dev/bubba/storage
lvm> exit
# mount /home
Code: Select all
/dev/mapper/bubba-storage
99G 75G 21G 79% /home
Code: Select all
lvm> lvcreate -L20G -ncrypttest bubba
lvm> exit
# apt-get install cryptsetup
# cryptsetup luksFormat /dev/mapper/bubba-crypttest
Code: Select all
Failed to setup dm-crypt key mapping.
Check kernel for support for the aes-cbc-essiv:sha256 cipher spec and verify that /dev/mapper/bubba-crypttest contains at least 258 sectors.
Failed to write to key storage.
Command failed.
Code: Select all
# modprobe dm-mod aes sha256 cbc
FATAL: Module dm_mod not found.
# zgrep SHA256 /proc/config.gz
CONFIG_CRYPTO_SHA256 is not set
thanks.