Page 1 of 1

[solved] Move all data to a new zpool

Posted: 19 Nov 2013 15:47
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

Re: Move all data to a new zpool

Posted: 19 Nov 2013 16:31
by b0ssman
have a look at the zfs send command.

http://docs.huihoo.com/opensolaris/sola ... 06s03.html

Re: Move all data to a new zpool

Posted: 02 Jan 2014 15:55
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?

Re: Move all data to a new zpool

Posted: 02 Jan 2014 19:58
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..

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

Posted: 27 Feb 2014 23:17
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!

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

Posted: 07 Mar 2014 19:18
by spammeatwill
Glad I could help! :)