Can't import a pool .... missing device.

Status
Not open for further replies.

math316

Cadet
Joined
Dec 17, 2012
Messages
7
Hi !

I'm new with Freenas and Linux so be patient with me lol

I've installed freenas on an old Dell 8400. Everything was working fine. I've created a zfs volume to share all my video and music with my other pc and DLNA devices. In this pool, there was only one 2To disk. I wanted to extend it so I did. I added a 1To disk , a 160Go disk and a 80go disk. Everything was added without mirroring or other type of raid. Just a pool of 2To+1To+160Go+80GO. The last I ad was a mistake so I detach the volume (I know don't say it, my mistake .... ).
Now, I want to import it but I can't. When I try to import, command promt says that a device is missing (the 80Go disk) but it is still connected to the computer. I've tried everything I saw on this forum and on the Solaris website (Command promt, gui, ....). I even try to connect the 80Go disk on an other sata connector but still invisible .... The disk is working fine so I really don't understand.....

All my music and video are still on the 2To disk (I guess ...) so if it's not possible to recover the pool, is it possible to recover the data with a program like Testdisk ?

Thanks !!!
 

bollar

Patron
Joined
Oct 28, 2012
Messages
411
Which commands did you use to detach? Could you share the results of "zpool history" from the command line?
 

math316

Cadet
Joined
Dec 17, 2012
Messages
7
I detach the volume in GUI. How can I share the result ? I only saw the latest changes (since reboot) .....
 

bollar

Patron
Joined
Oct 28, 2012
Messages
411
Code:
zpool history
should show us what the GUI did. My guess is that the drive was made offline and now needs to be made online again with a command like
Code:
zpool online (name of the missing drive -- the long number you see in Volume Status)
 

math316

Cadet
Joined
Dec 17, 2012
Messages
7
I did Zpool history but the only results I can't go up enough to see what happen .....

Code:
2012-12-16.21:48:09 zpool import -o cachefile=none -R /mnt -f 605685791298040049
2012-12-16.21:48:09 zpool set cachefile=/data/zfs/zpool.cache USB8Go            
2012-12-16.22:01:42 zpool import -o cachefile=none -R /mnt -f 605685791298040049
2012-12-16.22:01:42 zpool set cachefile=/data/zfs/zpool.cache USB8Go            
2012-12-17.14:38:27 zpool import -o cachefile=none -R /mnt -f 605685791298040049
2012-12-17.14:38:27 zpool set cachefile=/data/zfs/zpool.cache USB8Go            
2012-12-17.14:46:41 zpool import -o cachefile=none -R /mnt -f 605685791298040049
2012-12-17.14:46:41 zpool set cachefile=/data/zfs/zpool.cache USB8Go            
2012-12-17.14:56:51 zpool import -o cachefile=none -R /mnt -f 605685791298040049
2012-12-17.14:56:51 zpool set cachefile=/data/zfs/zpool.cache USB8Go            
2012-12-17.15:21:38 zpool import -o cachefile=none -R /mnt -f 605685791298040049
2012-12-17.15:21:38 zpool set cachefile=/data/zfs/zpool.cache USB8Go            
2012-12-17.15:32:41 zpool import -o cachefile=none -R /mnt -f 605685791298040049
2012-12-17.15:32:41 zpool set cachefile=/data/zfs/zpool.cache USB8Go            
2012-12-17.15:53:59 zpool import -o cachefile=none -R /mnt -f 605685791298040049
2012-12-17.15:53:59 zpool set cachefile=/data/zfs/zpool.cache USB8Go            
2012-12-17.16:15:48 zpool import -o cachefile=none -R /mnt -f 605685791298040049
2012-12-17.16:15:48 zpool set cachefile=/data/zfs/zpool.cache USB8Go            
2012-12-17.16:40:35 zpool import -o cachefile=none -R /mnt -f 605685791298040049
2012-12-17.16:40:35 zpool set cachefile=/data/zfs/zpool.cache USB8Go            
2012-12-17.16:46:25 zpool import -o cachefile=none -R /mnt -f 605685791298040049
2012-12-17.16:46:25 zpool set cachefile=/data/zfs/zpool.cache USB8Go  



Code:
[root@freenas ~]# zpool import                                                  
   pool: Media                                                                  
     id: 15181496983563461952                                                   
  state: UNAVAIL                                                                
 status: One or more devices are missing from the system.                       
 action: The pool cannot be imported. Attach the missing                        
        devices and try again.                                                  
   see: http://www.sun.com/msg/ZFS-8000-6X                                      
 config:                                                                        
                                                                                
        Media        UNAVAIL  missing device                                    
          ada3p2     ONLINE                                                     
          da0p2      ONLINE                                                     
          ada4p2     ONLINE                                                     
                                                                                
        Additional devices are known to be part of this pool, though their      
        exact configuration cannot be determined.   



Code:
[root@freenas ~]# zpool online Media ada0                                       
cannot open 'Media': no such pool     
 

math316

Cadet
Joined
Dec 17, 2012
Messages
7
I did Zpool history but can't go up enough to see what happen ....

I did Zpool online but answer is Cannot open 'Media' : no such pool ....
 

paleoN

Wizard
Joined
Apr 22, 2012
Messages
1,402
From a SSH session as root paste the output of:
Code:
zpool status -v

zpool import

camcontrol devlist

glabel status

gpart show


Use [code][/code] tags to preserve the formatting.
 

math316

Cadet
Joined
Dec 17, 2012
Messages
7
Code:
[root@freenas ~]# zpool status -v                                               
  pool: USB8Go                                                                  
 state: ONLINE                                                                  
  scan: none requested                                                          
config:                                                                         
                                                                                
        NAME        STATE     READ WRITE CKSUM                                  
        USB8Go      ONLINE       0     0     0                                  
          da1p2     ONLINE       0     0     0                                  
                                                                                
errors: No known data errors  


Code:
[root@freenas ~]# zpool import                                                  
   pool: Media                                                                  
     id: 15181496983563461952                                                   
  state: UNAVAIL                                                                
 status: One or more devices are missing from the system.                       
 action: The pool cannot be imported. Attach the missing                        
        devices and try again.                                                  
   see: http://www.sun.com/msg/ZFS-8000-6X                                      
 config:                                                                        
                                                                                
        Media        UNAVAIL  missing device                                    
          ada3p2     ONLINE                                                     
          da0p2      ONLINE                                                     
          ada4p2     ONLINE                                                     
                                                                                
        Additional devices are known to be part of this pool, though their      
        exact configuration cannot be determined. 


Code:
[root@freenas ~]# camcontrol devlist                                            
<WDC WD800JD-00MSA1 10.01E01>      at scbus1 target 0 lun 0 (ada0,pass0)        
<SAMSUNG HM121HI LZ100-08>         at scbus5 target 0 lun 0 (ada1,pass1)        
<WDC WD800JD-00MSA1 10.01E01>      at scbus5 target 1 lun 0 (ada2,pass2)        
<WDC WD20EARX-00PASB0 51.0AB51>    at scbus6 target 0 lun 0 (ada3,pass3)        
<ST3160815AS 3.AAD>                at scbus6 target 1 lun 0 (ada4,pass4)        
<SAMSUNG HD103UJ >                 at scbus7 target 0 lun 0 (pass5,da0)         
<SanDisk Cruzer Edge 1.26>         at scbus8 target 0 lun 0 (pass6,da1)   


Code:
[root@freenas ~]# glabel status                                                 
                                      Name  Status  Components                  
                             ufs/FreeNASs3     N/A  ada1s3                      
                             ufs/FreeNASs4     N/A  ada1s4                      
                            ufs/FreeNASs1a     N/A  ada1s1a                     
gptid/c62850ea-4097-11e2-933f-001111e1d84b     N/A  ada3p2                      
gptid/76dbba75-47b8-11e2-9b09-001111e1d84b     N/A  da0p2                       
gptid/c6151b37-47b8-11e2-9b09-001111e1d84b     N/A  ada4p2   


Code:
=>       63  234441585  ada1  MBR  (111G)                                       
         63    1930257     1  freebsd  [active]  (942M)                         
    1930320         63        - free -  (31k)                                   
    1930383    1930257     2  freebsd  (942M)                                   
    3860640       3024     3  freebsd  (1.5M)                                   
    3863664      41328     4  freebsd  (20M)                                    
    3904992  230536656        - free -  (110G)                                  
                                                                                
=>        34  3907029101  ada3  GPT  (1.8T)                                     
          34          94        - free -  (47k)                                 
         128     4194304     1  freebsd-swap  (2.0G)                            
     4194432  3902834696     2  freebsd-zfs  (1.8T)                             
  3907029128           7        - free -  (3.5k)                                
                                                                                
=>       34  312579628  ada4  GPT  (149G)                                       
         34         94        - free -  (47k)                                   
        128    4194304     1  freebsd-swap  (2.0G)                              
    4194432  308385230     2  freebsd-zfs  (147G)                               
                                                                                
=>      0  1930257  ada1s1  BSD  (942M)                                         
        0       16          - free -  (8.0k)                                    
       16  1930241       1  !0  (942M)      


For the last one, I can't go up enough to see everything .... is it possible to go up in command promt ??
 

paleoN

Wizard
Joined
Apr 22, 2012
Messages
1,402
For the last one, I can't go up enough to see everything .... is it possible to go up in command promt ??
[SCROLL LOCK], then the arrow keys if you are on the console.

I take it da1 is an unrelated pool and ada0 is the problem disk?
Code:
gpart show ada0

smartctl -q noserial -a /dev/ada0
 
Status
Not open for further replies.
Top