From 383ee832ecec39b96ba04c1952d246fb6eec8fa2 Mon Sep 17 00:00:00 2001 From: Joseph Gmitter Date: Fri, 30 Aug 2019 13:46:50 -0400 Subject: [PATCH] LUDOC-455 mdt: Document the mdt readonly parameter This patch adds documentation for the mdt.*.readonly parameter added in LU-11811. Signed-off-by: Joseph Gmitter Change-Id: I53cc58b54e54b0a198141d3944a4970e3f992ce7 Reviewed-on: https://review.whamcloud.com/36012 Reviewed-by: James Nunez Reviewed-by: Andreas Dilger Tested-by: jenkins --- LustreMaintenance.xml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/LustreMaintenance.xml b/LustreMaintenance.xml index 766084b..271d1b3 100644 --- a/LustreMaintenance.xml +++ b/LustreMaintenance.xml @@ -59,6 +59,9 @@ + + +
@@ -837,4 +840,33 @@ Changing the Address of a Failover Node
+
+ <indexterm><primary>maintenance</primary> + <secondary>set an MDT to readonly</secondary></indexterm> + Set an MDT to read-only + It is sometimes desirable to be able to mark the filesystem + read-only directly on the server, rather than remounting the clients and + setting the option there. This can be useful if there is a rogue client + that is deleting files, or when decommissioning a system to prevent + already-mounted clients from modifying it anymore. + Set the mdt.*.readonly parameter to + 1 to immediately set the MDT to read-only. All future + MDT access will immediately return a "Read-only file system" error + (EROFS) until the parameter is set to + 0 again. + Example of setting the readonly parameter to + 1, verifying the current setting, accessing from a + client, and setting the parameter back to 0: + mds# lctl set_param mdt.fs-MDT0000.readonly=1 +mdt.fs-MDT0000.readonly=1 + +mds# lctl get_param mdt.fs-MDT0000.readonly +mdt.fs-MDT0000.readonly=1 + +client$ touch test_file +touch: cannot touch ‘test_file’: Read-only file system + +mds# lctl set_param mdt.fs-MDT0000.readonly=0 +mdt.fs-MDT0000.readonly=0 +
-- 1.8.3.1