Obsidian/Beehive.md
2024-10-21 22:52:33 +02:00

1.9 KiB

#note Serial Number (SN) taken from output of ls /dev/disk/by_id Drive Positions inside Case (Top to Bottom)

  1. SN: ZDHA12Q8
  2. SN: ZDHAQ59P
  3. SN: ZHZ61CYE (only in for backups)
  4. 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: added NetworkManager to HoldPkg. 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