Whamcloud - gitweb
LUDOC-369 osd-ldiskfs: update file-level backup/restore 26/26026/3
authorFan Yong <fan.yong@intel.com>
Sat, 5 Nov 2016 21:04:26 +0000 (05:04 +0800)
committerJoseph Gmitter <joseph.gmitter@intel.com>
Thu, 23 Mar 2017 15:19:23 +0000 (15:19 +0000)
We need to remove the old oi.16* files to avoid stale OI mappings
left in the new rebuilt OI. In addition, removing the CATALOGS
can avoid recovery failure causing mount trouble.

Signed-off-by: Fan Yong <fan.yong@intel.com>
Change-Id: Id768550aae43a986a9c06ebdfc10656f167a2a89
Reviewed-on: https://review.whamcloud.com/26026
Tested-by: Jenkins
Reviewed-by: Joseph Gmitter <joseph.gmitter@intel.com>
BackupAndRestore.xml

index 7ea2c8a..0f7fc0a 100644 (file)
@@ -660,6 +660,26 @@ trusted.fid= \
 0x0d822200000000004a8a73e500000000808a0100000000000000000000000000</screen>
       </listitem>
       <listitem>
+        <para>Remove old OI files.</para>
+        <screen>[oss]# rm -f oi.16*</screen>
+      </listitem>
+      <listitem>
+        <para>Remove old CATALOGS.</para>
+        <screen>[oss]# rm -f CATALOGS</screen>
+        <note>
+        <para>This is optional for the MDT side only. The CATALOGS record the
+    llog file handlers that are used for recovering cross-server updates. Before
+       OI scrub rebuilds the OI mappings for the llog files, the related recovery
+       will get a failure if it runs faster than the background OI scrub.  This will
+    result in a failure of the whole mount process. OI scrub is an online tool,
+    therefore, a mount failure means that the OI scrub will be stopped.
+    Removing the old CATALOGS will avoid this potential trouble.  The
+       side-effect of removing old CATALOGS is that the recovery for related
+       cross-server updates will be aborted. However, this can be handled by LFSCK
+       after the system mount is up.</para>
+        </note>
+      </listitem>
+      <listitem>
         <para>Change directory out of the file system.</para>
         <screen>[oss]# cd -</screen>
       </listitem>