From owner-freebsd-questions@FreeBSD.ORG Sat Oct 30 09:28:15 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 B59F2106566C for ; Sat, 30 Oct 2010 09:28:15 +0000 (UTC) (envelope-from kraduk@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 623538FC14 for ; Sat, 30 Oct 2010 09:28:14 +0000 (UTC) Received: by vws12 with SMTP id 12so1069729vws.13 for ; Sat, 30 Oct 2010 02:28:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=imWNRdWfL91Y/Zto1Ld/X3TvvwPNVANkwmyga/kaOUY=; b=OfCIT8TXj1uau2k02YHUwjP8e0S22wQnhKHmPCg+hHptkXOmC0lEqhnmMSTWD9BpmV +/1oeD2Fq1J243gY5O31UQJk2N8LhtRbMNuOAxpQhgHhAV/vxIEqZP/MxwX9JCrttOpe cUhalGQJVAFoIAjA4dNmac0JbrZyL2MTMV42Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=tUKh2pQL0GPLPmneToF28f2sQZ+BdhTaAE4LK4jehXNSSlewVbWmMwVhvPOipEsoGX TMdh1KaoCJTwK4CCChvHpdgai8p23J6HQr7FqrNL0xRKg89q1W5iLT5fLPlpTwQNV4Ky T+bDt6+ii3fHI114ox+eVDAEjoqmOolVqm1ss= MIME-Version: 1.0 Received: by 10.224.61.9 with SMTP id r9mr6110482qah.1.1288430894442; Sat, 30 Oct 2010 02:28:14 -0700 (PDT) Received: by 10.229.42.12 with HTTP; Sat, 30 Oct 2010 02:28:14 -0700 (PDT) In-Reply-To: References: Date: Sat, 30 Oct 2010 10:28:14 +0100 Message-ID: From: krad To: Jerrin Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Adam Vande More , freebsd-questions@freebsd.org Subject: Re: Moving to RAID1 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: Sat, 30 Oct 2010 09:28:15 -0000 On 30 October 2010 08:40, Jerrin wrote: > Hi, > > I get this error now when trying to insert the disk > > # gmirror insert gm0 /dev/ad14 > gmirror: Provider ad14 too small. > > found this error is being mentioned before on the mailing lists. > hard disks are of the same size.couldn't find a solution for this one. > Any way to fix this? > > Thank you > Rihaz > > > > > > On Fri, Oct 29, 2010 at 8:49 PM, Adam Vande More >wrote: > > > On Fri, Oct 29, 2010 at 3:35 PM, Jerrin wrote: > > > >> i have a freebsd(7.3) dedicated server with one hard disk.It have > >> partitions > >> for root and swap only.I want to setup RAID1 by adding one more hard > >> disk.i > >> found in freebsd handbook about setting up RAID1 > >> http://www.freebsd.org/doc/handbook/geom-mirror.html .I only have > remote > >> access to the server.Will i lose data by doing it? > > > > > > If you do it correct way you will not. It's possible if you make a > mistake > > and do something like mirror the wrong way you would. > > > > > >> Anyways to make sure in > >> the procedure of setting up raid1 that i shouldn't have to go single > user > >> mode or change something at the boot prompt when rebooting after this is > >> setup. > >> > > > > Again if you do it incorrectly you may need to resort to these > procedures. > > However if you follow the handbook accurately you should be fine. > > > > -- > > Adam Vande More > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" > not all disks are equal unfortunately, even if they say they are. One of the drives may be a few blocks smaller but thats enough. What I would do is slice up the smaller disk as you see fit. Create the mirror with only one disk/slice in it. newfs and mount the new mirror up Copy all the data from the bigger disk to the smaller one (rsync -aP /big/ /small/ would do the job nicely). Sanitize what you have done 8) umount the bigger disk slice up the same as the 1st disk add to the mirror (should add as its bigger) This is all assuming the filesystem(s) you are doing isnt the root fs. If it is you are going to have to make a trip with some kind of live cd/usb stick. If you are lucky you might be able to use any remote management card on the system eg dell drac. However whichever way you do it it will involve downtime 8(