more raid stuff

This commit is contained in:
Christoph Cullmann 2024-10-28 21:34:58 +01:00
parent c5c2372749
commit 8c4e37dbfa
No known key found for this signature in database

View file

@ -58,23 +58,15 @@ done
# take a look at the partitions # take a look at the partitions
cat /proc/partitions cat /proc/partitions
# ZFS zpool creation with encryption # create the RAID-0, second partitions on all disks
zpool create \ mdadm --create /dev/md/system --level=0 --raid-devices=3 $DISK-part2 $DISK2-part2 $DISK3-part2
-o ashift=13 \
-o autotrim=off \ # create the LUKS container and open it
-O acltype=posixacl \ cryptsetup luksFormat --sector-size 4096 --batch-mode --verify-passphrase /dev/md/system
-O atime=off \ cryptsetup luksOpen /dev/md/system crypt-system
-O canmount=off \
-O compression=on \ # create btrfs with volumes
-O dnodesize=auto \ mkfs.btrfs -f --features block-group-tree --label system /dev/mapper/crypt2
-O utf8only=on \
-O normalization=formD \
-O xattr=sa \
-O mountpoint=none \
-O encryption=on \
-O keylocation=prompt \
-O keyformat=passphrase \
zpool $DISK-part2 $DISK2 $DISK3
sleep 5 sleep 5