From owner-freebsd-questions@FreeBSD.ORG Fri Jan 14 17:48:55 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AFEB616A4CE for ; Fri, 14 Jan 2005 17:48:55 +0000 (GMT) Received: from MXR-2.estpak.ee (ld1.estpak.ee [194.126.101.98]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3B9BE43D1D for ; Fri, 14 Jan 2005 17:48:54 +0000 (GMT) (envelope-from toomas.aas@raad.tartu.ee) Received: from [217.159.199.29] (217-159-199-29-dsl.trt.estpak.ee [217.159.199.29]) by MXR-2.estpak.ee (Postfix) with ESMTP id 1B9381496F0; Fri, 14 Jan 2005 19:48:50 +0200 (EET) Message-ID: <41E805C5.1050407@raad.tartu.ee> Date: Fri, 14 Jan 2005 19:47:49 +0200 From: Toomas Aas User-Agent: Mozilla Thunderbird 1.0RC1 (X11/20041207) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Derek References: <41E7C675.4040703@rogers.com> In-Reply-To: <41E7C675.4040703@rogers.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new-2.2.1 (20041222) (Debian) at neti.ee cc: questions@freebsd.org Subject: Re: Replacing both disks in RAID1 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Jan 2005 17:48:55 -0000 Derek wrote: > Toomas Aas wrote: > >> 1. Attach one of the new drives to free ICH4 IDE port on motherboard, >> partition it and transfer the data using dump/tar. > > > At this stage, I would recommend doing this in single user mode, to keep > filesystem modifications during the procedure down. Yes, that was my plan. Definitely a good idea. > I typically use dump for all partitions when in single user mode like so: > > #adjkerntz -i > #swapon -a > #mount -a > > ... > #mount /dev/ad0s1a /mnt/newroot > ... > > /mnt/newroot# dump 0af - / | restore xf - > /mnt/newtmp# dump 0af - /tmp | restore xf - > ...etc I need to use tar for some things, since I'd also like to re-arrange partitioning a bit. I think I have that part figured out, including how to make all the daemons happy with new locations for the data. >> 2. Remove the 80 GB drives, attach 200 GB drives (one with data, one >> blank) to TX2 IDE ports and re-create the mirror using Promise onboard >> BIOS utility. > > > I would go with this if you can afford the time. On servers that we > don't want down for long, I recreate the mirror in the BIOS, let it > mirror to 1%, and then reboot (ignoring the RAID error), and start > rebuilding with atacontrol. It still takes a while, and the server is > slow because of the excessive disk i/o, but it is responding. I'm planning to do this on Saturday when downtime is not that big an issue. >> 3. Reboot, fix the fstab (if necessary) and be done with it. > > > Shouldn't need a reboot/mess with fstab if you are careful. If I'd left the partitioning the same, then yes, but I do want to do some changes there. > From my experience with the Promise cards, this is the way to go. I've > had to upgrade serveral machines, as we've been using the cards in > production. Thanks for confirmation. I sleep better tonight. > The one caveat that I would warn you about is making sure that all your > corresponding partitions line up, to prevent having to mess with fstab > (and have the data in the same relative physical location on the drive) But if it is necessary, it should be possible to bring the machine up to single user mode and modify the fstab there, right? Given, of course, that the root partition is left on ar0s1a. Thanks a lot, -- Toomas