n:lustre# dd if=/dev/zero of=f3 bs=1M count=16
16+0 records in
16+0 records out
16777216 bytes (17 MB) copied, 0.284217 s, 59.0 MB/s
n:lustre# lfs hsm_archive f3
n:lustre# lfs hsm_remove f3
n:lustre# lctl get_param mdt.*.hsm.actions
mdt.lustre-MDT0000.hsm.actions=
lrh=[type=10680000 len=136 idx=1/5] fid=[0x200000401:0x3:0x0] dfid=[0x200000401:0x3:0x0] compound/cookie=0x0/0x5a8f32d9 action=ARCHIVE archive#=1 flags=0x0 extent=0x0-0xffffffffffffffff gid=0x0 datalen=0 status=STARTED data=[]
n:lustre# lfs hsm_remove f3
n:lustre# lctl get_param mdt.*.hsm.actions
mdt.lustre-MDT0000.hsm.actions=
lrh=[type=10680000 len=136 idx=1/5] fid=[0x200000401:0x3:0x0] dfid=[0x200000401:0x3:0x0] compound/cookie=0x0/0x5a8f32d9 action=ARCHIVE archive#=1 flags=0x0 extent=0x0-0xffffffffffffffff gid=0x0 datalen=0 status=STARTED data=[]
n:lustre# lctl get_param mdt.*.hsm.actions
mdt.lustre-MDT0000.hsm.actions=
lrh=[type=10680000 len=136 idx=1/5] fid=[0x200000401:0x3:0x0] dfid=[0x200000401:0x3:0x0] compound/cookie=0x0/0x5a8f32d9 action=ARCHIVE archive#=1 flags=0x0 extent=0x0-0xffffffffffffffff gid=0x0 datalen=0 status=SUCCEED data=[]
n:lustre# lfs hsm_state f3
f3: (0x00000009) exists archived, archive_id:1
n:lustre# lfs hsm_remove f3
n:lustre# lfs hsm_state f3
f3: (0x00000000), archive_id:1