LFS-PCC-ATTACH(1) Lustre User Utilities LFS-PCC-ATTACH(1)

# [NAME](#NAME)

lfs-pcc-attach - attach file to local cache filesystem

# [SYNOPSIS](#SYNOPSIS)

`lfs pcc attach` \[**-rw**] \[**--id**|**-i** *ID*] *FILE* \[...]

`lfs pcc attach_fid` \[**-rw**] \[**--id**|**-i** *ID*] {**--mnt**|**-m** *MNTPATH*} *FID* \[...]

# [DESCRIPTION](#DESCRIPTION)

Attach and copy the specified files into the persistent client cache. Use **lfs pcc detach** to remove the cached files from PCC either manually, or through automatic mechanisms for the purpose of the cache space management.

# [OPTIONS](#OPTIONS)

[**-i**, **--id**](#i)

The ARCHIVE *ID* to choose which backend for the cached *FILE*. If *ID* is not specified, use the first archive attached to the mounted filesystem by default.

[**-m**, **--mnt**](#m)

Specify the Lustre client mountpoint for the file *FID* to be attached.

[**-r**, **--readonly**](#r)

Attach the file in read-only mode. This is the default.

[**-w**, **--write**](#w)

Attach the file in read-write mode.

# [EXAMPLES](#EXAMPLES)

Attach an existing file into PCC with archive ID 1 and copy data from Lustre to cache device. Reads from the Lustre file will direct to the PCC-RO copy:

```
$ lfs pcc attach -i 1 /mnt/lustre/file
```

```

```

Read-only attach file referenced by FID "0x200000401:0x1:0x0" in filesystem **/mnt/lustre** using the first/only cache ID for that mountpoint:

```
$ lfs pcc attach_fid -r -m /mnt/lustre 0x200000401:0x1:0x0
```

```

```

# [AVAILABILITY](#AVAILABILITY)

The **lfs pcc attach** command is part of the [**lustre**(7)](/man/enterprise-packages/lustre/lustre.7) filesystem package since release 2.13.0.

# [SEE ALSO](#SEE_ALSO)

[**lfs**(1)](/man/enterprise-packages/lustre/lfs.1), [**lfs-pcc**(1)](/man/enterprise-packages/lustre/lfs-pcc.1), [**lfs-pcc-detach**(1)](/man/enterprise-packages/lustre/lfs-pcc-detach.1), [**lfs-pcc-pin**(1)](/man/enterprise-packages/lustre/lfs-pcc-pin.1), [**lfs-pcc-state**(1)](/man/enterprise-packages/lustre/lfs-pcc-state.1), [**llapi\_pcc\_attach**(3)](/man/enterprise-packages/lustre/llapi_pcc_attach.3), [**llite.pcc\_attach\_thread\_max**(4)](/man/enterprise-packages/lustre/llite.pcc_attach_thread_max.4), [**lctl-pcc**(8)](/man/enterprise-packages/lustre/lctl-pcc.8)

2026-03-19 Lustre

---

Document: lfs-pcc-attach(1) from lustre 2.17.59-r1 (Chainguard OS)
Source: https://github.com/lustre/lustre-release
