How to reactivate a temporarily missing disk in a mirred pool?
The disk /dev/disk/by-id/dm-uuid-CRYPT-LUKS1-xxx2 is present and can be read from but zfs does not attach it to the pool.
zpool offline/online with the disk does not work.
Even "zpool replace data1 15349308663512205183 /dev/disk/by-id/dm-uuid-CRYPT-LUKS1-xxx2" fails with the error
Why does zfs assign a new id to the drive and how can this be undone?
Code:
zpool status
pool: data1
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 00:25:48 with 0 errors on Sun Jun 11 00:49:49 2023
config:
NAME STATE READ WRITE CKSUM
data1 DEGRADED 0 0 0
mirror-0 DEGRADED 0 0 0
dm-uuid-part2-CRYPT-LUKS1-xxxxx1 ONLINE 0 0 0
15349308663512205183 UNAVAIL 0 0 0 was /dev/disk/by-id/dm-uuid-CRYPT-LUKS1-xxx2
The disk /dev/disk/by-id/dm-uuid-CRYPT-LUKS1-xxx2 is present and can be read from but zfs does not attach it to the pool.
zpool offline/online with the disk does not work.
Even "zpool replace data1 15349308663512205183 /dev/disk/by-id/dm-uuid-CRYPT-LUKS1-xxx2" fails with the error
Code:
cannot open '/dev/disk/by-id/dm-uuid-CRYPT-LUKS1-xxx2': Device or resource busy
cannot replace 15349308663512205183 with /dev/disk/by-id/dm-uuid-CRYPT-LUKS1-c57b7fd1a5c04fe09e6aee663bc5287d-data-c3: /dev/disk/by-id/dm-uuid-CRYPT-LUKS1-xxx2 is busy, or device removal is in progress
Why does zfs assign a new id to the drive and how can this be undone?
Last edited: