How Can I re-import this volume

Status
Not open for further replies.

alexhore

Explorer
Joined
Sep 24, 2014
Messages
52
I had a couple of drives, one is failing so I just want to mount them to my new NAS to get the data off them whatever is still usable.
I kept getting an error when importing saying the name was already in use so I used command line zpool import -f and gave it a new name and its showing in ZFS list but I don't know how to get it mounted?

I basically want the pool 'OldNas' mounted so I can access OldNas/Share

Code:
t[root@freenas ~]#                                                                                                                
[root@freenas ~]# zfs list                                                                                                        
NAME                                                      USED  AVAIL  REFER  MOUNTPOINT                                          
NAS                                                      2.24G  3.51T    96K  /mnt/NAS                                            
NAS/Share                                                2.23G  3.51T    96K  /mnt/NAS/Share                                      
NAS/Share/Downloads                                       796M  3.51T   796M  /mnt/NAS/Share/Downloads                            
NAS/Share/Movies                                         1.46G  3.51T  1.46G  /mnt/NAS/Share/Movies                               
NAS/Share/TVSeries                                         96K  3.51T    96K  /mnt/NAS/Share/TVSeries                             
NAS/Share/Torrentfiles                                     96K  3.51T    96K  /mnt/NAS/Share/Torrentfiles                         
OldNas                                                   1.40T  2.11T    96K  /mnt1/OldNas                                        
OldNas/.system                                           62.3M  2.11T  2.23M  legacy                                              
OldNas/.system/cores                                     1020K  2.11T  1020K  legacy                                              
OldNas/.system/rrd-1e5afa4245fe402a8aacea9d059abd3f        96K  2.11T    96K  legacy                                              
OldNas/.system/rrd-c781aa6ebd25484c8281ae9d2b2c944c        96K  2.11T    96K  legacy                                              
OldNas/.system/rrd-f36704f2fe794cb6a75657843255655d        96K  2.11T    96K  legacy                                              
OldNas/.system/samba4                                     340K  2.11T   340K  legacy                                              
OldNas/.system/syslog-1e5afa4245fe402a8aacea9d059abd3f   56.6M  2.11T  56.6M  legacy                                              
OldNas/.system/syslog-c781aa6ebd25484c8281ae9d2b2c944c    908K  2.11T   908K  legacy                                              
OldNas/.system/syslog-f36704f2fe794cb6a75657843255655d   1.02M  2.11T  1.02M  legacy                                              
OldNas/Jails                                             12.1G  2.11T   160K  /mnt1/OldNas/Jails                                  
OldNas/Jails/.warden-template-pluginjail                  719M  2.11T   719M  /mnt1/OldNas/Jails/.warden-template-pluginjail      
OldNas/Jails/plexmediaserver_1                           10.0G  2.11T  10.7G  /mnt1/OldNas/Jails/plexmediaserver_1                
OldNas/Jails/sickrage_1                                   395M  2.11T  1.08G  /mnt1/OldNas/Jails/sickrage_1                       
OldNas/Jails/transmission_1                               966M  2.11T  1.64G  /mnt1/OldNas/Jails/transmission_1                   
OldNas/Share                                             1.39T  2.11T  1.39T  /mnt1/OldNas/Share                                  
System                                                   1.24G  50.6G    96K  /mnt/System                                         
System/.system                                           3.86M  50.6G   104K  legacy                                              
System/.system/configs-5ece5c906a8f4df886779fae5cade8a5   172K  50.6G   172K  legacy                                              
System/.system/cores                                     1.03M  50.6G  1.03M  legacy                                              
System/.system/rrd-5ece5c906a8f4df886779fae5cade8a5        96K  50.6G    96K  legacy                                              
System/.system/samba4                                     384K  50.6G   384K  legacy                                              
System/.system/syslog-5ece5c906a8f4df886779fae5cade8a5   2.09M  50.6G  2.09M  legacy                                              
System/Jails                                             1.23G  50.6G   156K  /mnt/System/Jails                                   
System/Jails/.warden-template-pluginjail                  449M  50.6G   449M  /mnt/System/Jails/.warden-template-pluginjail       
System/Jails/couchpotato_1                                217M  50.6G   664M  /mnt/System/Jails/couchpotato_1                     
System/Jails/plexmediaserver_1                            314M  50.6G   762M  /mnt/System/Jails/plexmediaserver_1                 
System/Jails/sickrage_1                                   196M  50.6G   643M  /mnt/System/Jails/sickrage_1                        
System/Jails/transmission_1                              82.9M  50.6G   530M  /mnt/System/Jails/transmission_1                    
freenas-boot                                             1.73G  5.36G   288K  none                                                
freenas-boot/ROOT                                        1.70G  5.36G   288K  none                                                
freenas-boot/ROOT/FreeNAS-9.3-STABLE-201511280648        1.70G  5.36G   876M  /                                                   
freenas-boot/ROOT/Initial-Install                          16K  5.36G   871M  legacy                                              
freenas-boot/ROOT/default                                 712K  5.36G   873M  /                                                   
freenas-boot/grub                                        18.2M  5.36G  9.16M  legacy
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421

