PCC Phase 2 (LU-12714)

[LU-11866] Add lfs pcc_dev commond when add/del PCC backend Created: 16/Jan/19  Updated: 30/Aug/19

Status: Open
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Technical task Priority: Minor
Reporter: Qian Yingjin Assignee: Qian Yingjin
Resolution: Unresolved Votes: 0
Labels: None

Rank (Obsolete): 9223372036854775807

 Description   

Currently we add/del a PCC backend on a client via llite.*.pcc as follows:

lctl set_param llite.*.pcc="add $hsm_root $HSM_ARCHIVE_ID $PROJID"
lctl set_param llite.*.pcc="clear"

 However, when a client has more than 1 Lustre mount points or Lustre filesystem instances,the command above may config the PCC backend on unexpected Lustre filesystem instances or Lustre mount points.

To solve this problem, we need to add a lustre mount when add or clear a PCC backend. This lustre mount point must be same as HSM (lhsmtool_posix) configuration.

After add this Lustre mount point parameter, the command to setup/cleanup PCC should be as follows:

local name=$($LFS getname $mntpnt | cut -d' ' -f1)
lctl set_param llite.$name.pcc="add $hsm_root $HSM_ARCHIVE_ID $PROJID"
lctl set_param llite.$name.pcc="clear"

 Going a step further, we should implement lfs pcc_add/del commands for PCC, and also provide a adminstrator with llapi interface to add/del PCC backend for a dedicated Lustre mount point, these APIs can directly use the code of lfs getname and set_param, no need extra IOCTL to implement it. 

 



 Comments   
Comment by Gerrit Updater [ 18/Jan/19 ]

Yingjin Qian (qian@ddn.com) uploaded a new patch: https://review.whamcloud.com/34061
Subject: LU-11866 pcc: Add lfs pcc_dev command to config PCC backend
Project: fs/lustre-release
Branch: pcc
Current Patch Set: 1
Commit: 17b6f35bfa1218985024fa87c3dd0682d602ea81

Generated at Sat Feb 10 02:47:37 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.