[ceph-users] Re: mount issues with rbd running xfs - Structure needs cleaning

2020-05-04 Thread Ilya Dryomov
Using "profile rbd-read-only" with krbd wouldn't work unless you are on kernel 5.5 or later. Prior to 5.5, "rbd map" code in the kernel did some things that are incompatible with "profile rbd-read-only", such as establishing a watch on the image header and more. This was overlooked because it is

[ceph-users] Re: mount issues with rbd running xfs - Structure needs cleaning

2020-05-04 Thread Paul Emmerich
Yeah, file systems rarely really do a read-only mount without providing some very obscure options, no idea about xfs specifically. Suggestion: use a keyring with profile rbd-read-only to ensure that it definitely can't write when mapping the rbd. xfs might just do the right thing automatically whe

[ceph-users] Re: mount issues with rbd running xfs - Structure needs cleaning

2020-05-04 Thread Void Star Nill
Thanks Janne. I actually meant that the RW mount is unmounted already - sorry about the confusion. - Shridhar On Mon, 4 May 2020 at 00:35, Janne Johansson wrote: > Den mån 4 maj 2020 kl 05:14 skrev Void Star Nill >: > >> One of the use cases (e.g. machine learning workloads) for RBD volumes in

[ceph-users] Re: mount issues with rbd running xfs - Structure needs cleaning

2020-05-04 Thread Janne Johansson
Den mån 4 maj 2020 kl 05:14 skrev Void Star Nill : > One of the use cases (e.g. machine learning workloads) for RBD volumes in > our production environment is that, users could mount an RBD volume in RW > mode in a container, write some data to it and later use the same volume in > RO mode into a

[ceph-users] Re: mount issues with rbd running xfs - Structure needs cleaning

2020-05-03 Thread Void Star Nill
Hello Brad, Adam, Thanks for the quick responses. I am not passing any arguments other than "ro,nouuid" on mount. One thing I forgot to mention is that, there could be more than one mount of the same volume on a host - I dont know how this plays out for xfs. Appreciate your inputs. Regards, Sh

[ceph-users] Re: mount issues with rbd running xfs - Structure needs cleaning

2020-05-03 Thread brad . swanson
Are you mounting the RO with noatime? ___ ceph-users mailing list -- ceph-users@ceph.io To unsubscribe send an email to ceph-users-le...@ceph.io

[ceph-users] Re: mount issues with rbd running xfs - Structure needs cleaning

2020-05-03 Thread Adam Tygart
I'm pretty sure to XFS, "read-only" is not quite "read-only." My understanding is that XFS replays the journal on mount, unless it is also mounted with norecovery. -- Adam On Sun, May 3, 2020, 22:14 Void Star Nill wrote: > Hello All, > > One of the use cases (e.g. machine learning workloads) fo