Reactivate a temporarily missing disk

carsten2

Renowned Member
Mar 25, 2017
277
29
68
55
How to reactivate a temporarily missing disk in a mirred pool?

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:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!