Howto import a pool with problematic log device?

Marsupilani

Cadet
Joined
Mar 24, 2018
Messages
2
Since a power failure I have trouble, because my pool is UNAVAIL. It seems the is a problem with the log device. I don't know how I can replace the device without losing the complete pool....

/var/log/messages:

...

May 3 11:26:49 nas-01 (ada6:ahcich6:0:0:0): READ_FPDMA_QUEUED. ACB: 60 00 00 13 00 40 00 00 00 01 00 00
May 3 11:26:49 nas-01 (ada6:ahcich6:0:0:0): CAM status: ATA Status Error
May 3 11:26:49 nas-01 (ada6:ahcich6:0:0:0): ATA status: 00 ()
May 3 11:26:49 nas-01 (ada6:ahcich6:0:0:0): RES: 00 00 00 00 00 00 00 00 00 00 00
May 3 11:26:49 nas-01 (ada6:ahcich6:0:0:0): Retrying command
May 3 11:26:49 nas-01 (ada6:ahcich6:0:0:0): READ_FPDMA_QUEUED. ACB: 60 00 00 13 00 40 00 00 00 01 00 00
May 3 11:26:49 nas-01 (ada6:ahcich6:0:0:0): CAM status: ATA Status Error
May 3 11:26:49 nas-01 (ada6:ahcich6:0:0:0): ATA status: 51 (DRDY SERV ERR), error: 40 (UNC )
May 3 11:26:49 nas-01 (ada6:ahcich6:0:0:0): RES: 51 40 00 13 00 40 00 00 00 00 01
May 3 11:26:49 nas-01 (ada6:ahcich6:0:0:0): Retrying command
May 3 11:26:49 nas-01 (ada6:ahcich6:0:0:0): READ_FPDMA_QUEUED. ACB: 60 00 00 13 00 40 00 00 00 01 00 00
May 3 11:26:49 nas-01 (ada6:ahcich6:0:0:0): CAM status: ATA Status Error
May 3 11:26:49 nas-01 (ada6:ahcich6:0:0:0): ATA status: 51 (DRDY SERV ERR), error: 40 (UNC )
May 3 11:26:49 nas-01 (ada6:ahcich6:0:0:0): RES: 51 40 00 13 00 40 00 00 00 00 01
May 3 11:26:49 nas-01 (ada6:ahcich6:0:0:0): Retrying command
...

ada6 seems to be the logdevice of the pool...

glabel status
Name Status Components
gptid/6ee73c8e-c216-11e6-9a26-0015178f3e52 N/A ada0p2
gptid/6e49a986-c216-11e6-9a26-0015178f3e52 N/A ada1p2
gptid/6dad1e08-c216-11e6-9a26-0015178f3e52 N/A ada2p2
gptid/6d0f550f-c216-11e6-9a26-0015178f3e52 N/A ada3p2
gptid/e25a126c-f8b7-11e9-a25a-0015178f3e52 N/A ada4p2
gptid/6bd08701-c216-11e6-9a26-0015178f3e52 N/A ada5p2
gptid/14b4376f-125f-11e7-a824-0015178f3e52 N/A ada6p1
gptid/0027f334-c218-11e6-9a26-0015178f3e52 N/A ada7p1
label/efibsd N/A da0p1
gptid/66e22582-a04c-11e7-a71b-0015178f3e52 N/A da0p1
gptid/6bbfc908-c216-11e6-9a26-0015178f3e52 N/A ada5p1
gptid/e2491e73-f8b7-11e9-a25a-0015178f3e52 N/A ada4p1
gptid/6d0181c3-c216-11e6-9a26-0015178f3e52 N/A ada3p1
gptid/6d9f198b-c216-11e6-9a26-0015178f3e52 N/A ada2p1
gptid/6e3b63e4-c216-11e6-9a26-0015178f3e52 N/A ada1p1
gptid/6ed82156-c216-11e6-9a26-0015178f3e52 N/A ada0p1



zpool import

pool: RAID-Z_1
id: 17337697926081966241
state: ONLINE
action: The pool can be imported using its name or numeric identifier.
config:

RAID-Z_1 ONLINE
raidz1-0 ONLINE
gptid/6bd08701-c216-11e6-9a26-0015178f3e52 ONLINE
gptid/e25a126c-f8b7-11e9-a25a-0015178f3e52 ONLINE
gptid/6d0f550f-c216-11e6-9a26-0015178f3e52 ONLINE
gptid/6dad1e08-c216-11e6-9a26-0015178f3e52 ONLINE
gptid/6e49a986-c216-11e6-9a26-0015178f3e52 ONLINE
gptid/6ee73c8e-c216-11e6-9a26-0015178f3e52 ONLINE
cache
gptid/0027f334-c218-11e6-9a26-0015178f3e52
logs
gptid/14b4376f-125f-11e7-a824-0015178f3e52 ONLINE


When I try to import, I get a message about a unavailable device ...

zpool import 17337697926081966241
cannot import 'RAID-Z_1': one or more devices is currently unavailable
zpool import -m 17337697926081966241
cannot import 'RAID-Z_1': one or more devices is currently unavailable

Any ideas?
 

Marsupilani

Cadet
Joined
Mar 24, 2018
Messages
2
Meantime I found a workaround. I have disconnect the log device physical.
Afterwards

zpool -m import

worked and the pool was displayed as degraded,
so I was able to replace the problematic device and resilver....
 
Top