gmirror comments and questions (causes panic)

From: Elliot Finley (efinleywork_at_efinley.com)
Date: 11/26/05

  • Next message: Zoran Kolic: "Re: 6.0 kernel will not boot past atkbd0"
    To: <freebsd-stable@freebsd.org>, <freebsd-questions@freebsd.org>
    Date: Fri, 25 Nov 2005 22:53:23 -0700
    
    

    I'm on 6-Stable as of yesterday. I've been playing around with gmirror and
    overall I'm very impressed.

    I created a mirror with three components:

    gmirror label -v -b round-robin test twed12
    gmirror insert -v test twed13
    gmirror insert -v test twed14

    in the man page for gmirror the synopsis for the label and insert commands
    are:

    gmirror label [-hnv] [-b balance] [-s slice] name prov ...
    gmirror insert [-hiv] [-p priority] name prov ...

    which means that it's calling twed12, twed13, twed14 the providers.
    presumably test would be the consumer. But when I do a gmirror list, I get
    (shortened):

    Providers:
    1. Name: mirror/test

    Consumers:
    1. Name: twed12
    2. Name: twed13
    3. Name: twed14

    which means that it's calling twed12, twed13 and twed14 the consumers. So
    that is a little confusing. twed12 already had data on it, so I mounted it
    on /mnt and waited for 13 and 14 to finish syncing. I wanted to try using a
    disk image as a backup for a simulated data update so that I could roll back
    to the image if need be. I did a:

    gmirror remove -v test twed12

    so I could use 12 as the backup image. I made changes to the mirror and
    then:

    gmirror remove -v test twed13
    gmirror remove -v test twed14
    gmirror status

    which caused the machine to panic. I know that's not the right procedure,
    but maybe gmirror could be changed to warn against removing the last
    component of a mirror, or possibly handle it in a better way.

    I booted back up and recreated the mirror using twed12 as the first
    component, thus restoring the mirror to it's pre-upgrade state. So the
    disk-image-as-a-backup worked very well.

    I was impressed with the fact that when I rebooted in the middle of a
    gmirror syncronize, it started where it left off rather than starting over.

    so here's the big question; if I have the boot disk mirrored with gmirror,
    is it possible to remove a component of the mirror before a major upgrade
    and use it as a backup just in case the upgrade catastrophically fails. If
    so, what would be the correct procedure? This would all need to be remote
    without physical access to the machine of course.

    Thanks in advance for any info/pointers/rtfm.
    Double thanks for gmirror, it is a fine piece of software.

    Elliot

    _______________________________________________
    freebsd-stable@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-stable
    To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"


  • Next message: Zoran Kolic: "Re: 6.0 kernel will not boot past atkbd0"

    Relevant Pages

    • Re: gmirror disk fail questions...
      ... mirror/gm0 DEGRADED ad4 ... I am guessing that a failing disk is responsible for the data ... the mirror is marked clean ad there's no warnings about ... I believe the kernel hides individual labels for a gmirror volume. ...
      (freebsd-questions)
    • Re: gmirror problem on 5.3-R i386
      ... > I'm having a problem with gmirror. ... > first disk to the mirror after booting off the second drive. ... You probably destroyed your slice table here. ...
      (freebsd-questions)
    • Re: gmirror disk fail questions...
      ... I am guessing that a failing disk is responsible for the data ... the mirror is marked clean ad there's no warnings about ... To me, ad6 appears to have ... I believe the kernel hides individual labels for a gmirror volume. ...
      (freebsd-questions)
    • Re: RAID1 mirroring w/ 5.3 choices?
      ... particularly how gmirror and atacontrol relate to each other? ... fdisk-partition and bsdlabel both drives ... resynching to the other half of the mirror pair. ...
      (comp.unix.bsd.freebsd.misc)
    • gmirror comments and questions (causes panic)
      ... I created a mirror with three components: ... gmirror insert -v test twed13 ... twed12 already had data on it, ... so I could use 12 as the backup image. ...
      (freebsd-questions)