From owner-freebsd-geom@FreeBSD.ORG Thu Jan 13 07:37:46 2011 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 D25BA1065672 for ; Thu, 13 Jan 2011 07:37:46 +0000 (UTC) (envelope-from luchesar.iliev@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 58EB48FC08 for ; Thu, 13 Jan 2011 07:37:45 +0000 (UTC) Received: by fxm16 with SMTP id 16so1471296fxm.13 for ; Wed, 12 Jan 2011 23:37:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:disposition-notification-to:date :from:organization:user-agent:mime-version:to:cc:subject:references :in-reply-to:x-enigmail-version:openpgp:content-type :content-transfer-encoding; bh=NhA9Aa+JiHx3a1LRYajRySduMLWudquAx83VgE7SecQ=; b=DlIHCW5Cs9BFe7QeDBSQoqp6G+FRATFH3Npcf8ar9Dnd5F49EhoKGYMKnJXpIbyueE H8a8DHWc8KliNSTx+opahbmAZv5g4X3vz0y9cN3oPhJAbhlQtZmxAJdKL/Vl9YutcKjh mNXh2ol4ZxzWK8kRRm1bz1XvanedffNuK2qWM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:disposition-notification-to:date:from:organization :user-agent:mime-version:to:cc:subject:references:in-reply-to :x-enigmail-version:openpgp:content-type:content-transfer-encoding; b=X1mUR+hlfpiOqzxC8f5uUuIA8JM1+Oj6b8A+TXHgL4+ap+EridZLaOsFSZV+cAjS2L eZRPTzXMWlXZe5JFIUWOQ2C31NMXKN8RhhoUp0tD4YNFbJRCKmKlD2Wrr22mo7KacZgq 4FBq51lcwisTcLlIjpzS4W22og9c+KsfMM8/8= Received: by 10.223.79.6 with SMTP id n6mr1981929fak.122.1294904265180; Wed, 12 Jan 2011 23:37:45 -0800 (PST) Received: from [79.124.93.41] ([79.124.93.41]) by mx.google.com with ESMTPS id z1sm509803fau.21.2011.01.12.23.37.43 (version=SSLv3 cipher=RC4-MD5); Wed, 12 Jan 2011 23:37:44 -0800 (PST) Message-ID: <4D2EABC6.1020201@gmail.com> Date: Thu, 13 Jan 2011 09:37:42 +0200 From: "Luchesar V. ILIEV" Organization: Ideaconsult Ltd. User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.13) Gecko/20101229 Lightning/1.0b2 Thunderbird/3.1.7 MIME-Version: 1.0 To: zeus@ibs.dn.ua References: <20110104170611.GA67159@relay.ibs.dn.ua> <4D28509D.607@yandex.ru> <20110108223747.GA66627@relay.ibs.dn.ua> <4D28FB15.9090907@gmail.com> <20110109112027.GD66627@relay.ibs.dn.ua> <4D29B7BF.3070706@gmail.com> <20110111114626.GB34930@relay.ibs.dn.ua> In-Reply-To: <20110111114626.GB34930@relay.ibs.dn.ua> X-Enigmail-Version: 1.1.2 OpenPGP: id=9A1FEEFF; url=https://cert.acad.bg/pgp-keys/ Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: freebsd-geom@freebsd.org Subject: Re: "secondary GPT table is corrupt or invalid" issue again 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: Thu, 13 Jan 2011 07:37:47 -0000 On 01/11/2011 13:46, Zeus V Panchenko wrote: > Thank much everybody for help! > > now i'm happy with my healthy GPT gmirror! :) > > here the story (to be honest, Luchesar, it is the scheme offered by > you, and i say thank to you for it. i wonder why it is not put in > man pages, handbook or some tutorial for gpart/gmirror): > > 1. gmirror stop gm0 > and checked if i can mount the FS on /dev/ada1p1 w/o problems > > 2. gmirror clear -v ada1p1 ada2p1 > > 3. gpart delete -i 1 ada2 > > 4. gpart destroy ada2 > i wasn't able to destroy a GPT scheme untill first deleted > all existing partitions (gpart in 8.1-RELEASE has no option -F) > > 5. gpart create -s gpt ada2 > > 6. gpart add -b 2048 -s 1953521664 -t freebsd-ufs -i 1 \ > -l labeldisk2 ada2 > > 7. gmirror label -v -h -b load gm0 gpt/labeldisk2 > > 8. rsync -avH /src/ /dst/ > but i have to admit thet rsync was much slower than tar ... it was > about 8-9 hours for 750G of data to copy > > 9. gpart delete -i 1 ada1 > > 10. gpart destroy ada1 > i wasn't able to destroy a GPT scheme untill first deleted > all existing partitions (gpart in 8.1-RELEASE has no option -F) > > 11. gpart create -s gpt ada1 > > 12. gpart add -b 2048 -s 1953521664 -t freebsd-ufs -i 1 \ > -l labeldisk1 ada1 > > 13. gmirror insert -v -h -p 1 gm0 gpt/labeldisk1 > > 14. gmirror configure -p 2 gm0 gpt/labeldisk2 > for me it was possible only after reboot (do not know why) > Hi Zeus, I'm really glad that you've successfully solved your problem. Concerning the -F option to gpart destroy, you're indeed correct. Now I see that it has been merged in stable/8 at rr213684, 214975 and 215940 (and I follow that branch on my desktop, which I used for reference). As for rsync, I'm afraid I don't really have that much experience to comment. A very crude calculation gives about 25 MB/s transfer, which does seem on the low side, though not excessively so. I see reports on the Internet of average raw transfer speeds of about 80 MB/s for the WD10EARS, but there are indeed too many factors that might affect performance, so it's difficult to make comparisons. Still, it's interesting why tar would work much faster than rsync... Probably someone else could provide an explanation. Cheers, Luchesar