From owner-freebsd-geom@FreeBSD.ORG Wed Sep 8 13:47:24 2010 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6028910656DE for ; Wed, 8 Sep 2010 13:47:24 +0000 (UTC) (envelope-from gcubfg-freebsd-geom@m.gmane.org) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mx1.freebsd.org (Postfix) with ESMTP id 15E9A8FC15 for ; Wed, 8 Sep 2010 13:47:24 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OtKzi-0000Av-EX for freebsd-geom@freebsd.org; Wed, 08 Sep 2010 15:47:22 +0200 Received: from lara.cc.fer.hr ([161.53.72.113]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 08 Sep 2010 15:47:22 +0200 Received: from ivoras by lara.cc.fer.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 08 Sep 2010 15:47:22 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-geom@freebsd.org From: Ivan Voras Date: Wed, 08 Sep 2010 15:47:12 +0200 Lines: 57 Message-ID: References: <20100908122209.GA2669@relay.ibs.dn.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: lara.cc.fer.hr User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.1.9) Gecko/20100518 Thunderbird/3.0.4 In-Reply-To: <20100908122209.GA2669@relay.ibs.dn.ua> X-Enigmail-Version: 1.0.1 Subject: Re: gmirror: how to use unused space after hdd-s upgrade X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Sep 2010 13:47:24 -0000 On 09/08/10 14:22, Zeus V Panchenko wrote: > #> gmirror list > > Geom name: gm0 > State: COMPLETE > Components: 2 > Balance: load > Slice: 4096 > Flags: NONE > GenID: 1 > SyncID: 5 > ID: 3265418851 > Providers: > 1. Name: mirror/gm0 > Mediasize: 251000192512 (234G) > Sectorsize: 512 > Mode: r5w5e14 > Consumers: > 1. Name: ada1 > Mediasize: 251000193024 (234G) > Sectorsize: 512 > Mode: r1w1e1 > State: ACTIVE > Priority: 0 > Flags: DIRTY > GenID: 1 > SyncID: 5 > ID: 3507101685 > 2. Name: ada0 > Mediasize: 500107862016 (466G) > Sectorsize: 512 > Mode: r1w1e1 > State: ACTIVE > Priority: 0 > Flags: DIRTY > GenID: 1 > SyncID: 5 > ID: 2360533566 > > i want to upgrade consumer ada1 to the same size/geometry as ada0 and > to extend /dev/mirror/gm0s1f to use all rest available unused space ... If by "upgrade" you mean replace it with a disk of the same size as the other one then yes, it can be done that way. If you mean change the partition table on either of the drive so it's out of sync with the other drive then no, mirrors don't work that way. > so, how can i do that correct way, please? In theory, you *could* mirror the whole ada1 to one partition of ada0 and use the rest of space on ada0 for a second partition in the same partition table, GEOM supports such gimmickry, but that would make the drive unbootable.