bubbaQ Posted September 7, 2015 Share Posted September 7, 2015 Here is a little something I have been using for a long time that alerts me when there are open files on the unRAID array that will (likely) prevent shutdown. I haven't had time to change it to a .plg plugin so I thought I'd throw it out there for whoever wanted it. It has saved my bacon several times when I went to do a shutdown and something I forgot was running had files open on the array. It will also show you the name of the application that has the files open and permit you to kill the process if necessary. It adds a new tab called "Alerts" to the Main display with an icon that changes if there are any open files that may block shutdown. Ultimately I'd like to add an alert on the Array Actions Operation page and require an extra click-through when stopping the array if files blocking dismount are open. Unzip and use installpkg. Enjoy. OpenFileAlert-0.5.0-unraid-bubba.zip Link to comment
spencers Posted September 8, 2015 Share Posted September 8, 2015 Clever! Will have to give this a shot Link to comment
dlandon Posted September 12, 2015 Share Posted September 12, 2015 I am considering turning this into a plugin to help those that can't figure out why their server isn't shutting down cleanly. Can I get your permission to do that? Link to comment
itimpi Posted September 12, 2015 Share Posted September 12, 2015 Other than the support for the Alerts tab is not all this functionality already available via Dynamix Active Streams plugin? If so might a better (and easier) way forward might be to see if a request to add the alerts tab (or some other equivalent) to that plugin would be accepted. The Dynamix Active streams plugin already shows on the Dashboard if there are streams open so gives an indication that shutdown might be an issue, and more details via Tools->Active Streams so it seems everything essential might already be there. Also, since the current GUI is based on Dynamix that might mean there is more chance of the functionality being integrated into the standard build? Link to comment
dlandon Posted September 12, 2015 Share Posted September 12, 2015 Just looking at options at this point. I think this might offer a little more functionality. I am going to have a look. If it makes sense to be a dynamix add on, or functionality enhancement, then I can offer it to bonienl. Link to comment
bubbaQ Posted September 12, 2015 Author Share Posted September 12, 2015 I am considering turning this into a plugin to help those that can't figure out why their server isn't shutting down cleanly. Can I get your permission to do that? Sure... go ahead. This has features that are not in Active Streams.... such as interactively identifying and killing processes, as well as identifying loopback mounts. It uses at the core: lsof -F facn /mnt/disk* /mnt/user* /dev/loop* /dev/md* /mnt/cache Link to comment
dlandon Posted September 12, 2015 Share Posted September 12, 2015 Can't kill a process. Something is missing. window.open(document.location.href + "?pnum=" + pnum +"&action=kill"); Edit: I got it. Link to comment
bubbaQ Posted September 13, 2015 Author Share Posted September 13, 2015 Security first. Need to sanitize the input. Link to comment
dlandon Posted September 13, 2015 Share Posted September 13, 2015 Plugin is here: http://lime-technology.com/forum/index.php?topic=42881.0 Feel free to comment if you see any problems or have any ideas. I think this can go a long way to help those that can't figure out why they can't get a clean shutdown of their array. Thanks BubbaQ. Link to comment
dlandon Posted September 14, 2015 Share Posted September 14, 2015 BubbaQ, Can you give me your script for creating the package? Right now I am just zipping the emhttp files and I'd like to make a package instead. I am not that familiar with making packages. Thank you. Link to comment
bubbaQ Posted September 14, 2015 Author Share Posted September 14, 2015 I don't use a script.... I build by hand and CLI. Link to comment
dlandon Posted September 14, 2015 Share Posted September 14, 2015 I don't use a script.... I build by hand and CLI. Ok. It's fine. I will use what I have. It works. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.