Jump to content

Disable a Library


Recommended Posts

GreatFlashMan
Posted

Hopefully this is a quick and simple question.

The nas unit containing my Television library discovered it had errors and needed a reboot and hopeful volume repair. This (it's 100tb) can take 290 hours or so. So, in the mean time, the TV library is visible in Emby, but of course not accessible.

What i would like to do it Disable it, so Emby does not try to access it, and so that users cannot try and play anything from it. I cannot find an "enabled" button, and, of course, do not want to delete it, i just want it "out of the loop" whilst the nas does it's thing as it's causing some issues with emby.

What's the best solution so that nothing is lost and it can be restored "as was" after?

 

Thanks in advance.

Posted

Under each user you can disable access to that library.

image.png.ab78b2fd12e5448ce78e9432a7fffc13.png

Posted (edited)

While this will stop user access, it will not stop emby itself from scanning the folder - so you'll also need to disable/remove the library scanning schedules and RTM if you have that enabled.

 

Edited by rbjtech
  • Agree 1
GreatFlashMan
Posted

a simple "enable" tick would be SO much easier.

Going into every user and disabling access would be a pain (there's only about 25 users, but even so..)

Posted
4 hours ago, GreatFlashMan said:

What's the best solution so that nothing is lost and it can be restored "as was" after?

The 'disable' button doesn't exist - thus the above will provide a solution.

I think the disable library exists already in FR somewhere..

visproduction
Posted

GF,

Removing the folder from Admin / Libraries, of course will work, but then turning it back on, after your repair, may cause a new scan and perhaps change some media info.  I have not tested this.

Another quick method would be to rename all the media in the folder to *.mp4.off and *.mkv.off.  Recursing through subfolders is possible, but command line ren alone can't do it.

See: https://superuser.com/questions/16007/how-can-i-mass-rename-files

Turning everything back on is just reversing your renamed media files back to just .mp4 and .mkv.

 

Posted (edited)

@visproductionthat would have the same effect a removing the library.

With you metode the library would scan changes, and again when flipped back.

Adding

The NAS is under reconstruction ie don't mess with it.

Renaming shit when that's going on might led to data loss.

Edited by Neminem
  • Agree 1
  • Thanks 1
GreatFlashMan
Posted
1 hour ago, Neminem said:

@visproductionthat would have the same effect a removing the library.

With you metode the library would scan changes, and again when flipped back.

Adding

The NAS is under reconstruction ie don't mess with it.

Renaming shit when that's going on might led to data loss.

i cannot access the nas at all atm, when a volume rebuild is active, all services are stopped, so no webui and not mounts.

GreatFlashMan
Posted
5 hours ago, rbjtech said:

While this will stop user access, it will not stop emby itself from scanning the folder - so you'll also need to disable/remove the library scanning schedules and RTM if you have that enabled.

 

scanning is en masse though, ie. it either scans all libraries, or none.

Posted (edited)

I would suggest turning Emby off till its done, its all about you data integrity and health.

You might run into a rescan after data integrity is restored, if it sees your library offline.

Then Sms, email or other means tell your users 

" Do to hardware failure Emby will be offline... When issue is resolved, you can resume your watching.."

 

Edited by Neminem
Posted
15 minutes ago, GreatFlashMan said:

scanning is en masse though, ie. it either scans all libraries, or none.

Jep that what happens after a breakdown.

The library is not online.

I would turn off all services that have something to do with that NAS.

GreatFlashMan
Posted

all this when all it would have taken was an "enabled" toggle on the library haha

Posted

Well you can take or leave it, its your current choice.

But its all about what you want to risk, its your server, your responsibility. 

So its all up to you, to chose what you want.

But yes it would be a "nice to have".

Not a "Must have feature".

But again you choice to add an FF here 

 Feature Requests - Emby Community

  • Agree 1

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
×
×
  • Create New...