Details
-
Bug
-
Resolution: Fixed
-
Minor
-
Lustre 2.5.1
-
Centos 6
-
3
-
HSM
-
14180
Description
It is currently possible to ask lfs to hsm_archive a directory, although this doesn't appear to make any sense, and the posix copytool rejects it.
$ lfs hsm_archive /mnt/tas01/tmp_test_lhmsc lhsmtool_posix[15132]: copytool fs=tas01 archive#=1 item_count=1 lhsmtool_posix[15132]: waiting for message from kernel lhsmtool_posix[15137]: '[0x200001b70:0x371:0x0]' action ARCHIVE reclen 72, cookie=0x53880088 lhsmtool_posix[15137]: processing file 'tmp_test_lhmsc' lhsmtool_posix[15137]: archiving '/mnt/tas01/.lustre/fid/0x200001b70:0x371:0x0' to '/vsm/tasfs1/0371/0000/1b70/0000/0002/0000/0x200001b70:0x371:0x0_tmp' lhsmtool_posix[15137]: saving stripe info of '/mnt/tas01/.lustre/fid/0x200001b70:0x371:0x0' in /vsm/tasfs1/0371/0000/1b70/0000/0002/0000/0x200001b70:0x371:0x0_tmp.lov lhsmtool_posix[15137]: cannot get stripe info on '/mnt/tas01/.lustre/fid/0x200001b70:0x371:0x0': No data available (61) lhsmtool_posix[15137]: cannot save file striping info of '/mnt/tas01/.lustre/fid/0x200001b70:0x371:0x0' in '/vsm/tasfs1/0371/0000/1b70/0000/0002/0000/0x200001b70:0x371:0x0_tmp': No data available (61) lhsmtool_posix[15137]: going to copy data from '/mnt/tas01/.lustre/fid/0x200001b70:0x371:0x0' to '/vsm/tasfs1/0371/0000/1b70/0000/0002/0000/0x200001b70:0x371:0x0_tmp' lhsmtool_posix[15137]: '/mnt/tas01/.lustre/fid/0x200001b70:0x371:0x0' is not a regular file: Invalid argument (22) lhsmtool_posix[15137]: data copy failed from '/mnt/tas01/.lustre/fid/0x200001b70:0x371:0x0' to '/vsm/tasfs1/0371/0000/1b70/0000/0002/0000/0x200001b70:0x371:0x0_tmp': Invalid argument (22) lhsmtool_posix[15137]: Action completed, notifying coordinator cookie=0x53880088, FID=[0x200001b70:0x371:0x0], hp_flags=0 err=22 lhsmtool_posix[15137]: llapi_hsm_action_end() on '/mnt/tas01/.lustre/fid/0x200001b70:0x371:0x0' ok (rc=0)
Ideally this should be caught early and not being forwarded to the copytool at all.