Cannot access Files

Status
Not open for further replies.

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
The pool metadata is corrupted.
That's bad. The best I can suggest is to see if ZFS can recover it by trying 'zpool import -Fn HOBFiles'. The -F flag means to try to recover the pool; the -n flag means to do a trial run of the -F without actually changing anything on the pool (i.e., with -Fn together, it should tell you whether it thinks it can fix it, but it won't change anything).
 

Bidule0hm

Server Electronics Sorcerer
Joined
Aug 5, 2013
Messages
3,710
@danb35 You've missed that ada1 has more than 1400 pending sectors and more than 200 reallocated sectors... that's very high, @Stal00se you should replace this drive ASAP.
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
Ah, right you are, on top of another 215 already reallocated. Of course, if he can't import the pool, there's no way to replace the drive (at least, not while retaining his data).
 

Bidule0hm

Server Electronics Sorcerer
Joined
Aug 5, 2013
Messages
3,710
Yep, I posted before I saw the zpool status...
 

Stal00se

Dabbler
Joined
Sep 18, 2015
Messages
24
Code:
login as: root
root@192.168.0.2's password:
Last login: Sun Sep 20 11:18:31 2015 from 192.168.0.3
Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994
        The Regents of the University of California.  All rights reserved.

FreeBSD 8.3-RELEASE-p7 (FREENAS.amd64) #1 r249203M: Sat Apr  6 09:28:27 PDT 2013

        FreeNAS (c) 2009-2013, The FreeNAS Development Team
        All rights reserved.
        FreeNAS is released under the modified BSD license.

        For more information, documentation, help or support, go here:
        http://freenas.org
Welcome to FreeNAS
[root@freenas] ~# zpool import -Fn
   pool: HOBFiles
     id: 14636708750071156672
  state: FAULTED
status: The pool metadata is corrupted.
action: The pool cannot be imported due to damaged devices or data.
        The pool may be active on another system, but can be imported using
        the '-f' flag.
   see: http://www.sun.com/msg/ZFS-8000-72
config:

        HOBFiles                                        FAULTED  corrupted data
          raidz1-0                                      FAULTED  corrupted data
            gptid/aa4f3dd5-b102-11e2-b438-00306771456b  ONLINE
            gptid/ab282c38-b102-11e2-b438-00306771456b  ONLINE
            gptid/abf0d07f-b102-11e2-b438-00306771456b  ONLINE
            gptid/acc4705b-b102-11e2-b438-00306771456b  ONLINE
[root@freenas] ~#
 

Stal00se

Dabbler
Joined
Sep 18, 2015
Messages
24
Sorry, Not thinking clearly, D... flu. Here is the correct output.

Code:
login as: root
root@192.168.0.2's password:
Last login: Mon Sep 21 04:24:35 2015 from 192.168.0.3
Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994
        The Regents of the University of California.  All rights reserved.

FreeBSD 8.3-RELEASE-p7 (FREENAS.amd64) #1 r249203M: Sat Apr  6 09:28:27 PDT 2013

        FreeNAS (c) 2009-2013, The FreeNAS Development Team
        All rights reserved.
        FreeNAS is released under the modified BSD license.

        For more information, documentation, help or support, go here:
        http://freenas.org
Welcome to FreeNAS
[root@freenas] ~# zpool import -Fn HOBFiles
Would be able to return HOBFiles to its state as of Sat Sep  5 11:02:12 2015.
Would discard approximately 7 minutes of transactions.
[root@freenas] ~#
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
[root@freenas] ~# zpool import -Fn HOBFiles
Would be able to return HOBFiles to its state as of Sat Sep 5 11:02:12 2015.
Would discard approximately 7 minutes of transactions.
That's encouraging. It sounds like you should be able to import the pool, but you'll lose the last 7 minutes of whatever you did to it. To import the pool, do 'zpool import -F HOBFiles'. If that completes without any error messages, do 'zpool status'. If the import takes a while, just let it run.

If it imports successfully, the next step will be to export the pool ('zpool export HOBFiles') and then import it using the web GUI. You still need to replace ada1 stat, and the other disks aren't looking great either.
 

Stal00se

Dabbler
Joined
Sep 18, 2015
Messages
24
Code:
login as: root
root@192.168.0.2's password:
Last login: Mon Sep 21 05:53:14 2015 from 192.168.0.3
Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994
        The Regents of the University of California.  All rights reserved.

FreeBSD 8.3-RELEASE-p7 (FREENAS.amd64) #1 r249203M: Sat Apr  6 09:28:27 PDT 2013

        FreeNAS (c) 2009-2013, The FreeNAS Development Team
        All rights reserved.
        FreeNAS is released under the modified BSD license.

        For more information, documentation, help or support, go here:
        http://freenas.org
Welcome to FreeNAS
[root@freenas] ~# zpool import -F HOBFiles
Pool HOBFiles returned to its state as of Sat Sep  5 11:02:12 2015.
Discarded approximately 7 minutes of transactions.
cannot mount '/HOBFiles': failed to create mountpoint
[root@freenas] ~#
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
Hmmm... There's another thread going on the "failed to create mountpoint" error, but no resolution yet. What's the output of 'tail /var/log/messages'? And what does 'zpool import' return now?
 

Stal00se

Dabbler
Joined
Sep 18, 2015
Messages
24
Code:
login as: root
root@192.168.0.2's password:
Last login: Mon Sep 21 07:09:30 2015 from 192.168.0.3
Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994
        The Regents of the University of California.  All rights reserved.

