Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Jan 2011 19:06:11 +0200
From:      Zeus V Panchenko <zeus@ibs.dn.ua>
To:        freebsd-geom@freebsd.org
Subject:   "secondary GPT table is corrupt or invalid" issue again 
Message-ID:  <20110104170611.GA67159@relay.ibs.dn.ua>

next in thread | raw e-mail | index | archive | help
Hi,

i was unable to find clear answer and decided to ask here

the subj was asked several times but no answer i can use to get rid of
the message ... please, advice if possible what to do?

> uname -a
FreeBSD 8.1-RELEASE amd64

ada0 at ahcich0 bus 0 scbus0 target 0 lun 0
ada0: <WDC WD5000AAKS-00YGA0 12.01C02> ATA-8 SATA 2.x device
ada0: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes)
ada0: Command Queueing enabled
ada0: 476940MB (976773168 512 byte sectors: 16H 63S/T 16383C)
ada1 at ahcich1 bus 0 scbus1 target 0 lun 0
ada1: <WDC WD10EARS-00Y5B1 80.00A80> ATA-8 SATA 2.x device
ada1: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes)
ada1: Command Queueing enabled
ada1: 953869MB (1953525168 512 byte sectors: 16H 63S/T 16383C)
ada2 at ahcich2 bus 0 scbus2 target 0 lun 0
ada2: <WDC WD10EARS-00Y5B1 80.00A80> ATA-8 SATA 2.x device
ada2: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes)
ada2: Command Queueing enabled
ada2: 953869MB (1953525168 512 byte sectors: 16H 63S/T 16383C)

ada0 is system disk


ada1 and ada2 are gparted as GPT and gmirrored for the storage ...


GPT was configured this way:
1. gpart create -s gpt /dev/ada1
2. gpart add -b 2048 -s 1953521664 -t freebsd-ufs /dev/ada1
3. newfs -f 4096 -b 32768 -g 1048576 -o space -U -L STORAGE01 /dev/ada1p1

> gpart show

=>       63  976773105  ada0  MBR  (466G)
         63  976773105     1  freebsd  [active]  (466G)

=>        34  1953525101  ada1  GPT  (932G)
          34        2014        - free -  (1.0M)
        2048  1953521664     1  freebsd-ufs  (932G)
  1953523712        1423        - free -  (712K)

=>        34  1953525101  ada2  GPT  (932G)
          34        2014        - free -  (1.0M)
        2048  1953521664     1  freebsd-ufs  (932G)
  1953523712        1423        - free -  (712K)

=>        0  976773105  ada0s1  BSD  (466G)
          0    2097152       1  freebsd-ufs  (1.0G)
    2097152   33554432       2  freebsd-swap  (16G)
   35651584  629145600       4  freebsd-ufs  (300G)
  664797184  311975921       5  freebsd-ufs  (149G)



gmirror was set this way:
1. gmirror label -v -b load gm0 /dev/ada1p1
2. gmirror insert gm0 /dev/ada2p1

> gmirror list

Geom name: gm0
State: COMPLETE
Components: 2
Balance: load
Slice: 4096
Flags: NONE
GenID: 0
SyncID: 1
ID: 3484717973
Providers:
1. Name: mirror/gm0
   Mediasize: 1000203091456 (932G)
   Sectorsize: 512
   Mode: r1w1e1
Consumers:
1. Name: ada1p1
   Mediasize: 1000203091968 (932G)
   Sectorsize: 512
   Mode: r1w1e1
   State: ACTIVE
   Priority: 0
   Flags: NONE
   GenID: 0
   SyncID: 1
   ID: 3482853087
2. Name: ada2p1
   Mediasize: 1000203091968 (932G)
   Sectorsize: 512
   Mode: r1w1e1
   State: ACTIVE
   Priority: 0
   Flags: NONE
   GenID: 0
   SyncID: 1
   ID: 2645236674



while booting, i have this:

GEOM: ada1: the secondary GPT table is corrupt or invalid.
GEOM: ada1: using the primary only -- recovery suggested.
GEOM: ada2: the secondary GPT table is corrupt or invalid.
GEOM: ada2: using the primary only -- recovery suggested.
GEOM_MIRROR: Device mirror/gm0 launched (2/2).

so, if it is because of gmirror data overwritten GPT than how to fix
them?

if i need to reconfigure GPT or gmirror, than how and what, please?

if i done something wrong, please help me to see my mistake ...

-- 
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?20110104170611.GA67159>