Problem with LVM & disk mirroring

From: Brent Bailey (mrb_at_bmyster.com)
Date: 09/29/04

  • Next message: Adams, Jonathan K. [C]: "how to read kernel dump"
    Date: Wed, 29 Sep 2004 08:31:42 -0400 (EDT)
    To: sunmanagers@sunmanagers.org
    
    

    Hello,

    I've setup Disk Mirroring on a V240 on solaris 9 . At this point all
    slices seem to be mirrored with the exception of one.

    When I try to mount this slice it gives the following error.

    "phoenix:/usr/home/bbailey#mount /metro
    mount: /dev/md/dsk/d6 is not this fstype."

    My /etc/vfstab looks like:

    #device device mount FS fsck mount mount
    #to mount to fsck point type pass at boot
    options
    #
    fd - /dev/fd fd - no -
    /proc - /proc proc - no -
    /dev/md/dsk/d0 - - swap - no -
    /dev/md/dsk/d1 /dev/md/rdsk/d1 / ufs 1 no -
    /dev/md/dsk/d4 /dev/md/rdsk/d4 /usr ufs 1 no -
    /dev/md/dsk/d3 /dev/md/rdsk/d3 /var ufs 1 no -
    /dev/md/dsk/d6 /dev/md/rdsk/d6 /metro ufs 2 no -
    swap - /tmp tmpfs - yes -

    However I can mount the slice this way:
    mount /dev/dsk/c1t0d0s5 /metro

    Also when I try to attach the second half of that slices mirror I get the
    following

    phoenix:/usr/home/bbailey#metattach d6 d40
    metattach: phoenix.metrocast.net: d40: invalid unit

    I think I might have messed up the /etc/lvm/md.tab config
    It looks like so.

    # Swap
    d10 1 1 c1t0d0s0
    d20 1 1 c1t1d0s0
    d0 -m d10

    # Root
    d11 1 1 c1t0d0s1
    d21 1 1 c1t1d0s1
    d1 -m d11

    # Var
    d13 1 1 c1t0d0s3
    d23 1 1 c1t1d0s3
    d3 -m d13

    # Usr
    d14 1 1 c1t0d0s4
    d24 1 1 c1t1d0s4
    d4 -m d14

    # Metro
    d30 1 1 c1t0d0s5
    d40 1 1 c1t1d0s5
    d6 -m d30 d40 <--- I think this is what screwed things up by having
    d40 there ...

    I have the following in the metastat output

    phoenix:/usr/home/bbailey#metastat
    d4: Mirror
        Submirror 0: d14
          State: Okay
        Submirror 1: d24
          State: Okay
        Pass: 1
        Read option: roundrobin (default)
        Write option: parallel (default)
        Size: 20974140 blocks (10 GB)

    d14: Submirror of d4
        State: Okay
        Size: 20974140 blocks (10 GB)
        Stripe 0:
            Device Start Block Dbase State Reloc Hot Spare
            c1t0d0s4 0 No Okay No

    d24: Submirror of d4
        State: Okay
        Size: 20974140 blocks (10 GB)
        Stripe 0:
            Device Start Block Dbase State Reloc Hot Spare
            c1t1d0s4 0 No Okay No

    d3: Mirror
        Submirror 0: d13
          State: Okay
        Submirror 1: d23
          State: Okay
        Pass: 1
        Read option: roundrobin (default)
        Write option: parallel (default)
        Size: 8389656 blocks (4.0 GB)

    d13: Submirror of d3
        State: Okay
        Size: 8389656 blocks (4.0 GB)
        Stripe 0:
            Device Start Block Dbase State Reloc Hot Spare
            c1t0d0s3 0 No Okay No

    d23: Submirror of d3
        State: Okay
        Size: 8389656 blocks (4.0 GB)
        Stripe 0:
            Device Start Block Dbase State Reloc Hot Spare
            c1t1d0s3 0 No Okay No

    d1: Mirror
        Submirror 0: d11
          State: Okay
        Submirror 1: d21
          State: Okay
        Pass: 1
        Read option: roundrobin (default)
        Write option: parallel (default)
        Size: 2097414 blocks (1.0 GB)

    d11: Submirror of d1
        State: Okay
        Size: 2097414 blocks (1.0 GB)
        Stripe 0:
            Device Start Block Dbase State Reloc Hot Spare
            c1t0d0s1 0 No Okay No

    d21: Submirror of d1
        State: Okay
        Size: 2097414 blocks (1.0 GB)
        Stripe 0:
            Device Start Block Dbase State Reloc Hot Spare
            c1t1d0s1 0 No Okay No

    d0: Mirror
        Submirror 0: d10
          State: Okay
        Submirror 1: d20
          State: Okay
        Pass: 1
        Read option: roundrobin (default)
        Write option: parallel (default)
        Size: 2097414 blocks (1.0 GB)

    d10: Submirror of d0
        State: Okay
        Size: 2097414 blocks (1.0 GB)
        Stripe 0:
            Device Start Block Dbase State Reloc Hot Spare
            c1t0d0s0 0 No Okay No

    d20: Submirror of d0
        State: Okay
        Size: 2097414 blocks (1.0 GB)
        Stripe 0:
            Device Start Block Dbase State Reloc Hot Spare
            c1t1d0s0 0 No Okay No

    d6: Mirror
        Submirror 0: d30
          State: Okay
        Submirror 1: d40
          State: Okay
        Pass: 1
        Read option: roundrobin (default)
        Write option: parallel (default)
        Size: 37331658 blocks (17 GB)

    d30: Submirror of d6
        State: Okay
        Size: 37331658 blocks (17 GB)
        Stripe 0:
            Device Start Block Dbase State Reloc Hot Spare
            c1t0d0s5 0 No Okay No

    d40: Submirror of d6
        State: Okay
        Size: 37331658 blocks (17 GB)
        Stripe 0:
            Device Start Block Dbase State Reloc Hot Spare
            c1t1d0s5 0 No Okay No

    Device Relocation Information:
    Device Reloc Device ID
    c1t1d0 No -
    c1t0d0 No -

    IS there a way to correct this without destroying the work ive already
    done? Any help you may be able to give is greatly appreciated.

    Thank you
    Brent Bailey
    _______________________________________________
    sunmanagers mailing list
    sunmanagers@sunmanagers.org
    http://www.sunmanagers.org/mailman/listinfo/sunmanagers


  • Next message: Adams, Jonathan K. [C]: "how to read kernel dump"

    Relevant Pages