Lock Disk Device With LUKs
Cockpit administrators can use the Storage page in the web console to format a partition or volume with LUKs encryption.
Note:
Using Cockpit to configure LUKS on the root file system
isn't supported.
What Do You Need?
- The Cockpit web console must be installed and accessible.
For details, see these topics: Install and Enable Cockpit and Log in to the Cockpit Web Console.
- The
cockpit-storaged
package must be installed.Note:
If thecockpit-storaged
package isn't installed, see this section Install and Manage Add-on Applications - Unmount all file systems on the device that you plan to encrypt
Note:
You can re-encrypt encrypted devices while the devices are in use (change encryption key or algorithm) using the LUKS2 format. The LUKS1 format doesn't provide online re-encryption. - Block storage device must have a file system.
- The disk name in which you want to encrypt a partition must be visible to Cockpit and appear in the Drives table on the Storage page.
- The volume name in which you want to encrypt a logical volume must be visible to Cockpit and appear in the Devices table on the Storage page.
- Backup the data on the partition or logical volume in which you want to encrypt using LUKs. Formatting a partition or volume deletes all the data and sets up a new file system.
- Administrator privileges.
Steps
Using the Cockpit web console, follow these steps to format and encrypt a host partition or logical volume with LUKs.