This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
deb9:luks [2020/06/23 13:44] – [Increase size of Raid Disk Array with LVM and LUKS] Bernard Condrau | deb9:luks [2025/07/21 22:35] (current) – [Increase size of Raid Disk Array with LVM and LUKS] Bernard Condrau | ||
---|---|---|---|
Line 19: | Line 19: | ||
- Mount Encrypted Partition< | - Mount Encrypted Partition< | ||
- If you need a directory tree to be copied from a backup location back to the newly encrypted drive, do it with rsync< | - If you need a directory tree to be copied from a backup location back to the newly encrypted drive, do it with rsync< | ||
+ | - Or, for an entire BackupPC structure< | ||
+ | - Verify the structure between source and destination< | ||
===== Increase size of Raid Disk Array with LVM and LUKS ===== | ===== Increase size of Raid Disk Array with LVM and LUKS ===== | ||
These steps have to be taken to increase a Raid Disk Array with the following configuration: | These steps have to be taken to increase a Raid Disk Array with the following configuration: | ||
- Increase size of Raid explained in [[deb9: | - Increase size of Raid explained in [[deb9: | ||
- | - Unmount the file system< | + | - Unmount the file system:< |
- | - Close LUKS< | + | - Close LUKS:< |
- | - Resize the physical volume to consume all free space in LVM< | + | - Resize the physical volume to consume all free space in LVM:< |
- | - Resize the logical volume to consume all free space in LVM< | + | - Resize the logical volume to consume all free space in LVM:< |
- | - Open LUKS and enter the volume password< | + | - Open LUKS and enter the volume password:< |
- | - Check the filesystem< | + | - Check the filesystem:< |
- | - Extend the filesystem to consume all free space< | + | - Extend the filesystem to consume all free space:< |
- | - Mount file system< | + | - Mount file system:< |
- | You could do an online resize by avoiding to unmount the file system and closing LUKS, but I find this approach safer. If you decide to do an online resize, skip steps . | + | |
+ | |||
+ | ===== Restore LUKS header ===== | ||
+ | sudo cryptsetup luksHeaderBackup / | ||
+ | sudo cryptsetup luksErase /dev/sdb1 | ||
+ | sudo cryptsetup luksHeaderRestore /dev/sdb1 --header-backup-file / | ||
+ | |||
+ | https:// | ||
+ | ===== Links ===== | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
===== Links ===== | ===== Links ===== | ||
* [[https:// | * [[https:// | ||
* [[https:// | * [[https:// | ||
* [[https:// | * [[https:// | ||
+ | * [[https:// | ||
* [[https:// | * [[https:// | ||
* [[https:// | * [[https:// | ||
Line 49: | Line 67: | ||
* [[https:// | * [[https:// | ||
]] | ]] | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||