Project

General

Profile

Actions

Bug #17096

closed

Pool name is not displayed after changing CephFS File layout using extended attributes

Added by Rohith Radhakrishnan over 7 years ago. Updated over 7 years ago.

Status:
Won't Fix
Priority:
High
Assignee:
-
Category:
-
Target version:
-
% Done:

0%

Source:
other
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
fs
Component(FS):
Labels (FS):
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Steps-

1)Create a pool and a metadata pool and create a new cephfs using the pools and mount the file system from client
2) Now create another data pool and attach it to the already created cephfs FS using "ceph fs add_data_pool "
3) Using "setfattr" set the file layout to another pool.
4) Read layout using "getfattr"

Result: Only pool id of the new pool is shown instead of pool name.

===============================================================================================================
#ceph osd lspools
0 rbd,1 cephfs_data1,2 cephfs_metadata,3 cephfs_data,4 cephfs_data2

#ceph fs ls
name: cephfs, metadata pool: cephfs_metadata, data pools: [cephfs_data1 cephfs_data cephfs_data2 ]

==============================================================================================================

  1. sudo setfattr -n ceph.file.layout.pool -v cephfs_data2 /mnt/mycephfs/file
  1. sudo getfattr -n ceph.file.layout /mnt/mycephfs/file
    getfattr: Removing leading '/' from absolute path names
  2. file: mnt/mycephfs/file

ceph.file.layout="stripe_unit=4194304 stripe_count=1 object_size=4194304 pool=4"

========================================================================================================================

  1. sudo setfattr -n ceph.dir.layout.pool -v cephfs_data /mnt/mycephfs
  1. sudo getfattr -n ceph.dir.layout /mnt/mycephfs
    getfattr: Removing leading '/' from absolute path names
  2. file: mnt/mycephfs

ceph.dir.layout="stripe_unit=4194304 stripe_count=1 object_size=4194304 pool=3"

===========================================================================================================================

Actions

Also available in: Atom PDF