kemonine
/
lollipopcloud
Archived
1
0
Fork 0

Merge branch 'nano-pi-m4' of kemonine/docs into master

This commit is contained in:
KemoNine 2019-03-09 21:19:29 +00:00 committed by Gitea
commit e877dab5a1
1 changed files with 54 additions and 0 deletions

54
hardware/nano_pi_m4.txt Normal file
View File

@ -0,0 +1,54 @@
# Ubuntu bionic arm64 + zfs
Nano Pi M4 + sata add-on board (rk3399 + marvell sata chip)
Write Ubuntu bionic server image -> SD Card
Boot
armbian-config -> Install to eMMC
apt update && apt install tmux nload htop iotop vim nano
armbian-config -> Switch to nightlies
tmux new -s working
apt-add-repository universe
apt install linux-headers-rk3399 linux-headers-dev-rk3399
apt install spl-dkms # this will fail
dkms build spl/0.7.5
dkms install spl/0.7.5
apt install zfs-dkms # this will fail
dkms build zfs/0.7.5
dkms install zfs/0.7.5
apt install zfsutils-linux
modprobe zfs
dmesg | grep -i zfs
zpool create -o ashift=12 \
-O atime=off -O compression=lz4 \
-O normalization=formD \
tank \
mirror \
/dev/disk/by-id/ata-Samsung_Portable_SSD_T5_S49WNV0KA19725M-part1 \
/dev/disk/by-id/ata-Samsung_Portable_SSD_T5_S49WNV0KA19571A-part1
zpool status
# Expand Storage
zpool replace tank orig-disk-1 new-disk-1
zpool replace tank orig-disk-2 new-disk-2
[Wait for scrub and resilver to finish]
zpool set autoexpand on tank
zpool online tank new-disk-1
zpool online tank new-disk-2
zpool list
zfs list