wiki:create_raid_5_4_disks_encryption_hetzner
Table of Contents
Create RAID 5 from 4 disks with encryption on Hetzner
Delete the existing logical drive
megacli -ldinfo -lall -aall megacli -cfglddel -L0 -a0
Create 2 virtual drives, first 30 GB, second the rest of free space
megacli -CfgLDAdd -R5 [252:0,252:1,252:2,252:3] WB NORA Direct CachedBadBBU -sz20GB -strpsz256 -a0 megacli -CfgLDAdd -R5 [252:0,252:1,252:2,252:3] WB NORA Direct CachedBadBBU -strpsz256 -a0
Create partition table
gdisk /dev/sda
Start installer
installimage
Set hostname and swap and / partition in Hetzner editor
Reboot
Create a new empty GUID partition table (GPT) and new partion
gdisk /dev/sdb o n w
Create filesystem
mkfs.ext4 /dev/sdb1
Setup encryption
apt install cryptsetup cryptsetup luksFormat /dev/sdb1 cryptsetup luksOpen /dev/sdb1 backup mkfs.ext4 /dev/mapper/backup mount /dev/mapper/backup /backup
Tested on
See also
References
wiki/create_raid_5_4_disks_encryption_hetzner.txt · Last modified: 2022/10/17 14:43 by antisa