This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!



I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!

What's the best way to backup RaidZ1 to external USB drives?

Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
breinholm
NewUser
NewUser
Posts: 3
Joined: 02 Dec 2012 19:03
Status: Offline

What's the best way to backup RaidZ1 to external USB drives?

Post by breinholm »

My Setup:

NAS4Free 9.1.0.1 (531)

MB: Asrock AD2700-ITX
Main disks: 2 x WD 3T in RaidZ1 attached to SATA connectors on MB
Backup disk: External disk connected via USB 3.0, ZFS - Stribe formatted.

Backup scheme used: A Rsync-local job starts every night and transfers new data to the attached External USB 3.0 disk. This disk is once a week swapped with another External USB 3.0 disk.

Problem: Its very time consuming to manually remove all traces of the old USB 3.0 disk, and then add the data for the new USB disk, when the disks are swapped.

Can any of you recommend better ways for doing this?

Thanks / Peter

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4865
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: What's the best way to backup RaidZ1 to external USB dri

Post by raulfg3 »

breinholm wrote:Main disks: 2 x WD 3T in RaidZ1
not sure, but or you have 3 disk in raidZ1 or you have 2 Disk in ZFS Mirror.
breinholm wrote:Backup scheme used: A Rsync-local job starts every night and transfers new data to the attached External USB 3.0 disk. This disk is once a week swapped with another External USB 3.0 disk.
I use other aproach to do my backup, not sure if is what you want.

I do not use rsync and none automated backup.

I use FreeFileSync to create jobs, that I launch manually to a USB3 Disk on my Win7 PC. <- None problems about drivers or name trace. I use SMB to transfer from NAS to PC
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)

Wiki
Last changes

HP T510

ku-gew
Advanced User
Advanced User
Posts: 172
Joined: 29 Nov 2012 09:02
Location: Den Haag, The Netherlands
Status: Offline

Re: What's the best way to backup RaidZ1 to external USB dri

Post by ku-gew »

What about splitting the pool opportunely in datasets and then use zfs send/receive? Since it's a block copy and not file copy, it should be faster. You may try also this script:
https://github.com/jollyjinx/ZFS-TimeMachine
HP Microserver N40L, 8 GB ECC, 2x 3TB WD Red, 2x 4TB WD Red
XigmaNAS stable branch, always latest version
SMB, rsync

breinholm
NewUser
NewUser
Posts: 3
Joined: 02 Dec 2012 19:03
Status: Offline

Re: What's the best way to backup RaidZ1 to external USB dri

Post by breinholm »

Thanks for your replies,

I have only the two WD 3T SATA drives in my RaidZ1 stripe.
The USB disks are ZFS formatted and put in their own virtual stripe pools - one for each.
Only one USB drive is attached at the time.

The essential problem is all the configuration that's needed when I swap the USB disks used for backup.

To make it work I have to:

1) Delete all ZFS configurations for present disk
2) Detach the disk and attach the other USB disk
3) Clear config and import disks
4) re-program the disk standby times and APM for all the attached disks (Has to be re-entered after clear /import)
5) Enter ZFS configuration data for the new USB disk

Not to forget a couple of resets that's needed along the process..

I hope that there is a simpler solution to all the re-configuration, but it seems that swapping USB-disks is complicated with FreeBSD

Tomsk
NewUser
NewUser
Posts: 8
Joined: 13 Nov 2012 19:17
Status: Offline

Re: What's the best way to backup RaidZ1 to external USB dri

Post by Tomsk »

I'll jump in here despite a lack of knowledge about RSYNC et al.

1) wouldn't it be easier to re-write your RSYNC job each time to swap disks?

2) Have the RSYNC job backup to 'both' USB drives and ignore the errors when one of the drives is missing?
I do this in Windows using robocopy to back up to my USB drives. One drive is a desktop device and is permanently attached. The other drive is a portable that is attached occasionally. The script is programmed to run at night.
AMD Athlon II X2 Dual Core 250 3.00GHz - Gigabyte GA-78LMT-S2P 760G rev5.x - 4GB RAM
Generic SiI3114 4 port SATA card - Nvidia 256MB Video - Cooler Master Elite 335U
NAS4Free 9.1.0.1 (573) Embedded

breinholm
NewUser
NewUser
Posts: 3
Joined: 02 Dec 2012 19:03
Status: Offline

Re: What's the best way to backup RaidZ1 to external USB dri

Post by breinholm »

I just found that its only the initial display of the attached disks that is wrong.

Here I have added the WD at USB0 port and a Seagate at USB1 - Kingston is the boot memory stick:
WD at USB0- Seagate at USB1.PNG
Here I only have the Seagate attached to USB0 port - see how the reported sizes and descriptions are wrong:
Seagate at USB0.jpg
But here is what ZFS info reports - Everything is OK:
ZFS_info.jpg
All R/W's to the attached disk are OK. Attaching the WD disk gives the same results.

Now I have to re-boot the server after the disk-swap . Disable the Rsync job for the disk that's removed and enable the job for the new - that's it.

I hope the initial disk reporting will be fixed in a later release.

Thanks for your help / Peter
You do not have the required permissions to view the files attached to this post.

bcs-luggi
NewUser
NewUser
Posts: 13
Joined: 03 Aug 2012 10:08
Status: Offline

Re: What's the best way to backup RaidZ1 to external USB dri

Post by bcs-luggi »

Hey,

looking here you'll find me with the same problem.
And looking here you'll find my solution.
Bert
nas4freee 9.1.0.1 (847) on HP-Proliant NL40
4 x 1 TB WD1502FYPS (zfs/raidz1)
2 x 3 TB USB (backup)

Post Reply

Return to “ZFS (only!)”