SOLVED Help unable to import pool logs device unavailable

Status
Not open for further replies.

AVSION

Contributor
Joined
Dec 28, 2016
Messages
128
Hi Guys,

I did a big mistake was trying to relocate the SWAP/SLOG/A2ARC SSD to intel Optane 900p SSD PCIe, i formate the existing SWAP/SLOG/A2ARC SSD before relocating it to the 900p. now i can't import the pool "Tank, i get an error that the pool is unavailable due to the log device is missing. using gpart i already created the partitions and relocated the swap to the 900p but as the pool is not imported i cant relocated the SLOG/A2ARC see below printout. all the drives show online and i didn't delete the pool only format the previous SWAP/SLOG/A2ARC SSD. how can i import the pool when the SLOG/A2ARC is missing?? Please help.

Note - all my system info is in my signature, and i'm not using ESXi at the moment, i booted bare-metal from usb to fix the pool issue.

Thank you

Code:
[root@freenas ~]# glabel status | grep nvd0
gptid/6762c737-c0a1-11e8-9f75-0cc47adb3218	 N/A  nvd0p1
gptid/6ff84a55-c0a1-11e8-9f75-0cc47adb3218	 N/A  nvd0p2
gptid/76d01ebd-c0a1-11e8-9f75-0cc47adb3218	 N/A  nvd0p3
[root@freenas ~]# swapinfo
Device		  512-blocks	 Used	Avail Capacity
/dev/gptid/6762c737-c0a1-11e8-9   33554432		0 33554432	 0%
[root@freenas ~]# zpool add Tank log gptid/6ff84a55-c0a1-11e8-9f75-0cc47adb3218
cannot open 'Tank': no such pool
[root@freenas ~]# zpool import
   pool: Tank
	 id: 9215080651062829587
  state: UNAVAIL
 status: The pool was last accessed by another system.
 action: The pool cannot be imported due to damaged devices or data.
   see: http://illumos.org/msg/ZFS-8000-EY
 config:

		Tank											UNAVAIL  missing device
		  raidz2-0									  ONLINE
			gptid/b5b40bb4-4e99-11e7-9cba-0cc47adb3218  ONLINE
			gptid/b69faf01-4e99-11e7-9cba-0cc47adb3218  ONLINE
			gptid/b792e7b8-4e99-11e7-9cba-0cc47adb3218  ONLINE
			gptid/b87cfa92-4e99-11e7-9cba-0cc47adb3218  ONLINE
			gptid/b969428a-4e99-11e7-9cba-0cc47adb3218  ONLINE
			gptid/ba5cf8b5-4e99-11e7-9cba-0cc47adb3218  ONLINE
			gptid/bb4ae668-4e99-11e7-9cba-0cc47adb3218  ONLINE
			gptid/bc3d4265-4e99-11e7-9cba-0cc47adb3218  ONLINE
		logs
		  2473847764174423671						   UNAVAIL  cannot open
[root@freenas ~]# glabel status | grep nvd0
gptid/6762c737-c0a1-11e8-9f75-0cc47adb3218	 N/A  nvd0p1
gptid/6ff84a55-c0a1-11e8-9f75-0cc47adb3218	 N/A  nvd0p2
gptid/76d01ebd-c0a1-11e8-9f75-0cc47adb3218	 N/A  nvd0p3
[root@freenas ~]# zpool status Tank
cannot open 'Tank': no such pool
[root@freenas ~]# zpool status
  pool: freenas-boot
 state: ONLINE
  scan: none requested
config:

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

errors: No known data errors
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,176
That's easy, zpool import -m poolname. Of course, you will lose any transactions that were in ZIL but had not yet been committed to disk.
 

AVSION

Contributor
Joined
Dec 28, 2016
Messages
128
Thanks Ericloewe you made my day:) see below

i already created the new SLOG/A2ARC partitions and attached them but I just have the old log still there how do i get rid-off it? i clicked scrub and its doing it right now is that will clean it?

Thanks again

Code:
root@freenas:~ # zpool import -m Tank
cannot import 'Tank': pool may be in use from other system, it was last accessed by  (hostid: 0xc0d18754) on Mon Sep 24 17:54:38 2018
use '-f' to import anyway
root@freenas:~ # zpool import
   pool: Tank
	id: 9215080651062829587
  state: UNAVAIL
 status: The pool was last accessed by another system.
 action: The pool cannot be imported due to damaged devices or data.
   see: http://illumos.org/msg/ZFS-8000-EY
 config:

	   Tank											UNAVAIL  missing device
		 raidz2-0									  ONLINE
		   gptid/b5b40bb4-4e99-11e7-9cba-0cc47adb3218  ONLINE
		   gptid/b69faf01-4e99-11e7-9cba-0cc47adb3218  ONLINE
		   gptid/b792e7b8-4e99-11e7-9cba-0cc47adb3218  ONLINE
		   gptid/b87cfa92-4e99-11e7-9cba-0cc47adb3218  ONLINE
		   gptid/b969428a-4e99-11e7-9cba-0cc47adb3218  ONLINE
		   gptid/ba5cf8b5-4e99-11e7-9cba-0cc47adb3218  ONLINE
		   gptid/bb4ae668-4e99-11e7-9cba-0cc47adb3218  ONLINE
		   gptid/bc3d4265-4e99-11e7-9cba-0cc47adb3218  ONLINE
	   logs
		 2473847764174423671						   UNAVAIL  cannot open
