gstripe/gpart problems.

Daniel Braniss danny at cs.huji.ac.il
Tue Jan 4 14:21:34 UTC 2011


Hi,
I have 2 ada disks striped:

# gstripe list
Geom name: s1
State: UP
Status: Total=2, Online=2
Type: AUTOMATIC
Stripesize: 65536
ID: 2442772675
Providers:
1. Name: stripe/s1
   Mediasize: 1000215674880 (932G)
   Sectorsize: 512
   Stripesize: 65536
   Stripeoffset: 0
   Mode: r0w0e0
Consumers:
1. Name: ada0
   Mediasize: 500107862016 (466G)
   Sectorsize: 512
   Mode: r0w0e0
   Number: 0
2. Name: ada1
   Mediasize: 500107862016 (466G)
   Sectorsize: 512
   Mode: r0w0e0
   Number: 1

boot complains:

GEOM_STRIPE: Device s1 created (id=2442772675).
GEOM_STRIPE: Disk ada0 attached to s1.
GEOM: ada0: corrupt or invalid GPT detected.
GEOM: ada0: GPT rejected -- may not be recoverable.
GEOM_STRIPE: Disk ada1 attached to s1.
GEOM_STRIPE: Device s1 activated.

# gpart show
=>        34  1953546173  stripe/s1  GPT  (932G)
          34         128          1  freebsd-boot  (64K)
         162  1953546045             - free -  (932G)
# gpart show
=>        34  1953546173  stripe/s1  GPT  (932G)
          34         128          1  freebsd-boot  (64K)
         162  1953546045             - free -  (932G)

# gpart add -t freebsd-ufs -s 20g stripe/s1
GEOM: ada0: corrupt or invalid GPT detected.
GEOM: ada0: GPT rejected -- may not be recoverable.
stripe/s1p2 added
# gpart show
=>        34  1953546173  stripe/s1  GPT  (932G)
          34         128          1  freebsd-boot  (64K)
         162    41943040          2  freebsd-ufs  (20G)
    41943202  1911603005             - free -  (912G)

if I go the MBR road, all seems ok, but as soon as I try to write
the boot block (boot0cfg -B /dev/stripe/s1) again the kernel
starts to complain about corrupted GEOM too.

any ideas?
thanks,
	danny




More information about the freebsd-stable mailing list