Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Jan 2011 13:20:27 +0200
From:      Zeus V Panchenko <zeus@ibs.dn.ua>
To:        "Luchesar V. ILIEV" <luchesar.iliev@gmail.com>
Cc:        freebsd-geom@freebsd.org
Subject:   Re: "secondary GPT table is corrupt or invalid" issue again
Message-ID:  <20110109112027.GD66627@relay.ibs.dn.ua>
In-Reply-To: <4D28FB15.9090907@gmail.com>
References:  <20110104170611.GA67159@relay.ibs.dn.ua> <4D28509D.607@yandex.ru> <20110108223747.GA66627@relay.ibs.dn.ua> <4D28FB15.9090907@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
and again ... just to be sure i understand all correctly ...  

now i have two disks in gmirror ... to get rid of the secondary table
corruption for my working gmirror (with mirror master ada1)

      Name    Status  Components
mirror/gm0  COMPLETE  ada1p1
                      ada2p1

i decided to destroy second (ada2) disk GPT and gmirror data, create
GPT for it (ada2) from scratch, copy data to it from gmirror (gm0),
destroy the mirror, create the mirror with second (ada2) disk as
master, recreate GPT for first (ada1) disk and insert it to the mirror
as secondary disk:

 1. gmirror remove gm0 ada2p1
 2. gmirror clear ada2p1
 3. gpart destroy ada2
 4. gpart create -s gpt /dev/ada2
 5. gpart add -b 2048 -s 1953521664 -t freebsd-ufs -i 1 -l labeldisk2 /dev/ada2
 6. newfs -f 4096 -b 32768 -g 1048576 -o space -U -L labeldisk2 /dev/ada2p1
 7. tar -cf - -C MNTPOIN_gm0 . | tar -xpf - -C MNTPOINT_ada2p1
 8. gmirror stop gm0 
 9. gpart destroy ada1
10. gpart create -s gpt /dev/ada1
11. gpart add -b 2048 -s 1953521664 -t freebsd-ufs -i 1 -l labeldisk1 /dev/ada1
12. newfs -f 4096 -b 32768 -g 1048576 -o space -U -L labeldisk1 /dev/ada1p1
13. gmirror label -v -h -b load gm0 gpt/labeldisk2
14. gmirror insert -v -h -p 1 gm0 gpt/labeldisk1

i think it is possible to ignore p.12

so, is it correct, any corrections/amendations to the algorythm?
-- 
Zeus V. Panchenko
IT Dpt., IBS ltd			      	        GMT+2 (EET)



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