I’ve logged in today to find my pool has been exported. I suspect a hardware failure of one of the disks (most likely) but am unsure of how to move forward.
When I try and import the pool it doesn’t show up.
I have run smart tests on the disks which pass.
When I run import pool via shell I get this:
root@truenas[~J# zpool import
pool:
Swimming
id: 14467692675057611316
state: ONLINE status:
Some supported features are not enabled on the pool.
(Note that they may be intentionally disabled if the
‘compatibility’ property is set.)
action: The pool can be imported using its name or numeric identifier
though
some features will not be available without an explicit ‘zpool upgrade’.
config:
Swimming
ONLINE
mirror-0
ONLINE
fb6f49c6-1e82-11ef-8411-d017c2d255f8
ONLINE
fb51160e-1e82-11ef-8411-d017c2d255f8
ONLINE
mirror-1
ONLINE
6db758c7-9dc0-41f4-9dd5-5f1e088efda0
ONLINE
ab18a756-c9bd-4a55-9a29-71f957e52526
ONLINE
root@truenas[-J# zpool import 14467692675057611316
cannot import
‘Swimming’: one or more devices is currently unavailable
I’d really like to not lose the data on the drives (ofc) but it’s fairly unclear how to move forward here without delete the data and starting again. (happy to buy a new drive)
Can anyone point me in the right direction? Many thanks in advance.
for dev in {fb6f49c6-1e82-11ef-8411-d017c2d255f8,\
fb51160e-1e82-11ef-8411-d017c2d255f8,\
6db758c7-9dc0-41f4-9dd5-5f1e088efda0,\
ab18a756-c9bd-4a55-9a29-71f957e52526\
};
do zdb -l /dev/disk/by-partuuid/$dev | grep -E ^" "txg;
done
root@truenas[~]# zpool import
pool: Swimming
id: 14467692675057611316
state: ONLINE
status: Some supported features are not enabled on the pool.
(Note that they may be intentionally disabled if the
'compatibility' property is set.)
action: The pool can be imported using its name or numeric identifier, though
some features will not be available without an explicit 'zpool upgrade'.
config:
Swimming ONLINE
mirror-0 ONLINE
fb6f49c6-1e82-11ef-8411-d017c2d255f8 ONLINE
fb51160e-1e82-11ef-8411-d017c2d255f8 ONLINE
mirror-1 ONLINE
6db758c7-9dc0-41f4-9dd5-5f1e088efda0 ONLINE
ab18a756-c9bd-4a55-9a29-71f957e52526 ONLINE
root@truenas[~]# zpool import
pool: Swimming
id: 14467692675057611316
state: ONLINE
status: Some supported features are not enabled on the pool.
(Note that they may be intentionally disabled if the
'compatibility' property is set.)
action: The pool can be imported using its name or numeric identifier, though
some features will not be available without an explicit 'zpool upgrade'.
config:
Swimming ONLINE
mirror-0 ONLINE
fb6f49c6-1e82-11ef-8411-d017c2d255f8 ONLINE
fb51160e-1e82-11ef-8411-d017c2d255f8 ONLINE
mirror-1 ONLINE
6db758c7-9dc0-41f4-9dd5-5f1e088efda0 ONLINE
ab18a756-c9bd-4a55-9a29-71f957e52526 ONLINE
root@truenas[~]# zpool import 14467692675057611316
cannot import 'Swimming': one or more devices is currently unavailable
After the zpool import failure please show me the last 100-200 lines or so of the file
/proc/spl/kstat/zfs/dbgmsg
you can tail -n 200 the output to a file if it’s easier.
I’d also like to see a full zdb -l output for one of those partitions, but without the | grep afterwards, so just the zdb -l /dev/disk/by-partuuid/$dev piece.
root@truenas[~]# zpool import
pool: Swimming
id: 14467692675057611316
state: ONLINE
status: Some supported features are not enabled on the pool.
(Note that they may be intentionally disabled if the
‘compatibility’ property is set.)
action: The pool can be imported using its name or numeric identifier, though
some features will not be available without an explicit ‘zpool upgrade’.
config:
As mentioned above, there is no failure (100/200 lines) after zpool import. It just talks about unsupported features.
root@truenas[~]# zpool import
pool: Swimming
id: 14467692675057611316
state: ONLINE
status: Some supported features are not enabled on the pool.
(Note that they may be intentionally disabled if the
'compatibility' property is set.)
action: The pool can be imported using its name or numeric identifier, though
some features will not be available without an explicit 'zpool upgrade'.
config:
Swimming ONLINE
mirror-0 ONLINE
fb6f49c6-1e82-11ef-8411-d017c2d255f8 ONLINE
fb51160e-1e82-11ef-8411-d017c2d255f8 ONLINE
mirror-1 ONLINE
6db758c7-9dc0-41f4-9dd5-5f1e088efda0 ONLINE
ab18a756-c9bd-4a55-9a29-71f957e52526 ONLINE