Backup/replicate vol1 pool to backup pool

 

Install New Disks

* Shutdown freenas
* Add 2 x 2tb drives:
– Hitachi 2TB, SN YGGXJ0EB
– Hitachi 2TB, SN BFGD31BF

Create Backup Pool

* Find new disk device name from Freenas UI, Storage > View disks,
/dev/ada1 YGGXJ0EB
/dev/ada3 BFGD31BF

* Create mirrored zpool from new drives

// Lable disks
glabel label -v HTYGGXJ0EB /dev/ada1
glabel label -v HTBFGD31BF /dev/ada3
 
// Create new backup pool
zpool create bakpool mirror /dev/label/HTYGGXJ0EB /dev/label/HTBFGD31BF

Create Snapshot

// Create snapshot
zfs snapshot -r vol1@bak122522

Replciate Snapshot to New Pool

// Replicate to new pool
zfs send -R vol1@bak122522 | pv | zfs receive -dF bakpool
 
// List bakpool
zfs list bakpool                                                                                                  
bakpool  1.16T   613G    96K  /bakpool

Destroy Snapshot if Needed

// Destroy snapshot
zfs destroy -r vol1@bak122522
This entry was posted in nas, truenas and tagged , . Bookmark the permalink.