nas:zfs:options_for_zfs_on_raid
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| nas:zfs:options_for_zfs_on_raid [2025/01/18 20:52] – admin | nas:zfs:options_for_zfs_on_raid [2025/02/12 11:13] (current) – admin | ||
|---|---|---|---|
| Line 61: | Line 61: | ||
| sudo dnf install -y https:// | sudo dnf install -y https:// | ||
| - | sudo pcs resource create | + | pcs resource create |
| - | sudo pcs resource create zfs-scrub-monthly-shared-ZFS-1 | + | pcs resource create zfs-scrub-monthly-nfsshare |
| - | sudo pcs resource create | + | pcs resource create |
| - | sudo pcs resource create zfs-scrub-monthly-shared-ZFS-1systemd\: | + | pcs resource create zfs-scrub-monthly-nfsshare-mirror systemd\: |
| - | sudo pcs resource group add nfsgroup | + | pcs resource group add nfsgroup |
| - | sudo pcs resource group add nfsgroup zfs-scrub-monthly-shared-ZFS-1 | + | pcs resource group add nfsgroup zfs-scrub-monthly-nfsshare |
| - | sudo pcs resource group add nfsgroup | + | pcs resource group add nfsgroup |
| - | sudo pcs resource group add nfsgroup zfs-scrub-monthly-shared-ZFS-2 --after | + | pcs resource group add nfsgroup zfs-scrub-monthly-nfsshare-mirror |
| ``` | ``` | ||
| Line 87: | Line 87: | ||
| Note: No install section it will be launched using pacemaker. | Note: No install section it will be launched using pacemaker. | ||
| ```sh | ```sh | ||
| - | sudo mkdir /shared-ZFS-1/config | + | sudo mkdir /nfsshare/config |
| - | sudo nano /shared-ZFS-1/ | + | sudo nano /nfsshare/ |
| ``` | ``` | ||
| ```yaml | ```yaml | ||
| Line 94: | Line 94: | ||
| periodic-snapshot-tasks: | periodic-snapshot-tasks: | ||
| # Each task in zettarepl must have an unique id to make references for it | # Each task in zettarepl must have an unique id to make references for it | ||
| - | | + | |
| # Dataset to make snapshots | # Dataset to make snapshots | ||
| - | dataset: | + | dataset: |
| # You must explicitly specify if you want recursive or non-recursive | # You must explicitly specify if you want recursive or non-recursive | ||
| # snapshots | # snapshots | ||
| Line 136: | Line 136: | ||
| schedule: | schedule: | ||
| minute: " | minute: " | ||
| - | | + | |
| - | dataset: | + | dataset: |
| recursive: true | recursive: true | ||
| #exclude: | #exclude: | ||
| - | # - shared-ZFS-1/xyz | + | # - nfsshare/xyz |
| lifetime: P1D | lifetime: P1D | ||
| # | # | ||
| Line 148: | Line 148: | ||
| hour: " | hour: " | ||
| replication-tasks: | replication-tasks: | ||
| - | | + | |
| # Either push or pull | # Either push or pull | ||
| direction: push | direction: push | ||
| Line 157: | Line 157: | ||
| type: local | type: local | ||
| # Source dataset | # Source dataset | ||
| - | source-dataset: | + | source-dataset: |
| # Target dataset | # Target dataset | ||
| - | target-dataset: | + | target-dataset: |
| # " | # " | ||
| # snapshot tasks | # snapshot tasks | ||
| Line 180: | Line 180: | ||
| # exclude all child snapshots that your periodic snapshot tasks exclude | # exclude all child snapshots that your periodic snapshot tasks exclude | ||
| periodic-snapshot-tasks: | periodic-snapshot-tasks: | ||
| - | - shared-ZFS-1-qh | + | - nfsshare-qh |
| - | - shared-ZFS-1-hour | + | - nfsshare-hour |
| # If true, replication task will run automatically either after bound | # If true, replication task will run automatically either after bound | ||
| # periodic snapshot task or on schedule | # periodic snapshot task or on schedule | ||
| Line 193: | Line 193: | ||
| sudo systemctl daemon-reload | sudo systemctl daemon-reload | ||
| sudo pcs resource create zettarepl systemd\: | sudo pcs resource create zettarepl systemd\: | ||
| - | sudo pcs resource group add nfsgroup zettarepl --after | + | sudo pcs resource group add nfsgroup zettarepl --after |
| ``` | ``` | ||
| Line 206: | Line 206: | ||
| ```diff | ```diff | ||
| - | --- / | + | --- / |
| - | +++ / | + | +++ / |
| @@ -339,6 +339,7 @@ | @@ -339,6 +339,7 @@ | ||
| fi | fi | ||
nas/zfs/options_for_zfs_on_raid.1737229941.txt.gz · Last modified: by admin