Changeset 2382 in MondoRescue for branches/2.2.10/mindi
- Timestamp:
- Sep 10, 2009, 2:07:16 AM (15 years ago)
- Location:
- branches/2.2.10/mindi
- Files:
-
- 1 deleted
- 4 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.10/mindi/README.pxe
r2191 r2382 11 11 label mondo 12 12 kernel vmlinuz-mondo 13 append initrd=initrd-mondo load_ramdisk=1 prompt_ramdisk=0 ramdisk_size=131072 rw root=/dev/ram iso acpi=off apm=off devfs=nomount exec-shield=0 pxe [pr efix=machine] [ipconf=(ipdev:ipadr:netmask:broadcast:gateway|ipdev:dhcp)] [nfsmount=server:mountpoint] [nfspath=local_path] [ping=#] ...13 append initrd=initrd-mondo load_ramdisk=1 prompt_ramdisk=0 ramdisk_size=131072 rw root=/dev/ram iso acpi=off apm=off devfs=nomount exec-shield=0 pxe [proto=nfs|sshfs] [prefix=machine] [ipconf=(ipdev:ipadr:netmask:broadcast:gateway|ipdev:dhcp)] [netfsmount=server:mountpoint] [netfspath=local_path] [ping=#] ... 14 14 15 15 ipdev is the device name (e.g. eth2) … … 19 19 gateway is the default gateway (e.g. 192.168.1.254) 20 20 dhcp is a keyword. Using it will provide all the previous 4 values to activate the LAN interface. 21 server is the ip addr of the NFS server 22 mountpoint is the mount point on the NFS server to use (should be in /etc/exports of the NFS server) 21 proto is the protocol to use for mounting the remote share (default is NFS, sshfs is also available) 22 server is the ip addr of the Remote Network server 23 mountpoint is the mount point on the Remote Network server to use (if NFS, should be in /etc/exports of the NFS server) 24 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. 25 netfspath is the local path on the remote server where the image is located, if different from the one at backup time. 23 26 local_path is the local directory under which the mage was made (with the -d option) 24 27 rmadisk_size may have to be increase to 131072 on more recent distributions such as rhel 5 … … 40 43 Without prefix keyword, the name of the images used during archiving with the -p option will be used (they may differ). If -p wasn't used then the name mondorescue-1.iso, ... will be used. 41 44 42 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 n fsmount option. The structure on both server under the mountpoint has to be the same.45 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 netfsmount option. The structure on both server under the mountpoint has to be the same. 43 46 44 47 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. … … 46 49 Please report any problem around that tool to bruno@mondorescue.org 47 50 51 2009-09-09 Changed to netfs for multi protocol support (nfs, sshfs, ...) 48 52 2009-05-07 nfspath added to allow redeployment from another NFS directory 49 53 2006-06-10 nfsmount added to allow redeployment from another NFS server -
branches/2.2.10/mindi/deplist.txt
r2222 r2382 46 46 /bin/mount 47 47 /sbin/mount.nfs /sbin/mount.nfs4 48 /sbin/mount.fuse 48 /usr/bin/sshfs 49 /sbin/mount.fuse /usr/bin/fusermount /usr/bin/ulockmgr_server 49 50 /sbin/mount.cifs /sbin/mount.cifs3 50 51 /sbin/mount.smb /sbin/mount.smb3 -
branches/2.2.10/mindi/mindi
r2345 r2382 57 57 PCMCIA_MODS="pcmcia_core ds yenta_socket" 58 58 USB_MODS="usb-storage usb-ohci usb-uhci usbcore usb_storage input hid uhci_hcd ehci_hcd uhci-hcd ehci-hcd ohci-hcd ohci_hcd usbkbd usbhid keybdev mousedev libusual scsi_mod ff-memless" 59 NET_MODS="sunrpc nfs nfs_acl lockd fscache loop mii 3c59x e100 bcm5700 bnx2 e1000 e1000e igb eepro100 ne2k-pci tg3 libphy pcnet32 8139cp 8139too 8390 forcedeth vmxnet vmnet exportfs "59 NET_MODS="sunrpc nfs nfs_acl lockd fscache loop mii 3c59x e100 bcm5700 bnx2 e1000 e1000e igb eepro100 ne2k-pci tg3 libphy pcnet32 8139cp 8139too 8390 forcedeth vmxnet vmnet exportfs fuse" 60 60 CDROM_MODS="$TAPE_MODS $IDE_MODS $USB_MODS $PCMCIA_MODS $SCSI_MODS $NET_MODS af_packet cdrom isocd isofs inflate_fs nls_iso8859-1 nls_base nls_cp437 nls_utf8 sg sr_mod zlib_inflate iso9660" 61 61 # Those modules will only go on the backup media, not the boot media. 62 EXTRA_MODS="$CDROM_MODS vfat fat loop md-mod linear raid0 raid1 xor raid10 raid5 raid456 lvm-mod dm-mod dm_mod dm-snapshot dm_snapshot dm-zero dm_zero dm-mirror dm_mirror dm-multipath dm-round-robin dm-emc dm-hp-sw dm-rdac multipath jfs xfs xfs_support pagebuf reiserfs ext2 ext3 minix nfs nfs_acl nfsd lockd sunrpc jbd mbcache ext4 jbd2 crc16 fuse"62 EXTRA_MODS="$CDROM_MODS vfat fat loop md-mod linear raid0 raid1 xor raid10 raid5 raid456 lvm-mod dm-mod dm_mod dm-snapshot dm_snapshot dm-zero dm_zero dm-mirror dm_mirror dm-multipath dm-round-robin dm-emc dm-hp-sw dm-rdac multipath jfs xfs xfs_support pagebuf reiserfs ext2 ext3 minix nfs nfs_acl nfsd lockd sunrpc jbd mbcache ext4 jbd2 crc16" 63 63 # Replace with that line for HP OCMP e.g. 64 64 #DENY_MODS="MPS_Driver_Mapper mps octtldrv tscttl streams kqemu fdomain" … … 565 565 fi 566 566 cp -f $MINDI_TMP/BOOTLOADER.* $bigdir 2>> $LOGFILE || LogAll "\nMondo v1.2x defaults to LILO as the bootloader, BTW." 567 if [ -e "$MINDI_TMP/N FS-DEV" ] ; then567 if [ -e "$MINDI_TMP/NETFS-DEV" ] ; then 568 568 LogAll "\nIncorporating NFS-related settings" 569 for r in N FS-* ISO-PREFIX ; do569 for r in NETFS-* ISO-PREFIX ; do 570 570 cp -f $MINDI_TMP/$r $bigdir/tmp 2>> $LOGFILE || Die "Cannot copy $r - did you run out of disk space?" 571 571 LogFile "Copying $r to ramdisk" … … 923 923 echo "datestamp `date`" >> $outfile 924 924 [ "$ESTIMATED_TOTAL_NOOF_SLICES" ] && echo "total-slices $ESTIMATED_TOTAL_NOOF_SLICES" >> $outfile 925 AddFileToCfgIfExists $MINDI_TMP/NFS-CLIENT-IPADDR nfs-client-ipaddr $outfile 926 AddFileToCfgIfExists $MINDI_TMP/NFS-CLIENT-NETMASK nfs-client-netmask $outfile 927 AddFileToCfgIfExists $MINDI_TMP/NFS-CLIENT-BROADCAST nfs-client-broadcast $outfile 928 AddFileToCfgIfExists $MINDI_TMP/NFS-CLIENT-DEFGW nfs-client-defgw $outfile 929 AddFileToCfgIfExists $MINDI_TMP/NFS-SERVER-MOUNT nfs-server-mount $outfile 930 AddFileToCfgIfExists $MINDI_TMP/NFS-SERVER-PATH nfs-server-path $outfile 931 AddFileToCfgIfExists $MINDI_TMP/NFS-DEV nfs-dev $outfile 932 AddFileToCfgIfExists $MINDI_TMP/NFS-SERVER-IPADDR nfs-server-ipaddr $outfile 925 AddFileToCfgIfExists $MINDI_TMP/NETFS-CLIENT-IPADDR netfs-client-ipaddr $outfile 926 AddFileToCfgIfExists $MINDI_TMP/NETFS-CLIENT-NETMASK netfs-client-netmask $outfile 927 AddFileToCfgIfExists $MINDI_TMP/NETFS-CLIENT-BROADCAST netfs-client-broadcast $outfile 928 AddFileToCfgIfExists $MINDI_TMP/NETFS-CLIENT-DEFGW netfs-client-defgw $outfile 929 AddFileToCfgIfExists $MINDI_TMP/NETFS-SERVER-MOUNT netfs-server-mount $outfile 930 AddFileToCfgIfExists $MINDI_TMP/NETFS-SERVER-PATH netfs-server-path $outfile 931 AddFileToCfgIfExists $MINDI_TMP/NETFS-DEV netfs-dev $outfile 932 AddFileToCfgIfExists $MINDI_TMP/NETFS-PROTO netfs-proto $outfile 933 AddFileToCfgIfExists $MINDI_TMP/NETFS-SERVER-IPADDR netfs-server-ipaddr $outfile 933 934 AddFileToCfgIfExists $MINDI_TMP/ISO-DEV iso-dev $outfile 934 935 AddFileToCfgIfExists $MINDI_TMP/ISO-MNT iso-mnt $outfile … … 1511 1512 if [ _"$MONDO_SHARE" != _"" ]; then 1512 1513 if [ "$CDRECOVERY" != "yes" ] ; then 1513 if [ -e "$MINDI_TMP/N FS-DEV" ] ; then1514 if [ -e "$MINDI_TMP/NETFS-DEV" ] ; then 1514 1515 echo -en "Press <enter> to continue.\n" 1515 1516 elif [ ! "$MINDI_TMP" ] ; then … … 1554 1555 # In case it's mondoarchive 1555 1556 elif [ _"$MONDO_SHARE" != _"" ]; then 1556 if [ -e "$MINDI_TMP/N FS-DEV" ] ; then1557 if [ -e "$MINDI_TMP/NETFS-DEV" ] ; then 1557 1558 echo -en "default${sep}iso\n" 1558 1559 else … … 2341 2342 list_of_groovy_mods="$CDROM_MODS $FORCE_MODS" 2342 2343 2343 if [ -e "$MINDI_TMP/N FS-DEV" ] ; then2344 if [ -e "$MINDI_TMP/NETFS-DEV" ] ; then 2344 2345 # For PXE boot 2345 2346 list_of_groovy_mods="$list_of_groovy_mods $NET_MODS" -
branches/2.2.10/mindi/rootfs/sbin/init
r2362 r2382 724 724 fi 725 725 if [ "`grep -i pxe $CMDLINE`" ] || [ "`grep -i net $CMDLINE`" ]; then 726 # We need to get here exported variables from start-n fs727 . /sbin/start-n fs726 # We need to get here exported variables from start-netfs 727 . /sbin/start-netfs 728 728 fi 729 729 … … 737 737 ExtractDataDisksAndLoadModules 738 738 # Fake the conf file to force it to NFS mode, even if we made originally a CD (mandatory for mondorestore to work correctly) 739 sed -i "s/backup-media-type.*/backup-media-type n fs/" /tmp/mondo-restore.cfg739 sed -i "s/backup-media-type.*/backup-media-type netfs/" /tmp/mondo-restore.cfg 740 740 elif [ "`grep -i usb= $CMDLINE`" ] || [ "`grep -i usb /tmp/mondo-restore.cfg 2>/dev/null | grep media-type`" ]; then 741 741 . /sbin/start-usb … … 748 748 HandleCDROM 749 749 ExtractDataDisksAndLoadModules 750 # We need to get here exported variables from start-n fs751 . /sbin/start-n fs750 # We need to get here exported variables from start-netfs 751 . /sbin/start-netfs 752 752 fi 753 753 res=$? … … 848 848 LogIt "backup-media-type is specified in config file - great." 849 849 LogIt "Calling post-init" 850 # start-n fs moved it under /tmp as the NFS share is already unmounted850 # start-netfs moved it under /tmp as the NFS share is already unmounted 851 851 if [ "`echo $pre | grep -E '^/tmp/isodir'`" ]; then 852 852 post=`echo $pre | sed 's|^/tmp/isodir|/tmp|'` … … 866 866 echo $i | grep -qi post= && post=`echo $i | cut -d= -f2` 867 867 done 868 # start-n fs moved it under /tmp as the NFS share is already unmounted868 # start-netfs moved it under /tmp as the NFS share is already unmounted 869 869 if [ "`echo $post | grep -E '^/tmp/isodir'`" ]; then 870 870 post=`echo $post | sed 's|^/tmp/isodir|/tmp|'` -
branches/2.2.10/mindi/rootfs/sbin/start-netfs
r2380 r2382 31 31 32 32 # info from cmdline are predominent 33 for i in `cat /proc/cmdline` ; do33 for i in `cat $CMDLINE` ; do 34 34 echo $i | grep -qi ping= && ipcount=`echo $i | cut -d= -f2` 35 35 echo $i | grep -qi ipconf= && ipconf=`echo $i | cut -d= -f2`
Note:
See TracChangeset
for help on using the changeset viewer.