Viewing: llite.enable_pcc_rw.4
.TH LLITE.ENABLE_PCC_RW 4 2026-10-16 "Lustre" "Lustre Kernel Interfaces"
.SH NAME
llite.enable_pcc_rw, llite.enable_pcc_ro \- enable Persistent Client Cache modes
.SH SYNOPSIS
.SY
.RI "lctl set_param llite." FSNAME *.enable_pcc_rw= ENABLE
.SY
.RI "lctl set_param llite." FSNAME *.enable_pcc_ro= ENABLE
.YS
.SS PROPERTIES
.TP
.B Access Permissions
.br
.BR 644 " | " -rw-r--r--
.TP
.B Scope
.br
Per local filesystem mountpoint.
.TP
.B Config
.br
.B enable_pcc_rw
and
.B enable_pcc_ro
are always present for client mountpoints.
.TP
.B Default
.br
.RB enable_pcc_rw= 0
.br
.RB enable_pcc_ro= 1
.SH DESCRIPTION
These boolean parameters control whether the client allows the read-write
(PCC-RW) and read-only (PCC-RO) modes of the Persistent Client Cache.
When a mode is disabled, adding a PCC backend with
.BR lctl-pcc (8)
that enables that mode, and attaching a file in that mode with
.BR lfs-pcc-attach (1),
fail with
.BR EOPNOTSUPP ,
and a console message names the parameter that enables it.
Files are no longer attached in that mode automatically, and a file the
client looks at while the mode is disabled is not attached automatically
after the mode is enabled again, until the client drops the file from its
inode cache.
A file that is already attached stays attached only until the client
drops it from its cache, for example when its layout lock is cancelled,
and it is not attached again.
The next access to a PCC-RW file in that state restores its data to
Lustre through the PCC copytool, and waits for the copytool to run.
.PP
PCC-RW is a proof of concept that is not intended for production use.
It moves the only copy of the file data into the cache of a single client,
so if that client or its cache is lost, the file data is lost with it.
It is disabled by default, and should only be enabled for testing.
Using PCC-RW also needs
.B mdt.*.enable_pcc_rw=1
on the MDS, see
.BR mdt.enable_pcc_rw (4),
and
.B LFS_PCC_RW_OK=yes
in the environment of
.BR lfs (1)
and
.BR lctl (8).
.SH EXAMPLES
Enable PCC-RW for testing on all mountpoints of the
.B testfs
filesystem on the local
.BR client :
.EX
.RB "client# " "lctl set_param llite.testfs-*.enable_pcc_rw=1"
.EE
.SH AVAILABILITY
The
.B llite.enable_pcc_rw
and
.B llite.enable_pcc_ro
parameters are part of the
.BR lustre (7)
filesystem package since release 2.18.0.
.\" Added in commit v2_17_59-xx-gxxxxxxxxxx
.SH SEE ALSO
.BR lfs-pcc-attach (1),
.BR mdt.enable_pcc_rw (4),
.BR lctl-pcc (8),
.BR lctl-set_param (8)