Want to transfer data from one hard drive to another in same FreeNAS machine

Status
Not open for further replies.

DhavalKhairnar

Dabbler
Joined
Jan 30, 2017
Messages
13
I have install 9.10 stable FreeNAAS installed. Now I have 2TB drive which is already full with data in FreeNAS machine. I want to add 4TB hard disk and want whole data of 2TB to be copied in 4TB with same data arranged and other stuff which is already in 2TB. Suggest me step wise How to do?
 

bigphil

Patron
Joined
Jan 30, 2014
Messages
486
Easy to do via internal replication. zfs send | zfs recv are the commands you need. That isn't the exact command, but a quick search will show you how to do it.
 

nojohnny101

Wizard
Joined
Dec 3, 2015
Messages
1,477
I suspect something bad about your setup. How are you exactly adding this 4TB drive to your system? You realize that once you create a vdev, you can not add/remove drives to it (exception of mirrors). Are you adding the new 4TB drive as a mirror or a separate pool?

here is the relevant information you asked for:
https://docs.oracle.com/cd/E18752_01/html/819-5461/gbchx.html
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
Just copy the data on the command line. It's the fastest way, rsync is another option if you want to be able to restart it.

Sent from my Nexus 5X using Tapatalk
 

bigphil

Patron
Joined
Jan 30, 2014
Messages
486
Create a snapshot of your data you'd like to backup, i.e. snap1, and then just send it to your other pool and dataset. You may need to use the -F option on the recv side if you get an error: cannot receive: destination has been modified since most recent snapshot.

zfs send fromPool/myDataset@snap1 | zfs recv toPool/newDataset
 
Status
Not open for further replies.
Top