From owner-aic7xxx Fri Feb 26 11: 9:38 1999 Delivered-To: aic7xxx@freebsd.org Received: from post.mail.demon.net (post-20.mail.demon.net [194.217.242.27]) by hub.freebsd.org (Postfix) with ESMTP id A9D1F14F5C for ; Fri, 26 Feb 1999 11:09:11 -0800 (PST) (envelope-from russell@lls.lls.com) Received: from [158.152.8.177] (helo=lls.lls.com) by post.mail.demon.net with smtp (Exim 2.10 #2) id 10GSd1-0006Sn-00; Fri, 26 Feb 1999 19:08:51 +0000 Received: by lls.lls.com (/\oo/\ Smail3.1.29.1 #29.17) id ; Fri, 26 Feb 99 19:07 GMT Message-Id: From: russell@lls.lls.com (Russell Brown) Subject: Re: Adaptec 7890 and RAID portIII RAID controller Linux Support To: dledford@redhat.com (Doug Ledford) Date: Fri, 26 Feb 1999 19:07:53 +0000 (GMT) Cc: rgb@phy.duke.edu, maxwell@clark.net, AIC7xxx@FreeBSD.ORG In-Reply-To: <36D5B02F.B9E0605C@redhat.com> from "Doug Ledford" at Feb 25, 99 03:18:55 pm Content-Type: text Content-Length: 2247 Sender: owner-aic7xxx@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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