[LU-13337] How to detach all files from PCC device Created: 05/Mar/20 Updated: 14/May/20 Resolved: 14/May/20 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | Lustre 2.13.0 |
| Fix Version/s: | None |
| Type: | Question/Request | Priority: | Minor |
| Reporter: | Mahmoud Hanafi | Assignee: | Li Xi |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Rank (Obsolete): | 9223372036854775807 |
| Description |
|
If a user writes a large number of files on the PCC device, currently there is no way to get a listing of those cached files. The user must keep track of the files there could be cases where a user may lost track of some files. Thanks |
| Comments |
| Comment by Peter Jones [ 06/Mar/20 ] |
|
Li Xi could you please advise? |
| Comment by Li Xi [ 23/Apr/20 ] |
The cached files are not maintained in memory (otherwise, the list would cost too much memory). Instead, the cached files can be listed by scanning the directory tree on the PCC device. And we are planing to add scanning tools. And the support for listing these cached files will be easily implemented in the tool, even though that is not the original purpose. There is already patch that adds the tool. https://review.whamcloud.com/#/c/35230/ And we will need to extend the tool a little bit for this purpose.
Even before the tool is ready, we could easily parsing the directory tree of PCC device by writing a simple script, because the directory tree can be accessed as normal file system. "find $PCC_DIR -t f" would list all cached files. And by parsing the path, a script can get the FIDs of the cached files. Please note that a tool/script shouldn't modify the PCC storage, otherwise data loss of the cached Lustre files could happen.
The patch https://review.whamcloud.com/#/c/35230/ will be able to detach all cached files when removing a PCC device. |
| Comment by Mahmoud Hanafi [ 14/May/20 ] |
|
please close this case. |