Jump to content
jbrodriguez

[Plug-In] unBALANCE

1085 posts in this topic Last Reply

Recommended Posts

I'm running it at the moment, evacuating a 3TB Red that's sounding very ill.  I'll let you know the results.

 

How'd it go?

Share this post


Link to post

I'm running it at the moment, evacuating a 3TB Red that's sounding very ill.  I'll let you know the results.

 

How'd it go?

 

Just headed over to this thread to ask the same question!  :)

Share this post


Link to post

I was just playing with this. It would be really nice if we could set a reserve space for instance 5% or 10% from full or whatever the user deems necessary.

 

Kinda slick too. I've been running dry runs for the heck of it.

Share this post


Link to post

I was just playing with this. It would be really nice if we could set a reserve space for instance 5% or 10% from full or whatever the user deems necessary.

 

Kinda slick too. I've been running dry runs for the heck of it.

 

Yes, it should be possible.

 

It would still have a hard floor, in case the percentage represents too little space.

 

I'll take a look at it.

Share this post


Link to post

Thanks. Just an idea.

 

What is the current Hard Floor?

Share this post


Link to post

Thanks. Just an idea.

 

What is the current Hard Floor?

 

It's set to 450Mb.

 

I should have an update by the weekend.

Share this post


Link to post

Thanks. I'm running it now to move some stuff around to aid in my quest to format some drives to XFS. I was at first a bit skeptical, but I must say its working great. Talk about a serious time saver Time/Patience Saver

 

One thing that threw me off and its not a complaint just for anybody who didn't catch it. My Google Chrome Browser locked up and I thought oh great files moving and now I can't stop it. Glad it runs in the background and a browser refresh simply shows you progress and nothing do with the actual moving of data.

 

Brilliant script

Share this post


Link to post

I installed the plugin, went Settings->Unbalance and hit Done after making sure its set to Enabled yet it shows the Status as Stopped and I cant access the unbalance page.  This is on version unBALANCE v1.2.15.

 

Edit: I had to switch it to Enabled: No, hit Apply then Enabled: Yes and hit apply for the server to start.

 

Edit2: Is it possible to select shares to move files from to balance then have it only as much as required to balance the disks?

Share this post


Link to post

It doesn't per say Balance the discs. It takes everything off a Disk and spreads it amoung your other discs to clear the selected disk.

For Example. I'm trying to remove all files off my Disk4 to I can format it to XFS. I selected all the shares I want moved on a particular disk in settings then to Home and clicked all the drives I want it to populate then the Calculate button to make sure it has room amoung all the discs.

 

Click Move and it rips along.

 

Remember its called UnBalance, not Balance. ;)

Share this post


Link to post

Remember its called UnBalance, not Balance. ;)

 

And here I thougth he was being clever with the name making it be a Balancing plugin for Unraid..thus UnBalance :)

Share this post


Link to post

Thanks. I'm running it now to move some stuff around to aid in my quest to format some drives to XFS. I was at first a bit skeptical, but I must say its working great. Talk about a serious time saver Time/Patience Saver

 

One thing that threw me off and its not a complaint just for anybody who didn't catch it. My Google Chrome Browser locked up and I thought oh great files moving and now I can't stop it. Glad it runs in the background and a browser refresh simply shows you progress and nothing do with the actual moving of data.

 

Brilliant script

 

Thank you for the kind words kizer !

 

Yes, the app is a process running on the unRAID server, so closing the browser or even shutting down your workstation won't affect the move operation.

 

When you open your browser again, it shows you the progress from that moment on.

Share this post


Link to post

...

Edit: I had to switch it to Enabled: No, hit Apply then Enabled: Yes and hit apply for the server to start.

...

 

Yes, I noticed that too.

 

I've already fixed it in the next version (default it to "Enabled: No").

Share this post


Link to post

It doesn't per say Balance the discs. It takes everything off a Disk and spreads it amoung your other discs to clear the selected disk.

For Example. I'm trying to remove all files off my Disk4 to I can format it to XFS. I selected all the shares I want moved on a particular disk in settings then to Home and clicked all the drives I want it to populate then the Calculate button to make sure it has room amoung all the discs.

 

Click Move and it rips along.

 

Remember its called UnBalance, not Balance. ;)

 

I think I might include this in the first post, it's a spot on description :)

Share this post


Link to post

