Re: gmirror challenge

2008-01-21 Thread Jason Morgan
On Mon, Jan 21, 2008 at 05:35:46PM -0800, Jeff Pflueger wrote:
> 
> > Hey Jeff,
> >
> > Try:
> >
> > gmirror forget ad6s1
> >
> > >From gmirror(8):
> >
> > remove  Remove the given component(s) from the mirror and clear meta-
> > data on it.
> >
> > and futher on:
> >
> > One disk failed.  Replace it with a brand new one:
> >
> >gmirror forget data
> >gmirror insert data da1
> >
> >
> > I had a drive do something similar --- the system wouldn't crash, but
> > a drive just refused to be rebuilt. I used `forget' and it worked like
> > a charm.
> >
> > ~Jason
> >   
> Thanks for that!
> turns out that if I rebuild a mirror once booted from cd via:
> gmirror label -v -b load gm0s1 /dev/ad4s1
> mount /dev/mirror/gm0s1 /mnt
> 
> then I disconnected ad6 and booted from ad4. Once booted, the disk was
> very busy for a long time and now it seems to be working fine.
> 
> However, ad6...
> when I have booted from CD I can't gmirror clean ad6 without getting the
> message about
> 
> "Can't clear metadata on ad6s1: Invalid argument. Not fully done."
> 
> I suspect that something is either mechanically wrong (less likely) or 
> somehow corrupted on ad6...
> 
> How can I wipe ad6 so that I can now try to insert it into the new mirror?

To completely wipe the drive? Try:

# dd if=/dev/zero of=/dev/ad6 bs=512

That will zero out the *whole* drive, nothing will be left. You will
also need to make sure you do

# gmirror forget ad6

first; otherwise, I think gmirror will expect to find metadata on the
drive. Read the man page carefully to make sure you are taking the
steps in the right order.

Good luck,
~Jason
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: gmirror challenge

2008-01-21 Thread Jason Morgan
On Mon, Jan 21, 2008 at 03:41:16PM -0800, Jeff Pflueger wrote:
> I have a server and am using gmirror to mirror two disks.
> 
> The intent was to double my security...but my experience has been that
> it has generally doubled the amount of time that the server goes down!
> 
> gm0s1 is the name of the mirror. The mirror is Freebsd's boot source.
> ad4s1 is one provider
> ad6s1 is another provider
> 
> problems arose after a power outage.
> gmirror would work furiously at rebuilding ad4s1 to no avail and
> eventually I'd get an error like "GMIRROR provider gm0s1 destroyed" and
> the server would go down. I could reboot and do a little from within the
> system before this would happen again.
> 
> So I booted FreeBSD from disk, went into FixIt mode from sysinstall,
> then selected the cd/dvd option and then:
> chroot /dist
> mount_devfs devfs /dev
> kldload geom_mirror
> 
> and then gmirror clear ad4s1
> (no problem, that worked) - but, unfortunately I am unable to boot off
> of ad4 when ad6 has its SATA cable unplugged - I think that the drive is
> hosed/corrupted.
> 
> but, here's another problem:
> gmirror clear ad6s1 gives me this error:
> "Can't clear metadata on ad6s1: Invalid argument. Not fully done."
> 
> So without the metadata cleared on ad6s1, I can't boot from it
> and I can't boot from ad4s1 because I suspect that it is hosed...
> 
> anybody have any suggestions on how to clear the metadata of ad6s1 so I
> can boot from it without it going into gmirror and being unhappy?
> 
> Thanks for any help!
> 
> Jeff

Hey Jeff,

Try:

gmirror forget ad6s1

>From gmirror(8):

remove  Remove the given component(s) from the mirror and clear meta-
data on it.

and futher on:

One disk failed.  Replace it with a brand new one:

   gmirror forget data
   gmirror insert data da1


I had a drive do something similar --- the system wouldn't crash, but
a drive just refused to be rebuilt. I used `forget' and it worked like
a charm.

~Jason


> 
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"