Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Jan 2011 09:37:42 +0200
From:      "Luchesar V. ILIEV" <luchesar.iliev@gmail.com>
To:        zeus@ibs.dn.ua
Cc:        freebsd-geom@freebsd.org
Subject:   Re: "secondary GPT table is corrupt or invalid" issue again
Message-ID:  <4D2EABC6.1020201@gmail.com>
In-Reply-To: <20110111114626.GB34930@relay.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>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4D2EABC6.1020201>