Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 31 Jul 2009 12:24:31 +0200
From:      Grzegorz Danecki <g.danecki@gmail.com>
To:        questions@freebsd.org
Subject:   gmirror on different disks
Message-ID:  <41b95770907310324j397b5810v6793c9c314f8ce61@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
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

so, it looks fine.

Can I expect any problems now because of different sizes? Any problems when
RAID will be almost full?
I mean - should I make the RAID once again with exactly the same drives, or
can I leave it as it is right now?

Thanks in advance!

-- 
Grzegorz Danecki



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?41b95770907310324j397b5810v6793c9c314f8ce61>