root@freenas:~ # zpool import -f Tank
The devices below are missing or corrupted, use '-m' to import the pool anyway:
		   gptid/7de19854-b8fa-11e8-8abb-000c29ab00cc [log]

cannot import 'Tank': one or more devices is currently unavailable
root@freenas:~ # zpool import -m -f Tank
root@freenas:~ # zpool import
root@freenas:~ # zpool status
  pool: Tank
 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: resilvered 6.54M in 0 days 00:00:01 with 0 errors on Thu Sep 13 10:31:14 2018
config:

	   NAME											STATE	 READ WRITE CKSUM
	   Tank											DEGRADED	 0	 0	 0
		 raidz2-0									  ONLINE	   0	 0	 0
		   gptid/b5b40bb4-4e99-11e7-9cba-0cc47adb3218  ONLINE	   0	 0	 0
		   gptid/b69faf01-4e99-11e7-9cba-0cc47adb3218  ONLINE	   0	 0	 0
		   gptid/b792e7b8-4e99-11e7-9cba-0cc47adb3218  ONLINE	   0	 0	 0
		   gptid/b87cfa92-4e99-11e7-9cba-0cc47adb3218  ONLINE	   0	 0	 0
		   gptid/b969428a-4e99-11e7-9cba-0cc47adb3218  ONLINE	   0	 0	 0
		   gptid/ba5cf8b5-4e99-11e7-9cba-0cc47adb3218  ONLINE	   0	 0	 0
		   gptid/bb4ae668-4e99-11e7-9cba-0cc47adb3218  ONLINE	   0	 0	 0
		   gptid/bc3d4265-4e99-11e7-9cba-0cc47adb3218  ONLINE	   0	 0	 0
	   logs
		 2473847764174423671						   UNAVAIL	  0	 0	 0  was /dev/gptid/7de19854-b8fa-11e8-8abb-000c29ab00cc

errors: No known data errors

  pool: freenas-boot
 state: ONLINE
  scan: none requested
config:

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

errors: No known data errors
root@freenas:~ # glabel status | grep nvd0
gptid/6ff84a55-c0a1-11e8-9f75-0cc47adb3218	 N/A  nvd0p2
gptid/76d01ebd-c0a1-11e8-9f75-0cc47adb3218	 N/A  nvd0p3
gptid/6762c737-c0a1-11e8-9f75-0cc47adb3218	 N/A  nvd0p1
root@freenas:~ # zpool add tank log gptid/6ff84a55-c0a1-11e8-9f75-0cc47adb3218
cannot open 'tank': no such pool
root@freenas:~ # zpool add Tank log gptid/6ff84a55-c0a1-11e8-9f75-0cc47adb3218
root@freenas:~ # zpool add Tank cache gptid/76d01ebd-c0a1-11e8-9f75-0cc47adb3218
root@freenas:~ #
root@freenas:~ #
root@freenas:~ #
root@freenas:~ #
root@freenas:~ #
root@freenas:~ # zpool status tank
cannot open 'tank': no such pool
root@freenas:~ # zpool status Tank
  pool: Tank
 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: resilvered 6.54M in 0 days 00:00:01 with 0 errors on Thu Sep 13 10:31:14 2018
config:

	   NAME											STATE	 READ WRITE CKSUM
	   Tank											DEGRADED	 0	 0	 0
		 raidz2-0									  ONLINE	   0	 0	 0
		   gptid/b5b40bb4-4e99-11e7-9cba-0cc47adb3218  ONLINE	   0	 0	 0
		   gptid/b69faf01-4e99-11e7-9cba-0cc47adb3218  ONLINE	   0	 0	 0
		   gptid/b792e7b8-4e99-11e7-9cba-0cc47adb3218  ONLINE	   0	 0	 0
		   gptid/b87cfa92-4e99-11e7-9cba-0cc47adb3218  ONLINE	   0	 0	 0
		   gptid/b969428a-4e99-11e7-9cba-0cc47adb3218  ONLINE	   0	 0	 0
		   gptid/ba5cf8b5-4e99-11e7-9cba-0cc47adb3218  ONLINE	   0	 0	 0
		   gptid/bb4ae668-4e99-11e7-9cba-0cc47adb3218  ONLINE	   0	 0	 0
		   gptid/bc3d4265-4e99-11e7-9cba-0cc47adb3218  ONLINE	   0	 0	 0
	   logs
		 2473847764174423671						   UNAVAIL	  0	 0	 0  was /dev/gptid/7de19854-b8fa-11e8-8abb-000c29ab00cc
		 gptid/6ff84a55-c0a1-11e8-9f75-0cc47adb3218	ONLINE	   0	 0	 0
	   cache
		 gptid/76d01ebd-c0a1-11e8-9f75-0cc47adb3218	ONLINE	   0	 0	 0

		 
 

HoneyBadger

actually does care
Administrator
Moderator
iXsystems
Joined
Feb 6, 2014
Messages
5,110
i already created the new SLOG/A2ARC partitions and attached them but I just have the old log still there how do i get rid-off it? i clicked scrub and its doing it right now is that will clean it?

You should be able to remove the old (UNAVAIL) log device from the GUI.
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,176
Or zpool remove, which removes vdevs in general.*

*Restrictions apply
 

AVSION

Contributor
Joined
Dec 28, 2016
Messages
128
Thanks guys all back to normal all the best
 
Status
Not open for further replies.
Top