When Upgrading Drives to Larger not lose the data?


Recommended Posts

So I have my Unraid setup and I just ordered 2 more 8TB drives and want to upgrade my 6TB drives. I have done this on a few already but everytime I lose the data on the drives.

 

I know how to swap the drives and all the instructions by Unraid.

 

Issue is I dont have RAID on my drives and seems all my drives have data spread across all the drives. I am worried i am going to lose the Data on the drives i want to swap out for bigger ones. How can i prevent losing the data and when i swap the drive and let it do its thing. I also will be doing Pre-Clear First as these are External Drives going to be Shucked.

 

Any help would be great. I am still learning Unraid but I love the system.

Link to comment

I searched all the forums and that's why i am asking this question.

 

I followed Unraid's Instructions to the T

 

Stop the array

Unassign the old drive if still assigned (to unassign, set it to No Device)

Power down

[ Optional ] Pull the old drive (you may want to leave it installed for Preclearing or testing)

Install the new drive

Power on

Assign the new drive in the slot of the old drive

Go to the Main -> Array Operation section

Put a check in the Yes, I'm sure checkbox (next to the information indicating the drive will be rebuilt), and click the Start button

The rebuild will begin, with hefty disk activity on all drives, lots of writes on the new drive and lots of reads on all other drives

All of the contents of the old drive will be copied onto the new drive, making it an exact replacement, except possibly with more capacity than the old drive.

 

That's why it is weird. I have had this the last 2 times I upgraded a drive. Thing is I did not pre-clear the drive BEFORE plugging in as Pre-Clear script would not see my drive properly ( Realized needed to re-format it first for Unraid to see it. )

 

The first time i did this I didn't have any issues and this is why I got Unraid for this exact reason. It sucks restoring lost files etc from backups.

 

Link to comment

Format is a write operation. It writes an empty filesystem to the disk. This is what format does on any operating system you have ever used.

 

Any write operation in the parity array updates parity. So if you format a disk in the parity array, parity agrees it has an empty filesystem. Rebuilding an empty filesystem results in an empty filesystem.

 

Format is NEVER part of a rebuild.

 

Unless you are replacing an unmountable disk, format isn't even an option.

 

If you have an unmountable disk you need to repair the filesystem, preferably before replacing the disk, but you can also repair after rebuilding as long as you didn't format the disk.

 

 

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.