From 8cea84d20eb83d0969b2a3d5798aa3ec180392db Mon Sep 17 00:00:00 2001 From: Arshad Hussain Date: Sun, 19 Mar 2017 21:00:40 +0530 Subject: [PATCH] LUDOC-371 config: Add lctl 'clear_conf' documentation. The new lctl command "clear_conf" is added to allow administartors to clear configuration files by removing SKIP records. The old configuration files are backed up. Signed-off-by: Arshad Hussain Signed-off-by: Vladimir Saveliev Change-Id: Iacc52127b0b93e736430cc13d4c9c852eac8dc2d Seagate-bug-id: MRP-2091 Reviewed-on: https://review.whamcloud.com/26083 Tested-by: Jenkins Reviewed-by: Arshad Hussain Reviewed-by: Joseph Gmitter --- LustreMaintenance.xml | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/LustreMaintenance.xml b/LustreMaintenance.xml index dfeaa6f..12b8267 100644 --- a/LustreMaintenance.xml +++ b/LustreMaintenance.xml @@ -281,6 +281,57 @@ Changing a Server NID The previous configuration log is backed up on the MGS disk with the suffix '.bak'. +
+ <indexterm> + <primary>maintenance</primary> + <secondary>Clearing a config</secondary> + </indexterm> Clearing configuration + + This command runs on MGS node having the MGS device mounted with + -o nosvc. It cleans up configuration files + stored in the CONFIGS/ directory of any records marked SKIP. + If the device name is given, then the specific logs for that + filesystem (e.g. testfs-MDT0000) are processed. Otherwise, if a + filesystem name is given then all configuration files are cleared. + The previous configuration log is backed up on the MGS disk with + the suffix 'config.timestamp.bak'. Eg: Lustre-MDT0000-1476454535.bak. + + To clear a configuration: + + + Shut down the file system in this order: + + + Unmount the clients. + + + Unmount the MDT. + + + Unmount all OSTs. + + + + + + If the MGS and MDS share a partition, start the MGS only + using "nosvc" option. + + mount -t lustre MDT partition -o nosvc mount_point + + + Run the clear_conf command on the MGS: + + lctl clear_conf config + + Example: To clear the configuration for + MDT0000 on a filesystem named + testfs + + mgs# lctl clear_conf testfs-MDT0000 + + +
<indexterm> <primary>maintenance</primary> -- 1.8.3.1