SOLVED pool unknown and status offline

joaquinel8

Cadet
Joined
Jul 5, 2017
Messages
9
good morning to all. my respaets.

I am using freenas 11.3-u4.1
I have a pool with 4 2tb disks and 1 ssd passes slog
arm the pool with 2 mirrored vdevs.
I wanted to test that susede if I disconnect the ssd slog or simulate a failure of it.
To my surprise after disconnecting and restarting the freenas the pool appears as UNKNOWN, clicking on the status of the webui says offline.
try zpool import command and it shows me this
pool joaquin.PNG

on the other hand the state of the pool in the webui is this
joaquin offline.PNG

I would like to know how I can return the pool to the online state without having to import the pool from the cli since I have done this before and it does not solve the problem
I clarify that this is a test environment, but it would be good to know how to solve the problem if it is in production.
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
From the CLI, the zpool import -m option should allow that pool to be imported. I'm not sure how the GUI would behave, but the worst case is that you import in the CLI, export, and then import in the GUI.
 

joaquinel8

Cadet
Joined
Jul 5, 2017
Messages
9
I tried with
Code:
zpool import -m
and it didn't work, then I tried with
Code:
zpool import -m -R /mnt joaquin
and I could see the directory from the cli in /mnt /joaquin but on the web ui it is still unknown
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
I tried with Code:
zpool import -m
and it didn't work
That's normal, you're not telling it which pool to import.

then I tried with Code:
zpool import -m -R /mnt joaquin
The -R /mnt was probably not necessary.

nd I could see the directory from the cli in /mnt /joaquin but on the web ui it is still unknown
As I mentioned, you need to export from the CLI and import from the GUI for things to be back to normal. The middleware that runs the GUI doesn't know if you go messing around behind its back, so this process brings it back into the loop.
 

joaquinel8

Cadet
Joined
Jul 5, 2017
Messages
9
ok now try
Code:
zpool import -m joaquin 
then
Code:
zpool export joaquin

everything remains the same. In the webui it follows the pool joaquin unknown and it does not allow me to import from there
 

joaquinel8

Cadet
Joined
Jul 5, 2017
Messages
9
now I tried to export the pool from the webui, restart the server, I try to import from the webiu but the pool does not exist!
however the
Code:
 zpool import 
command in cli shows me this
Code:
root@freenas[~]# zpool import
   pool: joaquin
     id: 15577579804211525361
  state: UNAVAIL
 status: One or more devices are missing from the system.
 action: The pool cannot be imported. Attach the missing
        devices and try again.
   see: http://illumos.org/msg/ZFS-8000-6X
 config:

        joaquin                                         UNAVAIL  missing device
          mirror-0                                      ONLINE
            gptid/83f12c46-e7c4-11ea-982a-5cf3fc282d4e  ONLINE
            gptid/842877d6-e7c4-11ea-982a-5cf3fc282d4e  ONLINE
          mirror-1                                      ONLINE
            gptid/9dafed98-e7c4-11ea-982a-5cf3fc282d4e  ONLINE
            gptid/9e195b02-e7c4-11ea-982a-5cf3fc282d4e  ONLINE
        logs
          4813699577927614805                           UNAVAIL  cannot open

        Additional devices are known to be part of this pool, though their
        exact configuration cannot be determined.

I am really concerned that simply turning off the power to the ssd slog might cause so much trouble to access the data again.

And I do this same test in later versions of freenas and it was solved with zpool import tank and then removing or replacing the slog from the web ui. but in this new version (11.3) I have not been successful.
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
What does zpool status say after the pool is imported?
 

joaquinel8

Cadet
Joined
Jul 5, 2017
Messages
9
show the following
Code:
root@freenas[~]# zpool status
  pool: freenas-boot
 state: ONLINE
  scan: none requested
config:

        NAME        STATE     READ WRITE CKSUM
        freenas-boot  ONLINE       0     0     0
          da0p2     ONLINE       0     0     0

errors: No known data errors

  pool: joaquin
 state: DEGRADED
status: One or more devices could not be opened.  Sufficient replicas exist for
        the pool to continue functioning in a degraded state.
action: Attach the missing device and online it using 'zpool online'.
   see: http://illumos.org/msg/ZFS-8000-2Q
  scan: none requested
