Bug #17096
closedPool name is not displayed after changing CephFS File layout using extended attributes
0%
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 ]
==============================================================================================================
- sudo setfattr -n ceph.file.layout.pool -v cephfs_data2 /mnt/mycephfs/file
- sudo getfattr -n ceph.file.layout /mnt/mycephfs/file
getfattr: Removing leading '/' from absolute path names - file: mnt/mycephfs/file
ceph.file.layout="stripe_unit=4194304 stripe_count=1 object_size=4194304 pool=4"
========================================================================================================================
- sudo setfattr -n ceph.dir.layout.pool -v cephfs_data /mnt/mycephfs
- sudo getfattr -n ceph.dir.layout /mnt/mycephfs
getfattr: Removing leading '/' from absolute path names - file: mnt/mycephfs
ceph.dir.layout="stripe_unit=4194304 stripe_count=1 object_size=4194304 pool=3"
===========================================================================================================================