Re: Cephfs cannot create snapshots in subdirs of / with mds = "allow *"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Patrick,

Thank you so much for writing back.

> Did you set the new "subvolume" flag on your root directory? The
> probable location for EPERM is here:
>
> https://github.com/ceph/ceph/blob/d4352939e387af20531f6bfbab2176dd91916067/src/mds/Server.cc#L10301
>
> You can unset it using:
>
> setfattr -n ceph.dir.subvolume -v 0 /path/to/cephfs/root

This seems to have resolved the issue!

     root@ceph-01:~# cd /mnt/dncephfs/
     root@ceph-01:/mnt/dncephfs# setfattr -n ceph.dir.subvolume -v 0 .
     root@ceph-01:/mnt/dncephfs# cd samba/dnstor-test/.snap
     root@ceph-01:/mnt/dncephfs/samba/dnstor-test/.snap# mkdir testsnapshot

What is a bit perplexing here is that we certainly did not set that
attribute manually. Are there ceph command sequences that could have
enabled that flag as a side-effect? Since I cannot thing of anything I
did that would have enabled this I am a bit concerned that I might
re-enable this without my knowledge in the future.

Thank you again for the assistance!

-David

-- 
David Prude
Systems Administrator
PGP Fingerprint: 1DAA 4418 7F7F B8AA F50C  6FDF C294 B58F A286 F847
Democracy Now!
www.democracynow.org


_______________________________________________
ceph-users mailing list -- ceph-users@xxxxxxx
To unsubscribe send an email to ceph-users-leave@xxxxxxx




[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux