Jump to content

insert filled disk to array


Azarog

Recommended Posts

Hello, my problem is fairly simple, yet i couldn't find a clear approach in other threads (i hope i search enough, else, don't hesitate to redirect me to the right thread)

 

I have an old server with 1x 3TB, 2x 1TB filled drives.

 

On the new server i have a new (empty) 1x 4TB drive.

 

I would like:

  1. copy the content of the 3TB to the 4TB.
  2. Format the 3TB to have it ready for array.
  3. copy back the content of the 4TB to the prepared 3TB
  4. repeat for both 1TB drives.
  5. after everything is ready for the array put the 4TB as parity and the prepared drives too

 

On a side note i have a 1TB NVMe, empty that can help for the heavy lifting but i plan to use it for the windows gaming VM only afterward

 

For what i've read:

  • copy is better than moving (in any case i assume that by preparing the disks for array, they'll be erased of zeroed)
  • it's better to do all the preparation part outside of an array (so, not adding the 3TB to the array before copying back)

 

My question is How to do it?

 

I was hoping for an app to automate the cp - clear disk - cp back (with a gui would be awesome) but i don't mind doing cli commands

 

Thank you all,

 

Edited by Azarog
formatting
Link to comment

OK, disks to be used in Unraid need to be formatted by Unraid or the UD plugin, or they won't be accepted, you can also use the UD plugin to mount the disks for the copy or add them to the array, without parity it will function similarly, though in the array you can already use user shares to split the data over multiple disks, if needed, copy will need to be done manually, but you can use Midnight Commander (mc on the console) or the Krusader docker, both have a GUI.

Link to comment

My main concern is not about the parity, i just wanted to give some general context.

 

What i try to achieve is.

58 minutes ago, Azarog said:
  1. copy the content of the 3TB to the 4TB.
  2. Format the 3TB to have it ready for array.
  3. copy back the content of the 4TB to the prepared 3TB
  4. repeat for both 1TB drives.

 

Also, my backup plan is to use cli to do the job but i was looking for a way to do it more easily (i'm pretty sure it's a case that a lot of people will face)

 

 

Link to comment

I thought there was a plugin to have an unraid feedback in dashboard or something.

 

So that did the job for me :

  1. mount devices in Unassigned Devices
  2. copy entire disk :
  3. rsync -avxHAXh --progress /mnt/disks/source/ /mnt/disks/destination/
  4. put old drive in array
  5. format old drive
  6. add destination folder as a share
  7. Copy back all the files :
  8. rsync -avxHAXh --progress /mnt/disks/source/ /mnt/user/destinationshare/

Rinse and repeat for any drive.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...