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.


NumPy

132 posts

Master Geek
Inactive user


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

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
NumPy

132 posts

Master Geek
Inactive user


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

So no experts in the house?


 
 
 

GoodSync. Easily back up and sync your files with GoodSync. Simple and secure file backup and synchronisation software will ensure that your files are never lost (affiliate link).
  #2452234 1-Apr-2020 12:18
Send private message

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

NumPy

132 posts

Master Geek
Inactive user


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

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?

 

 




MickeyD
97 posts

Master Geek

Lifetime subscriber

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

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!

 

 


Tracer
343 posts

Ultimate Geek


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

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


jamesrt
1576 posts

Uber Geek

ID Verified
Trusted
Lifetime subscriber

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

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.


Mantis
96 posts

Master Geek

ID Verified

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

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.




NumPy

132 posts

Master Geek
Inactive user


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

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.


NumPy

132 posts

Master Geek
Inactive user


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

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.


NumPy

132 posts

Master Geek
Inactive user


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

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.


NumPy

132 posts

Master Geek
Inactive user


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

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.


jamesrt
1576 posts

Uber Geek

ID Verified
Trusted
Lifetime subscriber

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

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

 

 


NumPy

132 posts

Master Geek
Inactive user


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

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


jamesrt
1576 posts

Uber Geek

ID Verified
Trusted
Lifetime subscriber

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

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?


NumPy

132 posts

Master Geek
Inactive user


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

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





News and reviews »

Synology DS925+ Review
Posted 23-Apr-2025 15:00


Synology Announces DiskStation DS925+ and DX525 Expansion Unit
Posted 23-Apr-2025 10:34


JBL Tour Pro 3 Review
Posted 22-Apr-2025 16:56


Samsung 9100 Pro NVMe SSD Review
Posted 11-Apr-2025 13:11


Motorola Announces New Mid-tier Phones moto g05 and g15
Posted 4-Apr-2025 00:00


SoftMaker Releases Free PDF editor FreePDF 2025
Posted 3-Apr-2025 15:26


Moto G85 5G Review
Posted 30-Mar-2025 11:53


Ring Launches New AI-Powered Smart Video Search
Posted 27-Mar-2025 16:30


OPPO RENO13 Series Launches in New Zealand
Posted 27-Mar-2025 05:00


Sony Electronics Announces the WF-C710N Truly Wireless Noise Cancelling Earbuds
Posted 26-Mar-2025 20:37


New Harman Kardon Portable Home Speakers Bring Performance and Looks Together
Posted 26-Mar-2025 20:30


Data Insight Launches The Data Academy
Posted 26-Mar-2025 20:21


Oclean AirPump A10 Portable Water Flosser Wins iF Design Award 2025
Posted 20-Mar-2025 12:05


OPPO Find X8 Pro Review
Posted 14-Mar-2025 14:59


Samsung Galaxy Ring Now Available in New Zealand
Posted 14-Mar-2025 13:52









Geekzone Live »

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



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.







GoodSync is the easiest file sync and backup for Windows and Mac