Volume disappeared

Status
Not open for further replies.

giox069

Dabbler
Joined
Jun 1, 2012
Messages
28
Hi all.

I'm using FreeNAS-8.0.4-RELEASE-p2-x64 (11367). Suddenly all my data disappeared. I think this happened after a power outage.

On the web console, the "alert" yellow icon is flashing. When I click on it I get the message box "WARNING: The volume Volume1 (ZFS) status is " and there are no other characters after the word "is".
In "view all volumes", I can see my two volume paths with "None (Error)", "Error getting available space", "Error getting total space".

Here is the output of some commands given in a ssh console:

Code:
[root@pyprel] ~# zpool status -v
no pools available
[root@pyprel] ~#


Code:
[root@pypyrel] ~# zfs list
no datasets available
[root@pypyrel] ~#


Code:
[root@pypyrel] ~# gpart show
=>      63  15820686  da0  MBR  (7.5G)
        63   1930257    1  freebsd  (943M)
   1930320        63       - free -  (32K)
   1930383   1930257    2  freebsd  [active]  (943M)
   3860640      3024    3  freebsd  (1.5M)
   3863664     41328    4  freebsd  (20M)
   3904992  11915757       - free -  (5.7G)

=>      0  1930257  da0s1  BSD  (943M)
        0       16         - free -  (8.0K)
       16  1930241      1  !0  (943M)

=>      0  1930257  da0s2  BSD  (943M)
        0       16         - free -  (8.0K)
       16  1930241      1  !0  (943M)

=>        34  3907029101  ada0  GPT  (1.8T)
          34          94        - free -  (47K)
         128     4194304     1  freebsd-swap  (2.0G)
     4194432  3902834703     2  freebsd-zfs  (1.8T)

=>        34  3907029101  ada1  GPT  (1.8T)
          34          94        - free -  (47K)
         128     4194304     1  freebsd-swap  (2.0G)
     4194432  3902834703     2  freebsd-zfs  (1.8T)

=>        34  3907029101  ada2  GPT  (1.8T)
          34          94        - free -  (47K)
         128     4194304     1  freebsd-swap  (2.0G)
     4194432  3902834703     2  freebsd-zfs  (1.8T)

[root@pypyrel] ~#


What could I do now ?

Thank you
Giovanni
 

paleoN

Wizard
Joined
Apr 22, 2012
Messages
1,403
What could I do now ?
Supply more information. Should I assume that Volume1 is a 3 disk, ada0-ada1-ada2, raidz1 array made up of 2Tb local disks?

In "view all volumes", I can see my two volume paths with "None (Error)", "Error getting available space", "Error getting total space".
OK, maybe not? How are these disks connected and do you see all of them?

Code:
camcontrol devlist

zpool import
 

giox069

Dabbler
Joined
Jun 1, 2012
Messages
28
Thank you for you relpy.
It's a single zfs volume in 3 SATA disks. The second "volume" is a DataSet, see attached image.
Fnas1_gio.jpg
Freenas OS is installed on a USB pendrive.

Code:
[root@pyprel] ~# camcontrol devlist
<WDC WD20EARS-00MVWB0 51.0AB51>    at scbus0 target 0 lun 0 (ada0,pass0)
<WDC WD20EARS-00MVWB0 51.0AB51>    at scbus1 target 0 lun 0 (ada1,pass1)
<WDC WD20EARS-00MVWB0 51.0AB51>    at scbus2 target 0 lun 0 (ada2,pass2)
<JetFlash Transcend 8GB 1100>      at scbus6 target 0 lun 0 (da0,pass3)
[root@pyprel] ~# zpool import


Code:
[root@pyprel] ~# zpool import
  pool: Volume1
    id: 9987938208860202107
 state: ONLINE
action: The pool can be imported using its name or numeric identifier.
config:

        Volume1     ONLINE
          raidz1    ONLINE
            ada0p2  ONLINE
            ada1p2  ONLINE
            ada2p2  ONLINE
[root@pyprel] ~#


I like the words "The pool can be imported using its name or numeric identifier" :)

What's the next step ?

Thank you again.
 

giox069

Dabbler
Joined
Jun 1, 2012
Messages
28
I solved the problem with the following sequence of actions:
  • Upgraded freenas to 8.2.0
  • From web GUI, detached the volume
  • zpool import -fF Volume1
  • zpool clear Volume1
  • reboot
  • From web gui: Auto import volume
  • Reboot

I don't really understand what happened and what these commands do. But now it works.

GIovanni
 

paleoN

Wizard
Joined
Apr 22, 2012
Messages
1,403
I don't really understand what happened and what these commands do. But now it works.
Then I hope the devs or moderators told you to do them!

  • Upgraded freenas to 8.2.0
  • From web GUI, detached the volume
  • zpool import -fF Volume1
  • zpool clear Volume1
  • reboot
  • From web gui: Auto import volume
  • Reboot
  1. Upgrades to 8.2.0 obviously.
  2. This exports the pool and updates the FN8 database that the pool is exported.
  3. Imports the pool with the -f, force option, i.e. pools that appear in use, etc. The other -F doesn't do anything until 8.3, afaik.
  4. Clears any errors in the pool.
  5. reboots ;)
  6. Imports the pool and updates the FN8 database.
  7. Reboots. :p

Personally, I would run a scrub now if you haven't already.
 
Status
Not open for further replies.
Top