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!

[solved] Move all data to a new zpool

Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
spammeatwill
Starter
Starter
Posts: 23
Joined: 08 May 2013 11:24
Status: Offline

[solved] Move all data to a new zpool

Post by spammeatwill »

Hi,

I would like to migrate everyting I have in a RAID-Z1 to a new RAID-Z2 with more disks.
Must preserve snapshots, exports, extents, Windows ACLs, etc..
What is the best/quick way to do this?

Thanks
Last edited by spammeatwill on 02 Jan 2014 19:58, edited 1 time in total.
9.2.0.1 - Shigawire (revision 925)
x64-embedded on Intel(R) Core(TM)2 CPU 6420 @ 2.13GHz

User avatar
b0ssman
Forum Moderator
Forum Moderator
Posts: 2438
Joined: 14 Feb 2013 08:34
Location: Munich, Germany
Status: Offline

Re: Move all data to a new zpool

Post by b0ssman »

have a look at the zfs send command.

http://docs.huihoo.com/opensolaris/sola ... 06s03.html
Nas4Free 11.1.0.4.4517. Supermicro X10SLL-F, 16gb ECC, i3 4130, IBM M1015 with IT firmware. 4x 3tb WD Red, 4x 2TB Samsung F4, both GEOM AES 256 encrypted.

spammeatwill
Starter
Starter
Posts: 23
Joined: 08 May 2013 11:24
Status: Offline

Re: Move all data to a new zpool

Post by spammeatwill »

I have successfully sent my target dataset to a different server, together with all snapshots, using:

Code: Select all

nas1: ~# zfs send -R pool2/dataset2@latest | ssh nas2 zfs recv -vd pool1
One thing remaining is the ability to check the "previous versions" from windows explorer - although the auto snapshots are there, they don't seem visible to windows.
What could I be missing?
9.2.0.1 - Shigawire (revision 925)
x64-embedded on Intel(R) Core(TM)2 CPU 6420 @ 2.13GHz

spammeatwill
Starter
Starter
Posts: 23
Joined: 08 May 2013 11:24
Status: Offline

Re: Move all data to a new zpool

Post by spammeatwill »

I have found the problem.

The destination share was initially created with some extra auxiliary parameters, wich were overriding N4F default behaviour.

I had this in the auxiliary parameters:

Code: Select all

vfs objects = zfsacl
I simply removed that extra config and after save the parameter was set by N4F correctly:

Code: Select all

vfs objects = shadow_copy2 zfsacl
I have found this while browsing /var/etc/smb.conf on a working system and noticed the configuration difference.

Hope it helps someone..
9.2.0.1 - Shigawire (revision 925)
x64-embedded on Intel(R) Core(TM)2 CPU 6420 @ 2.13GHz

PaganGod
Status: Offline

Re: [solved] Move all data to a new zpool

Post by PaganGod »

This post was very helpful to resolve an issue I had with Previous Versions client not showing any previous versions although the CIFS share was properly configured and autosnapshots were present. Once I made this change I was able to get my previous versions. Thank you!

spammeatwill
Starter
Starter
Posts: 23
Joined: 08 May 2013 11:24
Status: Offline

Re: [solved] Move all data to a new zpool

Post by spammeatwill »

Glad I could help! :)
9.2.0.1 - Shigawire (revision 925)
x64-embedded on Intel(R) Core(TM)2 CPU 6420 @ 2.13GHz

Post Reply

Return to “ZFS (only!)”