Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.




133 posts

Master Geek
Inactive user


#268633 29-Mar-2020 15:00
Send private message quote this post

Hi All

 

I thought I would check here for some local help before I go to the freenas forums and ask there.

 

I have had a freenas setup for a few months now which has been running superbly, yesterday the Sandisk USB boot thumb drive packed up (No longer readable, windows does not even recognize it when I plug it in).

 

I found some instructions online about getting things going again. I have a saved backup of the configuration (freenas.tar file). Instructions I found mentioned that I need to create a new USB boot disk from scratch (fresh install), and then just restore the configuration tar file. All has gone well and config has been restored and I am able to boot the setup again. I can see the freenas pools etc in Storage / Pools. Problem is that the pools are showing as status unknown:

 

Current alerts:
* The volume WD-2TB-Red state is UNKNOWN:
* The volume Spare state is UNKNOWN: 

 

Unfortunately I never made an iso backup of the boot USB, I always thought the saved config would be enough If I lost the USB boot disk.

 

I'm no expert in this so I am very cautions with running shell commands against the physical disks etc as I down want to corrupt or destroy the disks.

 

Hoping for some help


View this topic in a long page with up to 500 replies per page Create new topic
 1 | 2


133 posts

Master Geek
Inactive user


  #2452217 1-Apr-2020 12:06
Send private message quote this post

So no experts in the house?


495 posts

Ultimate Geek

Subscriber

  #2452234 1-Apr-2020 12:18
Send private message quote this post

Is there such a thing in the wild?

I gave FreeNAS a good run, expecting that one day it would all gel & I'd be able to understand the way things work on that system & why they're like that. But nah, not even. I ended up wasting hours & hours researching why some function that worked yesterday isn't doing it today.

In the end I just accepted that the adage "If you get something for free, what's it worth?" does in fact refer to FreeNAS & moved on. Sorry I don't have specific assistance for your problem.




Megabyte - so geek it megahertz


 
 
 
 




133 posts

Master Geek
Inactive user


  #2452331 1-Apr-2020 14:59
Send private message quote this post

Looks like I may have come across the issue. Saw this in the FreeNAS documentation:

 

Note: When adding another boot device, it must be the same size (or larger) as the existing boot device. Different models of USB devices which advertise the same size may not necessarily be the same size. For this reason, it is recommended to use the same model of USB drive.

 

The drive that died was a SanDisk 32GB Ultra Fit USB 3.1 Flash Drive, the drive I am replacing it with is a 16GB Drive. This is probably the problem. I need to try and find an identical drive to the one that died.

 

Anybody know of a company that is shipping USB thumb drives currently?

 

 


80 posts

Master Geek

Lifetime subscriber

  #2452587 1-Apr-2020 19:58
Send private message quote this post

PBTech will now deliver goods essential for working from home or studying. If your files are on your NAS then that would seem reasonable.

 

I've only been using FreeNAS for a couple of months. So far it does all that I've needed but I suspect I'm only using a fraction of what it's capable of, and I'm far from an expert. I vaguely remember something in the docs about recovering a pool if you have a boot drive failure.

 

I'm using a pair of Sandisk 32Gb USB drives as my boot drive, with boot drive mirroring as described here,  (also in the documentation here). Given the USBs are only $20 I figured it was money well spent, although I do wonder if I've doubled the chance of having one fail...

 

Good luck!

 

 


318 posts

Ultimate Geek


  #2456191 6-Apr-2020 21:26
Send private message quote this post

What does `zpool status` tell you? Not familiar with FreeNAS anymore but I do run ZFS on a Debian box.


991 posts

Ultimate Geek

Trusted
Lifetime subscriber

  #2456266 7-Apr-2020 08:42
Send private message quote this post

Given that tracer has said ZFS is involved, then if I had to make an educated guess*, I'd say that the ZPOOL hasn't imported automatically due to the pool being marked "in use" by a specific hostID, and when you rebuilt the FreeNAS box, it generated a new / different hostID.

 

"zpool status" should be your first command to see what's going on.  If the zpool status command indicates there are no pools, you could use "zpool import" and/or "zpool import -f" (the '-f' will force the import by ignoring the in-use flag, so do that last).

 