config:

        NAME                                            STATE     READ WRITE CKSUM
        joaquin                                         DEGRADED     0     0     0
          mirror-0                                      ONLINE       0     0     0
            gptid/83f12c46-e7c4-11ea-982a-5cf3fc282d4e  ONLINE       0     0     0
            gptid/842877d6-e7c4-11ea-982a-5cf3fc282d4e  ONLINE       0     0     0
          mirror-1                                      ONLINE       0     0     0
            gptid/9dafed98-e7c4-11ea-982a-5cf3fc282d4e  ONLINE       0     0     0
            gptid/9e195b02-e7c4-11ea-982a-5cf3fc282d4e  ONLINE       0     0     0
        logs
          4813699577927614805                           UNAVAIL      0     0     0  was /dev/gptid/af988bc7-e7c4-11ea-982a-5cf3fc282d4e

errors: No known data errors
root@freenas[~]#



even so I still cannot see and import on the web ui
 

joaquinel8

Cadet
Joined
Jul 5, 2017
Messages
9
now try the following
Code:
 zpool online joaquin /dev/gptid/af988bc7-e7c4-11ea-982a-5cf3fc282d4e
warning: device '/dev/gptid/af988bc7-e7c4-11ea-982a-5cf3fc282d4e' onlined, but remains in faulted state
use 'zpool replace' to replace devices that are no longer present

and later
Code:
 zpool remove joaquin /dev/gptid/af988bc7-e7c4-11ea-982a-5cf3fc282d4e



and this is the result
Code:
root@freenas[~]# zpool status
  pool: freenas-boot
 state: ONLINE
  scan: none requested
config:

        NAME        STATE     READ WRITE CKSUM
        freenas-boot  ONLINE       0     0     0
          da0p2     ONLINE       0     0     0

errors: No known data errors

  pool: joaquin
 state: ONLINE
  scan: none requested
config:

        NAME                                            STATE     READ WRITE CKSUM
        joaquin                                         ONLINE       0     0     0
          mirror-0                                      ONLINE       0     0     0
            gptid/83f12c46-e7c4-11ea-982a-5cf3fc282d4e  ONLINE       0     0     0
            gptid/842877d6-e7c4-11ea-982a-5cf3fc282d4e  ONLINE       0     0     0
          mirror-1                                      ONLINE       0     0     0
            gptid/9dafed98-e7c4-11ea-982a-5cf3fc282d4e  ONLINE       0     0     0
            gptid/9e195b02-e7c4-11ea-982a-5cf3fc282d4e  ONLINE       0     0     0

errors: No known data errors
root@freenas[~]#


anyway I do not see the pool in the web ui, I am going to restart the server and comment
 

joaquinel8

Cadet
Joined
Jul 5, 2017
Messages
9
solved !!! Now I know that to solve this problem I have to identify the gptid of the slog, and remove it from the pool.

Below I describe the 3 steps to solve this problem and I hope it will be useful to someone.
1
Code:
zpool import -m -R /mnt "pool_name"

2 see the gptid of the slog
Code:
zpool status

3
Code:
zpool remove "pool_name" /dev/gptid/xxxxxxxxxxxxxxxxxxxxxxxxxx


With these 3 steps I can import the pool from the web ui.
Thanks Ericloewe for your attention.
Greetings from Uruguay.
 

Bayourski

Cadet
Joined
Dec 3, 2020
Messages
1
root@freenas[~]# zpool status
pool: OURTV1
state: ONLINE
status: One or more devices has experienced an error resulting in data
corruption. Applications may be affected.
action: Restore the file in question if possible. Otherwise restore the
entire pool from backup.
see: http://illumos.org/msg/ZFS-8000-8A
scan: scrub repaired 0 in 0 days 06:53:52 with 2 errors on Sun Nov 15 06:53:52 2020
config:

NAME STATE READ WRITE CKSUM
OURTV1 ONLINE 0 0 10
gptid/80f02880-4914-11ea-947a-00259038ea50 ONLINE 0 0 20

errors: 2 data errors, use '-v' for a list

pool: freenas-boot
state: ONLINE
scan: scrub repaired 0 in 0 days 00:00:13 with 0 errors on Thu Nov 26 03:45:14 2020
config:

NAME STATE READ WRITE CKSUM
freenas-boot ONLINE 0 0 0
da0p2 ONLINE 0 0 0

errors: No known data errors

freenasss.png


After running the command zpool import -m -R /mnt "OURTV1"
and zpool import -F OURTV1 to import the pools

Pools came back online.png


However everything came back online but I cannot access my files in the FTP dataset. Every users with FTP accounts cannot log in to access their files. Please is there a way to have access to the files so that i can even back up some of the files or is there a way where everything can be back to normal?
User Creation.png


In the user creation here, the directory /mnt cannot be accessed to the other directory containing large voluminous files.
Please help
 
Top