My media-volume became more and more filled and so I decide to resize it. It’s so easy, if you have an LVM-dm_crypt-XFS-setup.
Hint: Device could be mounted (when doing xfs_growfs it’s a must).
First Step – Resize The Logical Volume:
$ lvresize -L +10GB /dev/lvm_device/device
Second Step – Resize The DM-Crypt Device:
$ cryptsetup resize /dev/mapper/crypt-device
Third Step – Resize The XFS-Partition:
$ xfs_growfs -d /dev/mapper/crypt-device
Fourth Step – See What You’ve Done
$ df -h /mnt/media/
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/crypt-device
110G 95G 16G 86% /mnt/media
Other Articles Related To This Topic:
Filed under Gentoo, Linux, Security & one comment & one trackback
Trackback specific URI for this entry
Trackback from WEBLOG (!food)
posted on July 10th 2005, 10:47:54 am Smo00othEs ist wirklich beeindruckend, wie flüssig LVM in Kombination mit XFS und dm_crypt funktioniert. Das von Lars schon beschriebene resizen einer verschlüsselten XFS-Partition, die ihrerseits in einer Volume Group liegt, ließ sich ohne weitern Zwische…