"secondary GPT table is corrupt or invalid" issue again

Zeus V Panchenko zeus at ibs.dn.ua
Tue Jan 11 11:46:29 UTC 2011


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)


-- 
Zeus V. Panchenko
IT Dpt., IBS ltd			      	        GMT+2 (EET)


More information about the freebsd-geom mailing list