Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Stupid me! Did wrong when trying to replace disk...

Featured Replies

Tonight i did wrong when trying to switch a 400Gb disk to an 1.5Tb disk. I pressed the "Restore"-button instead of start...

 

The 400Gb drive I replaced was woking and contained data. My plan was to replace and then rebuild the data onto the new disk. But now when I pressed the "Restore" i get a new disk instead that unRaid wants to format. All my other data seems to be there. I am only missing the data that was on the 400Gb drive.

 

So how can I get my data from the 400Gb drive into my unRaid? Can I mount the drive on another machine and copy the data?

 

Regards Jens

Tonight i did wrong when trying to switch a 400Gb disk to an 1.5Tb disk. I pressed the "Restore"-button instead of start...

 

The 400Gb drive I replaced was woking and contained data. My plan was to replace and then rebuild the data onto the new disk. But now when I pressed the "Restore" i get a new disk instead that unRaid wants to format. All my other data seems to be there. I am only missing the data that was on the 400Gb drive.

 

So how can I get my data from the 400Gb drive into my unRaid? Can I mount the drive on another machine and copy the data?

 

Regards Jens

Did you press "Start"  ? 

Did you already re-calculate parity?

 

You Might be able to recover... but for now, do NOT format the disk.

 

Tell us EXACTLY what you did. 

 

You might be able to format it and then recover/rebuild the file-system tree, but it all depends on what you did.

Basically, Stop the array do nothing to write to the drive until you get explicit instructions.

(I've got to go out in a few minutes for a class, but should be back about 10PM Eastern.)

 

Post a syslog with your description of what you did (or what you remember you did)

 

If you did NOT yet press Start you can use the "Trust-My-Parity" process to get back, but only if you still have the old disk installed.  If the new disk is in place, we'll need to act differently. 

 

You can certainly mount the 400Gig drive since it still has your data.  To do that, stop the array, power down,

put the 400Gig drive back in place, remove the new drive

Press "Restore" to set a new disk configuration and start the array to let it compute parity with the original set of drives in place.

When it finishes you can try the upgrade once more.

 

But... Do NOT use the button labeled "restore" as it has nothing to do with restoring data.  Always use "Start"

 

Joe L.

 

Joe L.

  • Author

What I did:

 

1. Shut down server.

2. Took out 400Gb disk (working disk filled with data)

3. Replaced it with 1.5Tb empty disk

4. Started up the server

5. Pressed the "Restore" button

6. Pressed the "Start" button

 

I havent formatted the 1.5Tb disk, it is still marked as "Unformatted". As I understand, I stil have my data on the unRaid, I can acess it now, as the server is rebuilding parity on the parity disk. BUT minus the data on the 400Gb-drive I just removed. So I need to import the 400Gb of data I have on my removed drive.

syslog.txt

OK... If you have a free slot in your server

 

Let the existing parity check complete... then

Stop the array

Power down

Put the old 400Gig drive in the array.  leave all the existing drives connected as long as you have the ports available on the MB/disk controller.

If you do not have a spare disk controller port you'll have to give up parity protection for a while or use a different PC to read the disk.  (the same if you are at the limit of your license)

 

So... assuming you have a free port on your disk controller.

 

You'll need to identify the "device" the old 400Gig drive is assigned by Linux when you boot the server.  Look in the syslog.  Let's assume it is /dev/sdg

 

Then, Step 1.  Create a "mount point" (an empty directory)

mkdir /mnt/disk1/old_disk

 

mount the old disk on the mount point

mount -t reiserfs /dev/sdg1 /mnt/disk1/old_disk

Note we mounted the first partition... it is /dev/sdg1  (with a trailing "1" on the end)

 

Once it is mounted you can browse to it on \\tower\disk1\old_disk and copy the files off of it.

Then, once you have the files, you must un-mount the disk.  to do that

type

umount /mnt/disk1/old_disk

note: that is not a typo.  It is umount, not unmount.

 

You will not be able to stop the array with the extra disk mounted.  You must un-mount the disk.

 

  • Author

Thanks! I dont have an extra slot so I have to give up parity. But what happends when Itake it out and replaces it with my parity disk? Am I going to get a question about rebuildning parity?

 

Regards Jens

I don't think that's a very good idea, as it will leave your array unprotected. Don't you have another computer where you can connect the 400Gig drive and copy everything over the lan?

Thanks! I dont have an extra slot so I have to give up parity. But what happends when Itake it out and replaces it with my parity disk? Am I going to get a question about rebuildning parity?

 

Regards Jens

un-assign parity and press "Restore" to set a new disk configuration.  Then assign the 400Gig data drive, as a DATA drive, press "Restore" once more.  You will lose parity protection, and you will need to completely re-compute it once you re-assign it later.

 

As asked, do you have an alternate PC you can boot on a free copy of unRAID.  You just need to assign the one 400G data drive on it.

Don't need a parity drive assigned in it, just a different server name, other than "tower"

 

Joe L.

 

Do you have an external hard disk enclosure / adapter to connect the drive via USB?

  • Author

I have both a computer I can use and a external USB enclosure. Could I mount the disk via my USB enclosure to my current unRaid on the fly when it is running??? Or is it more safe to take another computer, boot a new unRAID fron USB (free version) and copy via my network?

 

Regards Jens

I have both a computer I can use and a external USB enclosure. Could I mount the disk via my USB enclosure to my current unRaid on the fly when it is running???

Yes, easily
Or is it more safe to take another computer, boot a new unRAID fron USB (free version) and copy via my network?
As easy... your choice.  (You do have to name the second server something other than "tower")
  • Author

Where is my USB-connected disk going to pop up?

 

/dev/sdg1???

 

Regards Jens

Where is my USB-connected disk going to pop up?

 

/dev/sdg1???

 

Regards Jens

Look at the end of the syslog when you plug it in.  It would be assigned a device.

 

Joe L.

  • Author

Joe L, Orbi, bjp999:

 

Thanks a lot! Now I have mounted my old disk via USB and as i write now I am moving my files onto the new disk in the array. Thanks once again for your help!

 

Regards Jens

dont forget to un-mount it when you are done before unplugging it or trying to stop the array.

 

remember, the command is umount, not unmount

Geeze, why not put the old disk back in. Power up and press Restore. Start the array. This will put the array back the way it was before you started.

 

When the parity build is complete then just swap the new disk again and use the Start button instead of the Restore button.

 

Peter

 

Geeze, why not put the old disk back in. Power up and press Restore. Start the array. This will put the array back the way it was before you started.

 

When the parity build is complete then just swap the new disk again and use the Start button instead of the Restore button.

 

Peter

 

That would work, but it would leave his array un-protected by parity for the time needed to to a full parity calc.  Right now, the array is protected and the only data at risk is being copied to the array from the external usb disk.

 

Your method would work, just take longer since the new drive is already in the array.

  • Author

Also possible. But for now, I have the old disk mounted and I am moving the files onto my unRaid array.

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.