Migrate data, users and all settings except pool and volume names

Status
Not open for further replies.

Terry Wilson

Explorer
Joined
Aug 10, 2016
Messages
63
I have a temp Freenas that I setup 4 weeks ago with a newbie volume name and there is not enough storage on this server so I built a beast of a server and installed freenas on it with some better naming conventions. I would love to backup and restore everything on Server A (expect naming conventions) onto Server B, when I say everything I mean everything.... users, all service settings, cron jobs, etc... a complete restore.

What is the best way to do this!
 
Last edited:

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
Probably best to just set it up with the new names. Most of the configuration is around path and names anyways so you will have to redo all of that stuff anyways.
 

Terry Wilson

Explorer
Joined
Aug 10, 2016
Messages
63
bummer, is there any way to keep server A and swap out the 2TB drives for 6TB drives one at a time (keeping the box up and running) and then in the end the entire volume would be larger?
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
same number of disks? if so then yes you just follow the replace guidelines in the manual. If there are a different number of disks then nope.
 

Terry Wilson

Explorer
Joined
Aug 10, 2016
Messages
63
Well what I was trying to imply is this, Server A has 6 of 2TB drives in the Z1 pool. I was going to try and figure out how to take a drive off line, replace it with a 6TB. let it resilver, then move on to the next 2TB drive in the pool, etc.. rinse and repeat until all were done, then what would be required (if anything) to see the increased capacity in the volume??
 

Terry Wilson

Explorer
Joined
Aug 10, 2016
Messages
63
NAME STATE READ WRITE CKSUM TempReplication ONLINE
raidz1-0 ONLINE
gptid/1a316a9d-7139-11e6-9b12-848f69d9cb8a ONLINE
gptid/1ad2b4b1-7139-11e6-9b12-848f69d9cb8a ONLINE
gptid/1b814639-7139-11e6-9b12-848f69d9cb8a ONLINE
gptid/1c2b3ddc-7139-11e6-9b12-848f69d9cb8a ONLINE
gptid/1cd7c25c-7139-11e6-9b12-848f69d9cb8a ONLINE
spares
da5 AVAIL

So its a Z1 with a spare... Not ideal
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
Well what I was trying to imply is this, Server A has 6 of 2TB drives in the Z1 pool. I was going to try and figure out how to take a drive off line, replace it with a 6TB. let it resilver, then move on to the next 2TB drive in the pool, etc.. rinse and repeat until all were done, then what would be required (if anything) to see the increased capacity in the volume??
You don't need to. You can do the process without first offlining a functioning drive. It's in the manual.
 

gpsguy

Active Member
Joined
Jan 22, 2012
Messages
4,472
We don't recommend RAIDz1 with 6TB drives. If you can back it up somewhere temporarily, I'd rebuild it with all 6 drives in RAIDz2.
 

depasseg

FreeNAS Replicant
Joined
Sep 16, 2014
Messages
2,874
If you want to just rename your datasets (vs changing the structure), do that first on your original server using the GUI. Then take a snapshot, replicate to the new server (keep the same exact root pool name), and then back up the config from the original server and restore on the new one.
 

Terry Wilson

Explorer
Joined
Aug 10, 2016
Messages
63
ok so here is where I stand, built a new server last night with new 6TB drives (6 of them) did a RAIDz2

made a backup of Server A with the gui, then restored that backup to Server B.

So now Server B is "pre-configured" with all the settings of Server A (except IP address, DNS name, etc..) and should be ready to get all the data over. My assumption is I will need to copy this over then go change the paths in usernames for home dir's, and any other reference like CIFS, FTP, etc..?
 

Terry Wilson

Explorer
Joined
Aug 10, 2016
Messages
63
We don't recommend RAIDz1 with 6TB drives. If you can back it up somewhere temporarily, I'd rebuild it with all 6 drives in RAIDz2.

Thanks, I will build a new server and use RAIDZ2 this time.
 
Last edited:

Terry Wilson

Explorer
Joined
Aug 10, 2016
Messages
63
So if I want to migrate all the data from Server A to Server B will this command work?

zfs send -vR TempReplication/Data@auto-20160915.0950-2w | ssh 192.168.111.90
zfs receive -vF Freenas-Beast/storage@auto-20160915.0950-2w

Server A is Source
Server B is destination

Server A Volume is TempReplication and Dataset is Data

Server B Volume is Freenas-Beast and volume is storage

From what I was reading this command will take the snapshot from Server A and send it to Server B where you can then restore the snapshot?

My concerns are obvious , the volume names and dataset names are different so will this even work?
 

Terry Wilson

Explorer
Joined
Aug 10, 2016
Messages
63
or I can just read the manual (duhhh) and implement replication in the Gui

Done..

Now just have to wait until it populates. I see it in storage tab in gui (shows up as Freenas-Beast/storage/Data) but can't traverse to that dir yet from SSH ( I assume I can when it finishes?)
 

Stux

MVP
Joined
Jun 2, 2016
Messages
4,419
Did you use recursive replication?
 

Terry Wilson

Explorer
Joined
Aug 10, 2016
Messages
63

Terry Wilson

Explorer
Joined
Aug 10, 2016
Messages
63
ok, Replication was the way to go, then we just pointed the users paths to the new dataset and all is well!
 
Status
Not open for further replies.
Top