Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Sep 2009 13:40:40 +0100
From:      krad <kraduk@googlemail.com>
To:        Robin Becker <robin@reportlab.com>
Cc:        Adam Vande More <amvandemore@gmail.com>, freebsd-questions@freebsd.org
Subject:   Re: fix remote degraded gmirror
Message-ID:  <d36406630909300540s45ed96dcg1e1476a4cbfcf6d@mail.gmail.com>
In-Reply-To: <4AC326DA.1070005@chamonix.reportlab.co.uk>
References:  <4AC07E69.30800@chamonix.reportlab.co.uk> <6201873e0909280710n2a5fc7beo99706e1b87080f73@mail.gmail.com> <4AC0D9CF.6000309@chamonix.reportlab.co.uk> <6201873e0909281056m1660351arc38c5faa975fef02@mail.gmail.com> <4AC326DA.1070005@chamonix.reportlab.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
2009/9/30 Robin Becker <robin@reportlab.com>

> .........
>
>>
>> a simple
>>
>> dd if=/dev/zero of=/dev/adX bs=1M count=1
>>
>> would fix that if nothing else
>>
>> if there's was no existing label, there is nothing to do except gmirror
>> man
>> instructions.  Gmirror is block level mirroring which why no other steps
>> are
>> needed.
>>
>>  well now I really need advice, the data centre guy successfully inserted
> another disk in the right place and it appears to be the same model.
> However, smartctl -a /dev/ad4 seems to show a number of errors and many of
> the indicators are prefail or old_age.
>
> In addition the disk doesn't have exactly the same length so when I tried
> to insert gmirror complains that it is too small.
>
> What are my options?
> --
> Robin Becker
>
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "
> freebsd-questions-unsubscribe@freebsd.org"
>

1st thing sure up what you have.

create another mirror, partition, newfs it up and rsync the the contents of
the active drive over to it.

Keep the rsync every 10 minutes or so depeneding on how much data you have
and what impact it has on system resources

You then have two options

boot off the new drive, destroy the gmirror on the old drive and add it to
the new mirror on the old drive


or

buy another new drive, Make sure its bigger this time. Add it to the box and
add it the the old gmirror

you can then leave the 1st new drive in there potentially and have it as a
hot back



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