no raid, 4k stuff has issues here with alignment

This commit is contained in:
Christoph Cullmann 2024-08-20 20:44:02 +02:00
parent ce416956c6
commit a28b977c3e
No known key found for this signature in database

View file

@ -28,10 +28,6 @@ efibootmgr
DISK=/dev/disk/by-id/nvme-SAMSUNG_MZVLB1T0HBLR-000L2_S4DZNX0R362286 DISK=/dev/disk/by-id/nvme-SAMSUNG_MZVLB1T0HBLR-000L2_S4DZNX0R362286
HOST=beta HOST=beta
# ensure 4k sector size
nvme format --lbaf=1 --force $DISK
nvme id-ns -H $DISK
sleep 5 sleep 5
# kill old data # kill old data
@ -58,14 +54,14 @@ mkfs.fat -F 32 -n EFIBOOT $DISK-part1
sleep 5 sleep 5
# create the crypto containers with proper 4k sectors # create the crypto container
cryptsetup luksFormat --sector-size 4096 --batch-mode --verify-passphrase $DISK-part2 cryptsetup luksFormat --batch-mode --verify-passphrase $DISK-part2
# open the containers # open the container
cryptsetup luksOpen $DISK-part2 crypt0 cryptsetup luksOpen $DISK-part2 crypt0
# create one large btrfs on them, RAID0 with strong checksum # create one large btrfs on them with strong checksum
mkfs.btrfs -f -d raid0 -m raid0 --checksum blake2 --features block-group-tree --label nix /dev/mapper/crypt0 mkfs.btrfs -f --checksum blake2 --features block-group-tree --label nix /dev/mapper/crypt0
sleep 5 sleep 5