[lustre-devel] make fs ro for migration

Defazio, Gian-Carlo defazio1 at llnl.gov
Tue Oct 29 15:48:14 PDT 2024




Hi,

We’re doing another file system migration. We’d like users to have read-only access to the existing filesystem during and then for a while after the final sync.

The 2 mechanisms we’re looking at are setting the MDTs read-only using “lctl set_param mdt.*.readonly=1” and remounting the filesystem on all the clients using “mount -o remount,ro”.

My impression is that in the case of setting the MDTs read-only, files already opened in write mode will still be writable. For remounting, if files are opened in write mode the remount will fail and complain that the file system is busy. Our current plan is to do the remounting of all clients because it’s easier to see if some user has some file open in write mode.

Is there a way to make the file system read-only that’s minimally disruptive to users but doesn’t have the potential problem of having to chase down every process writing to the filesystem?

Thanks,
Gian-Carlo DeFazio



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lustre.org/pipermail/lustre-devel-lustre.org/attachments/20241029/b9174a03/attachment.htm>


More information about the lustre-devel mailing list