Cannot auto import volume

Status
Not open for further replies.

ebiru

Cadet
Joined
Jul 29, 2013
Messages
4
Hello, due to unexpected stupidity on how the system lost power, my raid is not mounting. I am currently running FreeNAS 9.1 (with raid1), I tried using the auto import volume but it hangs until it times out and kicks me off. Same when trying through ssh. Running zpool import shows my media is fine. What can I do to recover the data?

Code:
pool: Media                                                                 
    id: 1248955761395667042                                                   
  state: ONLINE                                                               
status: The pool is formatted using a legacy on-disk version.                 
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:                                                                       
                                                                               
        Media                                          ONLINE                 
          mirror-0                                      ONLINE                 
            gptid/74882c59-f099-11e2-8518-d43d7eb62078  ONLINE                 
            gptid/74f051b0-f099-11e2-8518-d43d7eb62078  ONLINE  
 

ebiru

Cadet
Joined
Jul 29, 2013
Messages
4
After looking further into this (I got a syslog going), it gives me a warning that it cannot mount due to a corrupt file. How do I delete this file?

Update:
kernel: Solaris: WARNING: can''t open objset

Update 2:
If it helps, I am on 9.1RC2
 

ebiru

Cadet
Joined
Jul 29, 2013
Messages
4
After some more digging, I found this command
Code:
zpool import -R /mnt -o failmode=continue -o rdonly=on Media

And the results of that is
Code:
cannot mount 'Media/Plugins/test': mountpoint or dataset is busy  

However! I was able to mount the drives back into FreeNas. Now performing
Code:
zpool status
gives me the follow
Code:
pool: Media                                                       
state: ONLINE                                                       
status: The pool is formatted using a legacy on-disk format.  The pool can
        still be used, but some features are unavailable.           
action: Upgrade the pool using 'zpool upgrade'.  Once this is done, the
        pool will no longer be accessible on software that does not support feat
ure                                                                 
        flags.                                                       
  scan: scrub repaired 0 in 1h27m with 0 errors on Sat Jul 27 16:15:58 2013
config:                                                             
                                                                     
        NAME                                            STATE    READ WRITE CKS
UM                                                                   
        Media                                          ONLINE      0    0
0                                                                   
          mirror-0                                      ONLINE      0    0
0                                                                   
            gptid/74882c59-f099-11e2-8518-d43d7eb62078  ONLINE      0    0
0                                                                   
            gptid/74f051b0-f099-11e2-8518-d43d7eb62078  ONLINE      0    0
0                                                                   
                                                                     
errors: No known data errors 

But I still cannot access it. Any help would be greatly appreciated!

Update:
I am to view my data with
Code:
ls /mnt/Media


Update 2:
Changing rdonly to off causes the system to crash. By leaving the value to on, I am at least able to pull data off. Any thoughts on how I can delete this directory that seems to be causing the issue?

Update 3:
Running
Code:
zpool import -fXF -o failmode=continue -o rdonly=on Media  

Gives me the following output
Code:
cannot mount '/Media': failed to create mountpoint  


Update 4:
Still not able to mount the drives onto the NAS but I did find this useful site that might help others
http://www.freebsd.org/cgi/man.cgi?zpool
 

ebiru

Cadet
Joined
Jul 29, 2013
Messages
4
Update 5: (It wouldn't let me update any more)
I was able to attach an external harddrive to my NAS and made it into a network drive. I am currently moving my files off my raid and unto my PC. I am then going to format the raid and put this all behind. If anyone has any suggestions they like to try, please tell me before I format the drives.
 
Status
Not open for further replies.
Top