1.9 KiB
#note Serial Number (SN) taken from output of ls /dev/disk/by_id
Drive Positions inside Case (Top to Bottom)
- SN: ZDHA12Q8
- SN: ZDHAQ59P
- SN: ZHZ61CYE (only in for backups)
- SN: ZR144EQN
Backup Strategy
- weekly incremental backups send to hsmr
- I should consider automatically creating daily snapshots
Systemd
- enabled
- sshd.service
- nfs-server.service
- fstrim.timer
- paccache.timer
- docker.service
- zfs-scrub@data.timer
- zfs-mount.service
etc
/etc/ssh/sshd_config
- PasswordAuthentication: no
- PubkeyAuthentication: yes
/etc/pacman.conf
: addedNetworkManager
toHoldPkg
.NetworkManager
is needed for internet.
ZFS
https://wiki.archlinux.org/title/ZFS#Scrubbing #important I need to at least monthly scrub hsmr manually
zpools
- data
- SN: ZDHA12Q8
- SN: ZDHAQ59P
- SN: ZR144EQN
- hsmr
- SN: ZHZ61CYE
common commands
Generally, you use the zpool command if you wanna work with pools and you use the zfs command if you wanna work with datasets. There are some exceptions to this.
To get a list of all importable pools.
zpool import
You can either import all or a specific pool. To export, you just replace import with export.
zpool import [-a|<poolname>]
If the pool wasn't auto-mounted, then you can use this. To unmount, you just need to replace mount with unmount.
zfs mount [-a|<poolname>]
To get a list of all datasets
zfs list
To get a list of all snapshots
zfs list -t snaphots
To create a recursive snapshot. A recursive snapshot means to also create a snapshot of all child datasets. #todo complete date command
zfs snapshot -r data@$(date +'%Y-%m-%dT%H:%M:%S')
To send a recursive snapshot to another zfs pool
zfs send -RI data@<some older date> data@<some newer date> | zfs send -Fu hsmr/data