Round2_newStorage_Setup
- boot from USB
- setup-alpine
- w/ bridge interface but none to install / cache disks.
- apk update
- apk upgrade
- apk add lvm2 e2fsprogs gptfdisk
- gdisk /dev/nvme0n1
- create 3 partitions
1: 1 GB named boot REMEMBER TO FLAG THIS AS BOOT (choose x - xpert mode and then a - set attributes and set attriibute 2 ... Legacy Bios bootable)
2: 20 GB name xf86-64 root
3: remaingin disk as LVM
format both 1 & 2 as ext4
mount -t ext4 /dev/nvmen0n1p2 /mnt
mkdir /mnt/boot
mount -t ext4 /dev/nvmen0n1p1 /mnt/boot
setup-disk -v -m sys /mnt
just to make sure:
extlinux -i /mnt -u
dd bs=440 conv=notrunc count=1 if=/usr/share/syslinux/gptmbr.bin of=/dev/nvme0n1
again - to make sure
cat /usr/share/syslinux/gptmbr.bin > /dev/nvme0n1
reboot and check if system comes up with error about not being able to mount root... then use the procedure for updating initramfs
reboot and login.
NOW FOR SWAP.
create lvm from /dev/sda1 and /dev/sda2
dharra:~# pvcreate /dev/sda1 /dev/sdb1
dharra:~# vgcreate dom0_swap /dev/sda1 /dev/sdb1
dharra:~# lvcreate -l 100%FREE -n dharraSWAP dom0_swap
mkswap /dev/dom0_swap/dharraSWAP
swapon /dev/dom0_swap/dharraSWAP
dharra:~# cat /proc/swaps
---->making this permanent in fstab
vi /etc/fstab
append the entry:
/dev/mapper/dom0_swap-dharraSWAP swap swap defaults 0 0
rc-update add lvm