Description of problem: See: https://tracker.ceph.com/issues/41302
In 2.8. EPHEMERAL PINNING POLICIES, Random pinning is failing when we give PERCENTAGE. setfattr -n ceph.dir.pin.random -v PERCENTAGE DIRECTORY_PATH I tried different ways [root@ceph-amar-adm-8-1619169765647-node7-client _nogroup]# setfattr -n ceph.dir.pin.distributed -v 1 /mnt/fuse_mount/volumes/_nogroup/ [root@ceph-amar-adm-8-1619169765647-node7-client _nogroup]# setfattr -n ceph.dir.pin.random -v 10 /mnt/fuse_mount/volumes/_nogroup/sub_vol_1 setfattr: /mnt/fuse_mount/volumes/_nogroup/sub_vol_1: Numerical argument out of domain [root@ceph-amar-adm-8-1619169765647-node7-client _nogroup]# setfattr -n ceph.dir.pin.random -v 0.1 /mnt/fuse_mount/volumes/_nogroup/sub_vol_1 setfattr: /mnt/fuse_mount/volumes/_nogroup/sub_vol_1: Invalid argument [root@ceph-amar-adm-8-1619169765647-node7-client _nogroup]# setfattr -n ceph.dir.pin.random -v 5 /mnt/fuse_mount/volumes/_nogroup/sub_vol_1 setfattr: /mnt/fuse_mount/volumes/_nogroup/sub_vol_1: Numerical argument out of domain [root@ceph-amar-adm-8-1619169765647-node7-client _nogroup]# setfattr -n ceph.dir.pin.random -v 1 /mnt/fuse_mount/volumes/_nogroup/sub_vol_1 setfattr: /mnt/fuse_mount/volumes/_nogroup/sub_vol_1: Invalid argument [root@ceph-amar-adm-8-1619169765647-node7-client _nogroup]# setfattr -n ceph.dir.pin.random -v 1% /mnt/fuse_mount/volumes/_nogroup/sub_vol_1 setfattr: /mnt/fuse_mount/volumes/_nogroup/sub_vol_1: Invalid argument Links Referred : Section 2.8 - https://cee-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/job/CCS/job/ccs-mr-preview/34832/artifact/preview/index.html#ephemeral-pinning-policies_fs
Docs have been updated Preview Link: - https://cee-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/job/CCS/job/ccs-mr-preview/35209/artifact/preview/index.html#ephemeral-pinning-policies_fs Tested as per Docs and looks fine As we pin to the rank IOs are going with that rank only. tested this using ceph fs status [root@ceph-amar-adm-8-1619671138159-node1-mgr-mon-installer-client a]# setfattr -n ceph.dir.pin.distributed -v 2 /mnt/fuse_mount/volumes/_nogroup/subvol_1/ae6dd6a1-c311-4079-a7a6-cfb9f7c89e1c setfattr: /mnt/fuse_mount/volumes/_nogroup/subvol_1/ae6dd6a1-c311-4079-a7a6-cfb9f7c89e1c: Invalid argument [root@ceph-amar-adm-8-1619671138159-node1-mgr-mon-installer-client a]# setfattr -n ceph.dir.pin.distributed -v 1 /mnt/fuse_mount/volumes/_nogroup/subvol_1/ae6dd6a1-c311-4079-a7a6-cfb9f7c89e1c [root@ceph-amar-adm-8-1619671138159-node1-mgr-mon-installer-client a]# setfattr -n ceph.dir.pin.random -v 0.01 /mnt/fuse_mount/volumes/_nogroup/subvol_1/ae6dd6a1-c311-4079-a7a6-cfb9f7c89e1c [root@ceph-amar-adm-8-1619671138159-node1-mgr-mon-installer-client a]# setfattr -n ceph.dir.pin.random -v 0.02 /mnt/fuse_mount/volumes/_nogroup/subvol_1/ae6dd6a1-c311-4079-a7a6-cfb9f7c89e1c setfattr: /mnt/fuse_mount/volumes/_nogroup/subvol_1/ae6dd6a1-c311-4079-a7a6-cfb9f7c89e1c: Invalid argument [root@ceph-amar-adm-8-1619671138159-node1-mgr-mon-installer-client a]# [root@ceph-amar-adm-8-1619671138159-node1-mgr-mon-installer-client a]# setfattr -n ceph.dir.pin -v 0 /mnt/fuse_mount/volumes/_nogroup/subvol_1/ae6dd6a1-c311-4079-a7a6-cfb9f7c89e1c/a/b/ [root@ceph-amar-adm-8-1619671138159-node1-mgr-mon-installer-client a]# setfattr -n ceph.dir.pin -v 1 /mnt/fuse_mount/volumes/_nogroup/subvol_1/ae6dd6a1-c311-4079-a7a6-cfb9f7c89e1c/
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Red Hat Ceph Storage 5.0 bug fix and enhancement), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2021:3294