From stock@sba.nl Tue Feb 5 20:43:20 2002 +0100 Date: Tue, 5 Feb 2002 20:43:20 +0100 (CET) From: "Robert M. Stockmann" To: Klon Shugart Subject: Re: Crashrecovery CD + RaidTools In-Reply-To: <5.1.0.14.2.20020205110319.00b075b0@mail.adv-data.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Status: RO X-Status: X-Keywords: On Tue, 5 Feb 2002, Klon Shugart wrote: > Date: Tue, 05 Feb 2002 11:07:28 -0800 > From: Klon Shugart > To: stock@sba.nl > Subject: Crashrecovery CD + RaidTools > > Robert, > > I recently downloaded and burned your crashrecovery iso image. it works great. > I was trying to include some of the latest raidtools to enhance the CD, > however, I am unsure how to handle the RPM package from redhat. AS I am not > an expert, only a novice at this. > I would appreciate any information, suggestions, advice, ideas on this. Well just install the appropiate rpm's on a standard redhat 7.1 or 7.2 machine. Next do a rpm -q -l package-x.yz-b and then look at what this rpm's used binary's and config files are. in case of your raid tools you will have : [root@tinker root]# rpm -q -f /sbin/raidstart raidtools-0.90-23 [root@tinker root]# rpm -q -l raidtools-0.90-23 /sbin/detect_multipath /sbin/mkpv /sbin/mkraid /sbin/raid0run /sbin/raidhotadd /sbin/raidhotgenerateerror /sbin/raidhotremove /sbin/raidstart /sbin/raidstop /usr/share/doc/raidtools-0.90 /usr/share/doc/raidtools-0.90/COPYING /usr/share/doc/raidtools-0.90/README /usr/share/doc/raidtools-0.90/multipath.conf.sample /usr/share/doc/raidtools-0.90/raid0.conf.sample /usr/share/doc/raidtools-0.90/raid1.conf.sample /usr/share/doc/raidtools-0.90/raid4.conf.sample /usr/share/doc/raidtools-0.90/raid5.conf.sample /usr/share/doc/raidtools-0.90/raidtab.sample /usr/share/man/man5/raidtab.5.gz /usr/share/man/man8/ckraid.8.gz /usr/share/man/man8/mkpv.8.gz /usr/share/man/man8/mkraid.8.gz /usr/share/man/man8/raid0run.8.gz /usr/share/man/man8/raidadd.8.gz /usr/share/man/man8/raidrun.8.gz /usr/share/man/man8/raidstart.8.gz /usr/share/man/man8/raidstop.8.gz So basicly here what you need are the binary's inside /sbin and maybe some example configfiles. So to add that to a custom version of the crash245.iso proceed as follows : [root@tinker root]# losetup /dev/loop0 /root/crash245.iso [root@tinker root]# mount -t iso9660 /dev/loop0 /mnt/cdrom [root@tinker root]# mkdir -p /mnt/data/crash245_raid [root@tinker root]# cd /mnt/cdrom [root@tinker cdrom]# cp -ap * /mnt/data/crash245_raid [root@tinker cdrom]# sync [root@tinker cdrom]# sync [root@tinker cdrom]# cd /sbin [root@tinker sbin]# cp -ap detect_multipath mkpv mkraid raid0run raidhotadd raidhotgenerateerror raidhotremove raidstart raidstop /mnt/data/crash245_raid/utils/sbin/ [root@tinker sbin]# mkdir /mnt/data/crash245_raid/doc [root@tinker sbin]# cd /usr/share/doc [root@tinker doc]# cp -ap raidtools-0.90 /mnt/data/crash245_raid/doc [root@tinker doc]# Thats about it. Now re-create the iso again like this , with this script : make-crash245.sh : ------------------------------------------------------------------------------ #!/bin/sh /usr/bin/mkisofs -b boot/diskimage.img \ -c boot/boot.catalog -hard-disk-boot \ -o /mnt/data/crash245_raid.raw \ -l -r -L -J -V "CRK Linux Raid 2.4.5" \ -P "SBA-2002020501" -p "stock" \ -A "CRK Linux Raid 2.4.5" "/mnt/data/crash245_raid" echo " Done!" exit 0 ------------------------------------------------------------------------------ Have fun :) Robert