Last active
May 22, 2025 18:32
-
-
Save daveallo/3e90eeb0fd18e6e2df611c84d277c53a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
printf 'n\n4\n\n\nt\n4\n43\nw\n' | fdisk /dev/sdb | |
printf 'n\n4\n\n\nt\n4\n43\nw\n' | fdisk /dev/sda | |
pvcreate /dev/sda4 | |
pvcreate /dev/sdb4 | |
vgcreate pve /dev/sda4 /dev/sdb4 | |
lvcreate --type raid1 -m 1 -n data -L 384G pve /dev/sda4 /dev/sdb4 | |
lvcreate --type raid1 -m 1 -n meta -L 1G pve /dev/sda4 /dev/sdb4 | |
lvconvert -y --type thin-pool --poolmetadata pve/meta --poolmetadataspare n pve/data | |
lvcreate --type raid1 -m 1 -n swap -L 4G pve /dev/sda4 /dev/sdb4 | |
mkswap /dev/pve/swap | |
echo 'UUID= none swap defaults 0 0' | tee -a /etc/fstab > /dev/null | |
mount /dev/sda3 /mnt | |
sed -i 's/$/ rootflags=subvol=@root/' /mnt/etc/kernel/cmdline | |
echo 'UUID= none swap defaults 0 0' | tee -a /etc/fstab > /dev/null | |
arch-chroot /mnt proxmox-boot-tool refresh | |
btrfs su sn /mnt /mnt/@root | |
btrfs su create /mnt/@snapshots | |
btrfs su sn -r /mnt/@snapshots/vanilla_6.8.12-9-pve |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment