no raid, 4k stuff has issues here with alignment
This commit is contained in:
parent
ce416956c6
commit
a28b977c3e
|
@ -28,10 +28,6 @@ efibootmgr
|
|||
DISK=/dev/disk/by-id/nvme-SAMSUNG_MZVLB1T0HBLR-000L2_S4DZNX0R362286
|
||||
HOST=beta
|
||||
|
||||
# ensure 4k sector size
|
||||
nvme format --lbaf=1 --force $DISK
|
||||
nvme id-ns -H $DISK
|
||||
|
||||
sleep 5
|
||||
|
||||
# kill old data
|
||||
|
@ -58,14 +54,14 @@ mkfs.fat -F 32 -n EFIBOOT $DISK-part1
|
|||
|
||||
sleep 5
|
||||
|
||||
# create the crypto containers with proper 4k sectors
|
||||
cryptsetup luksFormat --sector-size 4096 --batch-mode --verify-passphrase $DISK-part2
|
||||
# create the crypto container
|
||||
cryptsetup luksFormat --batch-mode --verify-passphrase $DISK-part2
|
||||
|
||||
# open the containers
|
||||
# open the container
|
||||
cryptsetup luksOpen $DISK-part2 crypt0
|
||||
|
||||
# create one large btrfs on them, RAID0 with strong checksum
|
||||
mkfs.btrfs -f -d raid0 -m raid0 --checksum blake2 --features block-group-tree --label nix /dev/mapper/crypt0
|
||||
# create one large btrfs on them with strong checksum
|
||||
mkfs.btrfs -f --checksum blake2 --features block-group-tree --label nix /dev/mapper/crypt0
|
||||
|
||||
sleep 5
|
||||
|
||||
|
|
Loading…
Reference in a new issue