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.

Removing a drive - Is using rsync ok?

Featured Replies

EDITED TO ADD: Do not do this method, it will result in data loss. 

 

I have 2 Unraid servers (both legacy pro), I was using one for file storage and the other running VMs and Dockers. This was first done to use one as a "test" server to play around with VMs and Dockers and also to upgrade to the latest version early and make sure everything was OK before upgrading on my storage server. Over time I moved away from that and I want to consolidate to a single server. 

 

I recently had a drive in the one I am moving to start having SMART errors and figured I would replace that drive, do some clean up to make replacing drives easier in the future and then start moving stuff between the servers. 

 

The system is currently single parity (6TB) and the failing drive is a 6TB I have 4 14TB drive to put in there (2 for double parity) but I would like to swap out that 6TB for a 6TB to get everything running at its best rather than risk that drive finally failing completely while doing data moves etc. 


This brings me to my question

I have a 6TB in system I will be doing away with. I have been using Unbalanced to move data off that drive but it seems to use a fill up and move on method since I'd rather have it spread out among the remaining drives. Would this method work and are there any risks?

Add Disk5 to the exclude for all shares

rsync -avc --remove-source-files /mnt/disk5/shareName /mnt/user/shareName

 

I am thinking that this would move it to any disc using my highwater rules and would bypass disk5 since it is in the exclude path.

then run a find /mnt/disk5/shareName -type d -empty -delete to clear any empty directories since rsync doesn't take care of those. 

 

Once I have the drive empty I plan to stop the array - unmount -> new config

let parity run

 

At the same time I'll put that drive in the other server and start the rebuild. Once stable I'll swap the parity to a 14TB (can I add both Parity at the same time?) and once that is completed I'll add the other 2 14TB drives as new data drives and then rsync from the server being sunset to the new. 

 

Anything I'm missing or any really bad assumptions I've made?

Edited by elbobo
Adding warning that this will cause issues

Solved by itimpi

  • Community Expert
  • Solution
12 hours ago, elbobo said:

Add Disk5 to the exclude for all shares

rsync -avc --remove-source-files /mnt/disk5/shareName /mnt/user/shareName

I would wait for someone else to confirm but I think this would lead to data loss.  Changing the setting for the disks to be included will only apply to new files - not existing ones.  You are always told to never mix User Shares and physical drives in the same command in the way you are trying as it can lead to data loss by the system (the Linux level is not aware of User Shares)  and ends up trying to copy a file to itself resulting in files being truncated to zero size.

 

If you are on the latest Unraid (7.1.2) then mover can also be used to empty a disk.

 

Regarding upgrading the server to 14TB parity drive, then yes you can do them at the same time but you would be unprotected until the parity rebuild completes.  If you did them one at a time you would maintain protection.  You cannot, however add the new 14TB drives as data drives until both parity drives are updated.

  • Community Expert

Back in the olden days when it first announced that the Reiserfs was going to be removed from the Linux Kernel there was a set of instructions for converting to XFS (the only choice at the time).  I am attaching a screen capture of the rsync instructions to copy the contents of one disk onto another disk. 

 

image.png.207bb0104c7eb56c211362bd38b8f1ae.png

 

A link to these instructions is found here:

 

     https://forums.unraid.net/topic/35815-re-format-xfs-on-replacement-drive-convert-from-rfs-to-xfs-discussion-only/page/40/#comment-1454446

 

Edited by Frank1940

  • Author

Wanting to add before someone thinks about my REALLY bad idea - I did it with a directory of data I was clearing anyway and can confirm data loss is exactly what that will do. 

I am going to also edit my question with an alert at the top so no one reads the question and not the responses. 

 

Thank you all!

Edited by elbobo
Confusing word choices - edited for clarity

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.