User talk:Txnintn

From Alpine Linux

How to do a manual LVM install on a Raspberry Pi 4.

Insert USB Alpine Linux setup disk into usb2.0 port.
Power on the Raspberry Pi
At the rainbow splash screen, plug in your SDA drive.
Type root at the prompt and press enter.

  1. source title

Setting up Logical Volumes with LVM

Type modprobe dm-mod
Type echo dm-mod >> /etc/modules-load.d/dm.conf

Type setup-keymap us us and press enter

Type setup-hostname ha-1836 and press enter

Type setup-interfaces and press enter

rc-service networking start

Setup-timezone -z America/Chicago and press enter

rc-update add networking boot

rc-update add seedrng boot

rc-update add acpid default

vi /etc/hosts

setup-ntp

setup-apkrepos

apk update

setup-sshd

apk add lvm2 e2fsprogs lsblk

rc-update add lvm

pvcreate /dev/sda2

vgcreate vg0 /dev/sda2

lvcreate -n lv_root -L 8G vg0

rc-update add lvm boot

mkfs.ext4 /dev/vg0/lv_root

initialize volume group
vgchange -ay

mount -t ext4 /dev/vg0/root /mnt/
mkdir /mnt/boot
mount /dev/sda1 /mnt/boot
setup-disk -m sys /mount
reboot and remove setup usb drive.