1 .TH LFS-PCC 1 2019-04-15 "Lustre" "Lustre Utilities"
3 lfs pcc commands used to interact with PCC features.
5 .B lfs pcc attach <\fB--id\fR|\fB-i\fR \fINUM\fR> <\fIfile \fR...>
7 .B lfs pcc attach <\fB--id\fR|\fB-i\fR \fINUM\fR> <\fB--mnt\fR|\fB-m\fR \fImntpath\fR> <\fIfid \fR...>
9 .B lfs pcc detach <\fIfile \fR...>
11 .B lfs pcc detach_fid <\fImntpath\fR> <\fIfid \fR...>
13 .B lfs pcc state <\fIfile \fR...>
16 .B lfs pcc attach <\fB--id\fR|\fB-i\fR \fINUM\fR> <\fIfile \fR...>
17 Attach given files on the persistent client cache.
19 .B lfs pcc attach <\fB--id\fR|\fB-i\fR \fINUM\fR> <\fB--mnt\fR|\fB-m\fR \fImntpath\fR> <\fIfid \fR...>
20 Attach given fils into the persistent client cache by FID(s).
22 .B lfs pcc detach <\fIfile \fR...>
23 Detach given files from the persistent client cache.
25 .B lfs pcc detach_fid <\fImntpath\fR> <\fIfid \fR...>
26 Detach files from the persistent client cache by FID(s).
28 .B lfs pcc state <\fIfile \fR...>
29 Display the PCC state for given files.
34 For RW-PCC, it is HSM ARCHIVE ID to choose which backend for cache files.
37 Specifies Lustre mount point.
39 Before using RW-PCC, you need to configure HSM root and Archive ID mapping properly:
41 .B lfs pcc add $MNTPATH $PCCPATH \ "$ARCHIVE_ID $PROJID"
42 Add one PCC backend to the Lustre client, you need to specify hsm root,
43 archive ID, and project ID. On this client any subsequently created
44 files with this project ID will be persistently cached automatically.
46 .B lfs pcc del $MNTPATH $PCCPATH
47 Delete one PCC backend
49 .B lfs pcc clear $MNTPATH
50 Clear and remove all PCC backends for the client.
54 .B # lctl set_param mdt.$FSNAME-MDT0000.hsm_control=enabled
55 Enable HSM on the appropriate MDT.
57 .B # lhsmtool_posix --daemon --hsm-root /mnt/pcc/ --archive=1 /mnt/lustre
58 Launch one copytool on client node to connect cache storage.
60 .B # lfs pcc add /mnt/lustre /mnt/pcc \ "1\ 100"
61 Add HSM root and Archive ID mapping for RW-PCC.
63 .B $ lfs pcc attach -i 1 /mnt/lustre/file
64 Attach an existing file into PCC and migrate data from lustre to Cache Device,
65 any I/O to the Lustre file will direct to the RW-PCC copy.
67 .B $ lfs pcc attach_fid -i 1 -m /mnt/lustre 0x200000401:0x1:0x0
68 Attach an existing file referenced by FID "0x200000401:0x1:0x0" into PCC.
70 .B $ lfs pcc detach /mnt/lustre/file
71 Detach the file from RW-PCC, IO to the file will come to Lustre after this
73 .B $ lfs pcc detach_fid /mnt/lustre 0x200000401:0x1:0x0
74 Detach the file referenced by FID "0x200000401:0x1:0x0" from PCC.
76 .B $ lfs pcc state /mnt/lustre/file
78 file: /mnt/lustre/file, type: readwrite, PCC file: /mnt/pcc/0004/0000/0bd1/0000/0002/0000/0x200000bd1:0x4:0x0, user number: 1, flags: 6
80 Display the PCC state of the file "/mnt/lustre/file".