Update fsdrnas
This commit is contained in:
32
doc/fsdrnas.md
Normal file
32
doc/fsdrnas.md
Normal 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
|
||||||
|
```
|
||||||
@@ -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
|
|
||||||
```
|
|
||||||
Reference in New Issue
Block a user