I apologise if my information here is badly laid out.
I added a cache drive to my zpool by udev id (e.g. sda). Later, I restarted the computer and it was assigned a different udev id (of course). To get it back, I tried zpool replace
, zpool import
, and zpool online
, but none of them worked (maybe I did it wrong?).
Is it possible to re-add a drive to a zpool without wiping it first, or will I have to drop my cache?
Drive IDs
old udev | disk/by-id |
---|---|
sdc |
ata-Apacer_AS340_480GB_YTAH190705739 |
zpool info
> zpool status
pool: newpool
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: http://zfsonlinux.org/msg/ZFS-8000-4J
scan: scrub repaired 0B in 0 days 13:35:36 with 0 errors on Sun Dec 12 13:59:38 2021
config:
NAME STATE READ WRITE CKSUM
newpool ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
ata-WDC_WD4002FFWX-68TZ4N0_K3G0HWLB ONLINE 0 0 0
ata-ST4000DM000-1F2168_S3013K0S ONLINE 0 0 0
mirror-2 ONLINE 0 0 0
ata-ST4000DM000-1F2168_Z300WERG ONLINE 0 0 0
ata-WDC_WD4002FFWX-68TZ4N0_K3G0HVSB ONLINE 0 0 0
logs
ata-KINGSTON_SA400S37120G_50026B7682053DB7 ONLINE 0 0 0
cache
sdc UNAVAIL 0 0 0
> zpool version
zfs-0.8.3-1ubuntu12.13
zfs-kmod-0.8.3-1ubuntu12.13
0 Answers