Gmirror - need information and help

Ken Gunderson kgunders at teamcool.net
Mon Jun 6 14:18:21 GMT 2005


On Mon, 6 Jun 2005 12:39:30 +0200
"Conrad Burger" <conrad.burger at swistgroup.com> wrote:

> Hi all 
> 
> Hope someone can help me with the following problem(s).
> 
> The scenario: 2 system and 5 disks. Freebsd 5.3-p5 
> 
> I created a 3 member gmirror mirror on system1. 
> Removed one member(disk) from system1. (Shut the system and removed disk)
> Then inserted the disk in system2 and booted the system.
> 
> Now the problem is: on system1 I have a "2 member gmirror" and on system2 I have
> a "1 member gmirror. And I can't add more members to the gmirror on system2.
> 
> System1's gmirror is in a degraded state. How do I "tell" gmirror to remove the
> "removed disk" from its configuration and change its state to COMPLETE?
> 
> What do I need to do to be able to add a member to System2's gmirror?
> 
> Below are the output of how I tried to add another member to system2's gmirror
> and the output of "gmirror list" on both systems.
> 
> Please help, I have been struggling with this problem for the last week. The
> systems need to go into production!

"man gmirror" should give you most of what you need....  Basically you
need to tell system1 to "forget" about the provider you removed and you
need to clear the metadata on that disk. The metadata is written at the
end of the disk.  diskinfo -v should tell you how many sectors you need
to skip, e.g.:

dd if=/dev/zero of=/dev/whatever bs=512 count=100 skip=99 less than the
number of sectors diskinfo -v returns.

Or maybe just put the disk backinto system1 and do a "gmirror clear"
this time before you remove it...;-)

-- 
Best regards,

Ken Gunderson

Q: Because it reverses the logical flow of conversation.
A: Why is putting a reply at the top of the message frowned upon?



More information about the freebsd-geom mailing list