- Timestamp:
- Apr 16, 2007, 4:13:59 PM (18 years ago)
- Location:
- branches/2.2.2
- Files:
-
- 2 added
- 28 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.2/mindi/ChangeLog
r1311 r1315 3 3 MINDI CHANGES 4 4 5 1.2.2 (2007-04-15) 5 1.2.2 (2007-04-16) 6 - Mindi log file is now added to mondoarchive log file to ease debug (Bruno Cornec) 6 7 - Suppress losetup usage in start-nfs (unreliable and doesn't work with QEMU (Bruno Cornec) 7 8 - Fix a bug where losetup is called with only one parameter (#140) (Bruno Cornec) -
branches/2.2.2/mindi/mindi
r1311 r1315 430 430 echo "Mindi $MINDI_VERSION is exiting" >> $LOGFILE 431 431 echo "End date : `date`" >> $LOGFILE 432 if [ "`DidMondoCallMe`" ] ; then 433 cat $LOGFILE >> /var/log/mondoarchive.log 434 fi 432 435 433 436 sync … … 452 455 fi 453 456 454 # Creates a tar file containing all required files 455 for i in /etc/fstab /etc/lilo.conf /etc/raidtab $LOGFILE /var/log/mondo-archive.log ; do 456 [ -e "$i" ] && cp -f $i $MINDI_TMP 2>> $LOGFILE 457 done 458 rm -f $TMPDIR/mindi.err.*.tgz 459 tar -cf - $MINDI_TMP | gzip -9 > $TMPDIR/mindi.err.$$.tgz 460 LogIt "Please e-mail a copy of $TMPDIR/mindi.err.$$.tgz to the mailing list." 457 LogIt "Please e-mail a copy of $LOGFILE to the mailing list." 461 458 LogIt "See http://www.mondorescue.org for more information." 462 459 LogIt "WE CANNOT HELP unless you enclose that file.\n" … … 1356 1353 current_partition=$actual_dev 1357 1354 else 1358 Die "Your system uses a UUID partition ($current_partition), but you lack the tool to support it.\nPlease replace labels with their correct devices in /etc/fstabor install findfs|blkid|vol_id"1355 Die "Your system uses a UUID partition ($current_partition), but you lack the tool to support it.\nPlease replace labels with their correct devices in $MY_FSTAB or install findfs|blkid|vol_id" 1359 1356 fi 1360 1357 else … … 2892 2889 mount >> $LOGFILE 2893 2890 echo "-------------" >> $LOGFILE 2891 if [ -e /etc/raidtab ]; then 2892 echo "-------------" >> $LOGFILE 2893 echo "/etc/raidtab content:" >> $LOGFILE 2894 echo "-------------" >> $LOGFILE 2895 cat /etc/raidtab >> $LOGFILE 2896 fi 2897 echo "-------------" >> $LOGFILE 2894 2898 echo "lsmod result:" >> $LOGFILE 2895 2899 echo "-------------" >> $LOGFILE … … 3031 3035 LogIt "------------------------------------------------------------------------------" 3032 3036 else 3033 echo "You are using Mindi-Linux v$MINDI_VERSION to make boot+data disks" >> /var/log/mondo-archive.log3037 echo "You are using Mindi-Linux v$MINDI_VERSION to make boot+data disks" >> $LOGFILE 3034 3038 fi 3035 3039 if [ -f $MINDI_LIB/rootfs/bin/busybox ]; then -
branches/2.2.2/mindi/rootfs/sbin/LogIt
r746 r1315 11 11 currdate="" 12 12 13 LOGFILE=/tmp/mondo-restore.log 13 if [ _"$LOGFILE" = _"" ]; then 14 echo "LOGFILE was undefined. Using /tmp/mondorestore2.log" 15 LOGFILE="/tmp/mondorestore2.log" 16 fi 17 14 18 if [ ! -e "$LOGFILE" ] ; then 15 19 echo "...first line..." > $LOGFILE -
branches/2.2.2/mindi/rootfs/sbin/init
r1273 r1315 367 367 mount_cmd="mount /dev/shm -t tmpfs -o size=$size" ; # was 34m until 04/2003 368 368 LogIt "Trying '$mount_cmd'" 369 $mount_cmd /tmp/tmpfs 2>> /$LOGFILE369 $mount_cmd /tmp/tmpfs 2>> $LOGFILE 370 370 res=$? 371 371 [ "$res" -eq "0" ] && break … … 434 434 MINDI_REV=RRR 435 435 trap CaughtSoftReset SIGTERM 436 LOGFILE=/tmp/mondo -restore.log436 LOGFILE=/tmp/mondorestore.log 437 437 PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/mondo:/usr/games 438 438 GROOVY=/tmp/groovy-stuff 439 439 USER=root 440 export PATH GROOVY USER 440 export PATH GROOVY USER LOGFILE 441 441 442 442 echo "Welcome to init (from mindi ${MINDI_VER}-r${MINDI_REV}" -
branches/2.2.2/mindi/rootfs/sbin/install-additional-tools
r866 r1315 43 43 biggiefsize=`cat $stub.size` 44 44 rm -f $stub.name $stub.size 45 # echo -e -n "\rRecombining #$biggienumber ($biggiefname) \r"46 45 > /tmp/out.dat 47 46 sliceno=0 … … 52 51 slicefile="$slicefile"$sliceno 53 52 [ ! -e "$slicefile" ] && break 54 # echo "biggienumber=$biggienumber slicefile=$slicefile" >> /tmp/mondo-restore.log55 53 cat $slicefile >> /tmp/out.dat 56 54 rm -f $slicefile 57 55 sliceno=$(($sliceno+1)) 58 56 done 59 # echo "$sliceno slices"60 57 61 echo "$biggiefname ($biggiefsize KB) restored. $sliceno slices." >> /tmp/mondo-restore.log 62 63 # cat $stub.[0-9]* > /tmp/out.dat 64 # rm -f $stub.* ; # .[0-9]* for the slices, plus .name & .size 65 58 echo "$biggiefname ($biggiefsize KB) restored. $sliceno slices." >> $LOGFILE 66 59 67 60 mkdir -p $biggiefname -
branches/2.2.2/mindi/rootfs/sbin/post-init
r739 r1315 57 57 fi 58 58 59 cat /tmp/mountlist.txt >> /tmp/mondo-restore.log59 cat /tmp/mountlist.txt >> $LOGFILE 60 60 61 61 iso=`grep iso /proc/cmdline` -
branches/2.2.2/mondo-doc/mondoarchive.8
r998 r1315 332 332 333 333 .SH DIAGNOSTICS 334 Mondo generates two additional, and Extremely important files: 335 .BI /var/log/mindi.log 336 and 337 .BI /var/log/mondo-archive.log. 338 When seeking technical support, attach these two files to your email. 334 Mondo generates one additional, and extremely important file: 335 .BI /var/log/mondoarchive.log. 336 When seeking technical support, attach this file to your email. 339 337 340 338 341 339 342 340 .SH FILES 343 .IR /var/log/mindi.log 344 This log contains important information required to analyse mindi problem 345 reports. 346 347 .IR /var/log/mondo-archive.log 341 .IR /var/log/mondoarchive.log 348 342 This log contains important information required to analyse mondoarchive 349 problem reports. Mondo support highly recommends sending these fileswith343 problem reports. Did I already said that it's highly recommended to send this file with 350 344 support questions. 351 345 -
branches/2.2.2/mondo-doc/mondorescue-howto.sgml
r1236 r1315 168 168 e-mail! Thank you. Without it we can't offer 169 169 any tangible help because you aren't either. That's what the log 170 file is for. It is located at <filename>/var/log/mondo -archive.log</filename>; and <filename>/var/log/mindi.log</filename> or at <filename>/var/log/mondo-restore.log</filename>170 file is for. It is located at <filename>/var/log/mondoarchive.log</filename>; and <filename>/var/log/mindi.log</filename> (if called alone) or at <filename>/var/log/mondorestore.log</filename> 171 171 </para> 172 172 <para> … … 2466 2466 <title>Overview</title> 2467 2467 <para>Are the errors from Mindi or Mondo? Look at 2468 /var/log/mondo-archive.log, /var/log/mindi.log or the 2469 mondo.err.xxxxx.tgz log indicated by the screen message. Pipe 2468 /var/log/mondoarchive.log or /var/log/mindi.log (if run alone). Pipe 2470 2469 screen errors which relate to the creation of boot disk(s) and or 2471 2470 data disk(s) to a text file.</para> … … 2526 2525 of the bugs reported are actually symptoms of FooLinux X.Y's 2527 2526 unique way of doing things.</para> 2528 <para>Please send a copy of <filename>/var/log/mondo -archive.log</filename> to the &ML;2527 <para>Please send a copy of <filename>/var/log/mondoarchive.log</filename> to the &ML; 2529 2528 along with a description of your distro, your kernel, etc. 2530 2529 Oh, and before sending it, please try to read it.</para> … … 3254 3253 tapes or even your hardware could be to blame. Check your CD writer 3255 3254 or tape streamer.</para> 3256 <para>Also, don't forget to review <filename>/var/log/mondo -archive.log</filename> for3255 <para>Also, don't forget to review <filename>/var/log/mondoarchive.log</filename> for 3257 3256 more information.</para> 3258 3257 </answer> -
branches/2.2.2/mondo-doc/mondorestore.8
r1236 r1315 43 43 .SH DIAGNOSTICS 44 44 mondorestore generates an Extremely important file: 45 .BI /var/log/mondo -archive.log.45 .BI /var/log/mondorestore.log. 46 46 When seeking technical support, attach this file to your email. 47 47 48 48 .SH FILES 49 .IR /var/log/mondo -archive.log49 .IR /var/log/mondorestore.log 50 50 This log contains important information required to analyse mondorestore problem 51 51 reports. Mondo support highly recommends sending this file with support 52 questions. 52 questions. It's located under /tmp during the restore process and moved under /var/log at the end. 53 53 54 54 .SH NOTES -
branches/2.2.2/mondo/ChangeLog
r1309 r1315 3 3 MONDO CHANGES 4 4 5 2.2.2 (2007-04-15) 5 2.2.2 (2007-04-16) 6 - Log files are now consistent: mondoarchive.log for mondoarchive (containing also mindi.log) and mondorestore.log for mondorestore (copied from /tmp (ram) to /var/log (disk) at the end of the restore) (Bruno Cornec) 7 - Script label-partitions-as-necessary now works correctly for LABEL and UUID (Bruno Cornec) 8 - Remove useless script compare-me (Bruno Cornec) 6 9 - Some FreeBSD fixes (Bruno Cornec) 7 10 - Fix a bug where losetup is called with only one parameter (#140) (Bruno Cornec) -
branches/2.2.2/mondo/src/common/libmondo-archive.c
r1299 r1315 1952 1952 } else { 1953 1953 log_to_screen("%s...OK", message_to_screen); 1954 if (!run_program_and_log_output 1955 ("tail -n10 /var/log/mondo-archive.log | grep -F ':-('", 1956 1)) { 1954 sprintf(tmp, "tail -n10 %s | grep -F ':-('", MONDO_LOGFILE); 1955 if (!run_program_and_log_output(tmp, 1)) { 1957 1956 log_to_screen 1958 1957 ("Despite nonfatal errors, growisofs confirms the write was successful."); -
branches/2.2.2/mondo/src/common/my-stuff.h
r1236 r1315 381 381 //#define strcpy(y,x) strncpy(y, x, sizeof(y)-1) 382 382 383 384 /**385 * Compatibility #define to ease the transition to logfile-in-a-variable.386 */387 #define MONDO_LOGFILE "/var/log/mondo-archive.log"388 383 389 384 /** -
branches/2.2.2/mondo/src/common/newt-specific.c
r1294 r1315 435 435 436 436 printf("---FATALERROR--- %s\n", error_string); 437 s ystem438 ("gzip -9c /var/log/mondo-archive.log > /tmp/MA.log.gz 2> /dev/null");437 sprintf(command, "gzip -9c %s > /tmp/MA.log.gz 2> /dev/null", MONDO_LOGFILE); 438 system(command); 439 439 printf 440 440 ("If you require technical support, please contact the mailing list.\n"); -
branches/2.2.2/mondo/src/mondoarchive/Makefile.am
r899 r1315 4 4 5 5 ## Headers 6 noinst_HEADERS = mondo-cli-EXT.h mondo-cli.h 6 noinst_HEADERS = mondo-cli-EXT.h mondo-cli.h mondoarchive.h 7 7 8 8 ## The program -
branches/2.2.2/mondo/src/mondoarchive/main.c
r1274 r1315 117 117 #include "../common/libmondo.h" 118 118 #include "mondo-cli-EXT.h" 119 #include "mondoarchive.h" 119 120 120 121 // for CVS -
branches/2.2.2/mondo/src/mondorestore/Makefile.am
r899 r1315 7 7 mondo-restore-EXT.h mr-externs.h \ 8 8 mondo-rstr-compare-EXT.h mondo-rstr-tools-EXT.h mondoprep.h 9 mondorestore.h 9 10 10 11 ## The program -
branches/2.2.2/mondo/src/mondorestore/mondo-prep.c
r1303 r1315 337 337 /** buffers **********************************************/ 338 338 char *tmp; 339 char *tmp1 = NULL; 339 340 char *incoming; 340 341 char *command; … … 486 487 log_it("%s... so I'll get creative.", tmp); 487 488 if (lvmversion == 2) { 488 strcpy(tmp, call_program_and_get_last_line_of_output 489 ("tail -n5 /var/log/mondo-archive.log | grep Insufficient | tail -n1")); 489 asprintf(&tmp1, "tail -n5 %s | grep Insufficient | tail -n1", MONDO_LOGFILE); 490 strcpy(tmp, call_program_and_get_last_line_of_output(tmp1)); 491 free(tmp1); 490 492 } else { 491 strcpy(tmp, call_program_and_get_last_line_of_output 492 ("tail -n5 /var/log/mondo-archive.log | grep lvcreate | tail -n1")); 493 asprintf(&tmp1, "tail -n5 %s | grep lvcreate | tail -n1", MONDO_LOGFILE); 494 strcpy(tmp, call_program_and_get_last_line_of_output(tmp1)); 495 free(tmp1); 493 496 } 494 497 for (p = tmp; *p != '\0' && !isdigit(*p); p++); -
branches/2.2.2/mondo/src/mondorestore/mondo-restore.c
r1295 r1315 18 18 #include "mr-externs.h" 19 19 #include "mondo-restore.h" 20 #include "mondorestore.h" 20 21 #include "mondo-rstr-compare-EXT.h" 21 22 #include "mondo-rstr-tools-EXT.h" … … 2986 2987 make_hole_for_dir("/tmp/tmpfs"); /* just in case... */ 2987 2988 run_program_and_log_output("umount " MNT_CDROM, FALSE); 2988 run_program_and_log_output2989 2989 /* 2990 run_program_and_log_output("ln -sf /var/log/mondo-archive.log /tmp/mondo-restore.log", 2990 2991 FALSE); 2992 */ 2991 2993 2992 2994 run_program_and_log_output("rm -Rf /tmp/tmpfs/mondo.tmp.*", FALSE); … … 3343 3345 sprintf(tmp, "rm -Rf %s", bkpinfo->tmpdir); 3344 3346 run_program_and_log_output(tmp, FALSE); 3345 log_to_screen 3346 ("Restore log copied to /tmp/mondo-restore.log on your hard disk"); 3347 log_to_screen("Restore log (%s) copied to /var/log on your hard disk", MONDO_LOGFILE); 3347 3348 sprintf(tmp, 3348 3349 "Mondo-restore is exiting (retval=%d) ", -
branches/2.2.2/mondo/src/mondorestore/mondo-rstr-compare.c
r1294 r1315 162 162 } else { 163 163 sprintf(command_ptr, 164 "md5sum \"%s%s\" > /tmp/md5sum.txt 2> /tmp/errors .txt",164 "md5sum \"%s%s\" > /tmp/md5sum.txt 2> /tmp/errors", 165 165 MNT_RESTORING, bigfile_fname_ptr); 166 166 } 167 167 log_msg(2, command_ptr); 168 168 paranoid_system 169 ("cat /tmp/errors >> /tmp/mondo-restore.log 2> /dev/null");169 ("cat /tmp/errors >> %s 2> /dev/null", MONDO_LOGFILE); 170 170 if (system(command_ptr)) { 171 171 log_OS_error("Warning - command failed"); -
branches/2.2.2/mondo/src/mondorestore/mondo-rstr-tools.c
r1242 r1315 1727 1727 mvaddstr_and_log_it(g_currentY++, 74, "Failed."); 1728 1728 log_to_screen 1729 ("GRUB ran w/error(s). See /tmp/mondo-restore.log for more info.");1729 ("GRUB ran w/error(s). See %s for more info.", MONDO_LOGFILE); 1730 1730 log_msg(1, "Type:-"); 1731 1731 log_msg(1, " mount-me"); … … 2003 2003 mvaddstr_and_log_it(g_currentY++, 74, "Failed."); 2004 2004 log_to_screen 2005 ("MBR+fstab processed w/error(s). See /tmp/mondo-restore.log for more info.");2005 ("MBR+fstab processed w/error(s). See %s for more info.", MONDO_LOGFILE); 2006 2006 } else { 2007 2007 mvaddstr_and_log_it(g_currentY++, 74, "Done."); … … 2248 2248 2249 2249 if (run_program_and_log_output 2250 ("cp -f /tmp/mondo-restore.log " MNT_RESTORING "/tmp/", FALSE)) {2250 ("cp -f " MONDO_LOGFILE " " MNT_RESTORING "/var/log", FALSE)) { 2251 2251 log_msg(1, 2252 "Error. Failed to copy log to PC's /tmp dir. (Mounted read-only?)"); 2253 } 2254 if (run_program_and_log_output 2255 ("cp -f /tmp/mondo-restore.log " MNT_RESTORING "/root/", FALSE)) { 2256 log_msg(1, 2257 "Error. Failed to copy log to PC's /root dir. (Mounted read-only?)"); 2252 "Error. Failed to copy log to PC's /var/log dir. (Mounted read-only?)"); 2258 2253 } 2259 2254 if (does_file_exist("/tmp/DUMBASS-GENTOO")) { -
branches/2.2.2/mondo/src/restore-scripts/mondo/grub-MR
r567 r1315 1 1 #!/bin/sh 2 3 2 # 3 # $Id$ 4 # 4 5 # grub-MR ------ a rudimentary replacement for grub-install 5 6 # 6 7 # 7 #8 # 2005/11/259 # - try_grub_hack : do not return success when grub wrote 'Error '10 #11 # 2004/06/2812 # - added support for /dev/md0==GRUB13 #14 # 2004/06/2715 # - re-enable the call to grub-install and the 'echo' thing as a backup16 # - hacked the hack :) to improve MDK9.2 support17 # - added try_grub_hack()18 #19 # 2004/06/1420 # - just use grub-install.patched; nothing else21 #22 # 2004/05/0523 # - try EVERYTHING - grub-install, grub --batch, etc.24 #25 # 2004/04/1826 # - try grub --batch < /etc/grub.conf first27 # - if it fails, grub-install.patched instead28 # - if _that_ fails, fail.29 #30 # 2004/04/1531 # - added grub-install.patched to the mix32 #33 # 2004/04/0134 # - use grub-install if there's an NTFS partition on the disk35 #36 # 2004/03/3137 # - disabled direct call to grub38 #39 # 2004/03/2840 # - call grub directly if possible41 #42 # 2004/03/2643 # - find stage 1 if possible; more stable, reliable call to grub44 #45 # 2003/08/2446 # - fixed line 26 (Christian)47 #48 # 2002/11/1849 # - first incarnation50 51 52 LOGFILE=/var/log/mondo-archive.log53 54 8 55 9 Die() { -
branches/2.2.2/mondo/src/restore-scripts/mondo/hack-lilo
r567 r1315 1 1 #!/bin/sh 2 3 4 LogIt() { 5 echo "$1" >> /tmp/mondo-restore.log 6 } 7 2 # 3 # $Id$ 4 # 8 5 9 6 -
branches/2.2.2/mondo/src/restore-scripts/mondo/make-me-bootable
r911 r1315 1 1 #!/bin/sh 2 3 4 LOGFILE=/tmp/mondo-restore.log5 6 2 7 3 -
branches/2.2.2/mondo/src/restore-scripts/mondo/raw-MR
r567 r1315 7 7 LogIt "Restoring MBR..." 2 8 8 if uname -a | grep -q FreeBSD; then 9 echo -e 'y\ny' | /mnt/RESTORING/sbin/fdisk -b /BOOTLOADER.MBR -B $1 >/dev/null 2>> /tmp/mondo-restore.log9 echo -e 'y\ny' | /mnt/RESTORING/sbin/fdisk -b /BOOTLOADER.MBR -B $1 >/dev/null 2>> $LOGFILE 10 10 else 11 dd if=/BOOTLOADER.MBR of=$1 bs=446 count=1 2>> /tmp/mondo-restore.log11 dd if=/BOOTLOADER.MBR of=$1 bs=446 count=1 2>> $LOGFILE 12 12 fi 13 13 exit $? -
branches/2.2.2/mondo/src/restore-scripts/mondo/stabgrub-me
r1001 r1315 1 1 #!/bin/sh 2 2 # 3 # stabgrub-me 4 # 5 # 04/08/2003 6 # - cleaned up backup func a bit 7 # 8 # 9 # 10 # forked from stablilo-me on 2002/11/20 3 # $Id$ 11 4 # 12 5 ##################################################################### 13 6 14 15 LOGFILE=/tmp/mondo-restore.log16 7 17 8 QuitIfNotFound() { -
branches/2.2.2/mondo/src/restore-scripts/mondo/stabraw-me
r567 r1315 1 1 #!/bin/sh 2 2 # 3 # stabraw-me 4 # 5 # forked from stablilo-me on 2002/11/21 3 # $Id$ 6 4 # 7 5 ##################################################################### 8 6 9 10 LOGFILE=/tmp/mondo-restore.log11 7 12 8 QuitIfNotFound() { … … 16 12 fi 17 13 } 18 19 20 21 22 14 23 15 LocateOldFstab() { -
branches/2.2.2/website/old/support.html
r958 r1315 152 152 from the Download page - SNAPSHOTS HAVE DATES - e.g. 20031031 - IN 153 153 THEIR FILENAMES<BR> 154 <LI CLASS="mvd-P"><B>Read</B> your own logfile (mondo -archive.log,155 mondo -restore.log or mindi.log)<BR>154 <LI CLASS="mvd-P"><B>Read</B> your own logfile (mondoarchive.log, 155 mondorestore.log or mindi.log)<BR> 156 156 <LI CLASS="mvd-P">Try Mindi's <B>failsafe kernel</B>, if yours 157 157 doesn't work (i.e. say 'no' when asked if you want to use your own -
branches/2.2.2/website/support.shtml
r926 r1315 14 14 <p>First, when you have an issue, please try to read the various log files that Mondo Rescue produces. 99% of the time, the error is described in it in clear text. Those file are: 15 15 <ul> 16 <li><tt>/var/log/mondo -archive.log</tt></li>17 <li><tt>/var/log/mindi.log</tt> </li>18 <li><tt>/var/log/mondo -restore.log</tt></li>16 <li><tt>/var/log/mondoarchive.log</tt></li> 17 <li><tt>/var/log/mindi.log</tt> (now included in the previous one if called from mondo)</li> 18 <li><tt>/var/log/mondorestore.log</tt></li> 19 19 </ul></p> 20 20 <p>Second look at the <a href="/docs.shtml">Mondo Rescue documentation</a> and the extensive FAQ section of the Mondo Rescue HOWTO, as a lot of good tip and tricks are provided there.</p>
Note:
See TracChangeset
for help on using the changeset viewer.