Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nearline-storage: add possibility to dynamically un/load providers
Motivation: The nearline storage SPI based external provider is loaded at the pool startup time. This means, if we need to update the driver to apply a fix, the whole pool should be restarted. This should be not an issue during a stable operation, however, a possibility to dynamically update tape interface makes tape system maintenance independent from dCache. Modification: Add a possibility to dynamically load external nearline providers. The newly loaded provides use their own class loader, thus can be unloaded when class loader is removed. Result: nearline provides can be dynamically added and updated, if needed. ``` (pool_write@dCacheDomain) admin > hsm show providers PROVIDER DESCRIPTION DYNAMIC script Calls out to an HSM integration script. no link Hard links flushed files in another directory. no copy Copies files to and from another directory. no tar Bundles files into tar archives (not ready for production). no (pool_write@dCacheDomain) admin > hsm load provider /tmp/dcache-cta-0.6.0 New provides: PROVIDER DESCRIPTION dcache-cta dCache Nearline Storage Driver for CTA. Version: 0.6.0 2022-07-20T09:33:38Z (pool_write@dCacheDomain) admin > hsm show providers PROVIDER DESCRIPTION DYNAMIC script Calls out to an HSM integration script. no link Hard links flushed files in another directory. no copy Copies files to and from another directory. no tar Bundles files into tar archives (not ready for production). no dcache-cta dCache Nearline Storage Driver for CTA. Version: 0.6.0 2022-07-20T09:33:38Z yes (pool_write@dCacheDomain) admin > hsm unload provider dcache-cta Removed provides: PROVIDER DESCRIPTION dcache-cta dCache Nearline Storage Driver for CTA. Version: 0.6.0 2022-07-20T09:33:38Z (pool_write@dCacheDomain) admin > hsm show providers PROVIDER DESCRIPTION DYNAMIC script Calls out to an HSM integration script. no link Hard links flushed files in another directory. no copy Copies files to and from another directory. no tar Bundles files into tar archives (not ready for production). no (pool_write@dCacheDomain) admin > hsm load provider /tmp/dcache-cta-0.7.0 New provides: PROVIDER DESCRIPTION dcache-cta dCache Nearline Storage Driver for CTA. Version: 0.7.0 2022-11-04T08:32:39Z (pool_write@dCacheDomain) admin > hsm show providers PROVIDER DESCRIPTION DYNAMIC script Calls out to an HSM integration script. no link Hard links flushed files in another directory. no copy Copies files to and from another directory. no tar Bundles files into tar archives (not ready for production). no dcache-cta dCache Nearline Storage Driver for CTA. Version: 0.7.0 2022-11-04T08:32:39Z yes ``` Acked-by: Lea Morschel Target: master Require-book: yes Require-notes: yes
- Loading branch information