I have a ZPool consisting in two drives in a mirror configuration. It seems that during server manteinance (cleaning), one of the drives went offline because the wiring came lose.
# zpool status -v zmsmall1
pool: zmsmall1
state: DEGRADED
status: One or more devices could not be used because the label is missing or
invalid. Sufficient replicas exist for the pool to continue
functioning in a degraded state.
action: Replace the device using 'zpool replace'.
see: https://openzfs.github.io/openzfs-docs/msg/ZFS-8000-4J
scan: scrub repaired 0B in 02:00:24 with 0 errors on Sun Apr 14 02:24:25 2024
config:
NAME STATE READ WRITE CKSUM
zmsmall1 DEGRADED 0 0 0
mirror-0 DEGRADED 0 0 0
ata-ST1000NM0033-9ZM173_Z1W074QR ONLINE 0 0 0
16687432235547222567 UNAVAIL 0 0 0 was /dev/disk/by-id/ata-TOSHIBA_MG03ACA100_93S2K8CZF-part1
errors: No known data errors
Unfortunately there was no notification on the problem. After 4 days I detected the problem and now I have doubts on how to proceed.
My concern is that the online drive as been receiving data during this past days and drifted from the 2nd drive status.
I fear that simply bringing back the second drive and issuing a zpool clear zmsmall1 could mess the good data on the first drive.
How I should proceed for a safe recovery? PS: I'm already doing a second backup, but I would prefer to solve the situation (for practicing) instead of bringing up a new pool.