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.

How to rebalance drive space? One drive 100% full

Featured Replies

Hello all,

 

I have a drive that is utterly out of free space, I mean, zero bytes free. The array has space available - about 2tb or so. 

 

I'd like to move some of the stuff off this empty drive to rebalance the available space. I've done a search on the forum for this and seen references to "this feature is not needed". I think it's causing some problems though. For one, I think drives perform poorly when they are 100% full, right? Additionally, I see a lot of errors related to this in my syslog:

 

May 31 03:46:26 Shiva logger: rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1165) [sender=3.1.0]

May 31 03:46:26 Shiva logger: ./Shared/OS images & Backups/Client Backups/Azrael/WindowsImageBackup/azrael/Catalog/BackupGlobalCatalog

May 31 03:46:26 Shiva logger: .d..t...... Shared/OS images & Backups/Client Backups/Azrael/WindowsImageBackup/azrael/Catalog/

May 31 03:46:26 Shiva logger: >f+++++++++ Shared/OS images & Backups/Client Backups/Azrael/WindowsImageBackup/azrael/Catalog/BackupGlobalCatalog

May 31 03:46:27 Shiva shfs/user0: shfs_write: write: (28) No space left on device

May 31 03:46:27 Shiva shfs/user0: shfs_write: write: (28) No space left on device

 

 

and about 30 pages of this:

 

Jun  1 12:11:33 Shiva shfs/user: shfs_write: write: (28) No space left on device

Jun  1 12:11:33 Shiva shfs/user: shfs_write: write: (28) No space left on device

Jun  1 12:11:33 Shiva shfs/user: shfs_write: write: (28) No space left on device

Jun  1 12:11:33 Shiva shfs/user: shfs_write: write: (28) No space left on device

Jun  1 12:11:33 Shiva shfs/user: shfs_write: write: (28) No space left on device

Jun  1 12:11:33 Shiva shfs/user: shfs_write: write: (28) No space left on device

Jun  1 12:11:33 Shiva shfs/user: shfs_write: write: (28) No space left on device

Jun  1 12:11:33 Shiva shfs/user: shfs_write: write: (28) No space left on device

Jun  1 12:11:33 Shiva shfs/user: shfs_write: write: (28) No space left on device

Jun  1 12:11:33 Shiva shfs/user: shfs_write: write: (28) No space left on device

Jun  1 12:11:33 Shiva shfs/user: shfs_write: write: (28) No space left on device

 

 

and so on. Finally, when I try to copy files from my Windows machine to the server, Teracopy will say "can't copy files", not enough disk space" on the initial attempt, but if I start it anyway it works fine.

 

Is there a way to automatically rebalance this drive?

 

If not, then I would really need help with how to manually move stuff around. I'm not sure how to move files off this mnt without screwing things up as far as parity goes and so on. it's probably just making the 2 mounts available and cutting and pasting but I'd definitely need someone to tell me that before I do it.

 

Thank you!

 

 

  • Author

Playing with it now, but that looks like 100% what I need - thank you so much!

  • Author

... this could have gone better, although it could have gone worse.

 

I ran the plugin. it estimated 16 hours, but it stopped at 13 hours with "error 23". It definitely did at least some rebalancing, but now I have a terabyte less of space than when I started. There are some immediately noticeable duplicate files on disk 8 and disk 9 now.

 

How to I resolve the duplicates without further screwing things up? To unraid, one location is "correct" and one is not, right?

  • Community Expert

Probably simplest to just use mc (Midnight Commander) from the command line.

 

You should probably take a look at your user share settings so you don't have this problem again. Turn on the Help toggle to better understand what the settings are for.

  • Author

What would I be looking for, in terms of determining which is the accurate location according to the filesystem, and which is not, with mc?

 

Allocation was set to high water since I first set this up a little over 5 years ago. I have no idea one this one specific drive filled completely up, I certainly didn't change anything with it.

  • Community Expert

What would I be looking for, in terms of determining which is the accurate location according to the filesystem, and which is not, with mc?

Assuming the duplicates are in fact duplicates, you can delete whichever one you want. Any file at /mnt/diskX/shareA is a file at /mnt/user/shareA. If you have duplicate files, one at /mnt/disk8/shareA and another at /mnt/disk9/shareA then unRAID will give you the file at the lower numbered drive when you access /mnt/user/shareA. If you delete one of them then unRAID will see the other one just fine.

 

You should be careful though in case some of the files aren't duplicates. It might be that a file was incompletely written if it ran out of disk space, for example. Or it might be that the subfolders are duplicates, but the subfolders don't both contain all the files for example.

  • Author

Ok, thank you - the files all have per-file md5 checksums in there so I can check them.

 

Thanks again, that helps a ton!

Probably simplest to just use mc (Midnight Commander) from the command line.

 

You should probably take a look at your user share settings so you don't have this problem again. Turn on the Help toggle to better understand what the settings are for.

 

Just to clarify, mc would be used to manually move files around, and not automatically balance the disks right?

 

For OP, I had an issue where I told various dockers to store data on /mnt/disk1/<folder> instead of /mnt/user/<folder> and it caused my first disk to almost fill up.  When I changed where files get stored to the proper path, it didn't automatically balance out the files but I started to fill up whichever disk has the least amount of data on it per my settings.

  • Community Expert

Just to clarify, mc would be used to manually move files around, and not automatically balance the disks right?

Yes. Nothing automatically moves files once they are written. Google "Midnight Commander" and you will get a better idea of what it is and does.

Just to clarify, mc would be used to manually move files around, and not automatically balance the disks right?

Yes. Nothing automatically moves files once they are written. Google "Midnight Commander" and you will get a better idea of what it is and does.

 

I'm aware of what Midnight Commander is, I just thought maybe there was some hidden feature special for Unraid that I didn't know about.  Thanks for the reply! 

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.