From owner-freebsd-fs Tue Oct 14 14:48:28 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id OAA19896 for fs-outgoing; Tue, 14 Oct 1997 14:48:28 -0700 (PDT) (envelope-from owner-freebsd-fs) Received: from ns1.yes.no (ns1.yes.no [195.119.24.10]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id OAA19878; Tue, 14 Oct 1997 14:48:17 -0700 (PDT) (envelope-from eivind@bitbox.follo.net) Received: from bitbox.follo.net (bitbox.follo.net [194.198.43.36]) by ns1.yes.no (8.8.7/8.8.7) with ESMTP id VAA25982; Tue, 14 Oct 1997 21:48:04 GMT Received: (from eivind@localhost) by bitbox.follo.net (8.8.6/8.8.6) id XAA17036; Tue, 14 Oct 1997 23:47:55 +0200 (MET DST) Date: Tue, 14 Oct 1997 23:47:55 +0200 (MET DST) Message-Id: <199710142147.XAA17036@bitbox.follo.net> From: Eivind Eklund To: Simon Shapiro CC: greg@lightningweb.com, freebsd-scsi@FreeBSD.ORG, freebsd-fs@FreeBSD.ORG In-reply-to: Simon Shapiro's message of Wed, 23 Jul 1997 23:21:48 -0700 (PDT) Subject: RE: adding RAID to the OS without re-partitioning References: Sender: owner-freebsd-fs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > > > Hi "Greg K. Cagle"; On 23-Jul-97 you wrote: > > I plan on adding a RAID disk array to my existing server. Ther server > > has > > three HDD's in it now, with "/" as one, "/usr/" as another, and a spare > > that's partitioned as "/scratch/". > > > > The disk array will be an independent unit, and will hook up to the > > external port on my Adaptec 2940UW. The company (Baydel) says that the > > array will appear as one large volume to FreeBSD. > > > > My question: How do I include the new array as part of the filesystem, > > without re-installing? I know I can make those choices when I first > > install the OS, but can I add a partition now, without messing up > > anything? I want to end up with the large RAID as my "/usr/" partition. > > > > Thanks for suggestions, > > > > Greg > > > > ps I have 2.1.5 on a Pentium Pro 200 with 128MB ram. > > Since no on else took it on, I will donate my $0.02. > > This is really not a SCSI issue at all. > > essentially, this is what you do: [Long and complicated description deleted] This use an MS-DOS partition table, and is not how I would have done it - I would have done ## Find SCSI device number $ dmesg | grep sd sd17(dpt0:1:0): Direct-Access 16394MB (32542592 528 byte sectors) ## Initial labelling of disk $ disklabel -rw sd17 auto (you'll likely get a warning about "wrong magic number" in the syslog about here - ignore it) ## Set up partitions $ disklabel -e sd17 (Remember to check that it all sum up correctly, and that the sum of each offset+size is equal to the offset of the next slice - and slice c should cover the entire disk) ## Install filesystems $ newfs /dev/rsd17a for each of a,e,f,g (or whatever filesystems you use) And now just mount them. (Shimon was more detailed - I just say that this is described both in the handbook and the FAQ ;-) Eivind. From owner-freebsd-fs Tue Oct 14 16:13:19 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id QAA25082 for fs-outgoing; Tue, 14 Oct 1997 16:13:19 -0700 (PDT) (envelope-from owner-freebsd-fs) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id QAA25048; Tue, 14 Oct 1997 16:12:59 -0700 (PDT) (envelope-from bde@zeta.org.au) Received: (from bde@localhost) by godzilla.zeta.org.au (8.8.5/8.6.9) id JAA27330; Wed, 15 Oct 1997 09:00:45 +1000 Date: Wed, 15 Oct 1997 09:00:45 +1000 From: Bruce Evans Message-Id: <199710142300.JAA27330@godzilla.zeta.org.au> To: perhaps@yes.no, Shimon@i-Connect.Net Subject: RE: adding RAID to the OS without re-partitioning Cc: freebsd-fs@FreeBSD.ORG, freebsd-scsi@FreeBSD.ORG, greg@lightningweb.com Sender: owner-freebsd-fs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >[Long and complicated description deleted] > >This use an MS-DOS partition table, and is not how I would have done >it - I would have done > >## Find SCSI device number >$ dmesg | grep sd >sd17(dpt0:1:0): Direct-Access 16394MB (32542592 528 byte sectors) > >## Initial labelling of disk >$ disklabel -rw sd17 auto If there is already a DOS partition (slice) table, then this won't work. I recently fixed a bug that allowed disklabel on an empty BSD compatibility slice to corrupt the slice table. Empty BSD compatibility slices occur naturally on all disks that have a slice table but don't have a BSD slice. You should remove the partition table using $ dd if=/dev/zero of=/dev/rsd17 count=1 before running disklabel. It may also be necessary to remove a stale label in the second sector of the disk by using a count of 2 instead of 1. You should check existing partition tables and labels before removing them. >(you'll likely get a warning about "wrong magic number" in the syslog >about here - ignore it) Someone recently removed the warning. Previously, if you didn't get the warning, it meant that there was a probably a partition table and you should have been careful removing it :-). >... >And now just mount them. (Shimon was more detailed - I just say that >this is described both in the handbook and the FAQ ;-) I think the dd step is described there. Bruce From owner-freebsd-fs Tue Oct 14 23:40:33 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id XAA22232 for fs-outgoing; Tue, 14 Oct 1997 23:40:33 -0700 (PDT) (envelope-from owner-freebsd-fs) Received: from web2.rocketmail.com (web2.rocketmail.com [205.180.57.68]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id XAA22227 for ; Tue, 14 Oct 1997 23:40:30 -0700 (PDT) (envelope-from syracuse@rocketmail.com) Message-ID: <19971015064155.7753.rocketmail@web2.rocketmail.com> Received: from [192.72.46.101] by web2; Tue, 14 Oct 1997 23:41:55 PDT Date: Tue, 14 Oct 1997 23:41:55 -0700 (PDT) From: "G. Wang" To: freebsd-fs@FreeBSD.ORG MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-fs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk unsubscribe freebsd-fs _____________________________________________________________________ Sent by RocketMail. Get your free e-mail at http://www.rocketmail.com