Add ZFS sharenfs
This commit is contained in:
@@ -90,13 +90,25 @@ rsync --stats -avhP --exclude-from=/var/tmp/ignorelist root@atlas:/home/ /zv1/ho
|
||||
rsync --stats -avhP --exclude Pictures root@atlas:/mnt/save/fet_daten/ /zv1/daten/
|
||||
rsync --stats -avhP root@atlas:/mnt/save/fet_daten/Pictures/ /zv1/fotos/
|
||||
```
|
||||
### Share via NFS
|
||||
```shell
|
||||
zfs set sharenfs="rw=@192.168.86.0/24,insecure,sync,no_subtree_check,root_squash,no_wdelay" zv1/homes
|
||||
zfs set sharenfs="rw=@192.168.86.0/24,insecure,sync,no_subtree_check,root_squash,crossmnt" zv1/daten
|
||||
zfs set sharenfs="rw=@192.168.86.0/24,insecure,sync,no_subtree_check,root_squash,crossmnt" zv1/fotos
|
||||
showmount -e
|
||||
```
|
||||
### Before reinstalling
|
||||
```shell
|
||||
zfs export
|
||||
```
|
||||
### After reinstalling
|
||||
```shell
|
||||
./ansible-playbook -i hosts/production site.yml --tags common --limit ariane
|
||||
ssh ariane apt-get update && apt-get upgrade && reboot
|
||||
./ansible-playbook -i hosts/production site.yml --tags zfs --limit ariane
|
||||
zfs import
|
||||
zpool import zv1
|
||||
zfs mount -a
|
||||
```
|
||||
## ZFS Maintenance
|
||||
```shell
|
||||
|
||||
Reference in New Issue
Block a user