Update fsdrnas

This commit is contained in:
Daniel A. Maierhofer
2020-01-24 20:24:36 +01:00
parent 6ab89e43c8
commit 2c398a8e4b
2 changed files with 32 additions and 20 deletions

32
doc/fsdrnas.md Normal file
View File

@@ -0,0 +1,32 @@
# fsdrnas
Install with UEFI partition
## Setup Network
```shell
vi /etc/dhcpcd.conf
interface enp4s0
static ip_address=128.131.95.243/24
static routers=128.131.95.1
static domain_name_servers=128.130.4.3 128.131.4.3
sv restart dhcpcd.conf
```
## Enable SSH and prohibit-password
```shell
xbps-install -Su
vim /etc/ssh/sshd_config
ln -s /etc/sv/sshd/ /var/service
```
# Setup Auto Update
```shell
xbps-install cronie
ln -s /etc/sv/cronie/ /var/service
crontab -e
@reboot vkpurge rm all
5 16 * * 0 xbps-install -Suy && xbps-install -Suy && xbps-remove -oOy && reboot
5 17 * * 1 zfs scrub ...
```
## Check disks
```shell
xbps-install smartmontools
smartctl -a /dev/sda
smartctl -a /dev/sdb
```

View File

@@ -1,20 +0,0 @@
# fsdrnas
## Enable SSH and prohibit-password
```shell
xbps-install -Su
vim /etc/ssh/sshd_config
ln -s /etc/sv/sshd/ /var/service/
```
# Create RAID
```shell
xbps-install mdadm
mdadm --create --verbose /dev/md0 --level=1 --raid-devices=2 /dev/sda2 /dev/sdb2
mkfs.btrfs -f /dev/md0
cat /proc/mdstat
```
## Check disks
```shell
xbps-install smartmontools
smartctl -a /dev/sda
smartctl -a /dev/sdb
```