Changeset 1977 in MondoRescue for branches/stable/mindi
- Timestamp:
- Jun 2, 2008, 10:49:01 AM (16 years ago)
- Location:
- branches/stable/mindi
- Files:
-
- 2 deleted
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mindi/README.pxe
r1939 r1977 21 21 server is the ip addr of the NFS server 22 22 mountpoint is the mount point on the NFS server to use (should be in /etc/exports of the NFS server) 23 rmadisk_size may have to be increase to 131072 on more recent distributions such as rhel 5 23 24 The [] mean this parameter is optional 24 25 The () mean that you have a choice with the '|' meaning 'or' … … 40 41 During boot mondorestore will start your NFS configuration and mount mondo's content from the network rather than from a physical media. You may alter the IP configuration stored from the original machine by passing the ipconf option describing respectively the IP address, netmask, broadcast and default gateway you want to setup for the machine, separated by ':'. Or alternatively, you may specify the dhcp keyword so that a DHCP request is made to get those information. In the 2 cases, you have to mention on which physical interface those parameters should apply. On some configurations, you may also want to increase the number of ping queries made before the NFS mount, which is of 3 by default, using the ping option and give the number you want. If you have a different NFS server for the deployment than for the archiving, you can also precise it through the nfsmount option. The structure on both server under the mountpoint has to be the same. 41 42 43 CAVEAT: the limit to the number of char on the append line is 255. Use symlinks to reduce the size of your path if needed. 44 42 45 Please report any problem around that tool to bruno@mondorescue.org 43 46 -
branches/stable/mindi/analyze-my-lvm
r1489 r1977 13 13 GetValueFromField() { 14 14 local res 15 sed s/' '/~/ "$1" | tr -s ' ' ' ' | sed s/'~ '/'~'/ | grep -i "$2~" | cut -d'~' -f2,3,4,5 | tr '~' ' ' | gawk '{ if ($2=="MB") {printf "%dm",$1;} else if ($2=="KB") {printf "%dk",$1;} else if ($2=="GB") {printf "% dg",$1;} else {print $0;};}'15 sed s/' '/~/ "$1" | tr -s ' ' ' ' | sed s/'~ '/'~'/ | grep -i "$2~" | cut -d'~' -f2,3,4,5 | tr '~' ' ' | gawk '{ if ($2=="MB") {printf "%dm",$1;} else if ($2=="KB") {printf "%dk",$1;} else if ($2=="GB") {printf "%fg",$1;} else {print $0;};}' 16 16 } 17 17 -
branches/stable/mindi/distributions/conf/mindi.conf.dist
r1939 r1977 92 92 # Modules supported by mindi and required at boot time 93 93 # 94 mindi_scsi_mods="3w-xxxx 3w_xxxx 3w-9xxx 3w_9xxx 53c7,8xx a100u2w a320raid aacraid adpahci advansys aha152x aha1542 aha1740 aic79xx aic79xx_mod aic7xxx aic7xxx_mod aic7xxx_old AM53C974 atp870u BusLogic cciss cpqfc dmx3191d dpt_i2o dtc eata eata_dma eata_pio fdomain gdth g_NCR5380 i2o_block i2o_core ide-scsi ieee1394 imm in2000 initio ips iscsi isp megaraid megaraid_mm megaraid_mbox megaraid_sas mptbase mptscsih mptsas mptspi mptfc mptscsi mptctl NCR53c406a ncr53c8xx nsp32 pas16 pci2000 pci2220i pcmcia ppa psi240i qla1280 qla2200 qla2300 qla2xxx qla2xxx_conf qlogicfas qlogicfc qlogicisp raw1394 scsi_debug scsi_mod scsi_transport_sas scsi_transport_spi sd_mod seagate sg sim710 sr_mod sym53c416 sym53c8xx sym53c8xx_2 t128 tmscsim u14-34f ultrastor wd7000 vmhgfs "94 mindi_scsi_mods="3w-xxxx 3w_xxxx 3w-9xxx 3w_9xxx 53c7,8xx a100u2w a320raid aacraid adpahci advansys aha152x aha1542 aha1740 aic79xx aic79xx_mod aic7xxx aic7xxx_mod aic7xxx_old AM53C974 atp870u BusLogic cciss cpqfc dmx3191d dpt_i2o dtc eata eata_dma eata_pio fdomain gdth g_NCR5380 i2o_block i2o_core ide-scsi ieee1394 imm in2000 initio ips iscsi isp megaraid megaraid_mm megaraid_mbox megaraid_sas mptbase mptscsih mptsas mptspi mptfc mptscsi mptctl NCR53c406a ncr53c8xx nsp32 pas16 pci2000 pci2220i pcmcia ppa psi240i qla1280 qla2200 qla2300 qla2xxx qla2xxx_conf qlogicfas qlogicfc qlogicisp raw1394 scsi_debug scsi_mod scsi_transport_sas scsi_transport_spi sd_mod seagate sg sim710 sr_mod sym53c416 sym53c8xx sym53c8xx_2 t128 tmscsim u14-34f ultrastor wd7000 vmhgfs intermodule" 95 95 mindi_ide_mods="ide ide-generic ide-detect ide-mod ide-disk ide_disk ide-cd ide_cd ide-cs ide-core ide_core edd paride ata_generic ata_piix libata via82cxxx generic nvidia ahci sata_nv cmd64x pata_amd pata_marvell pata_serverworks" 96 96 # Replace with that line for HP OCMP e.g. -
branches/stable/mindi/mindi
r1939 r1977 1385 1385 rm -Rf $MINDI_TMP/iso 1386 1386 mkdir -p $MINDI_TMP/iso/{images,archives,isolinux} 1387 cp -f $1/*. img $1/*.gz $MINDI_TMP/iso/images 2>> $LOGFILE || LogIt "OfferToMakeBootableISO: Cannot copy $ito $MINDI_TMP/iso/images"1387 cp -f $1/*.gz $MINDI_TMP/iso/images 2>> $LOGFILE || LogIt "OfferToMakeBootableISO: Cannot copy $1/*.gz to $MINDI_TMP/iso/images" 1388 1388 old_pwd=`pwd` 1389 1389 cd $MINDI_TMP/iso … … 1427 1427 else 1428 1428 $ISO_CMD $ISO_OPT -V Mindi_Image -o $MINDI_CACHE/mindi.iso -b images/mindi-bootroot.$BOOT_SIZE.img -c isolinux/boot.cat -no-emul-boot . > /dev/null 2> $MINDI_TMP/mkisofs.log 1429 rm -f images/mindi-bootroot.$BOOT_SIZE.img 1429 1430 fi 1430 1431 if [ "$?" -ne "0" ] ; then … … 1630 1631 else 1631 1632 options="interactive expert compare iso nuke isonuke" 1632 # hda hdb hdc hdd"1633 1633 fi 1634 1634 else … … 2100 2100 rm -f $orig_file 2101 2101 return 0 2102 }2103 2104 2105 ScanCDandTape() {2106 local i2107 2108 for i in /dev/st0 /dev/ht0 /dev/cdrom /dev/cdrom0 /dev/cdrom 1 ; do2109 dd if=$i of=/dev/null bs=64k count=1 &> /dev/null2110 done2111 2102 } 2112 2103 … … 2880 2871 fi 2881 2872 fi 2882 #ScanCDandTape2883 2873 [ "$CDRECOVERY" = "yes" ] || CDRECOVERY=no 2884 2874 if [ "$CDRECOVERY" = "yes" ] ; then … … 2956 2946 fi 2957 2947 if [ _"$MONDO_SHARE" = _"" ] && [ "$INTERACTIVE" = "yes" ] && [ "$ARCH" != "ia64" ] ; then 2958 echo -en "Would you like to use LILO (instead of syslinux)\nfor your boot image (y/[n]) ?" 2959 read ch 2960 if [ "$ch" != "y" ] && [ "$ch" != "Y" ] ; then 2961 USE_LILO=no 2962 else 2963 USE_LILO=yes 2964 fi 2948 USE_LILO=no 2965 2949 fi 2966 2950 if [ "$YOUR_KERNEL_SUCKS" != "" ] || [ "$kernelpath" = "" ] || [ "$kernelpath" = "SUCKS" ] || [ "$kernelpath" = "FAILSAFE" ] ; then -
branches/stable/mindi/rootfs/sbin/init
r1939 r1977 105 105 [ "$1" != "" ] && tapedev=$1 106 106 [ ! "$tapedev" ] && tapedev=`grep media-dev /tmp/mondo-restore.cfg | tr -s ' ' ' ' | cut -d' ' -f2` 107 # tar -zxf $tapedev 107 mt -f $tapedev rewind 108 mt -f $tapedev fsf 2 108 109 dd if=$tapedev bs=32k count=1024 | tar -zx 109 110 res=$? 110 111 if [ "$res" -eq "0" ] ; then 111 grep -v media-dev /tmp/mondo-restore.cfg > /tmp/mr.cfg 112 echo "media-dev=$tapedev" >> /tmp/mr.cfg 113 cp -f /tmp/mr.cfg /tmp/mondo-restore.cfg 112 # Store the dev name in case we changed it interactively 113 sed -i "s/^media-dev .*$/media-dev $tapedev/" /tmp/mondo-restore.cfg 114 115 #grep -v media-dev /tmp/mondo-restore.cfg > /tmp/mr.cfg 116 #echo "media-dev $tapedev" >> /tmp/mr.cfg 117 #cp -f /tmp/mr.cfg /tmp/mondo-restore.cfg 114 118 fi 115 119 cd $old_pwd … … 120 124 local res tapedev 121 125 tapedev="" ; # will be set by UntarTapeStuff() 126 127 # Here we can add the USB storage module, it's working even with OBDR ! 128 modprobe -q usb-storage 129 # Tape takes some time to appear 130 sleep 10 122 131 cd $GROOVY 123 UntarTapeStuff $tapedev || UntarTapeStuff /dev/st0 || UntarTapeStuff /dev/osst0 || UntarTapeStuff /dev/ht0132 UntarTapeStuff $tapedev 124 133 res=$? 125 134 while [ "$res" -ne "0" ] ; do … … 139 148 fi 140 149 done 150 # For post-init 151 export TAPEDEV=$tapedev 141 152 142 153 if [ "$res" -ne "0" ] ; then … … 146 157 res=$? 147 158 else 148 # clear149 159 LogIt "Using tape as extended datadisk. Good." 3 150 160 echo "Using tape as extd ddisk." > /tmp/TAPEDEV-HAS-DATA-DISKS … … 584 594 export DENY_MODS=" " 585 595 fi 586 596 if [ "`grep -i 'obdr ' /tmp/mondo-restore.cfg`" ]; then 597 # Do not try to load usb storage when dealing with OBDR it makes the modprobe hang :-( 598 export DENY_MODS="usb-storage $DENY_MODS" 599 fi 587 600 if [ "`grep -i forcemods /proc/cmdline`" ]; then 588 601 export FORCE_MODS="`cat /proc/cmdline | sed 's~.*forcemods=\"\(.*\)\".*~\1~'` mondonone" … … 623 636 fi 624 637 625 if [ "`grep -i ' tape ' /tmp/mondo-restore.cfg`" ] || [ "`grep -i udev/tmp/mondo-restore.cfg`" ]; then638 if [ "`grep -i 'obdr ' /tmp/mondo-restore.cfg`" ] || [ "`grep -i ' udev' /tmp/mondo-restore.cfg`" ]; then 626 639 HandleTape 627 640 ExtractDataDisksAndLoadModules … … 635 648 ExtractDataDisksAndLoadModules 636 649 elif [ "`grep -i usb= /proc/cmdline`" ] || [ "`grep -i usb /tmp/mondo-restore.cfg | grep media-type`" ]; then 637 # We need to get here exported variables from start-nfs638 650 . /sbin/start-usb 639 651 -
branches/stable/mindi/rootfs/sbin/post-init
r1621 r1977 104 104 done 105 105 106 mondoopt="" 107 if [ "`grep -i 'obdr ' /tmp/mondo-restore.cfg`" ]; then 108 mondoopt="$mondoopt -o -d $TAPEDEV" 109 fi 110 111 if [ "`grep -i 'debug' /proc/cmdline`" ]; then 112 mondoopt="$mondoopt -K 99" 113 fi 114 106 115 if [ "$compare" ] ; then 107 116 LogIt "------------------COMPARE MODE-----------------" 1 108 mondorestore --compare117 mondorestore $mondoopt -Z compare 109 118 elif [ "$nuke" ] ; then 110 119 LogIt "-------------------NUKE MODE-------------------" 1 111 mondorestore --nuke120 mondorestore $mondoopt -Z nuke 112 121 elif [ "$expert" ] ; then 113 122 if [ "`grep tapedev /tmp/mondo-restore.cfg`" ] ; then … … 119 128 LogIt "Tape Mode -- calling mondorestore..." 120 129 if [ "$nuke" ] ; then 121 mondorestore --nuke130 mondorestore $mondoopt -Z nuke 122 131 else 123 mondorestore ; # MR will detect & access the tape132 mondorestore $mondoopt; # MR will detect & access the tape 124 133 fi 125 134 fi … … 132 141 LogIt "Cdstream Mode -- calling mondorestore..." 133 142 if [ "$nuke" ] ; then 134 mondorestore - -nuke143 mondorestore -Z nuke $mondoopt 135 144 else 136 mondorestore ; # MR will detect & access the cdstream145 mondorestore $mondoopt; # MR will detect & access the cdstream 137 146 fi 138 147 fi … … 147 156 else 148 157 LogIt "------------------INTERACTIVE------------------" 1 149 mondorestore - -interactive158 mondorestore -Z interactive $mondoopt 150 159 fi 151 160 152 [ -e "/tmp/DO-MBR-PLEASE" ] && LogIt "PLEASE RUN 'mondorestore - -mbr' NOW TO INITIALIZE YOUR BOOT SECTOR." 1161 [ -e "/tmp/DO-MBR-PLEASE" ] && LogIt "PLEASE RUN 'mondorestore -Z mbr' NOW TO INITIALIZE YOUR BOOT SECTOR." 1 153 162 154 163 exit 0
Note:
See TracChangeset
for help on using the changeset viewer.