Whamcloud - gitweb
FIX: removed redundant anchors
[doc/manual.git] / UpgradingLustre.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <chapter version="5.0" xml:lang="en-US" xmlns="http://docbook.org/ns/docbook" xmlns:xl="http://www.w3.org/1999/xlink" xml:id='upgradinglustre'>
3   <info>
4     <title xml:id='upgradinglustre.title'>Upgrading Lustre</title>
5   </info>
6   <para>This chapter describes Lustre interoperability and how to upgrade to Lustre 2.0, and includes the following sections:</para>
7
8   <itemizedlist><listitem>
9           <para><xref linkend="dbdoclet.50438205_82079"/>Lustre Interoperability</para>
10       </listitem>
11       <listitem>
12           <para><xref linkend="dbdoclet.50438205_51369"/>Upgrading Lustre 1.8.x to 2.0</para>
13       </listitem>
14   </itemizedlist>
15
16     <section xml:id="dbdoclet.50438205_82079">
17       <title>16.1 Lustre <anchor xml:id="dbdoclet.50438205_marker-1293321" xreflabel=""/>Interoperability</title>
18       <para>Lustre 2.0 is built on a new architectural code base, which is different than the one used with Lustre 1.8. These architectural changes require existing Lustre 1.8.x users to follow a slightly different procedure to upgrade to Lustre 2.0 - requiring clients to be unmounted and the file system be shut down. Once the servers are upgraded and restarted, then the clients can be remounted. After the upgrade, Lustre 2.0 servers can interoperate with compatible 1.8 clients and servers. Lustre 2.0 does <emphasis>not</emphasis> support 2.0 clients interoperating with 1.8 servers.</para>
19
20               <note><para>Lustre 1.8 clients support a mix of 1.8 and 2.0 OSTs, not all OSSs need to be upgraded at the same time.</para></note>
21               <note><para>Lustre 2.0 is compatible with version 1.8.4 and above. If you are planning a heterogeneous environment (mixed 1.8 and 2.0 servers), make sure that version 1.8.4 is installed on the client and server nodes that are not upgraded to 2.0.</para></note>
22
23     </section>
24     <section xml:id="dbdoclet.50438205_51369">
25       <title>16.2 Upgrading <anchor xml:id="dbdoclet.50438205_marker-1294652" xreflabel=""/>Lustre 1.8.x to 2.0</title>
26       <para>Upgrading to Lustre 2.0 involves shutting down the file system and upgrading servers, and optionally clients, all at the same time. Lustre 2.0 does not support a rolling upgrade in which the file system operates continuously while individual servers (or their failover partners) and clients are upgraded one at a time.</para>
27
28       <note><para>Although the Lustre 1.8 to 2.0 upgrade path has been tested, for best results we recommend performing a fresh Lustre 2.0 installation, rather than upgrading from 1.8 to 2.0.</para></note>
29
30       <section remap="h3">
31         <title>16.2.1 <anchor xml:id="dbdoclet.50438205_80840" xreflabel=""/>Performing a <anchor xml:id="dbdoclet.50438205_marker-1293327" xreflabel=""/>File System Upgrade</title>
32         <para>This procedure describes a file system upgrade in which Lustre 2.0 packages are installed on multiple 1.8.x servers and, optionally, clients, requiring a file system shut down. You can choose to upgrade the entire Lustre file system to 2.0 or just upgrade the Lustre servers to 2.0 and leave the clients at 1.8.x. Lustre 2.0 servers can interoperate with compatible 1.8 clients and servers.</para>
33                 <tip><para>In a Lustre upgrade, the package install and file system unmount steps are reversible; you can do either step first. To minimize downtime, this procedure first performs the 2.0 package installation, and then unmounts the file system.</para></tip>
34
35                 <orderedlist><listitem>
36          <para>Make a complete, restorable file system backup before upgrading Lustre.</para>
37
38     </listitem><listitem>
39         <para>If any Lustre nodes will not be upgraded to 2.0, make sure that these client and server nodes are at version 1.8.4.</para>
40         <para>Lustre 2.0 is compatible with version 1.8.4 and above. If you are planning a heterogeneous environment (mixed 1.8 and 2.0 clients and servers), make sure that version 1.8.4 is installed on nodes that are not upgraded to 2.0.</para>
41     </listitem><listitem>
42         <para>Install the 2.0 packages on the Lustre servers and, optionally, the clients.</para>
43         <para>Some or all servers can be upgraded. Some or all clients can be upgraded.</para>
44         <para>For help determining where to install a specific package, see <link xl:href="InstallingLustre.html#50438261_21654">TABLE 8-1</link> (Lustre packages, descriptions and installation guidance).</para>
45                 <orderedlist><listitem>
46         <para>Install the kernel, modules and ldiskfs packages. For example:</para>
47         <screen>$ rpm -ivh
48 kernel-lustre-smp-&lt;ver&gt; \
49 kernel-ib-&lt;ver&gt; \
50 lustre-modules-&lt;ver&gt; \
51 lustre-ldiskfs-&lt;ver&gt;
52 </screen>
53     </listitem><listitem>
54         <para>Upgrade the utilities/userspace packages. For example:</para>
55         <screen>$ rpm -Uvh lustre-&lt;ver&gt;
56 </screen>
57     </listitem><listitem>
58         <para>If a new e2fsprogs package is available, upgrade it. For example:</para>
59         <screen>$ rpm -Uvh e2fsprogs-&lt;ver&gt;
60 </screen>
61         <para>Use e2fsprogs-1.41-10 or later, available at:</para>
62         <para><link xl:href="http://downloads.lustre.org/public/tools/e2fsprogs/">http://downloads.lustre.org/public/tools/e2fsprogs/</link></para>
63         </listitem><listitem>
64         <para>(Optional) If you want to add optional packages to your Lustre system, install them now.</para>
65     </listitem></orderedlist>
66     </listitem><listitem>
67         <para>Shut down the file system.</para>
68         <para>Shut down the components in this order: clients, then the MDT, then OSTs. Unmounting a block device causes Lustre to be shut down on that node.</para>
69                 <orderedlist><listitem>
70         <para>Unmount the clients. On each client node, run:</para>
71         <screen>umount &lt;mount point&gt;
72 </screen>
73     </listitem><listitem>
74         <para>Unmount the MDT. On the MDS node, run:</para>
75         <screen>umount &lt;mount point&gt;
76 </screen>
77     </listitem><listitem>
78         <para>Unmount the OSTs (be sure to unmount all OSTs). On each OSS node, run:</para>
79         <screen>umount &lt;mount point&gt;
80 </screen>
81     </listitem></orderedlist>
82     </listitem><listitem>
83         <para>Unload the old Lustre modules by rebooting the node or manually removing the Lustre modules.</para>
84         <para>Run lustre_rmmod several times and use lsmod to check the currently loaded modules.</para>
85     </listitem><listitem>
86         <para>Start the upgraded file system.</para>
87         <para>Start the components in this order: OSTs, then the MDT, then clients.</para>
88                 <orderedlist><listitem>
89         <para>Mount the OSTs (be sure to mount all OSTs). On each OSS node, run:</para>
90         <screen>mount -t lustre &lt;block device name&gt; &lt;mount point&gt;
91 </screen>
92     </listitem><listitem>
93         <para>Mount the MDT. On the MDS node, run:</para>
94         <screen>mount -t lustre &lt;block device name&gt; &lt;mount point&gt; 
95 </screen>
96     </listitem><listitem>
97         <para>Mount the file system on the clients. On each client node, run:</para>
98         <screen>mount -t lustre &lt;MGS node&gt;:/&lt;fsname&gt; &lt;mount point&gt; 
99 </screen>
100     </listitem></orderedlist></listitem></orderedlist>
101         <para>If you have a problem upgrading Lustre, contact us via the <link xl:href="https://jira.whamcloud.com">Whamcloud Jira</link> bug tracker.</para>
102         <para> </para>
103       </section>
104   </section>
105 </chapter>