alexhore

Explorer
Joined
Sep 24, 2014
Messages
52
No nothing in there.

Managed to get it re-imported via the GUI after exporting importing exporting rebooting importing.

I'm now using -av --log-file=/mnt/NAS/Share/OldNas/rsync.log /mnt/OldNas/Share /mnt/NAS/Share/OldNas and its moving great.

Only problem I have now is why mucking around I have a bunch of mount /mnt1 points I don't think I need :(

I am guessing when I unmount the old volume these will need to be manually removed somehow?


upload_2015-12-1_15-57-1.png


Code:
NAME                                                      USED  AVAIL  REFER  MOUNTPOINT                                          
NAS                                                      46.2G  3.47T    96K  /mnt/NAS                                            
NAS/Share                                                46.2G  3.47T  44.0G  /mnt/NAS/Share                                      
NAS/Share/Downloads                                       796M  3.47T   796M  /mnt/NAS/Share/Downloads                            
NAS/Share/Movies                                         1.46G  3.47T  1.46G  /mnt/NAS/Share/Movies                               
NAS/Share/TVSeries                                         96K  3.47T    96K  /mnt/NAS/Share/TVSeries                             
NAS/Share/Torrentfiles                                     96K  3.47T    96K  /mnt/NAS/Share/Torrentfiles                         
OldNas                                                   1.40T  2.11T    96K  /mnt/OldNas                                         
OldNas/.system                                           62.3M  2.11T  2.23M  /mnt/OldNas/.system                                 
OldNas/.system/cores                                     1020K  2.11T  1020K  /mnt/OldNas/.system/cores                           
OldNas/.system/rrd-1e5afa4245fe402a8aacea9d059abd3f        96K  2.11T    96K  /mnt/OldNas/.system/rrd-1e5afa4245fe402a8aacea9d059abd
3f                                                                                                                                
OldNas/.system/rrd-c781aa6ebd25484c8281ae9d2b2c944c        96K  2.11T    96K  /mnt/OldNas/.system/rrd-c781aa6ebd25484c8281ae9d2b2c94
4c                                                                                                                                
OldNas/.system/rrd-f36704f2fe794cb6a75657843255655d        96K  2.11T    96K  /mnt/OldNas/.system/rrd-f36704f2fe794cb6a7565784325565
5d                                                                                                                                
OldNas/.system/samba4                                     340K  2.11T   340K  /mnt/OldNas/.system/samba4                          
OldNas/.system/syslog-1e5afa4245fe402a8aacea9d059abd3f   56.6M  2.11T  56.6M  /mnt/OldNas/.system/syslog-1e5afa4245fe402a8aacea9d059
abd3f                                                                                                                             
OldNas/.system/syslog-c781aa6ebd25484c8281ae9d2b2c944c    908K  2.11T   908K  /mnt/OldNas/.system/syslog-c781aa6ebd25484c8281ae9d2b2
c944c                                                                                                                             
OldNas/.system/syslog-f36704f2fe794cb6a75657843255655d   1.02M  2.11T  1.02M  /mnt/OldNas/.system/syslog-f36704f2fe794cb6a7565784325
5655d                                                                                                                             
OldNas/Jails                                             12.1G  2.11T   160K  /mnt/OldNas/Jails                                   
OldNas/Jails/.warden-template-pluginjail                  719M  2.11T   719M  /mnt/OldNas/Jails/.warden-template-pluginjail       
OldNas/Jails/plexmediaserver_1                           10.0G  2.11T  10.7G  /mnt/OldNas/Jails/plexmediaserver_1                 
OldNas/Jails/sickrage_1                                   395M  2.11T  1.08G  /mnt/OldNas/Jails/sickrage_1                        
OldNas/Jails/transmission_1                               966M  2.11T  1.64G  /mnt/OldNas/Jails/transmission_1                    
OldNas/Share                                             1.39T  2.11T  1.39T  /mnt/OldNas/Share                                   
System                                                   1.24G  50.6G    96K  /mnt/System                                         
System/.system                                           4.34M  50.6G   104K  legacy                                              
System/.system/configs-5ece5c906a8f4df886779fae5cade8a5   172K  50.6G   172K  legacy                                              
System/.system/cores                                     1.27M  50.6G  1.27M  legacy                                              
System/.system/rrd-5ece5c906a8f4df886779fae5cade8a5        96K  50.6G    96K  legacy                                              
System/.system/samba4                                     392K  50.6G   392K  legacy                                              
System/.system/syslog-5ece5c906a8f4df886779fae5cade8a5   2.32M  50.6G  2.32M  legacy                                              
System/Jails                                             1.23G  50.6G   156K  /mnt/System/Jails                                   
System/Jails/.warden-template-pluginjail                  449M  50.6G   449M  /mnt/System/Jails/.warden-template-pluginjail       
System/Jails/couchpotato_1                                217M  50.6G   664M  /mnt/System/Jails/couchpotato_1                     
System/Jails/plexmediaserver_1                            314M  50.6G   762M  /mnt/System/Jails/plexmediaserver_1                 
System/Jails/sickrage_1                                   196M  50.6G   643M  /mnt/System/Jails/sickrage_1                        
System/Jails/transmission_1                              82.9M  50.6G   530M  /mnt/System/Jails/transmission_1                    
freenas-boot                                             1.73G  5.36G   288K  none                                                
freenas-boot/ROOT                                        1.70G  5.36G   288K  none                                                
freenas-boot/ROOT/FreeNAS-9.3-STABLE-201511280648        1.70G  5.36G   876M  /                                                   
freenas-boot/ROOT/Initial-Install                          16K  5.36G   871M  legacy                                              
freenas-boot/ROOT/default                                 712K  5.36G   873M  /                                                   
freenas-boot/grub                                        18.2M  5.36G  9.16M  legacy                                                
 

