Whamcloud - gitweb
LUDOC-11 cleanup: cleanups of examples and text
authorAndreas Dilger <adilger@whamcloud.com>
Wed, 17 Aug 2011 21:33:05 +0000 (15:33 -0600)
committerAndreas Dilger <andreas.dilger@intel.com>
Fri, 26 Apr 2013 10:20:44 +0000 (06:20 -0400)
Clean up some examples seen in the manual while working on LUDOC-14.

When the --index parameter is passed to mkfs.lustre, it will already
assign an OST or MDT index, so OSTffff will not be in the output.

Clean up the example for multiple NIDs to remove the use of the old
elan network type.

Signed-off-by: Richard Henwood <richard.henwood@intel.com>
Change-Id: Ibe1068d66627e72a88c2584f413d2c40df99cab0
Reviewed-on: http://review.whamcloud.com/2181
Tested-by: Hudson
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
BackupAndRestore.xml
LustreOperations.xml

index 9de0266..2a8d5ba 100644 (file)
@@ -368,7 +368,7 @@ checking for existing Lustre data
          target name  main-MDT0000
          4k blocks     0
          options        -i 4096 -I 512 -q -O dir_index -F
- mkfs_cmd = mkfs.ext2 -j -b 4096 -L main-MDTffff  -i 4096 -I 512 -q
+ mkfs_cmd = mkfs.ext2 -j -b 4096 -L main-MDT0000  -i 4096 -I 512 -q
   -O dir_index -F /dev/vgmain/MDT0
  Writing CONFIGS/mountdata
 cfs21:~# mkfs.lustre --mgsnode=cfs21 --fsname=main --ost --index=0 /dev/vgmain/OST0
@@ -387,7 +387,7 @@ checking for existing Lustre data
          target name  main-OST0000
          4k blocks     0
          options        -I 256 -q -O dir_index -F
- mkfs_cmd = mkfs.ext2 -j -b 4096 -L lustre-OSTffff -J size=400 -I 256 
+ mkfs_cmd = mkfs.ext2 -j -b 4096 -L lustre-OST0000 -J size=400 -I 256 
   -i 262144 -O extents,uninit_bg,dir_nlink,huge_file,flex_bg -G 256 
   -E resize=4290772992,lazy_journal_init, -F /dev/vgmain/OST0
  Writing CONFIGS/mountdata
@@ -418,7 +418,7 @@ cfs21:~# lvcreate -L50M -s -n MDT0.b1 /dev/vgmain/MDT0
    Logical volume &quot;MDT0.b1&quot; created
 cfs21:~# lvcreate -L50M -s -n OST0.b1 /dev/vgmain/OST0
    Rounding up size to full physical extent 52.00 MB
-   Logical volume &quot;OST.b1&quot; created</screen>
+   Logical volume &quot;OST0.b1&quot; created</screen>
       <para>After the snapshots are taken, you can continue to back up new/changed files to &quot;main&quot;. The snapshots will not contain the new files.</para>
       <screen>cfs21:~# cp /etc/termcap /mnt/main
 cfs21:~# ls /mnt/main
@@ -476,9 +476,9 @@ Permanent disk data:
               (OST writeconf )
  Persistent mount opts: errors=remount-ro,extents,mballoc
  Parameters: mgsnode=192.168.0.21@tcp
-Writing CONFIGS/mountdata
-When renaming an FS, we must also erase the last_rcvd file from the snapshots
-cfs21:~# mount -t ldiskfs /dev/vgmain/MDT0.b1 /mnt/mdtback
+Writing CONFIGS/mountdata</screen>
+        <para>When renaming an FS, we must also erase the last_rcvd file from the snapshots</para>
+          <screen>cfs21:~# mount -t ldiskfs /dev/vgmain/MDT0.b1 /mnt/mdtback
 cfs21:~# rm /mnt/mdtback/last_rcvd
 cfs21:~# umount /mnt/mdtback
 cfs21:~# mount -t ldiskfs /dev/vgmain/OST0.b1 /mnt/ostback
@@ -486,10 +486,8 @@ cfs21:~# rm /mnt/ostback/last_rcvd
 cfs21:~# umount /mnt/ostback</screen>
         </listitem>
         <listitem>
-          <para>Mount the file system from the LVM snapshot.</para>
-          <para>For example:</para>
+          <para>Mount the file system from the LVM snapshot.  For example:</para>
           <screen>cfs21:~# mount -t lustre /dev/vgmain/MDT0.b1 /mnt/mdtback
-                                                            
 cfs21:~# mount -t lustre /dev/vgmain/OST0.b1 /mnt/ostback
 cfs21:~# mount -t lustre cfs21:/back /mnt/back</screen>
         </listitem>
index cf40c40..33860d8 100644 (file)
@@ -333,7 +333,7 @@ mds1# cat /proc/fs/lustre/mds/testfs-MDT0000/recovery_status</screen>
         <screen>$ mkfs.lustre --reformat --fsname spfs --mgs --mdt --index=0 /dev/<emphasis>{mdsdev}</emphasis></screen>
       </listitem>
       <listitem>
-        <para>If you have a separate MGS (that you do not want to reformat), then add the &quot;--writeconf&quot; flag to <literal>mkfs.lustre</literal> on the MDT, run:</para>
+        <para>If you have a separate MGS (that you do not want to reformat), then add the <literal>--writeconf</literal> flag to <literal>mkfs.lustre</literal> on the MDT, run:</para>
         <screen>$ mkfs.lustre --reformat --writeconf --fsname spfs --mgsnode=<replaceable>mgs_nid</replaceable> --mdt --index=0 <replaceable>/dev/mds_device</replaceable></screen>
       </listitem>
     </orderedlist>