Unable to import ZFS volume into FreeNAS 11

Status
Not open for further replies.

victorhooi

Contributor
Joined
Mar 16, 2012
Messages
184
Hi,

I had a NAS previously running FreeNAS 10 (Corral) on it, with a single ZFS volume (RAIDZ-1, compromised of 3 disks - 1 of which was in the process of being replaced.).

I reformatted the boot USB, and installed FreeNAS 11 on it:
  • FreeNAS-11-MASTER-201705270409 (d3f5254)
I bypassed the initial setup wizard (because I've had issues before with it hanging at the AD step) - and then went into volumes, and tried to import the previous volume - however, for some reason it didn't appear.

I SSH-ed in as well, here is the output of zpool status and zpool import:
Code:
root@angfamilynas:~ # 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
root@angfamilynas:~ # zpool import
   pool: angfamilynas
	 id: 16621537248281622998
  state: DEGRADED
 status: The pool was last accessed by another system.
 action: The pool can be imported despite missing or damaged devices.  The
	fault tolerance of the pool may be compromised if imported.
   see: http://illumos.org/msg/ZFS-8000-EY
 config:

	angfamilynas									DEGRADED
	  raidz1-0									  DEGRADED
		gptid/dc729a84-f2a9-11e6-a0e3-7085c22bc464  ONLINE
		gptid/dd3e4230-f2a9-11e6-a0e3-7085c22bc464  ONLINE
		16014814109208190310						UNAVAIL  cannot open


I then imported it manually using :zpool import -f angfamily". (I had to use -f, as it was previously used on another system - actually the same system).

I rebooted FreeNAS - but it's still not showing up under Volumes in the FreeNAS GUI - furthermore, even though zpool status shows it there, it doesn't show up under mount, for some reason:
Code:
root@angfamilynas:/mnt # mount																																											  freenas-boot/ROOT/default on / (zfs, local, noatime, nfsv4acls)
devfs on /dev (devfs, local, multilabel)
tmpfs on /etc (tmpfs, local)
tmpfs on /mnt (tmpfs, local)
tmpfs on /var (tmpfs, local)
freenas-boot/grub on /boot/grub (zfs, local, noatime, nfsv4acls)
fdescfs on /dev/fd (fdescfs)
root@angfamilynas:/mnt # zpool status
  pool: angfamilynas
 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
	angfamilynas									DEGRADED	 0	 0	 0
	  raidz1-0									  DEGRADED	 0	 0	 0
		gptid/dc729a84-f2a9-11e6-a0e3-7085c22bc464  ONLINE	   0	 0	 0
		gptid/dd3e4230-f2a9-11e6-a0e3-7085c22bc464  ONLINE	   0	 0	 0
		16014814109208190310						UNAVAIL	  0	 0	 0  was /dev/gptid/de983ac4-f2a9-11e6-a0e3-7085c22bc464

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
	  da0p2	 ONLINE	   0	 0	 0

errors: No known data errors


Any ideas of how to get the FreeNAS GUI to recognise this volume?

Thanks,
Victor
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
Export it in the CLI and import it in the GUI.
 

victorhooi

Contributor
Joined
Mar 16, 2012
Messages
184
Hi,

OK, I've just exported it - output of that, and zpool status/import afterwards is below:

Code:
root@angfamilynas:/mnt # zpool export angfamilynas
root@angfamilynas:/mnt # 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
root@angfamilynas:/mnt # zpool import
   pool: angfamilynas
	 id: 16621537248281622998
  state: DEGRADED
 status: One or more devices are missing from the system.
 action: The pool can be imported despite missing or damaged devices.  The
	fault tolerance of the pool may be compromised if imported.
   see: http://illumos.org/msg/ZFS-8000-2Q
 config:

	angfamilynas									DEGRADED
	  raidz1-0									  DEGRADED
		gptid/dc729a84-f2a9-11e6-a0e3-7085c22bc464  ONLINE
		gptid/dd3e4230-f2a9-11e6-a0e3-7085c22bc464  ONLINE
		16014814109208190310						UNAVAIL  cannot open


I logged into the GUI - and went to Storage, Volumes, Import - it still isn't showing up there:

g94T2sj.png

jtIA1e8.png

H8YQX56.png


Is there any debug information that might be helpful as to figuring out why the GUI doesn't seem to show that volume?

Regards,
Victor
 

victorhooi

Contributor
Joined
Mar 16, 2012
Messages
184
Also - if it is somehow something to do with the volume being in a degraded state - is there some way to manually replace the disk without using the GUI?

My understanding is that the FreeNAS GUI adds a small swap partition to each disk, and does some weird offset/shift things - is there some way to replicate that via the CLI?

Regards,
Victor
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
Probably worth filing a bug on this, especially since FN11 is pre-release. If you do it through the GUI, a copy of your debug file will be attached.
 

victorhooi

Contributor
Joined
Mar 16, 2012
Messages
184
I ended up installing "FreeNAS-9.10.2-U4.iso" - which seemed to detect the volume fine.

I then re-silvered the ZFS pool to replace the missing drive - and then installed "FreeNAS-11-MASTER-201705270409-d3f5254.iso" on the same USB - which was then able to pickup the volume fine.

So it seems that FreeNAS 11.x is somehow unable to pickup ZFS RAID-Z1 pools in a degraded state?
 

indivision

Guru
Joined
Jan 4, 2013
Messages
806
I seem to be in a very similar situation. Except that my volume is RAID10 rather than Z1.

FreeNAS 11.x GUI isn't finding the volume. It is degraded and has a bad drive.

I guess I will also try installing 9.10.2 to see if that works...?
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
So it seems that FreeNAS 11.x is somehow unable to pickup ZFS RAID-Z1 pools in a degraded state?
Perhaps. Did you file a bug as I suggested?
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
I think someone has filed a bug report for that and I think a patch for it was suggested in the same ticket.
 

indivision

Guru
Joined
Jan 4, 2013
Messages
806
Well. Installed 9.10.2 U4. Doesn't find the network. Configure options don't work.

Try U5 I guess?
 

indivision

Guru
Joined
Jan 4, 2013
Messages
806
Ok. U5 found the network properly. The pool did import this time.

I physically replaced the drive. Is there somewhere in the GUI to start the resilver process?

If not, what are the steps to do that? I tried "zpool replace optimus ada3" and it didn't like that...
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504

indivision

Guru
Joined
Jan 4, 2013
Messages
806
Ah. That Volume Status panel is kind of buried. Thank you. "Disk Replacement Process Initiated."
 
Status
Not open for further replies.
Top