From owner-freebsd-questions@FreeBSD.ORG Fri Nov 7 09:35:42 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6D3971065673 for ; Fri, 7 Nov 2008 09:35:42 +0000 (UTC) (envelope-from Pieter.Donche@ua.ac.be) Received: from hmacs.cmi.ua.ac.be (hmacs.cmi.ua.ac.be [143.129.75.10]) by mx1.freebsd.org (Postfix) with ESMTP id 064898FC14 for ; Fri, 7 Nov 2008 09:35:41 +0000 (UTC) (envelope-from Pieter.Donche@ua.ac.be) Received: from hmacs.cmi.ua.ac.be (localhost [127.0.0.1]) by hmacs.cmi.ua.ac.be (8.13.8+Sun/8.13.8) with ESMTP id mA79ZdQU026882; Fri, 7 Nov 2008 10:35:39 +0100 (CET) Received: from localhost (pdon@localhost) by hmacs.cmi.ua.ac.be (8.13.8+Sun/8.13.8/Submit) with ESMTP id mA79ZdB9026878; Fri, 7 Nov 2008 10:35:39 +0100 (CET) X-Authentication-Warning: hmacs.cmi.ua.ac.be: pdon owned process doing -bs Date: Fri, 7 Nov 2008 10:35:39 +0100 (CET) From: Pieter Donche X-X-Sender: pdon@hmacs.cmi.ua.ac.be To: Wojciech Puchar In-Reply-To: <20081106215647.A28070@wojtek.tensor.gdynia.pl> Message-ID: References: <20081106215647.A28070@wojtek.tensor.gdynia.pl> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-questions@freebsd.org Subject: Re: Hardware Raid + hot-replace failed disk X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Pieter Donche List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Nov 2008 09:35:42 -0000 On Thu, 6 Nov 2008, Wojciech Puchar wrote: >> Suppose you have a system with multiple disks managed by a >> hardware RAID controller in a RAID5 of RAID6 configuration, >> To FreeBSD it will look like e.g. a single large drive. > > what is "RAID5 of RAID6"??? RAID5 or RAID6 (sorry, typing error) >> If you want to extend your disk space by plugging in an extra >> disk, the hardware RAID controller will probably detect it and >> add it in his management, but will it be seen by FreeBSD? > FreeBSD will see larger drive. With what command can you see that FreeBSD had 'seen' it ? Or is the the bsdlabel command? Is bsdlabel a partition management program (such as GParted, Partition Magic)? > you then have to fix partition table (use bsdlabel -e) > fix c partition to be actually sized of whole drive, and then > a) add new partition(s) for new space > b) extend the size of last partition and use growfs I guess here you mean 2 alternatives: a) using the new space for new partition(s) leaving the existing as they are or b) create no new partitions but extend the last partition to include the new space, by using the growfs command ? >> How can you make the added disk-space available for FreeBSD. >> Can this be done without shutting down the system? How?? > i don't think FreeBSD can be told to reget device info from controller when > partitions of that device are mounted. but i may be wrong Hmm, man growfs says: Currently growfs CAN ONLY ENLARGE UNMOUNTED FILE SYSTEMS. DO NOT TRY ENLARGING A MOUNTED FILE SYSTEM, YOUR SYSTEM WILL PANIC AND YOU WILL NOT BE ABLE TO USE THE FILE SYSTEM ANY LONGER. If your FreeDSB only has swap and a / file system (with all users inside /usr/home) or you set up FreeBSD with a swap, /, /var and /usr filesystems (with users in /usr/home) and you want to grow a file system (e.g. /usr to give the extra space to users) (scenario b)) then, I guess, you will need to go into single-user mode and boot from CD with a FreeBSD in RAM to be able extend the (unmounted) file system /usr Can scenario a) (making new file system for new space) be done in multi-user mode, or only in single-user mode, will it need a reboot ?? Is there any document (besides the manual pages bsdlabel, growfs, ..) that describes step-by-step what to do to grow an existing file system of to add a new file system on newly added disk space ? Pieter