On Fri, Jul 01, 2005 at 02:06:05PM +0100, Ross, D (Derek) wrote:
> I haven't tested this myself but I think you'd want to do something like this to move all files off a pool:
> 1. In the PoolManager admin module, disable the pool with psu set disabled <poolname>
> 2. In the destination pool admin module, do pp get file <pnfsid> <srcpoolname> and rep set precious <pnfsid> -force for all the files in the src pool
> 3. In the source pool admin module, do pnfs unregister
> 4. Stop the dcache-pool service on the appropriate system, remove the source pool line from the /opt/d-cache/<host>.poollist and the restart the dcache-pool service.
>
How do you get the pnfsids for all the files in a pool?
If a pool has been in use for some time it will probably have a few thousand files, i don't think that anyone in his right mind
will want to move each file individually.
There must be a command like for example evacuate poolname that forces d-cache to evacuate a pool and moves
everything to another suitable one.
> I think you need access to the admin interface to find out if a file is marked for deletion:
> 1. Go into the PnfsManger and do pnfsidof <file>
> 2. Then do flags ls <pnfsid returned above>
> If the file is marked deletable then the line d -> true will appear in the output
The problem is that end users want to have the information... Is there a way to get the info
from srm?
Kostas
|