On a Solaris 11 system I have a pool that was originally built with a log a cache device on a single SSD. The SSD died and I realised I should have a mirror log, so I've just tried to replace the log a cache with a pair of SSDs.

Adding the log was OK:

zpool add -f export log mirror c10t3d0s0 c10t4d0s0

But adding the cache fails:

zpool add -f export cache c10t3d0s1 c10t4d0s1
invalid vdev specification
the following errors must be manually repaired:
/dev/dsk/c10t3d0s2 is part of active ZFS pool export. Please see zpool(1M).
/dev/dsk/c10t3d0s1 overlaps with /dev/dsk/c10t3d0s2

Now that looks impossible to repair, s2 can't be removed. The SSD partition table is:

Total disk cylinders available: 19932 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders         Size            Blocks
  0 unassigned    wm       0 -  2674       16.00GB    (2675/0/0)   33555200
  1 unassigned    wm    2675 - 19931      103.22GB    (17257/0/0) 216471808
  2     backup    wu       0 - 19931      119.22GB    (19932/0/0) 250027008

Is there a solution?


zfs-discuss mailing list

Reply via email to