Moving RAIDZ2 to a new Box.

Status
Not open for further replies.

capndave

Dabbler
Joined
Jan 11, 2012
Messages
10
I have 4TB RAIDZ2 on a re-purposed box, running v8.2-pre.

I built a new box and would like to run the RAIDZ2 on that box, with v8.0.4p2.

(I have backed up the RAIDZ2 onto another box running a RAIDZ.)

What are my options for migrating and preserving the existing RAIDZ2?

- Physically remove the disks and "auto import" on the RAIDZ2 on the new box?
- Save the config on the old box, move the disks, then load the old config?

Any suggestions are appreciated.

Dave
 

capndave

Dabbler
Joined
Jan 11, 2012
Messages
10
Any of your suggestion should work just fine.

Thanks William.

If I go with the auto-import route, do I need to export the disks on Old-Box
before pulling over to New-Box?

Lastly, which of the two is least prone to difficulty? I.e., Me screwing up.
 

William Grzybowski

Wizard
iXsystems
Joined
May 27, 2011
Messages
1,754
Yes, on 8.0.4 you probably need to do that or zfs import will fail due to be a different host id.
Workaround would be zpool import -f and zpool export from cli, before auto import.

The Auto Import is the easiest solution but I would try to upload the old config, worst case scenario do a factory reset.
 

nogi

Explorer
Joined
Jul 5, 2011
Messages
74
What happens with user file permissions when you remove the array from one machine and auto import onto another? The users wouldn't exist on the new box.
 

paleoN

Wizard
Joined
Apr 22, 2012
Messages
1,403
What happens with user file permissions when you remove the array from one machine and auto import onto another? The users wouldn't exist on the new box.
Which is one of the reasons why capndave should try to upload the old config.

The UIDs/GIDs are what is on the files. If you were to create the same users but with different UIDs/GIDs they wouldn't have access to "their" files.
Example
  • UserA:UID-1001 and UserB:UID-1002 on the old box.
  • New box UserA:UID-1010 and UserB:UID-1011
    They wouldn't have access to any of their old files until you changed the ownership to the new users.

    Or created in the wrong order
  • New box UserB:UID-1001 and UserA:UID-1002
    They would have access to each others files from the old box.

As long as you write down the UIDs/GIDs and recreate the users with them then you don't need to change anything. Uploading the old config saves you from doing this and redoing all the other services you have setup.
 
Status
Not open for further replies.
Top