- Timestamp:
- Jul 29, 2013, 9:08:58 AM (12 years ago)
- Location:
- branches/3.0/mindi
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.0/mindi/README.bootparam
r3168 r3173 1 At restore time, multiple parameters are available to modify how the restore will act:1 Multiple parameters are available at restore time to modify its behaviour: 2 2 3 nuke 4 To format and restore all files automatically 3 nuke To format and restore all files automatically 4 interactive To restore some/all files interactively 5 compare To compare the archives with your filesystem 6 expert To boot to a command-line prompt (expert mode) 7 RESTORE To format and restore all files automatically 5 8 6 interactive 7 To restore some/all files interactively 8 9 compare 10 To compare the archives with your filesystem 11 12 expert 13 To boot to a command-line prompt (expert mode) 14 15 RESTORE 16 To format and restore all files automatically 17 18 -------------- 19 20 debug 21 Call mondorestore with -K99 22 23 denymods="mod1 mod2" 24 Add those modules to the list of modules to NOT load 25 26 donteject 27 mondorestore will not eject the CD; this is useful if, for instance, your PC's case has a concealed CD-ROM drive 28 29 excludedevs="dev1 dev2" 30 Exclude those devices from retoration process (no LVM action done such as pvcreate, and no partitioning. Those devices are removed from /tmp/mountlist.txt and /tmp/i-want-my-lvm) 31 32 forcemods="mod1 mod2" 33 Add those modules to the list of modules to load systematically 34 35 net 36 Activate network support 37 38 nodmraid 39 Do not try to start dmraid support 40 41 nohw 42 Do not call the mindi-rsthw script which try to restore also your BIOSes configuration (ProLiant only for now) 43 44 nolvm 45 Do not try to start LVM support 46 47 nomd 48 Do not try to start mdadm support 49 50 nompath 51 Do not try to start multipath support 52 53 nopart 54 Do not try to partition drives at restore time 55 56 noresize 57 Do not resize partitions using a multiplication factor of (New disk size)/(Old disk size) to use your unallocated hard disk space 58 59 obdr 60 Call mondorestore with -o and the tape device 61 62 obdrmods="mod1 mod2" 63 Remove these modules in order to be able to reset the tape dvice using it and place it in sequential mode. A default list of modules is aloready embedded so this should only be used if the list is unsufficient. Please report that usage to dev team. 64 65 pre=/path/to/script 66 Execute a pre-configuration script before calling mondorestore. Could be an NFS shared script e.g., or a script located in the initrd. Eg: pre=/tmp/isodir/my-pre.sh. Note that the script should be executable. 67 68 post=/path/to/script 69 Execute a final script before rebooting the machine at the end of the restoration. Could be an NFS shared script e.g., or a script located on the restored disk or in the initrd. Eg: post=/tmp/isodir/my-post.sh. Note that the script should be executable. 70 71 quiet 72 Do not print information msgs in order to allow for easier tracking of error messages at boot time 73 74 serial=/dev/ttySx 75 When using a serial console, associate it to the tty device so it works correctly at restore time. By default set up /dev/ttyS0 as serial console. Pass the value of your serial console if different. You may also want to pass console=ttySx so your kernel can deal with it. serial takes precedence over console for mindi. 76 77 textonly 78 do not call any Newt library routines; this is unattractive but valuable if you find your Newt library has bugs in it or on ia64 79 80 usb=/dev/xxx 81 Use that USB device name as the place to look for backup content. The way drivers are loaded may lead that to the fact you have a different device name at restore time, compared to the one you used at backup time, making mondorestore unable to use the right device natively. This helper corrects that. Pass to it the device name, not the partition name. Example: usb=/dev/sdb 82 83 ----------------- 9 debug Call mondorestore with -K99 10 denymods List of modules to NOT load (using denymods="mod1 mod2") 11 donteject mondorestore will not eject the CD 12 Useful if your PC's case has a concealed CD-ROM drive 13 excludedevs Exclude those devices from restoration process 14 No LVM action done such as pvcreate, and no partitioning 15 They are removed from /tmp/mountlist.txt and /tmp/i-want-my-lvm 16 (using excludedevs="dev1 dev2") 17 forcemods List of modules to load first (using forcemods="mod1 mod2") 18 net Activate network support 19 nodmraid Do not try to start dmraid support 20 nohw Do not call the mindi-rsthw script to restore your HW configuration 21 nolvm Do not try to start LVM support 22 nomd Do not try to start mdadm support 23 nompath Do not try to start multipath support 24 nopart Do not try to partition drives at restore time 25 noresize Do not resize partitions using a factor of (New size)/(Old size) 26 to use your unallocated hard disk space 27 obdr Call mondorestore with -o and the tape device 28 obdrmods List of modules to remove to reset the OBDR tape device using them 29 to place it in sequential mode. A default list is already embedded. 30 (using obdrmods="mod1 mod2") 31 pre Execute a pre-configuration script before calling mondorestore. 32 Could be located on an NFS share or in the initrd. 33 Should be executable. (using pre=/tmp/isodir/my-pre.sh) 34 post Execute a script before rebooting the machine after the restoration 35 Could be located on an NFS share, the restored disk or the initrd 36 Should be executable. (using post=/tmp/isodir/my-post.sh) 37 quiet Do not print information msgs for easier tracking of error messages 38 serial Device for the serial console. By default /dev/ttyS0. 39 Pass also console=ttySx for your kernel. (using serial=/dev/ttySx) 40 Serial takes precedence over console for mindi. 41 textonly Do not call the GUI. Unattractive but workk around if Newt has bugs 42 usb USB device name of backup content (not partition). 43 Help solve device renaming at restore time. (using usb=/dev/sdxx) 84 44 85 45 Look also at README.pxe for additional parameters linked to the PXE/Network usage -
branches/3.0/mindi/README.pxe
r3168 r3173 1 $Id$ 1 MondoRescue supports image deployment using Pre eXecution Environment (PXE) 2 Linux deployments with PXE is documented at http://syslinux.zytor.com/pxe.php 3 Multiple parameters are available at restore time for PXE support: 2 4 3 README for mondo/mindi usage with PXE 5 broadcast Network broadcast to setup on the device (e.g. 192.168.1.255) 6 dhcp The LAN interface is automatically setup from DHCP 7 (replaces ipaddr, netmask, broadcast, gateway) 8 gateway The default gateway to setup (e.g. 192.168.1.254) 9 hwaddr MAC address of the device to use to restore through (optional) 10 ipaddr IP Address to setup on the device (e.g. 192.168.1.1) 11 ipdev Device name (e.g. eth2) 12 iproute Additional static route (uses "route add" syntax with : separator) 13 (e.g. iproute="-net:192.168.8.0:netmask:255.255.255.0:dev:eth3) 14 mountpoint Mount point on the Remote Network server to use 15 (if NFS, should be in /etc/exports of the NFS server) 16 netfsmount Server and mountpoint on which the ISO is available (optional) 17 (if SSHFS the server part can be of the form user@server) 18 netfsopt Contains options passed to the mount command (optional) 19 netfspath Local path on the remote server where image is located (optional) 20 netmask Netmask to setup on the device (e.g. 255.255.255.0) 21 proto Protocol to use for mounting the remote share 22 (default is NFS, sshfs and smbfs are also available) 23 ramdisk_size Size of the RAM disk where the initrd is exploded 24 server IP address of the Remote Network server 4 25 5 mondorescue now supports the possibility to deploy mondo-images using the Pre eXecution Environment (PXE) standard. 6 As this README only focusses on the mondorescue part, please read how to do Linux deployments with pxelinux on http://syslinux.zytor.com/pxe.php 7 8 To use it, please do the following on your deployment server: 9 10 Add the following line to your default file: 26 To use it, on your deployment server, add the following line to your conf file: 11 27 label mondo 12 28 kernel vmlinuz-mondo 13 29 append initrd=initrd-mondo load_ramdisk=1 prompt_ramdisk=0 ramdisk_size=131072 selinux=0 rw root=/dev/ram iso acpi=off apm=off devfs=nomount exec-shield=0 pxe [proto=nfs|sshfs|smbfs] [prefix=machine] [ipconf=(ipdev:ipadr:netmask:broadcast:gateway|ipdev:dhcp)] [hwaddr=M:A:C:A:D:R] [netfsmount=server:mountpoint] [netfsopt=-o option][netfspath=local_path] [ping=#] [iproute=-net:netdest:[netmask:Nm]gw:GW] ... 14 30 15 ipdev is the device name (e.g. eth2)16 ipadr is the IP Address (e.g. 192.168.1.1)17 netmask is the Netmask (e.g. 255.255.255.0)18 broadcast is the Network broadcast (e.g. 192.168.1.255)19 gateway is the default gateway (e.g. 192.168.1.254)20 iproute is an additional static route using the route add syntax using : nstead of space to separate values21 dhcp is a keyword. Using it will provide all the previous 4 values to activate the LAN interface.22 hwaddr is the MAC address of the device you want to use to restore through23 proto is the protocol to use for mounting the remote share (default is NFS, sshfs and smbfs are also available)24 server is the ip addr of the Remote Network server25 mountpoint is the mount point on the Remote Network server to use (if NFS, should be in /etc/exports of the NFS server)26 netfsmount is the server and mountpoint on which the ISO is available, if different from the one at backup time. For SSHFS the server part can be of the form user@server.27 netfsopt may contains options passed to the mount command28 netfspath is the local path on the remote server where the image is located, if different from the one at backup time.29 local_path is the local directory under which the mage was made (with the -d option)30 ramdisk_size may have to be increase to 262144 or more on more recent distributions such as RHEL 631 31 The [] mean this parameter is optional 32 32 The () mean that you have a choice with the '|' meaning 'or' … … 54 54 Please report any problem around that tool to bruno_at_mondorescue.org 55 55 56 $Id$ 57 56 58 2013-07-25 adds support for iproute 57 59 2011-10-09 adds support for hwaddr -
branches/3.0/mindi/install.sh
r3143 r3173 77 77 install -m 755 analyze-my-lvm $locallib/mindi 78 78 install -m 644 msg-txt dev.tgz $locallib/mindi 79 install -m 644 deplist.txt mindi.conf $conf79 install -m 644 deplist.txt mindi.conf README.bootparam README.pxe $conf 80 80 for f in deplist.d/*.conf; do 81 81 install -m 644 $f $conf/deplist.d -
branches/3.0/mindi/mindi
r3172 r3173 87 87 LOGFILE=/var/log/mindi.log 88 88 BOOT_MEDIA_MESSAGE="\ 89 To format and restore all files automatically, type 'nuke' <enter>.\n\ 90 To restore some/all files interactively, type 'interactive' <enter>.\n\ 91 To compare the archives with your filesystem, type 'compare' <enter>.\n\ 92 To boot to a command-line prompt (expert mode), type 'expert' <enter>.\n\ 93 You may add one or more of the following parameters as well:-\n\n\ 94 donteject - mondorestore will not eject the CD; this is useful if, for\n\ 95 instance, your PC's case has a concealed CD-ROM drive\n\ 96 noresize - your mountlist will not be adjusted to use your unallocated\n\ 97 hard disk space\n\ 98 textonly - do not call any Newt library routines; this is unattractive\n\ 99 but valuable if you find your Newt library has bugs in it\n\n\ 100 e.g. Type 'nuke donteject textonly' if you have an unstable Newt library and \n\ 101 a PC whose CD-ROM drive tray would be damaged if it unexpectedly ejected.\n\ 89 To format and restore all files automatically, type '0enuke07' <enter>.\n\ 90 To restore some/all files interactively, type '0einteractive07' <enter>.\n\ 91 To compare the archives with your filesystem, type '0ecompare07' <enter>.\n\ 92 To boot to a command-line prompt (expert mode), type '0eexpert07' <enter>.\n\ 93 \n\ 94 You may add one or more parameters as well as per the function keys below\n\ 95 e.g. Type '0enuke denymods=\"fdomain impi_si\"07' to not load these 2 modules\n\ 96 \n\ 97 If restoring from a local external disk or USB key, do not connect it \n\ 98 until the boot-up has finished.\n\ 99 \n\ 100 \n0eF107-Main | Boot Parameters 0eF207-1/2 | 0eF307-2/2 | 0eF407-PXE\n\ 102 101 " 103 102 FDISK=$MINDI_SBIN/parted2fdisk … … 1489 1488 fi 1490 1489 done 1491 MakeMessageFile | cut -c1-80 > $MINDI_TMP/iso/message.txt1490 MakeMessageFile $MINDI_TMP/iso | cut -c1-80 > $MINDI_TMP/iso/message.txt 1492 1491 if [ $KERNEL_IS_XEN = "yes" ]; then 1493 1492 cp $xenkernelpath $MINDI_TMP/iso/xen.gz 2>> $LOGFILE || Die "Cannot copy xen.gz ($xenkernelpath) to mindi tmp ($MINDI_TMP/iso/xen.gz). Did you run out of disk space?" … … 1513 1512 if [ "$ARCH" != "ia64" ] ; then 1514 1513 if [ _"$MONDO_SHARE" != _"" ]; then 1515 cp -f $MINDI_TMP/iso/{isolinux.cfg,initrd.img,vmlinuz,isolinux.bin,message.txt } $MONDO_ROOT 2>> $LOGFILE || Die "Cannot copy core files to ramdisk for boot disk (under $MONDO_ROOT). Did you run out of disk space?"1514 cp -f $MINDI_TMP/iso/{isolinux.cfg,initrd.img,vmlinuz,isolinux.bin,message.txt,boot*.txt,pxe.txt} $MONDO_ROOT 2>> $LOGFILE || Die "Cannot copy core files to ramdisk for boot disk (under $MONDO_ROOT). Did you run out of disk space?" 1516 1515 if [ $KERNEL_IS_XEN = "yes" ]; then 1517 1516 cp -f $MINDI_TMP/iso/{mboot.c32,xen.gz} $MONDO_ROOT 2>> $LOGFILE || Die "Cannot copy Xen core files to ramdisk for boot disk (under $MONDO_ROOT). Did you run out of disk space?" … … 1661 1660 done 1662 1661 echo -en "." 1663 MakeMessageFile | cut -c1-80 > $MINDI_TMP/usb/message.txt1662 MakeMessageFile $MINDI_TMP/usb | cut -c1-80 > $MINDI_TMP/usb/message.txt 1664 1663 echo -en "." 1665 1664 cp $kernelpath $MINDI_TMP/usb/vmlinuz 2>> $LOGFILE || Die "Cannot copy vmlinuz ($kernelpath) to mindi tmp ($MINDI_TMP/usb/vmlinuz). Did you run out of disk space?" … … 1704 1703 if [ -x "/bin/lsb_release" ]; then 1705 1704 DESC=`/bin/lsb_release -d | cut -d: -f2 | sed "s/[ \t]*//"` 1706 elif [ -r /etc/arch-release ]; then # this code must be written before /etc/issue test to avoid errors 1707 DESC="Arch Linux" 1708 if [ -r /var/log/pacman.log ]; then 1709 # there are no releases but we can get the last system upgrade 1710 # Output example: Arch Linux [2011-03-03 01:39] 1711 DESC="$DESC $(tac /var/log/pacman.log | grep -m1 'full system upgrade' | cut -d']' -f1)]" 1705 elif [ -r /etc/arch-release ]; then # this code must be written before /etc/issue test to avoid errors 1706 DESC="Arch Linux" 1707 if [ -r /var/log/pacman.log ]; then 1708 # there are no releases but we can get the last system upgrade 1709 # Output example: Arch Linux [2011-03-03 01:39] 1710 DESC="$DESC $(tac /var/log/pacman.log | grep -m1 'full system upgrade' | cut -d']' -f1)]" 1712 1711 fi 1713 1712 elif [ -r /etc/issue.net ]; then … … 1740 1739 fi 1741 1740 fi 1742 echo -en "\n\n\n" 1741 1742 # Also create the other help screens 1743 head -24 $MINDI_CONF/README.bootparam | cut -c1-80 > $1/boot1.txt 1744 head -48 $MINDI_CONF/README.bootparam | tail -24 | cut -c1-80 > $1/boot2.txt 1745 head -24 $MINDI_CONF/README.pxe | cut -c1-80 > $1/pxe.txt 1743 1746 } 1744 1747 … … 1757 1760 # Generic header for conf file 1758 1761 if [ "$type" != "elilo" ] ; then 1759 echo -en "prompt 1\ndisplay message.txt\n "1762 echo -en "prompt 1\ndisplay message.txt\nF1 message.txt\nF2 boot1.txt\nF3 boot2.txt\nF4 pxe.txt\n" 1760 1763 else 1761 1764 echo -en "prompt\n" … … 1884 1887 retval=$(($retval+1)) 1885 1888 fi 1886 MakeMessageFile | cut -c1-80 > $mountpoint/message.txt1889 MakeMessageFile $mountpoint | cut -c1-80 > $mountpoint/message.txt 1887 1890 1888 1891 mkdir -p $mountpoint/tmp … … 1968 1971 1969 1972 # copy Mindi's skeleton fs & lilo/syslinux/whatever stuff into it 1970 MakeMessageFile | cut -c1-80 > $mountpoint/message.txt1973 MakeMessageFile $mountpoint | cut -c1-80 > $mountpoint/message.txt 1971 1974 MakeBootConfFile isolinux > $mountpoint/syslinux.cfg 1972 1975 LogFile "INFO: Copying $MINDI_TMP/initrd.img to $mountpoint/initrd.img..." -
branches/3.0/mindi/msg-txt
r2292 r3173 1 Welcome to Mindi vZZZZZ, a cousin of MondoRescue2 1 3 Creation date: TTTTT4 These disks were generated on the following system:-5 MMMMM6 DDDDD7 KKKKK8 AAAAA9 2 3 Welcome to 0fMindi vZZZZZ07, a cousin of MondoRescue 4 5 Creation date: 0fTTTTT07 6 These disks were generated on the following system: 7 0fMMMMM07 8 0fDDDDD07 9 0fKKKKK07 10 0fAAAAA07 11
Note:
See TracChangeset
for help on using the changeset viewer.