[LU-9343] hsm: lfs hsm_remove needs --mntpath to use FIDS Created: 14/Apr/17 Updated: 05/Aug/20 Resolved: 22/Nov/17 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | Lustre 2.11.0 |
| Type: | Bug | Priority: | Minor |
| Reporter: | CEA | Assignee: | Hongchao Zhang |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Severity: | 3 | ||||||||
| Rank (Obsolete): | 9223372036854775807 | ||||||||
| Description |
|
But when running lfs hsm_remove, one will notice that you cannot use FIDS: #> lfs hsm_remove 0x200000401:0x1:0x0 Cannot stat 0x200000401:0x1:0x0: No such file or directory Unless you use the --mntpath/-m option: #> lfs hsm_remove --mntpath $MOUNT 0x200000401:0x1:0x0 The usage message of lfs hsm_remove: usage: hsm_remove [--filelist FILELIST] [--data DATA]
[--mntpath MOUNTPATH] [--archive NUM] <file|FID> ...
Note: To remove files from the archive that have been deleted on
Lustre, set mntpath and optionally archive. In that case, all the
positional arguments and entries in the file list must be FIDs.
The note is about files that have been removed from Lustre. I think a better usage message would be for example: usage hsm_remove [--filelist FILELIST] [--data DATA] [--archive NUM]
(FILE [FILE] | --mntpath MOUNTPATH FID [FID])
Note: one can remove data from the backend associated to deleted files
in Lustre. To do so the --mntpath option is required and one has to use
FIDS instead of file paths.
|
| Comments |
| Comment by Peter Jones [ 17/Apr/17 ] |
|
Hongchao Could you please assist with this one? Thanks Peter |
| Comment by Gerrit Updater [ 28/Apr/17 ] |
|
Hongchao Zhang (hongchao.zhang@intel.com) uploaded a new patch: https://review.whamcloud.com/26882 |
| Comment by Gerrit Updater [ 22/Nov/17 ] |
|
Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/26882/ |
| Comment by Peter Jones [ 22/Nov/17 ] |
|
Landed for 2.11 |