LFS-PCC-DETACH(1)

NAME
lfs-pcc-detach, lfs-pcc-detach_fid - Detach given files from PCC

SYNOPSIS
lfs pcc detach [--keep|-k] <file ...>
lfs pcc detach_fid [--keep|-k] <mntpath> <fid ...>

DESCRIPTION

lfs pcc detach [--keep|-k] <file ...>
    Detach given files from the persistent client cache.

lfs pcc detach_fid [--keep|-k] <mntpath> <fid ...>
    Detach files from the persistent client cache by FID(s).

OPTIONS

--keep | -k
    By default, the detach command will detach the file from PCC permanently and remove the PCC copy after detach. This option will only detach the file, but keep the PCC copy in cache. It allows the detaching file to be attached automatically at next open if the cached copy of the file is still valid.

EXAMPLES

$ lfs pcc detach /mnt/lustre/test
    Detach the file permanently from PCC. The cached file on PCC will be removed after detach. IO to the file will come to Lustre OSTs after this command.

$ lfs pcc detach_fid /mnt/lustre 0x200000401:0x1:0x0
    Detach the file referenced by FID "0x200000401:0x1:0x0" from PCC permanently, and the cached file on PCC will be removed after detach.

$ lfs pcc detach -k /mnt/lustre/test
    Detach the file "/mnt/lustre/test" from PCC. The client will try to attach this file again at the next open if the cached copy is still valid.

$ lfs pcc detach_fid -k /mnt/lustre 0x200000401:0x1:0x0
    Detach the file referenced by FID "0x200000401:0x1:0x0" from PCC. The client will try to attach this file again at the next open if the cached copy is still valid.

SEE ALSO
lfs(1), lfs-hsm(1), lfs-pcc(1), lctl-pcc(8)