gmirror insert

Ferruccio Zamuner nonsolosoft at diff.org
Thu Dec 9 11:32:30 UTC 2010


I've a trouble restoring ad4s2 in the mirror, same operation for ad4s1 
on gm0 succeded.  I'm on FreeBSD 8.1 adm64.

Have you hint?  Following it is the log:

u1# fdisk ad6
******* Working on device /dev/ad6 *******
parameters extracted from in-core disklabel are:
cylinders=1453521 heads=16 sectors/track=63 (1008 blks/cyl)

Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=1453521 heads=16 sectors/track=63 (1008 blks/cyl)

Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
     start 63, size 251657217 (122879 Meg), flag 80 (active)
         beg: cyl 0/ head 1/ sector 1;
         end: cyl 1023/ head 15/ sector 63
The data for partition 2 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
     start 251657280, size 1048575024 (511999 Meg), flag 0
         beg: cyl 1023/ head 255/ sector 63;
         end: cyl 1023/ head 15/ sector 63
The data for partition 3 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
     start 1300232304, size 164916864 (80525 Meg), flag 0
         beg: cyl 1023/ head 255/ sector 63;
         end: cyl 1023/ head 15/ sector 63
The data for partition 4 is:
<UNUSED>

u1# gmirror forget gm1 ad4s2
u1# gmirror list gm1
Geom name: gm1
State: COMPLETE
Components: 1
Balance: split
Slice: 1048576
Flags: NONE
GenID: 0
SyncID: 2
ID: 3153972535
Providers:
1. Name: mirror/gm1
    Mediasize: 536870411776 (500G)
    Sectorsize: 512
    Mode: r1w1e1
Consumers:
1. Name: ad6s2
    Mediasize: 536870412288 (500G)
    Sectorsize: 512
    Mode: r1w1e1
    State: ACTIVE
    Priority: 0
    Flags: HARDCODED
    GenID: 0
    SyncID: 2
    ID: 3208481414

u1# fdisk -2 ad4
******* Working on device /dev/ad4 *******
parameters extracted from in-core disklabel are:
cylinders=1453521 heads=16 sectors/track=63 (1008 blks/cyl)

Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=1453521 heads=16 sectors/track=63 (1008 blks/cyl)

Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 2 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
     start 251657280, size 1048575024 (511999 Meg), flag 80 (active)
         beg: cyl 1023/ head 255/ sector 63;
         end: cyl 1023/ head 15/ sector 63
u1# gmirror insert gm1 ad4s2
gmirror: Provider ad4s2 too small.


More information about the freebsd-geom mailing list