zpool에서 사용할 수 없는 캐시 장치를 제거하는 방법은 무엇입니까?

zpool에서 사용할 수 없는 캐시 장치를 제거하는 방법은 무엇입니까?

디스크를 물리적으로 이동하고(캐시 디스크 제외) 새 서버로 가져와 zpool을 한 서버에서 다른 서버(arch linux)로 옮겼습니다. 잘 작동하지만 이전 캐시 장치는 여전히 사용할 수 없는 것으로 표시됩니다.

zpool status storage
  pool: storage
 state: ONLINE
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 08:59:05 with 0 errors on Sun Apr 23 08:59:06 2023
config:

        NAME                                    STATE     READ WRITE CKSUM
        storage                                 ONLINE       0     0     0
          raidz1-0                              ONLINE       0     0     0
            sda2                                ONLINE       0     0     0
            sdb2                                ONLINE       0     0     0
            sdc2                                ONLINE       0     0     0
            sdd2                                ONLINE       0     0     0
        cache
          f7a3305b-ce48-11ea-bdee-77fbe5732e17  UNAVAIL      0     0     0

errors: No known data errors

교체하지 않고 없애고 싶지만 삭제 및 분리가 작동하지 않습니다. 또한 풀 내보내기 및 다시 가져오기를 시도했습니다.

sudo zpool remove storage f7a3305b-ce48-11ea-bdee-77fbe5732e17
cannot remove f7a3305b-ce48-11ea-bdee-77fbe5732e17: no such device in pool

답변1

이것이 내가 해결한 방법입니다.

  1. zpool status -g
  2. 캐시 장치의 GUID를 복사하고 zpool Remove를 사용하여 제거합니다.

이것은 작은 버그일 수도 있고 아닐 수도 있습니다.https://github.com/openzfs/zfs/issues/14871#issuecomment-1549424452

관련 정보