depasseg

FreeNAS Replicant
Joined
Sep 16, 2014
Messages
2,874
FreeNAS doesn't know what's going on unless you use the GUI. So if a pool is running in FreeNAS, use the detach button. This exports the pool and removes all the configuration stuff like mounts, reporting graphs, etc.
 

alexhore

Explorer
Joined
Sep 24, 2014
Messages
52
I'll detach the one I have finally mounted but could do with getting rid of these mount points somehow maybe mount something to them and then unmount?


Sent from my iPhone using Tapatalk
 

depasseg

FreeNAS Replicant
Joined
Sep 16, 2014
Messages
2,874
Are you concerned only with the mount points? Or the datasets themselves? I'm assuming you are talking about the "oldshare/.system/*" and "oldnas/jails/*" If that's the case, you don't want that data, I'd detach using the GUI, import using the CLI, destroy the datasets you don't want, export using the CLI, and import using the GUI.
 

alexhore

Explorer
Joined
Sep 24, 2014
Messages
52
mnt1 and everything inside it does not exist.
mnt/mnt1 also has nothing inside it.
The last ZFS list comman I ran doesent even reference them so it looks like the GUI just thinks they exist and they dont. There never was any data in these two locations or if there was it was only for a moment when I was trying to get them mounted.

I guess the original problem is addressed, I don't really know how I got it working but I did. Ill make a separate post about the mount point.
 
Last edited:
Status
Not open for further replies.
Top