not sure what you want to achieve with zpool import
https://illumos.org/man/8/zpool

             -a      Searches for and imports all pools found.

             -c cachefile
                     Reads configuration from the given cachefile that was
                     created with the cachefile pool property. This cachefile
                     is used instead of searching for devices.

             -d dir  Searches for devices or files in dir.  The -d option can be                      specified multiple times.  This option is incompatible with
                     the -c option.

the -a option imports all found pools (pool config is on disks)
the -d is mainly when you are using files instead disks. Disks are detected automatically.

normal operation is simply zpool import (reads all disks and shows available pools) and zpool import (-f) poolname. If a disk is missing, the pool is imported in a degraded state.

You cannot "import" single disks.

What do you expect from a zpool destroy? Such a pool remains importable despite.
Maybe you want to ignore the cachefile that allows a faster imoport?

Gea

Thanks Toomas!

raidz6 can survive 2 lost disk, 5 of 6 is still good assuming there are no corrupted blocks;)

That's true, but I guess my question is more nuanced.

Let's say that on the second server I do something like this:

boot, with zero 3.5 disks plugged in and then run:
# zpool destroy tank   // to remove history of he old "tank"

insert 5 of the disks and then run something like this:
# zpool import -a -d c3t1d0 -d c4t0d0-d c4t1d0-d c5t0d0-d c5t1d0

Would that work, or would it fail due to expecting a missing sixth disk?

Thanks again,
Kent


*illumos <https://illumos.topicbox.com/latest>* / illumos-discuss / see discussions <https://illumos.topicbox.com/groups/discuss> + participants <https://illumos.topicbox.com/groups/discuss/members> + delivery options <https://illumos.topicbox.com/groups/discuss/subscription> Permalink <https://illumos.topicbox.com/groups/discuss/Tfcb859beb5f27444-Mc4dfd140903d4dc5e906442c>


--
Guenther Ernst Alka
Dipl. Ing (FH)

Rektor-Klaus Str.71
73525 Schw. Gmünd
tel 07171 931393

------------------------------------------
illumos: illumos-discuss
Permalink: 
https://illumos.topicbox.com/groups/discuss/Tfcb859beb5f27444-M0c8548f25eb3f89c2f3745cf
Delivery options: https://illumos.topicbox.com/groups/discuss/subscription

Reply via email to