FreeBSD 8.3-RELEASE-p7 (FREENAS.amd64) #1 r249203M: Sat Apr  6 09:28:27 PDT 2013

        FreeNAS (c) 2009-2013, The FreeNAS Development Team
        All rights reserved.
        FreeNAS is released under the modified BSD license.

        For more information, documentation, help or support, go here:
        http://freenas.org
Welcome to FreeNAS
[root@freenas] ~# tail /var/log/messages
Sep 21 07:04:21 freenas smartd[2539]: Device: /dev/ada1, 1449 Currently unreadable (pending) sectors
Sep 21 07:04:22 freenas smartd[2539]: Device: /dev/ada2, 1 Currently unreadable (pending) sectors
Sep 21 07:04:22 freenas smartd[2539]: Device: /dev/ada2, 1 Offline uncorrectable sectors
Sep 21 07:04:23 freenas smartd[2539]: Device: /dev/ada0, 9 Currently unreadable (pending) sectors
Sep 21 07:04:23 freenas smartd[2539]: Device: /dev/ada0, 9 Offline uncorrectable sectors
Sep 21 07:34:21 freenas smartd[2539]: Device: /dev/ada1, 1449 Currently unreadable (pending) sectors
Sep 21 07:34:21 freenas smartd[2539]: Device: /dev/ada2, 1 Offline uncorrectable sectors
Sep 21 07:34:22 freenas smartd[2539]: Device: /dev/ada0, 9 Currently unreadable (pending) sectors
Sep 21 07:34:22 freenas smartd[2539]: Device: /dev/ada0, 9 Offline uncorrectable sectors
Sep 21 07:41:54 freenas avahi-daemon[2669]: Invalid response packet from host 192.168.0.3.
[root@freenas] ~# zpool import -F HOBFiles
cannot import 'HOBFiles': a pool with that name is already created/imported,
and no additional pools with that name were found
[root@freenas] ~#
 

Stal00se

Dabbler
Joined
Sep 18, 2015
Messages
24
Code:
login as: root
root@192.168.0.2's password:
Last login: Mon Sep 21 07:48:39 2015 from 192.168.0.3
Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994
        The Regents of the University of California.  All rights reserved.

FreeBSD 8.3-RELEASE-p7 (FREENAS.amd64) #1 r249203M: Sat Apr  6 09:28:27 PDT 2013

        FreeNAS (c) 2009-2013, The FreeNAS Development Team
        All rights reserved.
        FreeNAS is released under the modified BSD license.

        For more information, documentation, help or support, go here:
        http://freenas.org
Welcome to FreeNAS
[root@freenas] ~# zpool status
  pool: HOBFiles
state: ONLINE
  scan: scrub repaired 0 in 0h44m with 0 errors on Sun Aug  9 00:44:36 2015
config:

        NAME                                            STATE     READ WRITE CKSUM
        HOBFiles                                        ONLINE       0     0     0
          raidz1-0                                      ONLINE       0     0     0
            gptid/aa4f3dd5-b102-11e2-b438-00306771456b  ONLINE       0     0     0
            gptid/ab282c38-b102-11e2-b438-00306771456b  ONLINE       0     0     0
            gptid/abf0d07f-b102-11e2-b438-00306771456b  ONLINE       0     0     0
            gptid/acc4705b-b102-11e2-b438-00306771456b  ONLINE       0     0     0

errors: No known data errors
[root@freenas] ~#
 

Stal00se

Dabbler
Joined
Sep 18, 2015
Messages
24
No go - this is the output below. Do I need to export first? If so, what is the string

Code:
login as: root
root@192.168.0.2's password:
Last login: Mon Sep 21 09:21:27 2015 from 192.168.0.3
Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994
        The Regents of the University of California.  All rights reserved.

FreeBSD 8.3-RELEASE-p7 (FREENAS.amd64) #1 r249203M: Sat Apr  6 09:28:27 PDT 2013

        FreeNAS (c) 2009-2013, The FreeNAS Development Team
        All rights reserved.
        FreeNAS is released under the modified BSD license.

        For more information, documentation, help or support, go here:
        http://freenas.org
Welcome to FreeNAS
[root@freenas] ~# ls /mnt/HOBFiles
ls: /mnt/HOBFiles: No such file or directory
[root@freenas] ~#
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
ls /mnt and zfs list?
 

Stal00se

Dabbler
Joined
Sep 18, 2015
Messages
24
Code:
login as: root
root@192.168.0.2's password:
Last login: Mon Sep 21 09:33:32 2015 from 192.168.0.3
Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994
        The Regents of the University of California.  All rights reserved.

FreeBSD 8.3-RELEASE-p7 (FREENAS.amd64) #1 r249203M: Sat Apr  6 09:28:27 PDT 2013

        FreeNAS (c) 2009-2013, The FreeNAS Development Team
        All rights reserved.
        FreeNAS is released under the modified BSD license.

        For more information, documentation, help or support, go here:
        http://freenas.org
Welcome to FreeNAS
[root@freenas] ~# ls /mnt and zfs list?
ls: No match.
[root@freenas] ~#
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
that was 2 different commands? Run these without the quotes. Or even better in the gui download the debug file system -> advanced -> save debug then upload that to the forum.

'ls /mnt'

'zfs list'
 
Status
Not open for further replies.
Top