gmirror on different disks

Mel Flynn mel.flynn+fbsd.questions at mailing.thruhere.net
Tue Aug 4 00:04:34 UTC 2009


On Friday 31 July 2009 02:24:31 Grzegorz Danecki wrote:
> Hello everybody!
>
> I'm just wondering, I had gmirror with two disks:
>
> Master:  ad0 <ST3160815AS/4.AAB> Serial ATA II
> Master:  ad2 <ST3160815AS/4.AAB> Serial ATA II
>
> unfortunately ad0 failed today, leaving me with degraded array and ad0
> offline.
>
> I did
>
> # gmirror forget gm0, then shutdown, ad0 was replaced with:
>
> ad0: 152626MB <Seagate ST3160815AS 3.AAD> at ata0-master SATA300
>
> with different firmware I think.
>
> Then gmirror insert gm0 /dev/ad0
>
> (...)
> Jul 31 09:55:46 julia kernel: GEOM_MIRROR: Device gm0: rebuilding provider
> ad0 finished.
> Jul 31 09:55:46 julia kernel: GEOM_MIRROR: Device gm0: provider ad0
> activated.
>
> But the disk is a little bit smaller:
>
> 1. Name: mirror/gm0
>    Mediasize: 160040803328 (149G)
                    ^^
>    Sectorsize: 512
>    Mode: r5w5e6
> Consumers:
> 1. Name: ad2
>    Mediasize: 160041885696 (149G)
                    ^^
>    Sectorsize: 512
>    Mode: r1w1e1
>    State: ACTIVE
>    Priority: 0
>    Flags: DIRTY
>    GenID: 1
>    SyncID: 1
>    ID: 3791030614
> 2. Name: ad0
>    Mediasize: 160040803840 (149G)
                    ^^

>    Sectorsize: 512
>    Mode: r1w1e1
>    State: ACTIVE
>    Priority: 0
>    Flags: DIRTY
>    GenID: 1
>    SyncID: 1
>    ID: 2477089776
>
> # gmirror status
>       Name    Status  Components
> mirror/gm0  COMPLETE  ad2
>                       ad0

> I mean - should I make the RAID once again with exactly the same drives, or
> can I leave it as it is right now?

The mirror rescaled to the size of the smallest provider and didn't report any 
problems during sync, so you should be fine.
-- 
Mel


More information about the freebsd-questions mailing list