Lol, Your very welcome. Its kinda why I avoided this script for a while because I was trying to balance my server and thought how dumb is this script? Now I totally see the brilliance of it.

Share this post


Link to post

It doesn't per say Balance the discs. It takes everything off a Disk and spreads it amoung your other discs to clear the selected disk.

For Example. I'm trying to remove all files off my Disk4 to I can format it to XFS. I selected all the shares I want moved on a particular disk in settings then to Home and clicked all the drives I want it to populate then the Calculate button to make sure it has room amoung all the discs.

 

Click Move and it rips along.

 

Remember its called UnBalance, not Balance. ;)

 

I think I might include this in the first post, it's a spot on description :)

 

Have the ability to rebalance when the formatting is done could also be useful.  You move files so that you can format the disks to the new filesystem then balance the array.

Share this post


Link to post

I just ran into another problem.  I have 3 folders, NCIS, NCIS LA and NCIS NO, I am able to add NCIS but neither of the other two to the "Folders to be Moved" category.  If I start with NCIS LA I can then move NCIS NO but not NCIS.

 

Edit: and another problem I am seeing is receiving "rsync: failed to set times on "/mnt/disk2/TVShows/Bones": Operation not permitted (1)" on a lot of files.

Share this post


Link to post

I'm running it at the moment, evacuating a 3TB Red that's sounding very ill.  I'll let you know the results.

 

How'd it go?

 

Just headed over to this thread to ask the same question!  :)

 

Just had to say this is an excellent script. I am using to move files from a drive that has over filled to a new drive that I have just installed.

 

If in future it can become integrated into the unRAID GUI in some way then it will be just awesome!

 

Great work! Thank you!

Share this post


Link to post

...

Have the ability to rebalance when the formatting is done could also be useful.  You move files so that you can format the disks to the new filesystem then balance the array.

 

You might want to look into consld8, which does some rebalancing.

Share this post


Link to post

I just ran into another problem.  I have 3 folders, NCIS, NCIS LA and NCIS NO, I am able to add NCIS but neither of the other two to the "Folders to be Moved" category.  If I start with NCIS LA I can then move NCIS NO but not NCIS.

...

 

Well, that's a bug ;D

 

I have a check in place to avoid including a subfolder of an already selected folder/share ... for example, it doesn't allow you to add both /movies and /movies/comedies, because /movies/comedies is contained within /movies.

 

In the best case, it would be moving folders once (all /movies hierarchy), then throwing errors about not finding /movies/comedies in the source disk (it's already been moved)

 

I'll have to improve the check.

 

...

Edit: and another problem I am seeing is receiving "rsync: failed to set times on "/mnt/disk2/TVShows/Bones": Operation not permitted (1)" on a lot of files.

Internally, unBALANCE uses the diskmv script, which uses rsync.

I've seen rsync throw those errors when the time of a file is kind of weird ... maybe empty, maybe too far in the past or future

Or probably some permission issue.

Who's the owner of the "Bones" folder ? Is it nobody:users or some other user ?

Share this post


Link to post

...

Just had to say this is an excellent script. I am using to move files from a drive that has over filled to a new drive that I have just installed.

 

If in future it can become integrated into the unRAID GUI in some way then it will be just awesome!

 

Great work! Thank you!

 

Thank you danioj !

 

As for integrating, for my part all good ... except I wouldn't do it myself since I don't like php THAT much :)

Share this post


Link to post

I've published v1.3.0.

 

Features/Bug Fixes:

It allows you to choose the reserved minimum space (in either Mb, Gb or a percentage), but still keeps a minimum hard limit of 450Mb (per kizer)

It also has a better check to prevent adding a subfolder of an existing folder and finally the plugin is disabled by default (per Ryland)

Share this post


Link to post

Who's the owner of the "Bones" folder ? Is it nobody:users or some other user ?

Bones is in the TVShow share but on the drive its now showing up as owned by "root".  Whats weird is that my folders in the TVShows share show a combination of being owned by "root" or "nobody" and Im not seeing a pattern.

Share this post


Link to post

How do you set the Reserved Space? I can't seem to find an option for it anywhere.

Share this post


Link to post

How do you set the Reserved Space? I can't seem to find an option for it anywhere.

 

It isn't showing up in the Settings page ?  :o

Share this post


Link to post

How do you set the Reserved Space? I can't seem to find an option for it anywhere.

 

It isn't showing up in the Settings page ?  :o

 

Its not for me after upgrading to 1.3.0

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now