Pool Import Error: Insufficient Replicas

Hello everybody.

My Truenas server power was down suddenly yesterday with the whole town I live while I was copying file from one disk to another.

So when the power recovered, a pool in the Truenas was disconnected.
I tried to import it with the command "zpool import -F -m ", but it failed and I got the error: Insufficient Replicas.

Any help is very much appreciate?

Thanks a lot.

Cautious with operations on the command line… (No altroot, why -m?)
First, a description of your hardware and pool setup is in order.
zpool status -v and
zpool import would help.
Please prefix with sudo as may be required and post the output as formatted text (</>).

2 Likes

Thank you for your reply.

Truenas 6.1.74 in esxi-8.0 on intel i9 server .
Can’t import in webgui of Truenas, error code 2095.

Shell command:
sudo zpool import -F -R /mnt/ datapool
Got error :Insufficient Replicas

It’s a good thing you totally ignored that part, @karlmarx.

Rather than do what @etorix suggests, try this instead:

zpool status -v and
zpool import

Don’t forget to prefix with sudo as may be required and post the output as formatted text (</>).

2 Likes

There’s never been any version of TrueNAS with a version number anywhere close to this. So what are you actually running?

1 Like

Maybe it is the kernel…

Sorry.
TrueNAS-SCALE-23.10.2

On the old forum there are a few threads about this, but alas, no solution it seems…

1 Like

admin@truenas[~]$ sudo zpool import
pool: storage
id: 8658978616055357809
state: ONLINE
action: The pool can be imported using its name or numeric identifier.
config:

    storage                              ONLINE
      97fe568d-8246-4110-8847-b2fdvd608194  ONLINE

Is this a single-disk pool?

Yes

If using -o readonly=on, the pool could be imported.
But could not be shared.

Your disk could be going bad.

Not even ZFS can fully safeguard your data on a pool that consists of only one disk.

If this was a two-way mirror, you might still be able to import the pool, even if the other disk is failed or failing.

Is this data important?

If it is, then you you might be able to copy everything over to another drive (or pool) while it is imported in a readonly state.

Thank you very much for your help.

sudo zfs send pool1/dataset1@snapshot | sudo zfs recv pool2/dataset2?

Could the original data in pool2 keep safe?

Virtual disk, disk passthrough, or controller passthrough?

That’s the idea, but whenever possible do it through the GUI rather than CLI. Here, a manual replication task.
If the pool is a single drive without a SLOG there never was a need for the -m option on import. You may have been an inspiration…

What is “pool2”? We’re playing a guessing game here.

Do you even have a backup of the data on pool1? How come you decided to use TrueNAS to create a single-drive pool without redundancy?

Is pool2 the backup?

How important is this data?

Thanks everybody.
The issue was resolved.

  1. sudo zpool import -R /mnt/ -o readonly=on datapool
  2. sudo zpool scrub datapool # several hours.
  3. sudo zpool export datapool
  4. sudo zpool import -fFX -R /mnt/ datapool #several hours
  5. sudo zpool export datapool
  6. Webgui import datapool