Alternative guess would be that the zpool or zfs filesystem versions on the phyiscal disk are now HIGHER than the currently running FreeNAS version will support - i.e. you've not applied some patches and/or the latest update ?

 

--

 

*I am a Oracle Solaris Systems Engineer by vocation; Solaris being the original system where ZFS was developed.


73 posts

Master Geek


  #2456689 7-Apr-2020 19:07
Send private message quote this post

jamesrt:

 

Given that tracer has said ZFS is involved, then if I had to make an educated guess*, I'd say that the ZPOOL hasn't imported automatically due to the pool being marked "in use" by a specific hostID, and when you rebuilt the FreeNAS box, it generated a new / different hostID.

 

"zpool status" should be your first command to see what's going on.  If the zpool status command indicates there are no pools, you could use "zpool import" and/or "zpool import -f" (the '-f' will force the import by ignoring the in-use flag, so do that last).

 

Alternative guess would be that the zpool or zfs filesystem versions on the phyiscal disk are now HIGHER than the currently running FreeNAS version will support - i.e. you've not applied some patches and/or the latest update ?

 

--

 

*I am a Oracle Solaris Systems Engineer by vocation; Solaris being the original system where ZFS was developed.

 

 

 

 

This sounds right, I've had to do it before. If you didn't export the pool from your previous system you'll need to use the force -f option when importing it into FreeNAS again. Have done it a few times when an upgrade failed and when USB drives failed and didn't have any issues.

 

Also would suggest not using a USB flash drive if possible. Now that FreeNAS uses ZFS for the boot pool, they only seem to last a few months. I just ended up getting the cheapest SSD and it's been running  no problems for the last few years.


 
 
 
 




133 posts

Master Geek
Inactive user


  #2456704 7-Apr-2020 19:53
Send private message quote this post

So this is where I got to.

 

Re: Needing the exact same size/type of USB device, well that was not really true. Its only if you are mirroring the USB boot devices. I ordered 2 from PBTech, and they arrived. I am now running with mirrored USB's for boot. Hopefully this will solve the problem if one goes again in future.

 

Tracer:

 

What does `zpool status` tell you? Not familiar with FreeNAS anymore but I do run ZFS on a Debian box.

 

 

zpool status is not showing me the pool. Its only showing me the USB boot mirrors, and another 'Test' pool I have created.

 

root@freenas[~]# zpool status -v
  pool: Test
 state: ONLINE
  scan: none requested
config:

 

        NAME                                          STATE     READ WRITE CKSUM
        Test                                          ONLINE       0     0     0
          gptid/68f3a482-779e-11ea-b2c6-78acc0a5b529  ONLINE       0     0     0

 

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

 

errors: No known data errors

 

Note that I have not re-imported the saved configuration from before the USB boot failed. I had tried that, the pools were there but just showing in GUI as 'UNKNOWN', zpool status produced a similar status to above, they were not there, only boot pool was displayed.




133 posts

Master Geek
Inactive user


  #2456706 7-Apr-2020 19:56
Send private message quote this post

jamesrt:

 

Alternative guess would be that the zpool or zfs filesystem versions on the phyiscal disk are now HIGHER than the currently running FreeNAS version will support - i.e. you've not applied some patches and/or the latest update ?

 

--

 

*I am a Oracle Solaris Systems Engineer by vocation; Solaris being the original system where ZFS was developed.

 

 

I came across similar recommendations when I asked this question in the ixsystems forums, I have made sure that I am running the exact same version of freenas that I was when the boot pool broke. Thanks for all the help.




133 posts

Master Geek
Inactive user


  #2456708 7-Apr-2020 19:58
Send private message quote this post

Mantis:

 

This sounds right, I've had to do it before. If you didn't export the pool from your previous system you'll need to use the force -f option when importing it into FreeNAS again. Have done it a few times when an upgrade failed and when USB drives failed and didn't have any issues.

 

 

I have tried doing this via the GUI, but that failed. Maybe the GUI option does not give the force option. I will look into the CLI commands to do this as I need to provide the key as well. The drive is encrypted.




133 posts

Master Geek
Inactive user


  #2458768 10-Apr-2020 09:43
Send private message quote this post

I have tried importing a pool with the following commands:

 

