Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
deb9:luks [2024/03/31 13:38] – [Links] Bernard Condraudeb9:luks [2025/07/21 22:35] (current) – [Increase size of Raid Disk Array with LVM and LUKS] Bernard Condrau
Line 34: Line 34:
   - Mount file system:<code>mount /dev/mapper/vg_backup-lv_backup_crypt /backup</code>   - Mount file system:<code>mount /dev/mapper/vg_backup-lv_backup_crypt /backup</code>
   * 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 2 and 3, and instead of step 6 (open LUKS) do a crypt resize:<code>cryptsetup resize vg_backup-lv_backup_crypt</code>.   * 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 2 and 3, and instead of step 6 (open LUKS) do a crypt resize:<code>cryptsetup resize vg_backup-lv_backup_crypt</code>.
 +
 +===== Restore LUKS header =====
 +  sudo cryptsetup luksHeaderBackup /dev/mapper/vg_data2-lv_home --header-backup-file /path/to/backup/header.img
 +  sudo cryptsetup luksErase /dev/sdb1
 +  sudo cryptsetup luksHeaderRestore /dev/sdb1 --header-backup-file /path/to/backup/header.img
 +
 +https://superuser.com/questions/1596599/is-it-safe-to-move-a-luks-encrypted-partition-to-another-system-and-be-able-to-u
 ===== Links ===== ===== Links =====
   * [[https://bobcares.com/blog/raid-resync/]]   * [[https://bobcares.com/blog/raid-resync/]]