Changeset 324 in MondoRescue
- Timestamp:
- Jan 16, 2006, 6:31:54 PM (19 years ago)
- Location:
- branches/2.06/documentation
- Files:
-
- 1 added
- 5 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.06/documentation/mondorescue-howto.sgml
r323 r324 1 <!DOCTYPE BOOK PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [ 2 <!ENTITY curdate "DDD"> 3 <!ENTITY curver "VVV"> 4 5 <!ENTITY WWWB "http://www.mondorescue.org/"> 6 <!ENTITY WWW '<ulink url="http://www.mondorescue.org">MondoRescue</ulink>'> 7 <!ENTITY gfdl SYSTEM "fdl.sgml"> 8 9 <article> 10 <articleinfo> 11 <title>MondoRescue HOWTO</title> 12 <subtitle> 13 Utilisation and Configuration of Mondo and Mindi under Linux (Version &curver;) 14 </subtitle> 15 <graphic fileref="images/protected-by-mondo.png" align="center"> 16 17 <pubdate> 18 19 in its latest version the 20 &curdate;</pubdate> 21 <abstract> 22 <para> 23 This document describes the use of mondo and mindi tools to realize disaster recovery backup of your systems. It provides information on installation, backup and restore modes, hardware and software requirements, and answers to some frequently asked questions. 24 The goals are to offer a general view of the functions and their best usages. 25 Mondo Rescue is a Disaster Recovery Solution which allows you 26 to effortlessly backup and interactively restore Linux, Windows and 27 other supported filesystem partitions to/from CD/DVD-+R/RW media, tape, 28 NFS, ... and Mindi Linux provides the bootable emergency restore 29 CD/floppy set which Mondo uses at boot-time. 30 </para> 31 </abstract> 32 <author> 33 <firstname>Bruno</firstname> 34 <surname>Cornec</surname> 35 <affiliation> 36 <orgname>MondoRescue Project</orgname> 37 <address><email>bcornec@users.berlios.de</email></address> 38 </affiliation> 39 </author> 40 <!-- 41 Hugo Rabson 42 Mikael Hultgren 43 Stan Benoit 44 Randy Delfs 45 Cafeole 46 Bryan J. Smith 47 --> 48 <copyright> 49 <year>2000-2006</year> 50 <holder role="mailto:bcornec@users.berlios.de">Bruno Cornec</holder> 51 </copyright> 52 <legalnotice> 53 <title>License</title> 54 <para> 55 </para> 56 <para> 57 This HOWTO is a free documentation. you may copy, redistribute and/or modify it under the terms of the 58 <Link LinkEnd="gfdl"> 59 GNU Free Documentation License, Version 1.1 60 </link>.</para> 61 <para> 62 or any later version published by the Free Software Foundation; with no Invarian 63 t Sections, Front-Cover Texts or Back-Cover Texts. This document is distributed 64 hoping it will be useful, but <emphasis>without any guaranty</emphasis>; you're 65 completely responsible of its use, and coulnd't complain in case it doesn't work 66 , or even if it breaks the hardware. All the software included in it, if not alr 67 eady copyrighted is released under the GPL. 68 69 </para> 70 </legalnotice> 71 <revhistory> 72 <revnumber>2.06</revnumber> 73 <date>2006-01-16</date> 74 <authorinitials>Bruno Cornec</authorinitials> 75 <revdescription> 76 <para> 77 First SGML version publically available, remade from the HTML docs of the project. 78 </para> 79 </revdescription> 80 </revision> 81 </revhistory> 82 </articleinfo> 83 84 <toc></toc> 85 <lot></lot> 86 87 88 <chapter id="about"> 89 <title>About this Guide</title> 90 91 <sect1 id="purpose"> 92 <title>Purpose / Scope of this Guide</title> 93 94 <para> 95 This HOWTO serves to help people get started with using 96 mondo/mindi as way to backup/restore their system. This is a work 97 constantly evolving. It was started by Hugo Rabson and has 98 since been worked upon by a number of people. See the 99 '<ulink url="&WWWB;about.html#devteam">About</ulink>' web 100 page for a list of members of the development team.</para> 101 102 <para>There are many ways to contribute to the Linux movement 103 without actually writing code. One of the most important is writing 104 documentation, allowing each person to share their knowledge with 105 thousands of others around the world. This HOWTO is designed to 106 help you get familiar with how Mondo/Mindi works.</para> 107 108 <para> 109 Opinions expressed here are those of the authors. 110 Informations are provided in the aim to be useful to the readers. 111 However, there can't be, through this document, any warranty of any kind 112 on the way it works on your systems, nor the author could be responsible for any problem caused by the use of these informations. 113 However, software editors don't garantee you a lot either (re-read the contracts). 114 </para> 115 116 <sect2 id="newversion"><title>New versions of this document</title> 117 118 <para>The newest version of this document can always be found on 119 MondoRescue's homepage &WWW;.</para> 120 <para> 121 If you make a translation of this document into another language, please let meknow so that I can include a reference to it here. 122 </para> 123 </sect2> 124 <sect2><title>Suggestions / Feedback</title> 125 <para> 126 I rely on you, the reader, to make this HOWTO useful. THis HOWTO is probably incomplete even if it tries to be accurate to the best of our knowledge. 127 If you have any suggestions, corrections, recommandations or congratulations :-) don't hesitate to send them to me 128 <email>bcornec@users.berlios.de</email>, 129 and I will try to incorporate them in a next revision or to the mondorescue mailling list at <ulink url="http://lists.sourceforge.net/lists/listinfo/mondo-devel">http://lists.sourceforge.net/lists 130 /listinfo/mondo-devel</ulink>; 131 e-mail the list at 132 <ulink url="mailto:mondo-devel@lists.sourceforge.net">mondo-devel@lists.sourceforge.net</ulink>; 133 tell us what is wrong and how it should be fixed. 134 Include the section title and recommended changes. Whenever possible, include 135 the exact, spell-checked, grammar-checked text that you think would 136 improve the document. 137 </para> 138 <para>See Mondo's 139 <ulink url="../../feedback/feedback.html">Feedback</ulink> page for 140 more information. 141 </para> 142 <para> 143 Please note that we do our best to help everyone but it is 144 difficult for us to help you if you do not attach a log file to 145 your e-mail. Let me say that again - attach your log file to your 146 e-mail! Thank you. Without it we can't offer 147 any tangible help because you aren't either. That's what the log 148 file is for. It is located at <filename>/var/log/mondo-archive.log</filename>; and <filename>/var/log/miindi.log</filename> or at <filename>/var/log/mondo-restore.log</filename> 149 <para> 150 This document was originaly written by native english speakers, but is maintained by a non-native english speaker so help me correct mistaques instead of rumbling that I've done one :-) 151 </para> 152 <para> 153 I am also willing to answer general questions on MondoRescue, the best I can. 154 Before doing so, please read all of the information in this HOWTO, and then send me detailed information about the problem, especially including the logs generated by the tools, or traces obtained (Did I say that already :-]. 155 </para> 156 <para> 157 If you publish this document on a CD-ROM or in hardcopy form, a complimentary copy would be appreciated; mail me for my postal address. Also consider making a donation to the Linux Documentation Project to help support free documentation for Linux. Contact the Linux HOWTO coordinator, 158 Guylhem AZNAR <email>guylhem@rrremovethis.oeil.qc.ca</email>. 159 </para> 160 </sect2> 161 162 <sect2 id=thanks><title>Aknowledgements</title> 163 164 <para>Thanks goes to these people for helping and adding to this 165 HOWTO.</para> 166 167 <para>Document maintainer:</para> 168 <itemizedlist mark="bullet" spacing="Compact"> 169 <listitem> 170 <para>Bruno Cornec</para> 171 </listitem> 172 </itemizedlist> 173 <para>Original Design Assistance by:</para> 174 <itemizedlist> 175 <listitem> 176 <para>Xion Network.com</para> 177 </listitem> 178 </itemizedlist> 179 <para>Original Document Assistance by:</para> 180 <itemizedlist> 181 <listitem> 182 <para>Cafeole</para> 183 </listitem> 184 <listitem> 185 <para>Troff</para> 186 </listitem> 187 <listitem> 188 <para>Randy Delfs</para> 189 </listitem> 190 <listitem> 191 <para>Mikael Hultgren</para> 192 </listitem> 193 </itemizedlist> 194 <para>Original LinuxDoc and LaTeX Reformat by:</para> 195 <itemizedlist> 196 <listitem> 197 <para>Bryan J. Smith</para> 198 </listitem> 199 </itemizedlist> 200 <para>Original DocBook Reformat by:</para> 201 <itemizedlist> 202 <listitem> 203 <para>Mikael Hultgren</para> 204 </listitem> 205 </itemizedlist> 206 <para>Original author; 1.6x material:</para> 207 <itemizedlist> 208 <listitem> 209 <para>Hugo Rabson</para> 210 </listitem> 211 </itemizedlist> 212 213 </sect2> 214 215 <sect1 id="quickstart"><title>QuickStart</title> 216 <itemizedlist mark="bullet" spacing="Compact"> 217 <listitem> 218 <para>We recommend that you read this complete 219 HOWTO. However, if you are too busy or impatient, then 220 please use this QuickStart guide to stay out of trouble.</para> 221 </listitem> 222 <listitem> 223 <para>Install the tarball, RPM, or DEB mindi and mondo 224 packages. (see <xref linkend="installation">Installation</xref> 225 for more details)</para> 226 </listitem> 227 <listitem> 228 <para>Execute as root (type 'su -' to become root if you are not 229 logged in as root)</para> 230 <para></para> 231 232 <informaltable><tgroup cols="1"><tbody> 233 <row> 234 <entry> 235 236 bash# mondoarchive 237 238 </entry> 239 </row> 240 </tbody></tgroup></informaltable> 241 242 </listitem> 243 </itemizedlist> 244 <para></para> 245 246 <informaltable><tgroup cols="2"><tbody> 247 <row> 248 <entry> 249 <ulink url="images/mamain.png"><inlinemediaobject><imageobject> 250 <imagedata fileref="images/mamain-mini.png"> 251 </imageobject></inlinemediaobject> 252 </ulink> 253 </entry> 254 <entry> 255 Choose from the list of supported backup media types. The media you 256 will use most often are CD/DVD-+R, CD/DVD-+RW, tape, NFS and hard disk. If 257 you want to backup/restore over a network, choose 'NFS'. If you 258 want to backup/restore to/from a local partition or if you simply 259 want to store the ISO images in a local directory until you have 260 time or facilities to burn them to CD's, choose 'hard disk'. If you 261 choose 'CD/DVD-R[W]' or 'tape' then in general your hardware will be 262 detected and configured for you. 263 </entry> 264 </row> 265 <row> 266 <entry> 267 <ulink url="images/maburnproof.png"><inlinemediaobject><imageobject> 268 <imagedata fileref="images/maburnproof-mini.png"> 269 </imageobject></inlinemediaobject> 270 </ulink> 271 </entry> 272 <entry> 273 If you are backing up to CD/DVD-+R[W] then Mondo will ask you if your CD 274 burner has BurnProof technology, is inside a laptop, or is 275 otherwise eccentric. If you are backing up to a tape streamer then 276 you will not see this message. 277 </entry> 278 </row> 279 <row> 280 <entry> 281 <ulink url="images/macompression.png"><inlinemediaobject><imageobject> 282 <imagedata fileref="images/macompression-mini.png"> 283 </imageobject></inlinemediaobject> 284 </ulink> 285 </entry> 286 <entry> 287 How much compression do you want? None, if your tape streamer has 288 built-in hardware compression. Maximum, if your CPU is blazingly 289 fast. Average should do just fine for most situations. 290 </entry> 291 </row> 292 <row> 293 <entry> 294 <ulink url="images/mainclude.png"><inlinemediaobject><imageobject> 295 <imagedata fileref="images/mainclude-mini.png"> 296 </imageobject></inlinemediaobject> 297 </ulink> 298 </entry> 299 <entry> 300 If you want to backup the whole computer (excluding /tmp and /proc, 301 naturally) then leave this as / which is the default. Otherwise, 302 specify subsets, (e.g. /usr/local /home ) being sure to put a space 303 in between each path. 304 </entry> 305 </row> 306 <row> 307 <entry> 308 <ulink url="images/maexclude.png"><inlinemediaobject><imageobject> 309 <imagedata fileref="images/maexclude-mini.png"> 310 </imageobject></inlinemediaobject> 311 </ulink> 312 </entry> 313 <entry> 314 If you are backing up your whole computer then you might want to 315 exclude certain directories, e.g. /shared/MP3. Please specify them 316 in the 'exclude directories' dialog box. Please put a space in 317 between each path, e.g. /shared/private /scratch /nfs /windows 318 </entry> 319 </row> 320 <row> 321 <entry> 322 <ulink url="images/makernel.png"><inlinemediaobject><imageobject> 323 <imagedata fileref="images/makernel-mini.png"> 324 </imageobject></inlinemediaobject> 325 </ulink> 326 </entry> 327 <entry> 328 Is your kernel sane? Red Hat, Mandrake, SuSE, Debian and Slackware users 329 should in general say 'yes' because these vendors are good at 330 producing reliable kernels. If you are using Gentoo or LFS 331 then your kernel might be non-standard, in which case say 'no' to 332 use Mondo's failsafe kernel. 333 </entry> 334 </row> 335 <row> 336 <entry> 337 <ulink url="images/maverifyq.png"><inlinemediaobject><imageobject> 338 <imagedata fileref="images/maverifyq-mini.png"> 339 </imageobject></inlinemediaobject> 340 </ulink> 341 </entry> 342 <entry> 343 If you want to verify the archives after writing them to media, say 344 'yes' here. If you have absolute faith in your hardware and your 345 Linux distribution, say 'no'... and a little prayer. 346 </entry> 347 </row> 348 <row> 349 <entry> 350 <ulink url="images/maproceedq.png"><inlinemediaobject><imageobject> 351 <imagedata fileref="images/maproceedq-mini.png"> 352 </imageobject></inlinemediaobject> 353 </ulink> 354 </entry> 355 <entry> 356 If you are sure you want to go ahead, say 'yes' and find something 357 else to do while Mondo backs up your computer. If you say 'no' then 358 you will be unceremoniously dumped at the shell prompt. :-) 359 </entry> 360 </row> 361 <row> 362 <entry> 363 <ulink url="images/1.png"><inlinemediaobject><imageobject> 364 <imagedata fileref="images/1-mini.png"> 365 </imageobject></inlinemediaobject> 366 </ulink> 367 </entry> 368 <entry> 369 The backup process will now commence. There are some pre-backup 370 tasks to be carried out first but the backup is essentially 371 underway. To simplify the backup process, you were asked a series 372 of questions. Next time, if you like, you could call mondoarchive 373 with various command-line switches to control its behavior, instead 374 of answering a series of questions. See the man page for details. 375 </entry> 376 </row> 377 <row> 378 <entry> 379 <ulink url="images/3.png"><inlinemediaobject><imageobject> 380 <imagedata fileref="images/3-mini.png"> 381 </imageobject></inlinemediaobject> 382 </ulink> 383 </entry> 384 <entry> 385 Mondo will make a catalog of all files to be backed up. This may 386 take up to five minutes. The list of files will be divided into 387 sets, approximately 4 MB (before compression) of files per set. 388 This typically takes one minute. 389 </entry> 390 </row> 391 <row> 392 <entry> 393 <ulink url="images/4.png"><inlinemediaobject><imageobject> 394 <imagedata fileref="images/1-mini.png"> 395 </imageobject></inlinemediaobject> 396 </ulink> 397 </entry> 398 <entry> 399 Mondo calls Mindi. Mindi generates bootable floppy disk images and 400 auxiliary data disk images which are based on your existing Linux 401 distribution and filesystem. That way, you can be sure Mondo's 402 tools will be compatible with your existing filesystems and 403 binaries: Mondo's tools are your tools. Mindi takes up to five 404 minutes to run. 405 </entry> 406 </row> 407 <row> 408 <entry> 409 <ulink url="images/5tape.png"><inlinemediaobject><imageobject> 410 <imagedata fileref="images/5tape-mini.png"> 411 </imageobject></inlinemediaobject> 412 </ulink> 413 </entry> 414 <entry> 415 Finally, Mondo begins backing up your computer. This process may 416 take a few minutes or a few hours, depending on how much data you 417 are archiving, how fast your CPU is, how much RAM you have, and so 418 on. It will backup your regular files and then your large files 419 (files larger than approximately 32MB). If you have opted to verify 420 your backups, Mondo will do that too. 421 </entry> 422 </row> 423 <row> 424 <entry> 425 <ulink url="images/10cd.png"><inlinemediaobject><imageobject> 426 <imagedata fileref="images/10cd-mini.png"> 427 </imageobject></inlinemediaobject> 428 </ulink> 429 </entry> 430 <entry> 431 Do you want to create a boot floppy at the end? Yes, if you're a 432 tape or NFS user. No, if you are using CD/DVD-R[W]'s and your computer 433 supports bootable CD's. Tape users only need one floppy but other 434 users may need more. Mondo will advise accordingly. 435 </entry> 436 </row> 437 </tbody></tgroup></informaltable> 438 439 <itemizedlist> 440 <listitem> 441 <para>Try to boot from the first CD of the backup (or the first 442 floppy, if you made floppies). Choose 'Compare Mode' by typing 443 compare at the boot screen.</para> 444 </listitem> 445 <listitem> 446 <para>If you can boot, fine. If not, make a Mindi "Test" CD to 447 checkout the compatibility of your system. (see 448 <xref linkend="testingmindi">Testing Mindi</xref> for more 449 details). Remove the CD/floppy; boot your computer as usual; 450 execute as root</para> 451 <para></para> 452 <informaltable><tgroup cols="1"><tbody> 453 <row> 454 <entry> 455 456 bash# mindi 457 bash# cd /root/images/mindi 458 459 </entry> 460 </row> 461 </tbody></tgroup></informaltable> 462 463 <para>(for CD-R)</para> 464 <para></para> 465 <informaltable><tgroup cols="1"><tbody> 466 <row> 467 <entry> 468 469 bash# cdrecord dev=0,0,0 speed=4 -eject -v mindi.iso 470 471 </entry> 472 </row> 473 </tbody></tgroup></informaltable> 474 475 <para>(for CD-RW)</para> 476 <para></para> 477 <informaltable><tgroup cols="1"><tbody> 478 <row> 479 <entry> 480 481 bash# cdrecord dev=0,0,0 speed=4 blank=fast -eject -v mindi.iso 482 483 </entry> 484 </row> 485 </tbody></tgroup></informaltable> 486 487 <para>Reboot your system with the created Mindi CD, with the BIOS 488 set to boot from CD. If the result is a command line in 'Expert' 489 mode, your system checks out. Remove the CD and reboot your 490 system.</para> 491 </listitem> 492 <listitem> 493 <para>If you still cannot boot from Mindi's CD then please e-mail 494 the <xref linkend="feedback">mailing list</xref> for help. 495 </para> 496 </listitem> 497 </itemizedlist> 498 <para>When making a backup on a live system, there will always be 499 processes running that will write out data on the system after you 500 have made the backup and before you have made the compare, this 501 will result in difference showing up when comparing your backup. 502 For a full explanation and what can be done to avoid this, please 503 read this section.</para> 504 <itemizedlist> 505 506 <listitem> 507 <para>This QuickStart covers the ideal case. Upon receiving any 508 system feedback/errors, read each related HOWTO section.</para> 509 <para>Example 2-1. A test backup of your /home directory to CD-Rs 510 using the command line</para> 511 <para></para> 512 <informaltable><tgroup cols="1"><tbody> 513 <row> 514 <entry> 515 516 bash# mondoarchive -OVc 4 -I /home -gF 517 518 </entry> 519 </row> 520 </tbody></tgroup></informaltable> 521 522 <para>The 'c' means you must be writing to CD-Rs, not CD-RWs (the 523 latter would require 'w' instead of 'c'). The '4' is the speed of 524 your CD writer. The string after -I is the path to be backed up. 525 The '-gF' means you are going to see the pretty yellow-on-blue 526 screen instead of the boring white-on-black screen. :) It also 527 means Mondo will not offer to create physical boot floppies for 528 you. It is assumed that you are able to boot from the CD which 529 Mondo has generated.</para> 530 <para>Example 2-2. A backup of your whole filesystem to NFS using 531 the command line</para> 532 <para></para> 533 <informaltable><tgroup cols="1"><tbody> 534 <row> 535 <entry> 536 537 bash# mkdir -p /mnt/nfs 538 bash# mount 192.168.1.28:/home/nfs /mnt/nfs 539 bash# mondoarchive -OVn 192.168.1.28:/home/nfs -gF[...] 540 bash# umount /mnt/nfs 541 bash# cdrecord dev=0,0,0 speed=4 -eject -v /root/images/mindi/mindi.iso 542 543 </entry> 544 </row> 545 </tbody></tgroup></informaltable> 546 547 <para>Note that you have to mount the NFS partition, backup to it, 548 unmount it, and create a boot CD to allow you to restore from 549 scratch if necessary. To reassure yourself that you will be able to 550 restore from the NFS share even if your PC is wiped, please boot 551 from the Mindi CD and type 'compare'. The on-screen instructions 552 from that point on should be sufficient.</para> 553 <para>Example 2-3. A backup of your whole 554 filesystem to tape using the command line</para> 555 <para></para> 556 <informaltable><tgroup cols="1"><tbody> 557 <row> 558 <entry> 559 560 bash# mondoarchive -OVt -d /dev/st0 -9 -L -g 561 562 </entry> 563 </row> 564 </tbody></tgroup></informaltable> 565 566 <para>In this case, we assume Syslinux is incompatible with your 567 boot media. For some reason, some BIOSes just don't like Syslinux. 568 If you find this to be the case for your computer, please use '-L' 569 to force Mondo to use LILO instead of Syslinux as the boot loader 570 for its CD/floppies. (NB: This has nothing to do with which boot 571 loader your hard drive uses.) Also, it is a good habit to specify 572 your tape streamer with '-d <device>'. You don't usually need 573 to but it's good to be on the safe side. Some computers call your 574 tape streamer /dev/osst0, some call it /dev/ftape, ...</para> 575 </listitem> 576 </itemizedlist> 577 578 </sect1>
Note:
See TracChangeset
for help on using the changeset viewer.