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
allocation/use_blkid_wiping=1 configuration setting is set while LVM is not compiled with blkid wiping support. Falling back to native LVM signature detection. Physical volume "/dev/sda1" successfully created allocation/use_blkid_wiping=1 configuration setting is set while LVM is not compiled with blkid wiping support. Falling back to native LVM signature detection. Physical volume "/dev/sdb1" successfully created
dharra:~# vgcreate dom0_swap /dev/sda1 /dev/sdb1
Volume group "dom0_swap" successfully created
dharra:~# lvcreate -l 100%FREE -n dharraSWAP dom0_swap
allocation/use_blkid_wiping=1 configuration setting is set while LVM is not compiled with blkid wiping support. Falling back to native LVM signature detection. Logical volume "dharraSWAP" created.
mkswap /dev/dom0_swap/dharraSWAP
Setting up swapspace version 1, size = 4286574592 bytesUUID=51b5d84d-464b-4407-abfa-334ccff7a32a
swapon /dev/dom0_swap/dharraSWAP
dharra:~# cat /proc/swaps 
Filename Type Size Used Priority/dev/mapper/dom0_swap-dharraSWAP partition 4186108 0 -1

---->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