root@freenas[~]# zpool import -d /dev/ada0 WD-2TB-Red
cannot open '/dev/ada0/': Not a directory
cannot import 'WD-2TB-Red': no such pool available

 

root@freenas[~]# ls -l /dev/ada0
crw-r-----  1 root  operator  0x6e Apr  7 18:30 /dev/ada0

 

ada0 is the disk device name, and WD-2TB-Red is the pool name.


991 posts

Ultimate Geek

Trusted
Lifetime subscriber

  #2458838 10-Apr-2020 11:57
Send private message quote this post

What does "zpool import" (with no other parameters) display?

 

 




133 posts

Master Geek
Inactive user


  #2458876 10-Apr-2020 12:43
Send private message quote this post

It just lists the boot pool, and another pool which I just created


991 posts

Ultimate Geek

Trusted
Lifetime subscriber

  #2458895 10-Apr-2020 13:12
Send private message quote this post

Really?  That's not at all what I was expecting.  It should only list pools that are available for import...  Please provide the entire output?




133 posts

Master Geek
Inactive user


  #2460404 13-Apr-2020 11:45
Send private message quote this post

root@freenas[~]# zpool import
   pool: Test
     id: 3343687219819625780
  state: ONLINE
 status: The pool was last accessed by another system.
 action: The pool can be imported using its name or numeric identifier and
        the '-f' flag.
   see: http://illumos.org/msg/ZFS-8000-EY
 config:

 

        Test                                          ONLINE
          gptid/68f3a482-779e-11ea-b2c6-78acc0a5b529  ONLINE

 

   pool: Spare
     id: 6265385774886713737
  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:

 

        Spare                                         UNAVAIL  insufficient replicas
          2391574283744552606                         UNAVAIL  cannot open
          gptid/fa74fd32-8a78-11e9-85bb-78acc0a5b529  ONLINE

 

   pool: freenas-boot
     id: 7066402595766737261
  state: ONLINE
 status: Some supported features are not enabled on the pool.
 action: The pool can be imported using its name or numeric identifier, though
        some features will not be available without an explicit 'zpool upgrade'.
 config:

 

        freenas-boot  ONLINE
          ada0p2    ONLINE

 

------

 

 

 

The pool is not there :-(


 1 | 2
View this topic in a long page with up to 500 replies per page Create new topic





Twitter and LinkedIn »



Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:





News »

Chorus completes the build and commissioning of two new core Ethernet switches
Posted 8-Jul-2020 09:48


National Institute for Health Innovation develops treatment app for gambling
Posted 6-Jul-2020 16:25


Nokia 2.3 to be available in New Zealand
Posted 6-Jul-2020 12:30


Menulog change colours as parent company merges with Dutch food delivery service
Posted 2-Jul-2020 07:53


Techweek2020 goes digital to make it easier for Kiwis to connect and learn
Posted 2-Jul-2020 07:48


Catalyst Cloud launches new Solutions Hub to support their kiwi Partners and Customers
Posted 2-Jul-2020 07:44


Microsoft to help New Zealand job seekers acquire new digital skills needed for the COVID-19 economy
Posted 2-Jul-2020 07:41


Hewlett Packard Enterprise introduces new HPE GreenLake cloud services
Posted 24-Jun-2020 08:07


New cloud data protection services from Hewlett Packard Enterprise
Posted 24-Jun-2020 07:58


Hewlett Packard Enterprise unveils HPE Ezmeral, new software portfolio and brand
Posted 24-Jun-2020 07:10


Apple reveals new developer technologies to foster the next generation of apps
Posted 23-Jun-2020 15:30


Poly introduces solutions for Microsoft Teams Rooms
Posted 23-Jun-2020 15:14


Lenovo launches new ThinkPad P Series mobile workstations
Posted 23-Jun-2020 09:17


Lenovo brings Linux certification to ThinkPad and ThinkStation Workstation portfolio
Posted 23-Jun-2020 08:56


Apple introduces new features for iPhone iOS14 and iPadOS 14
Posted 23-Jun-2020 08:28



Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.


Support Geekzone »

Our community of supporters help make Geekzone possible. Click the button below to join them.

Support Geezone on PressPatron



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.