[LU-13842] Can't add pcc cache with roid only parameter. Created: 31/Jul/20  Updated: 17/Feb/21  Resolved: 17/Feb/21

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.14.0
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Vikentsi Lapa Assignee: WC Triage
Resolution: Not a Bug Votes: 0
Labels: PCC

Issue Links:
Related
is related to LU-10499 Readonly Persistent Client Cache support Closed
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

Just create this bug to track it status and not miss it, because it was early mentioned in separate email.

From email message

 

[root@qian tests]# ../utils/lctl pcc add /mnt/lustre /mnt/pcc -p "projid={100} roid=2"

lctl pcc pcc: error: setting llite.lustre-ffff9952eece7000.pcc='add /mnt/pcc projid={100} roid=2': Invalid argument (22)

 

Details:

According to the Lustre manual user can add PCC cache with rwid and roid options.

Attempt to add cache with roid option only was failed. So as workaround it is necessary to use rwid option.



 Comments   
Comment by Qian Yingjin [ 03/Aug/20 ]

Fix the bug:

 

[root@qian tests]# ../utils/lctl pcc add /mnt/lustre /mnt/pcc -p "projid={100} roid=2"
[root@qian tests]# ../utils/lctl pcc list /mnt/lustre                           
/mnt/pcc:
  rwid: 2
  flags: 3e
  autocache: projid={100}

 

Comment by Vikentsi Lapa [ 03/Aug/20 ]

Where build with fix is located? Is it tracked it separate patch?

Comment by Qian Yingjin [ 03/Aug/20 ]

I fixed it in the original patch series

Comment by Vikentsi Lapa [ 03/Aug/20 ]

Yes, I can confirm that it is possible to create with

lctl pcc add /mnt/lustre /mnt/pccro_tst -p "projid={100} roid=5"

lctl pcc list /mnt/lustre

pcc:
  -
    pccpath: /mnt/pccro_tst
    hsmtool: posix
    rwid: 5
    roid: 5
    flags: 3e
    autocache: projid={100}

Version for test:

rpm -qa | grep lustre
kmod-lustre-client-2.13.55_3_gaaa3279-1.el7.x86_64
lustre-client-2.13.55_3_gaaa3279-1.el7.x86_64
lustre-iokit-2.13.55_3_gaaa3279-1.el7.x86_64
lustre-client-tests-2.13.55_3_gaaa3279-1.el7.x86_64
kmod-lustre-client-tests-2.13.55_3_gaaa3279-1.el7.x86_64

Generated at Sat Feb 10 03:04:41 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.