Add ZFS setup info
This commit is contained in:
20
doc/fetlab.md
Normal file
20
doc/fetlab.md
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
# fetlab
|
||||||
|
## Setup ZFS
|
||||||
|
```shell
|
||||||
|
for i in a b c d e f g h i; do echo -n "/dev/sd$i: "; hdparm -I /dev/sd$i | awk '/Serial Number/ {print $3}'; done
|
||||||
|
lsblk
|
||||||
|
sgdisk -n1:0:0 -t1:BF01 /dev/sda
|
||||||
|
sgdisk -n1:0:0 -t1:BF01 /dev/sdb
|
||||||
|
cryptsetup luksFormat /dev/disk/by-id/ata-ST4000VN008-2DR166_ZDH35RRA-part1
|
||||||
|
cryptsetup luksFormat /dev/disk/by-id/ata-ST4000VN008-2DR166_ZDH469JD-part1
|
||||||
|
zfs_mount.sh mount
|
||||||
|
zpool create -o ashift=12 -o autoexpand=on -o autoreplace=on -O atime=off -O compression=lz4 -O acltype=posixacl -O xattr=sa lab mirror /dev/mapper/ata-ST4000VN008-2DR166_ZDH35RRA-part1 /dev/mapper/ata-ST4000VN008-2DR166_ZDH469JD-part1
|
||||||
|
/sbin/zpool scrub lab
|
||||||
|
zfs create lab/rec
|
||||||
|
mkdir /var/lib/motioneye
|
||||||
|
zfs create -o mountpoint=/var/lib/motioneye lab/rec/motion
|
||||||
|
```
|
||||||
|
## Get video input resolutions
|
||||||
|
```shell
|
||||||
|
ffmpeg -f video4linux2 -list_formats all -i /dev/video0
|
||||||
|
```
|
||||||
Reference in New Issue
Block a user