accumulated collection of notes about my server shenanigans
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

add zfs-auto-snapshot and rename other files

nnuuvv e94cef2d 7785602e

+73 -6
+1 -1
primergy-rx300-s8/no-auth.md
··· 10 10 11 11 ### No access to host system 12 12 13 - 1. [[access-bios|Enter BIOS]] 13 + 1. [Enter BIOS](./access-bios.md) 14 14 2. In 'Server mngmt' look for iRMC / Load Default values 15 15 3. Set to true 16 16 4. Preferably set IPv4, DHCP tends to be spotty with iRMC.
zfs/Add cache drives.md zfs/add-cache-drives.md
-5
zfs/General info.md
··· 1 - default command: 2 - `zpool` 3 - `zfs` 4 - 5 - [[Add cache drives]]
zfs/Replace failing drives.md zfs/replace-failing-drives.md
+63
zfs/auto-snapshot.md
··· 1 + ### zfs-auto-snapshot 2 + 3 + ```sh 4 + apt install zfs-auto-snapshot 5 + 6 + zfs set com.sun:auto-snapshot=true <datasets-to-auto-snapshot> 7 + ``` 8 + 9 + #### Listing snapshots 10 + 11 + ```sh 12 + zfs list -t snapshot 13 + ``` 14 + 15 + 16 + If they are not present; here are the respective cron jobs 17 + 18 + /etc/cron.d/ 19 + ```sh 20 + PATH="/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin" 21 + 22 + */15 * * * * root which zfs-auto-snapshot > /dev/null || exit 0 ; zfs-auto-snapshot --quiet --syslog --label=frequent --keep=4 // 23 + ``` 24 + 25 + /etc/cron.hourly/ 26 + ```sh 27 + #!/bin/sh 28 + 29 + # Only call zfs-auto-snapshot if it's available 30 + which zfs-auto-snapshot > /dev/null || exit 0 31 + 32 + exec zfs-auto-snapshot --quiet --syslog --label=hourly --keep=24 // 33 + ``` 34 + 35 + /etc/cron.daily/ 36 + ```sh 37 + #!/bin/sh 38 + 39 + # Only call zfs-auto-snapshot if it's available 40 + which zfs-auto-snapshot > /dev/null || exit 0 41 + 42 + exec zfs-auto-snapshot --quiet --syslog --label=daily --keep=31 // 43 + ``` 44 + 45 + /etc/cron.weekly/ 46 + ```sh 47 + #!/bin/sh 48 + 49 + # Only call zfs-auto-snapshot if it's available 50 + which zfs-auto-snapshot > /dev/null || exit 0 51 + 52 + exec zfs-auto-snapshot --quiet --syslog --label=weekly --keep=8 // 53 + ``` 54 + 55 + /etc/cron.monthly/ 56 + ```sh 57 + #!/bin/sh 58 + 59 + # Only call zfs-auto-snapshot if it's available 60 + which zfs-auto-snapshot > /dev/null || exit 0 61 + 62 + exec zfs-auto-snapshot --quiet --syslog --label=monthly --keep=12 // 63 + ```
+9
zfs/general-info.md
··· 1 + default command: 2 + `zpool` 3 + `zfs` 4 + 5 + [Add cache drives](./add-cache-drives.md) 6 + 7 + 8 + Good resources: 9 + - https://web.archive.org/web/20230101221750/https://pthree.org/2012/12/04/zfs-administration-part-i-vdevs/