Date: Fri, 26 Feb 1999 19:07:53 +0000 (GMT) From: russell@lls.lls.com (Russell Brown) To: dledford@redhat.com (Doug Ledford) Cc: rgb@phy.duke.edu, maxwell@clark.net, AIC7xxx@FreeBSD.ORG Subject: Re: Adaptec 7890 and RAID portIII RAID controller Linux Support Message-ID: <m10GSc5-000BoWC@lls.lls.com> In-Reply-To: <36D5B02F.B9E0605C@redhat.com> from "Doug Ledford" at Feb 25, 99 03:18:55 pm
next in thread | previous in thread | raw e-mail | index | archive | help
Quoth Doug Ledford..... > >"Robert G. Brown" wrote: >> >> Masterful work, Doug! Seconded. Nicely written. >That's possible, but what I've found to be a good method is to do something >like this: > >/dev/sda1: 200MB >/dev/sda2: Rest of disk > >I copy that exact same paritioning to all the rest of the disks. When I >actually lay it out, /dev/sda1 becomes the self sustaining /boot partition and I play the same game and it works very well. FWIW, if /etc/lilo is a directory and contains an excutable called install then it's executed when you run lilo. I use this to copy sda1 to sdb1 automatically so I've got a workable copy of my boot partition every time I do a 'make bzlilo' in /usr/src/linux. If it's of any use to anyone, here's a copy of my /etc/lilo/install script. #!/bin/sh # # Install Routine for LILO on the SoftRAID # Device=/dev/sda1 Disk=/dev/sda Mirror=/dev/sdb1 MDisk=/dev/sdb # echo Installing Kernel on the Boot partition $Device # RBmount=$( cat /proc/mounts | /usr/bin/grep ${Device} ) if [ -n "${RBmount}" ]; then RBmount=$( echo ${RBmount} | cut -f 2 -d ' ' ) i_mounted=NO else RBmount="/tmp/raid$$" mkdir $RBmount mount ${Device} ${RBmount} i_mounted=YES fi cp /vmlinuz $RBmount cp /System.map $RBmount /etc/lilo/lilo if [ $i_mounted = "YES" ] ; then umount $Device fi # # Update the Second Disk Mirror Image # echo Checking Mirror: $Mirror if e2fsck $Mirror then mkdir /tmp/mirror.$$ if mount -t ext2 $Mirror /tmp/mirror.$$ then umount $Mirror echo Copying the root filesystem to the Mirror root $Mirror dd if=$Device of=$Mirror # Copy the lilo part of the root boot # avoiding the partition table dd if=$Disk of=$MDisk bs=446 count=1 echo The mirror root $Mirror updated. else echo WARNING The mirror root $Mirror has NOT been updated. fi fi # End of RAID lilo install -- Regards, Russell -------------------------------------------------------------------------- | Russell Brown | MAIL: russell@lls.com PHONE: 01780 471800 | | Lady Lodge Systems | WWW Work: http://www.kings.demon.co.uk/ | | Peterborough, England | WWW Play: http://www.kings.demon.co.uk/russell/ | -------------------------------------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe aic7xxx" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?m10GSc5-000BoWC>