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.

[SOLVED]Yet ANOTHER...'Replacing Drives' Question

Featured Replies

  • Author

Sitting patiently…mostly.

  • Replies 235
  • Views 15.4k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • Just noticed from your screenshot your drives are reiserfs. You need to work on getting away from that completely.     We should have been working on that instead of rebuilding that fi

Posted Images

  • Community Expert

Let me ping @JorgeB on yet another thread. He often recommends cloning. It is way past bedtime in his part of the world so might be a few hours if he wants to get involved.

 

Also, since they were the ones to suggest cloning and reiserfsck originally, let's see if @itimpi and @JonathanM want to help out.

  • Author

^ Thanks so much!

Short summary, positively identify the source and destination /dev/sd? devices, then issue a terminal command

 

dd if=/dev/sd(source) of=/dev/sd(destination) bs=1M conv=noerror,sync

 

Be VERY sure of the destination disk you put in the of (output file) section of the command, you really don't want to overwrite the wrong drive.

Because Unraid doesn't always keep static /dev/sdX designations between boot cycles, it is vitally important to identify the source and destination /dev/sdX immediately before starting the dd command, don't reboot and trust the letters are the same.

  • Community Expert
7 hours ago, CDLehner said:

I think I might as well use disk5, as my "clone"

This makes things more complicated. To get disk5 out of the array you are going to have to New Config/Rebuild parity before you could use it as the clone destination.

  • Author

So...I won't use disk5, as trurl cautions; I'll put a 3T drive, I had previously copied and removed back in.

 

And this is the CLONE...

 

12 hours ago, JonathanM said:

dd if=/dev/sd(source) of=/dev/sd(destination) bs=1M conv=noerror,sync

 

Do this with array on or off? Do I need to do anything, to the RECEIVING disk...before running this command?

  • Author

Here is the RECEIVING drive...

 

unr4.jpg.138c164932ae1fc524ab705e56282ea0.jpg

 

Assign it...or just run of=/dev/sdf?

  • Community Expert
1 hour ago, CDLehner said:

Do this with array on or off?

off

1 hour ago, CDLehner said:

do anything, to the RECEIVING disk...before

no

46 minutes ago, CDLehner said:

Assign it

definitely NO

  • Community Expert
47 minutes ago, CDLehner said:

of=/dev/sdf

what will be if=/dev/sdX ?

 

13 hours ago, JonathanM said:

vitally important to identify the source and destination /dev/sdX immediately before starting the dd command

 

  • Author

Is there somewhere, I can watch progress?

 

unr5.jpg.d229870f31a429e81f73d2dcfaec8917.jpg

2 hours ago, CDLehner said:

Is there somewhere, I can watch progress?

Not really, had you pressed enter yet in that screenshot? I was thinking the blinking cursor would be at the beginning of the first blank line after you press enter.

 

If you haven't hit enter yet, you could add status=progress to the command, separated by a space of course.

dd if=/dev/sdi of=/dev/sdf bs=1M conv=noerror,sync status=progress

 

  • Author

∆ That screenshot, was before ENTER; so yes...now I just have the blinking cursor, below the command line.

 

Damn I wish I could have added the status=progress. How do I know when it's done!?

 

When root@unSERVER is back? Did someone say, expect upwards of 3 days??

  • Author
1 hour ago, CDLehner said:

That screenshot, was before ENTER; so yes...now I just have the blinking cursor, below the command line.

 

FTR...not blinking

 

unr6.thumb.jpg.c46dee6e7d6c447597924b2feac68af6.jpg

 

 

  • Author

Hmm: when I walked in to check on this...the 1st thing I've been looking at, is the drive activity light on the slot I know I'm pulling from. NO LIGHT.

 

I was happy, to see this...meaning it seemed to be done; but, of course...as you can see...some errors.

 

What do we think gents?

 

unr7.jpg.0a2653f6985900f92b2afbe7e3814375.jpg

Edited by CDLehner

3 hours ago, CDLehner said:

I was happy, to see this...meaning it seemed to be done; but, of course...as you can see...some errors.

 

What do we think gents?

Looks good. The "error" is expected, we didn't tell dd when to quit, so it just ran until it got to the end of the device.

 

Now run

reiserfsck --scan-whole-partition --rebuild-tree /dev/sdf1

  • Author

Be still my heart! 💜🙏

  • Author

^ Failed to open device sdf1. Didn't want to question...but was that a typo? Just sdf, right?

Try rebooting, don't start the array, verify the sd? designation of the clone destination, and try the command again, be sure to add the 1, that's not a typo, it designates the first partition on the device.

  • Author

OK...rebooted; CLONE is still sdf

 

unr8.jpg.e47d5c6188954959e7bd1d5aa3ad37cc.jpg

 

Re-established TelNet (PuTTY)

 

unr10.jpg.379f0be5bceadaac7f849e7d31fdcad6.jpg

Edited by CDLehner

Try reiserfsck --check /dev/sdf1

and see what it says. Since the drive was formatted XFS I'm not expecting it to find the deleted file system, but it won't hurt to try.

  • Author

Same

 

unr11.jpg.1809e115c7d9946085ddc695996c64d6.jpg

Well, since we are playing with the cloned device, and haven't touched the original, we can get experimental. If things don't work, we can always do the clone command again to start over.

So, lets try formatting as reiserfs to overwrite the XFS stuff.

mkreiserfs /dev/sdf1

Then try the scan whole partition rebuild tree command.

  • Author

unr12.jpg.337cda5561fe9ba9d14ee6d467f3fca6.jpg

  • Author

Oh, wow; that was quicker than I thought it would be.

 

unr13.jpg.f39f3c00cbb27d32db927f039005f176.jpg

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...

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.