cluster:233
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| cluster:233 [2026/06/18 19:58] – created hmeij07 | cluster:233 [2026/06/18 20:06] (current) – hmeij07 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | \\ | ||
| + | **[[cluster: | ||
| + | |||
| + | ===== M40c2 to X20c2 ===== | ||
| + | |||
| + | Excellent support form Carlo at TrueNAS regarding aborted replication process. Controller 2 from M40 to X20 TrueNAS appliances. | ||
| + | |||
| However, the earlier process output indicates that the cancelled replication left behind a zfs send / ssh zfs recv pipeline. This is why tank/ | However, the earlier process output indicates that the cancelled replication left behind a zfs send / ssh zfs recv pipeline. This is why tank/ | ||
| First, confirm whether those send/ | First, confirm whether those send/ | ||
| + | < | ||
| ps auxww | egrep 'zfs send|zfs recv|129.133.52.245|auto-20260113|zettarepl' | ps auxww | egrep 'zfs send|zfs recv|129.133.52.245|auto-20260113|zettarepl' | ||
| + | </ | ||
| If they are still present, please terminate them gracefully first using the current PIDs shown in the output: | If they are still present, please terminate them gracefully first using the current PIDs shown in the output: | ||
| + | < | ||
| + | # there were many more processes... | ||
| kill -TERM < | kill -TERM < | ||
| + | </ | ||
| Wait around 30 seconds, then check again: | Wait around 30 seconds, then check again: | ||
| + | < | ||
| ps auxww | egrep 'zfs send|zfs recv|129.133.52.245|auto-20260113|zettarepl' | ps auxww | egrep 'zfs send|zfs recv|129.133.52.245|auto-20260113|zettarepl' | ||
| + | </ | ||
| Only if the processes do not exit after kill -TERM, use kill -KILL: | Only if the processes do not exit after kill -TERM, use kill -KILL: | ||
| + | < | ||
| kill -KILL < | kill -KILL < | ||
| + | </ | ||
| Please use the current PIDs shown by ps, and separate the PIDs with spaces, not commas. Also, please avoid killing the main middlewared/ | Please use the current PIDs shown by ps, and separate the PIDs with spaces, not commas. Also, please avoid killing the main middlewared/ | ||
| Once the stale send/ | Once the stale send/ | ||
| + | < | ||
| zfs destroy -v tank/ | zfs destroy -v tank/ | ||
| + | </ | ||
| If it still reports as busy, please check for holds and dependent references: | If it still reports as busy, please check for holds and dependent references: | ||
| + | < | ||
| + | # there were none... | ||
| zfs holds -r tank/ | zfs holds -r tank/ | ||
| zfs get clones tank/ | zfs get clones tank/ | ||
| fstat | grep auto-20260113 | fstat | grep auto-20260113 | ||
| + | </ | ||
| + | |||
| Please send us the output before releasing any holds, so we can confirm whether the hold is safe to remove. | Please send us the output before releasing any holds, so we can confirm whether the hold is safe to remove. | ||
| Line 29: | Line 48: | ||
| Tasks > Periodic Snapshot Tasks > edit the tank/ | Tasks > Periodic Snapshot Tasks > edit the tank/ | ||
| - | The naming schema currently ends in -1y, but that is only part of the snapshot name. The actual local retention is controlled by the Snapshot Lifetime field. You may optionally update the naming suffix later to -30d for clarity, but the important setting is the Snapshot Lifetime. | + | For starting the zfshomes-c2toc2 replication over from scratch, please first confirm |
| - | For starting the zfshomes-c2toc2 replication over from scratch, please first confirm that the destination dataset tank/ | + | Starting from scratch or overwriting the destination is destructive. |
| Because the previous replication was cancelled mid-transfer and used resumable receive, please also check the destination system for a receive resume token: | Because the previous replication was cancelled mid-transfer and used resumable receive, please also check the destination system for a receive resume token: | ||
| + | < | ||
| + | # there were tokens.... | ||
| zfs get receive_resume_token tank/ | zfs get receive_resume_token tank/ | ||
| - | If a token is present, clear the interrupted receive state on the destination system with: | + | </ |
| + | If a token is present, clear the interrupted receive state on the destination system with: | ||
| + | < | ||
| zfs receive -A tank/ | zfs receive -A tank/ | ||
| + | </ | ||
| + | |||
| After that, if the destination content is disposable, you can either clear the existing destination dataset/ | After that, if the destination content is disposable, you can either clear the existing destination dataset/ | ||
| Recommended order: | Recommended order: | ||
| - | Keep the replication task disabled. | + | - Keep the replication task disabled. |
| - | Clear the stale zfs send / ssh zfs recv processes. | + | |
| - | Delete the busy local snapshot. | + | |
| - | Change the Periodic Snapshot Task lifetime from 4 months to 30 days. | + | |
| - | Check and clear the destination receive resume token if present. | + | |
| - | Confirm the destination dataset can be overwritten. | + | |
| - | Re-enable and rerun the replication task from scratch. | + | |
| + | |||
| + | \\ | ||
| + | **[[cluster: | ||
| + | |||
cluster/233.1781812687.txt.gz · Last modified: by hmeij07
