USB stick corrupt / Trouble Importing / Replacing Disk [SOLVED]

Discussion in 'Installation' started by shackrock, Apr 10, 2012.

Thread Status:
Not open for further replies.
  1. Offline

    shackrock Newbie

    Member Since:
    Dec 21, 2011
    Messages:
    86
    Message Count:
    86
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    DC
    shackrock, Apr 10, 2012

    Hey all. I had FreeNAS 8 installed and running (I think 8.02-RELEASE-amd64 is the version I had at the time).

    My USB stick, I can only assume (based on other forum threads), is corrupt. I say this because I just freeze on "mounting local file systems:" and it stays there forever.

    I used UFS Explorer to copy off factory-v1.db and freenas-v1.db from the USB drive, and I have them sitting on my PC right now.

    My question is, can I reload the latest FreeNAS and somehow get that DB loaded back into the stick, so that I can access the data on my 6 HDD's that are set up in ZFS-1? I don't think there's any way to get that data without the info in the FreeNAS database, but maybe I'm wrong. I'm sitting tight until I hear from somebody on how to proceed here....

    I wanted to add that I also get the Geometry does not match label error....
  2. Offline

    ProtoSD FreeNAS Guru

    Member Since:
    Jul 1, 2011
    Messages:
    3,359
    Message Count:
    3,359
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Leaving FreeNAS
    ProtoSD, Apr 10, 2012

    Shackrock,

    Your data will be fine, you can reinstall FreeNAS anytime on a new stick and boot it up and do an Auto Import and your data will be there. However, if you want you can reinstall FreeNAS, boot it up, "mount -uw /" and copy freenas-v1.db back to /data and reboot and you should have all of your settings restored.
  3. Offline

    shackrock Newbie

    Member Since:
    Dec 21, 2011
    Messages:
    86
    Message Count:
    86
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    DC
    shackrock, Apr 10, 2012

    Trying this now, I hope you're right! haha. I literally have been freaking out for about 2 hours trying to fix things.
  4. Offline

    shackrock Newbie

    Member Since:
    Dec 21, 2011
    Messages:
    86
    Message Count:
    86
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    DC
    shackrock, Apr 10, 2012

    Ok it found my volume after a few minutes. I clicked import, and it's taking a while - how long should this take? It's been about 20 minutes, no luck yet, just still shows the "auto import volume" screen with the options grayed out (because I already clicked import).
  5. Offline

    ProtoSD FreeNAS Guru

    Member Since:
    Jul 1, 2011
    Messages:
    3,359
    Message Count:
    3,359
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Leaving FreeNAS
    ProtoSD, Apr 10, 2012

    Hmmm, it shouldn't be taking THAT long. Don't freak out. What happens if you do a "zpool status -v" from the command line?
  6. Offline

    shackrock Newbie

    Member Since:
    Dec 21, 2011
    Messages:
    86
    Message Count:
    86
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    DC
    shackrock, Apr 10, 2012

    no pools available...
  7. Offline

    ProtoSD FreeNAS Guru

    Member Since:
    Jul 1, 2011
    Messages:
    3,359
    Message Count:
    3,359
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Leaving FreeNAS
    ProtoSD, Apr 10, 2012

    Ok, now you can freak out just a little ;)

    Its possible your config database was corrupt, but the data in your pool doesnt depend on the database. Try a clean install of FreeNAS or possibly a Factory reset, then go directly to Storage-Volumes and do the Auto-Import again, it should happen pretty quickly no more than a minute.

    If that doesnt work, post back and we'll try an import from the command line. I'm assuming your settings arent as important as your data ;)

    (Yes, I know there arent any quotes or apostrophes where they should be, the bloody forums are jacked up right now....)
  8. Offline

    shackrock Newbie

    Member Since:
    Dec 21, 2011
    Messages:
    86
    Message Count:
    86
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    DC
    shackrock, Apr 10, 2012

    Well, this is a completely fresh install. I didn't save any settings from the last version. So the flash drive was completely re-flashed using the 8.04 img file, that's all...

    I just went to factory restore in the settings tab. It freezes on "please wait..." just like the auto import froze after I clicked the button. Is there something wrong with the img possibly??
  9. Offline

    ProtoSD FreeNAS Guru

    Member Since:
    Jul 1, 2011
    Messages:
    3,359
    Message Count:
    3,359
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Leaving FreeNAS
    ProtoSD, Apr 10, 2012

    Its possible, did you use the same flash drive or a different one?
  10. Offline

    shackrock Newbie

    Member Since:
    Dec 21, 2011
    Messages:
    86
    Message Count:
    86
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    DC
    shackrock, Apr 10, 2012

    Same drive... It's the only one I have here! haha. I'll reflash once more and try.
  11. Offline

    shackrock Newbie

    Member Since:
    Dec 21, 2011
    Messages:
    86
    Message Count:
    86
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    DC
    shackrock, Apr 10, 2012

    Ok re-flashed with x64 version, same flash drive again.

    Booted up no problem. Went to IP address, storage, clicked auto import. Took about 3 minutes of it saying "loading..." with the blue progress bar, and then it lists my one and only pool: "DEC2010[zfs]". I click import volume. The blue buttons turn to grey, and are unclickable, and it just stays there. I can move the pop-up window aroudn all I want, or X out of it if I wanted to, etc... but nothing happens.
  12. Offline

    ProtoSD FreeNAS Guru

    Member Since:
    Jul 1, 2011
    Messages:
    3,359
    Message Count:
    3,359
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Leaving FreeNAS
    ProtoSD, Apr 10, 2012

    Ok, sorry to leave you hanging there, I had to leave for a meeting. I *think* I remember a bug that had to do with either special characters like [] OR zfs being part of the pool name. I'll have to take a look unless William G. sees this and remembers. You could post the output of "zpool import" from the command line. I won't be back online here until around 3pm your time on Wed. Don't freak out and do anything, your data should be fine. You might need to rename your pool before trying to import it, but that's not too hard.

    EDIT: I just noticed you said in your Title that you're using 8.02/8.03, you might try reflashing with 8.04 and then try the Auto Import. I'm almost certain there was a bug with importing that had to do with pool names.
  13. Offline

    shackrock Newbie

    Member Since:
    Dec 21, 2011
    Messages:
    86
    Message Count:
    86
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    DC
    shackrock, Apr 11, 2012

    Back myself too (bedtime for me) - ha.

    So I WAS using 8.02 at the time of the "crash." I've been reflashing with the 8.04 RELEASE.

    Also, I think my name was only "DEC2010" - I'm pretty sure that the "[zfs]" was added by FreeNAS in that list. Almost positive.
  14. Offline

    shackrock Newbie

    Member Since:
    Dec 21, 2011
    Messages:
    86
    Message Count:
    86
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    DC
    shackrock, Apr 11, 2012

    By ideas? Or am I screwed? Haha.
  15. Offline

    ProtoSD FreeNAS Guru

    Member Since:
    Jul 1, 2011
    Messages:
    3,359
    Message Count:
    3,359
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Leaving FreeNAS
    ProtoSD, Apr 11, 2012

    What does "zpool import" from the command line say?
  16. Offline

    shackrock Newbie

    Member Since:
    Dec 21, 2011
    Messages:
    86
    Message Count:
    86
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    DC
    shackrock, Apr 11, 2012

    it takes about 3 minutes, then returns:

    Code (text):
    1.  
    2.   pool: DEC2010
    3.     id: 12157854186981846691
    4.  state: ONLINE
    5. action: The pool can be imported using its name or numeric identifier.
    6. config:
    7.  
    8.         DEC2010                                         ONLINE
    9.           raidz1                                        ONLINE
    10.             gptid/218a2962-c5d4-11e0-8fd1-0025900d25b0  ONLINE
    11.             gpt/disk1                                   ONLINE
    12.             gpt/disk2                                   ONLINE
    13.             gpt/disk3                                   ONLINE
    14.             gpt/disk4                                   ONLINE
    15.             gpt/disk5                                   ONLINE
    16.  
    17.  
    There are physically 6 2TB disks (WD Green Drives).

    P.S. I'm in the IRC room if you're around.
  17. Offline

    ProtoSD FreeNAS Guru

    Member Since:
    Jul 1, 2011
    Messages:
    3,359
    Message Count:
    3,359
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Leaving FreeNAS
    ProtoSD, Apr 11, 2012

    It's been years since I've used IRC, I supposed I should try it again, but not at the moment.

    How much data do you have in your pool?

    If you don't have a ton of data, I'd do an import from the command line and then do a scrub. If you import from the command line, it'll only last until you reboot, but if it works and scrub runs ok, then it has to be a GUI issue. Also, do you have any datasets?

    From the command line:

    mount -uw /
    mkdir /mnt/DEC2010
    zpool import DEC2010

    Your pool should be online and you should be able to access your files and run a scrub.

    Let me know how that turns out.
  18. Offline

    shackrock Newbie

    Member Since:
    Dec 21, 2011
    Messages:
    86
    Message Count:
    86
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    DC
    shackrock, Apr 11, 2012

    Ok how do I run a scrub and what does that do?
  19. Offline

    ProtoSD FreeNAS Guru

    Member Since:
    Jul 1, 2011
    Messages:
    3,359
    Message Count:
    3,359
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Leaving FreeNAS
    ProtoSD, Apr 11, 2012

    A scrub is like running "chkdsk" for DOS, you should really run it every couple of weeks. It verifies your file checksums and makes sure there are not any errors with your files. It can take awhile if you have a lot of data, for my 5 disk z2 pool with 4.6TB of data it takes 12 to 15 hours.

    You run it like this:

    zpool scrub DEC2010

    You can check it's status with "zpool status -v"

    or stop it with

    "zpool scrub -s DEC2010" (I think that's right, I just did it the other day, now my brain foggy! ;) )
  20. Offline

    shackrock Newbie

    Member Since:
    Dec 21, 2011
    Messages:
    86
    Message Count:
    86
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    DC
    shackrock, Apr 11, 2012

    I get the error: cannot import 'DEC2010': one or more devices is currently unavailable
Thread Status:
Not open for further replies.

Share This Page