Score:0

zpool import missing cache drive; ubuntu

cn flag

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
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.