From owner-freebsd-questions@FreeBSD.ORG Tue Jul 27 06:36:16 2010 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 3ECAE1065672 for ; Tue, 27 Jul 2010 06:36:16 +0000 (UTC) (envelope-from djr@pdconsec.net) Received: from ipmail05.adl6.internode.on.net (ipmail05.adl6.internode.on.net [150.101.137.143]) by mx1.freebsd.org (Postfix) with ESMTP id BFA338FC0C for ; Tue, 27 Jul 2010 06:36:15 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApsEAOEYTkyWZcBC/2dsb2JhbACgVsEwhTYEiyI Received: from goliath.pdconsec.net (HELO smtp.pdconsec.net) ([150.101.192.66]) by ipmail05.adl6.internode.on.net with SMTP; 27 Jul 2010 16:06:13 +0930 Received: from mail1.pdconsec.net ([192.168.1.41] helo=mail1.pdconsec.net) with IPv4:25 by smtp.pdconsec.net; 27 Jul 2010 16:36:10 +1000 Received: from smtp.pdconsec.net ([192.168.1.32] RDNS failed) by mail1.pdconsec.net with Microsoft SMTPSVC(6.0.3790.4675); Tue, 27 Jul 2010 16:35:12 +1000 Received: from [10.14.6.41] ([150.101.192.69] helo=[10.14.6.41]) with IPv4:10025 by smtp.pdconsec.net; 27 Jul 2010 16:36:09 +1000 Message-ID: <4C4E7E20.3020005@pdconsec.net> Date: Tue, 27 Jul 2010 16:35:12 +1000 From: David Rawling User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.4) Gecko/20100608 Thunderbird/3.1 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <4C4DDA28.4070205@identry.com> <980022A0-7623-40A5-BCDE-4909A721933D@mac.com> <4C4DF067.7000801@identry.com> <4C4DF5F1.4080109@identry.com> In-Reply-To: <4C4DF5F1.4080109@identry.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 27 Jul 2010 06:35:12.0383 (UTC) FILETIME=[DD9EC0F0:01CB2D55] Subject: Re: 1 file system, 2 drives? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Jul 2010 06:36:16 -0000 On 27/07/2010 6:54 AM, John Almberg wrote: > John Almberg wrote: >>> If you have hardware controller with RAID capabilities, using native >>> RAID is better, otherwise look towards gvinum or maybe ccd; see also: >> I've just been reading up on RAID in my Absolute FreeBSD book, and it >> occurs to me that my client has a SCSI RAID drive chassis that he is >> using stupidly... >> >> It's a 14 bay drive, and he's currently got seven 32G drives stuck in >> it, configured with RAID-0. This is the original 200G drive I was >> talking about. It's a few years old. >> >> Over the next few years, this guy is going to need lots of storage >> for his videos. >> >> After a bit of reading, I'm wondering if the best idea might be to >> toss out those 32G drives and replace them with 3 big (say, 300G) >> drives configured with RAID-5. It sounds to me like a RAID-5 array >> can be expanded by adding new drives. >> >> QUESTION: is expansion normally a matter of just plugging in a new >> drive? Is the new drive automatically grafted onto the old drives? Or >> do you have to go through a process like, backing up the data, >> plugging in the new drive, reformatting the expanded array of drives, >> and restoring the data. >> >> I don't know the brand/model of the RAID drive chassis, but the >> client thinks it can be switched to use RAID 5. I'm waiting for the >> technical details, but assuming it can handle RAID-5 for now. > Answering my own question... > > So its a HP 6402 / 128 RAID controller. From a quick skim of the > manual, it looks like the controller has to go through an 'expansion' > process when adding a new drive. This sounds time consuming, but more > or less automatic -- i.e., handled by the controller. > > Sounds like this might be the best way to go. It's been a while since I dealt with HP SCSI RAID, but ISTR that you'd need to install and configure the 3 disks as a RAID 5 set, copy the data from the 7x36GB array to the new array, (using a temporary mount point, generally, and dump | restore) switch the mount points across so that the /videos tree is the new copy, then remove the RAID0 set from the controller. You may or may not find that the RAID controller changes LUN IDs after a cold start too, so LUN 1 (new RAID 5) suddenly becomes LUN 0 on the cold start after the old RAID set is decommissioned and pulled. This is often accompanied by a heart attack on the part of the person restarting the server. After that, though, expansion is a cinch - but it will be quite slow since it needs to read and write the entire content of all disks. I'd therefore go as many spindles as you can - 3 disks, 5 disks and 9 disks are what I recall as being optimal groups for RAID 5. Also consider that you can supplement the RAIDs with the BSD tools previously mentioned. Today is 3 x 300GB. Tomorrow add another 3 x 300 (assuming IOPS is OK) and concatenate them to be a 1.8TB "disk" - 2D+P + 2D+P. Dave. -- David Rawling PD Consulting And Security Mob: +61 412 135 513 Email: djr@pdconsec.net