source: MondoRescue/branches/2.06/documentation/restoretips.sgml@ 323

Last change on this file since 323 was 323, checked in by bcornec, 18 years ago

Initial import of the documentation in SGML format.
Since the original SGML file and LyX files have not been published,
thus not preserved, I'll restart from scratch by importing the HTML
doc converted into SGML/DocBook.
Then real work begins ;-)

File size: 13.5 KB
Line 
1<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook V4.1//EN">
2
3<article>
4<articleinfo>
5<!-- $MVD$:app("MicroVision WebExpress","769") -->
6<!-- $MVD$:template("","0","0") -->
7<!-- $MVD$:color("18","840084","Custom #1","0") -->
8<!-- $MVD$:color("19","e0e0e0","Custom #2","0") -->
9<!-- $MVD$:color("20","80ff","Orange","1") -->
10<!-- $MVD$:color("21","ffd6ce","Lavender","1") -->
11<!-- $MVD$:fontset("Courier","Courier New") -->
12<title>Restore-Related Tips</title>
13</articleinfo>
14
15<para></para>
16<informaltable><tgroup cols="3"><tbody>
17<row>
18<entry>
19Mondo Rescue and Mindi Linux HOWTO
20</entry>
21</row>
22<row>
23<entry>
24<ulink url="restoreoverview.html">Prev</ulink>
25</entry>
26<entry>
27Chapter 9. Restore
28</entry>
29<entry>
30<ulink url="faq.html">Next</ulink>
31</entry>
32</row>
33</tbody></tgroup></informaltable>
34
35<sect1 id="RESTORETIP"><title>9.2. Restore-Related Tips</title>
36<para>Ideally, restore your system to a spare hard drive to test
37the integrity and reliability of your disks. To do that, either
38edit your mountlist to make the devices point to your spare hard
39drive, or swap your hard drive cables between boots.</para>
40<para>At a bare minimum, compare your CD against your file system
41before you decide whether to trust them.</para>
42<para>To test Mondo's ability to handle your LILO or GRUB boot
43loader and accompanying configuration file:</para>
44<itemizedlist>
45<listitem>
46<para>Boot from the backup CD into Expert Mode</para>
47</listitem>
48<listitem>
49<para>Type:</para>
50</listitem>
51</itemizedlist>
52<para></para>
53<informaltable><tgroup cols="1"><tbody>
54<row>
55<entry>
56
57bash# mondorestore --mbr
58
59</entry>
60</row>
61</tbody></tgroup></informaltable>
62
63<itemizedlist>
64<listitem>
65<para>To fix any mess it made (not that it should) type:</para>
66</listitem>
67</itemizedlist>
68<para></para>
69<informaltable><tgroup cols="1"><tbody>
70<row>
71<entry>
72
73bash# mount-mebash# chroot /mnt/RESTORINGbash# lilo OR grub-install '(hd0)'bash# exitbash# unmount-me
74
75</entry>
76</row>
77</tbody></tgroup></informaltable>
78
79<itemizedlist>
80<listitem>
81<para>If it did not work then please copy /tmp/mondo-restore.log to
82a floppy (or to your hard disk), gzip it and e-mail it to the
83mailing list.</para>
84</listitem>
85</itemizedlist>
86<sect2 id="AEN39"><title>9.2.1. Barebones (Nuke) Restore</title>
87<para>Imagine that your hard drives happen to be wiped,
88deliberately or accidentally. Or, imagine that you want to clone
89your existing operating system. In either case, you want to run in
90Nuke Mode.</para>
91<para>If you want to wipe everything and restore your whole system
92from CD, please:</para>
93<itemizedlist>
94<listitem>
95<para>Boot from the first Mondo CD</para>
96</listitem>
97<listitem>
98<para>Press &lt;enter&gt;</para>
99</listitem>
100<listitem>
101<para>Insert the subsequent CD when asked</para>
102</listitem>
103<listitem>
104<para>Watch the screen for errors</para>
105</listitem>
106</itemizedlist>
107<para>That's it. The restoration process for tape or NFS users is
108similarly easy: just boot, answer the on-screen prompts, and
109wait.</para>
110<para>Now, should something go wrong, you will be able to examine
111/tmp/mondo-restore.log to see what happened. All is not lost. You
112can fdisk and format the partitions yourself, using the tools that
113come with the CD. You can then run mondorestore in Interactive Mode
114and say 'no' when asked if you want Mondo to partition/format your
115drives.</para>
116<para>If you want to see exactly what Mondo is doing while it is
117restoring, press &lt;Alt&gt;&lt;left cursor&gt; to view its
118logfile, in a virtual console, scrolling past.</para>
119</sect2><sect2 id="AEN40"><title>9.2.2. Interactive Restore</title>
120<para>Interactive Mode is for people who have lost a subset of data
121from their live file system, or perhaps who have lost some data
122from their latest backup and want to restore a subset of data from
123an earlier backup. If you want to restore only some files or if you
124do not want to prep/format your drives, then you should boot into
125Interactive Mode. The interactive mode will provide an 'Editing
126mountlist screen' that allows you to setup a different disk
127geometry.</para>
128<para>To move up and down between partitions in the 'Editing
129mountlist screen', use the Up and Down arrows. To move between the
130main window and the buttons at the bottom, use the Left and Right
131cursor keys. TAB shifts focus from one screen item to the other in
132a haphazard fashion, owing to the complexities of the Newt
133library.</para>
134<para>If you want to restore selectively, just press &lt;enter&gt;
135and follow the on-screen instructions. You will be asked to say
136yes/no to a range of questions.</para>
137<para>If you are planning to modify your partition table, you would
138do well to read up on the partition layout and the use of fdisk, it
139gives you some could pointers on how to best lay out partitions.
140You can find good guide her.
141<ulink url="http://www.ibiblio.org/pub/Linux/docs/HOWTO/mini/Partition/index.html">http://www.ibiblio.org/pub/Linux/docs/HOWTO/mini/Partition/index.html</ulink></para>
142<para>If you want to restore a subset of the backup then:</para>
143<itemizedlist>
144<listitem>
145<para>Boot from the CD</para>
146</listitem>
147<listitem>
148<para>Type:</para>
149</listitem>
150</itemizedlist>
151<para></para>
152<informaltable><tgroup cols="1"><tbody>
153<row>
154<entry>
155
156bash# interactive
157
158</entry>
159</row>
160</tbody></tgroup></informaltable>
161
162<itemizedlist>
163<listitem>
164<para>Then, after booting, answer the questions as follows:</para>
165</listitem>
166</itemizedlist>
167<para></para>
168<informaltable><tgroup cols="1"><tbody>
169<row>
170<entry>
171
172Do you want to partition your devices? noDo you want to format them? noDo you want to restore everything? noDo you want to restore something? yesWhich path do you want to restore? /home/hugo [e.g.]Do you want to run LILO to setup your boot sectors? Yes
173
174</entry>
175</row>
176</tbody></tgroup></informaltable>
177
178</sect2><sect2 id="AEN42"><title>9.2.3. Expert Restore</title>
179<para>If you are planning to modify your partition table, you would
180do well to read up on the partition layout and the use of fdisk, it
181gives you some could pointers on how to best lay out partitions.
182You can find good guide her.
183<ulink url="http://www.ibiblio.org/pub/Linux/docs/HOWTO/mini/Partition/index.html">http://www.ibiblio.org/pub/Linux/docs/HOWTO/mini/Partition/index.html</ulink></para>
184<para>To restore manually, please:</para>
185<itemizedlist>
186<listitem>
187<para>Boot from the first CD, then type:</para>
188</listitem>
189</itemizedlist>
190<para></para>
191<informaltable><tgroup cols="1"><tbody>
192<row>
193<entry>
194
195bash# expert
196
197</entry>
198</row>
199</tbody></tgroup></informaltable>
200
201<itemizedlist>
202<listitem>
203<para>Then do whatever you like. :) You may type the following, of
204course:</para>
205</listitem>
206</itemizedlist>
207<para></para>
208<informaltable><tgroup cols="1"><tbody>
209<row>
210<entry>
211
212bash# mondorestore
213
214</entry>
215</row>
216</tbody></tgroup></informaltable>
217
218</sect2><sect2 id="AEN44"><title>9.2.4. Modified partitions -
219Restore to a different disk geometry</title>
220<para>One of the nice things about Mondo is that it lets you wipe
221your existing system and restore it in any layout you like (within
222reason). You can move from non-RAID to RAID,install and utilize
223additional drives, move from ext2 to ReiserFS, etc., all without
224risking the loss of data.</para>
225<para>If the user excluded a particular partition from backup and
226specifically excluded it from the mountlist itself using -E then
227Mondo will insert a small (32MB) partition at restore-time, in
228order to avoid having to re-jig fstab, the partition table,
229etc.</para>
230<para>To do this:</para>
231<itemizedlist>
232<listitem>
233<para>Boot into Expert Mode, then type:</para>
234</listitem>
235</itemizedlist>
236<para></para>
237<informaltable><tgroup cols="1"><tbody>
238<row>
239<entry>
240
241bash# mondorestore
242
243</entry>
244</row>
245</tbody></tgroup></informaltable>
246
247<itemizedlist>
248<listitem>
249<para>(edit the mountlist using the on-screen editor)</para>
250</listitem>
251</itemizedlist>
252<para>If you want to move from ext2 to ReiserFS, you can do it here
253(so long as your kernel supports ReiserFS). Ditto for XFS, JFS or
254ext3.</para>
255<para>Mondorestore will try to modify your /etc/fstab to reflect
256changes you have made to the mountlist. If you are not using LILO,
257you can still create your own /mnt/RESTORING/etc/lilo.conf and run
258lilo -r /mnt/RESTORING to configure your boot sectors and Master
259Boot Record.</para>
260<para>Mondo (technically, Mindi on behalf of Mondo) creates a file
261called a mountlist. This can be found on the ramdisk at
262/tmp/mountlist.txt; it looks something like this:</para>
263<para></para>
264<informaltable><tgroup cols="1"><tbody>
265<row>
266<entry>
267
268/dev/hda1/mnt/windows vfat 4096000/dev/hda5 / reiserfs 6023000&gt;/dev/hda6 /tmp xfs 955000/dev/hda7 /usr xfs 4096000
269
270</entry>
271</row>
272</tbody></tgroup></informaltable>
273
274<para>It is fairly easy to understand the list. Each line refers to
275a single device/partition. The line format is:</para>
276<para></para>
277<informaltable><tgroup cols="1"><tbody>
278<row>
279<entry>
280
281&lt;device&gt; &lt;partition&gt; &lt;format&gt; &lt;Kilobytes&gt;
282
283</entry>
284</row>
285</tbody></tgroup></informaltable>
286
287<para>If you have added a hard drive and want to take advantage of
288the additional space, you could amend the above mountlist to
289read:</para>
290<para></para>
291<informaltable><tgroup cols="1"><tbody>
292<row>
293<entry>
294
295/dev/hda1/mnt/windows vfat 6096000/dev/hda5 / reiserfs 9123000/dev/hda6 /tmp xfs 955000/dev/hdb1 /usr xfs 8192000/dev/hdb2 /home xfs 8192000
296
297</entry>
298</row>
299</tbody></tgroup></informaltable>
300
301<para>This assumes that your old hard drive is /dev/hda and the new
302hard drive is /dev/hdb.</para>
303<para>Or, if you want to add RAID support, create a new
304/etc/raidtab on the ramdisk (which is beyond the scope of this
305HOWTO) and then write a mountlist like this:</para>
306<para></para>
307<informaltable><tgroup cols="1"><tbody>
308<row>
309<entry>
310
311/dev/hda1 /mnt/windows vfat 6096000/dev/md0 / reiserfs 9123000/dev/md1 /tmp xfs 955000/dev/md2 xfs 8192000/dev/md3 /home xfs 8192000
312
313</entry>
314</row>
315</tbody></tgroup></informaltable>
316
317<para>So long as your /etc/raidtab file is sane, Mondo can
318automatically partition and format your disks for you, including
319the RAID devices.</para>
320<para>Once you have finished editing /tmp/mountlist.txt using
321mondorestore's built-in editor then you may choose 'OK'. Please
322note that this will not write anything to your hard disk. You will
323only reformat or repartition your disks if you say 'Yes' when asked
324if you want to do those things.</para>
325</sect2><sect2 id="AEN47"><title>9.2.5. Advanced</title>
326<para>It is now possible to restore to a live filesystem using
327Mondo. In other words, you do not have to boot your PC from your
328CD/floppy in order to restore files. Mondo was originally designed
329for disaster recovery - situations in which you cannot boot your
330PC. If you can boot your PC, it is not really a disaster, is it? :)
331Well, if you have wiped out your priceless collection of "MTV's
332Bjork Unplugged" MP3's, perhaps it is. Anyway, just type this as
333root</para>
334<para></para>
335<informaltable><tgroup cols="1"><tbody>
336<row>
337<entry>
338
339bash# mondorestore
340
341</entry>
342</row>
343</tbody></tgroup></informaltable>
344
345<para></para>
346<informaltable><tgroup cols="2"><tbody>
347<row>
348<entry>
349<ulink url="images/rest1.png"><inlinemediaobject><imageobject>
350<imagedata fileref="images/rest1-mini.png">
351</imageobject></inlinemediaobject>
352</ulink>
353</entry>
354<entry>
355Choose your type of backup media. The live restoration process is
356very similar to what you'll experience if you type mondorestore
357with no parameters after booting from a Mondo CD/floppy.
358</entry>
359</row>
360<row>
361<entry>
362<ulink url="images/rest2.png"><inlinemediaobject><imageobject>
363<imagedata fileref="images/rest2-mini.png">
364</imageobject></inlinemediaobject>
365</ulink>
366</entry>
367<entry>
368Hit 'OK' when you have inserted the tape/CD. If you generated a
369tape backup, the tape itself should be enough. If you generated a
370CD backup, the first CD should be enough. Otherwise, you may need
371the boot floppy.
372</entry>
373</row>
374<row>
375<entry>
376<ulink url="images/rest3.png"><inlinemediaobject><imageobject>
377<imagedata fileref="images/rest3-mini.png">
378</imageobject></inlinemediaobject>
379</ulink>
380</entry>
381<entry>
382Flag the files and directories you wish to restore. Use the 'More'
383and 'Less' buttons to open and close subdirectories.
384</entry>
385</row>
386<row>
387<entry>
388<ulink url="images/rest4.png"><inlinemediaobject><imageobject>
389<imagedata fileref="images/rest4-mini.png">
390</imageobject></inlinemediaobject>
391</ulink>
392</entry>
393<entry>
394Specify the location to restore the files to. In general, '/' is
395appropriate. If you do not want to overwrite newer versions of the
396files you are restoring then specify /tmp/BKP or similar as the
397restore path.
398</entry>
399</row>
400<row>
401<entry>
402<ulink url="images/rest5.png"><inlinemediaobject><imageobject>
403<imagedata fileref="images/rest5-mini.png">
404</imageobject></inlinemediaobject>
405</ulink>
406</entry>
407<entry>
408Mondorestore will retrieve configuration information from the
409media. (The sample screen is for tape users. CD users will see
410something different.)
411</entry>
412</row>
413<row>
414<entry>
415<ulink url="images/rest6.png"><inlinemediaobject><imageobject>
416<imagedata fileref="images/rest6-mini.png">
417</imageobject></inlinemediaobject>
418</ulink>
419</entry>
420<entry>
421Data will be restored to the hard disk - first the regular files,
422then any big (32MB or greater) files in the restore set.
423</entry>
424</row>
425</tbody></tgroup></informaltable>
426
427<para>I hope this manual is proving to be useful to you.</para>
428<para></para>
429<informaltable><tgroup cols="3"><tbody>
430<row>
431<entry>
432<ulink url="restoreoverview.html">Prev</ulink>
433</entry>
434<entry>
435<ulink url="index.html">Home</ulink>
436</entry>
437<entry>
438<ulink url="faq.html">Next</ulink>
439</entry>
440</row>
441<row>
442<entry>
443Overview
444</entry>
445<entry>
446<ulink url="restore.html">Up</ulink>
447</entry>
448<entry>
449Troubleshooting/FAQ
450</entry>
451</row>
452</tbody></tgroup></informaltable>
453
454
455</sect2></sect1></article>
Note: See TracBrowser for help on using the repository browser.