Bug #65157
closed
cephfs-mirror: set layout.pool_name xattr of destination subvol correctly
Added by Milind Changire about 2 months ago.
Updated 19 days ago.
Category:
Correctness/Safety
Component(FS):
cephfs-mirror
Description
- mirroring doesn't handle subvols correctly
- the layout xattr is missing on the destination subvol dir i.e. the layout.pool_name
- Category set to Correctness/Safety
- Assignee set to Jos Collin
- Target version set to v20.0.0
- Backport set to reef,squid
- Component(FS) cephfs-mirror added
- Status changed from New to Can't reproduce
Can't reproduce this:
$ ./bin/ceph fs snapshot mirror add a /volumes/subvolgrp_a/subvol_a/
$ mkdir -p /mnt/cephfs11/volumes/subvolgrp_a/subvol_a/.snap/snap_1
$ getfattr -n ceph.dir.layout.pool_name /mnt/cephfs11/volumes/subvolgrp_a/subvol_a/
getfattr: Removing leading '/' from absolute path names
# file: mnt/cephfs11/volumes/subvolgrp_a/subvol_a/
ceph.dir.layout.pool_name="cephfs.a.data"
$ getfattr -n ceph.dir.layout.pool_name /mnt/cephfs12/volumes/subvolgrp_a/subvol_a/
getfattr: Removing leading '/' from absolute path names
# file: mnt/cephfs12/volumes/subvolgrp_a/subvol_a/
ceph.dir.layout.pool_name="cephfs.remotefs.data"
@Milind, could you please help by providing your steps?
I arrived at this issue only via code review.
I haven't attempted reproducing the issue.
Also available in: Atom
PDF