Browse Source

Add nano pi m4 zfs notes

pull/128/head
KemoNine 2 months ago
parent
commit
6f2d979214
Signed by: KemoNine <kemonine@lollipopcloud.solutions> GPG Key ID: 3BC2928798AE11AB
1 changed files with 54 additions and 0 deletions
  1. 54
    0
      hardware/nano_pi_m4.txt

+ 54
- 0
hardware/nano_pi_m4.txt View File

@@ -0,0 +1,54 @@
1
+# Ubuntu bionic arm64 + zfs
2
+
3
+Nano Pi M4 + sata add-on board (rk3399 + marvell sata chip)
4
+
5
+Write Ubuntu bionic server image -> SD Card
6
+
7
+Boot
8
+
9
+armbian-config -> Install to eMMC
10
+
11
+apt update && apt install tmux nload htop iotop vim nano
12
+
13
+armbian-config -> Switch to nightlies
14
+
15
+tmux new -s working
16
+
17
+apt-add-repository universe
18
+apt install linux-headers-rk3399 linux-headers-dev-rk3399 
19
+
20
+apt install spl-dkms # this will fail
21
+dkms build spl/0.7.5
22
+dkms install spl/0.7.5
23
+
24
+apt install zfs-dkms # this will fail
25
+dkms build zfs/0.7.5
26
+dkms install zfs/0.7.5
27
+
28
+apt install zfsutils-linux
29
+
30
+modprobe zfs
31
+dmesg | grep -i zfs
32
+
33
+zpool create -o ashift=12 \
34
+      -O atime=off -O compression=lz4 \
35
+      -O normalization=formD \
36
+      tank \
37
+      mirror \
38
+        /dev/disk/by-id/ata-Samsung_Portable_SSD_T5_S49WNV0KA19725M-part1 \
39
+        /dev/disk/by-id/ata-Samsung_Portable_SSD_T5_S49WNV0KA19571A-part1 
40
+
41
+zpool status
42
+
43
+
44
+
45
+# Expand Storage
46
+
47
+zpool replace tank orig-disk-1 new-disk-1
48
+zpool replace tank orig-disk-2 new-disk-2
49
+[Wait for scrub and resilver to finish]
50
+zpool set autoexpand on tank
51
+zpool online tank new-disk-1
52
+zpool online tank new-disk-2
53
+zpool list
54
+zfs list

Loading…
Cancel
Save