2 Replies Latest reply: Sep 26, 2012 9:12 PM by 829313 RSS

    metadb create ** metadevice database replica exists on device

    829313
      hi. guys

      FD flag of metadb metadb deleted after regeneration occurs while trying the following message occurred.
      " metadevice database replica exists on device."
      Why this problem occurs?
      Let me know the solution????

      # metadb

      flags first blk block count
      FD a m uo 16 1034 /dev/dsk/c1t0d0s7
      a pc luo 16 1034 /dev/dsk/c1t4d0s7
      a pc luo 16 1034 /dev/dsk/c1t2d0s7
      a pc luo 16 1034 /dev/dsk/c1t3d0s7
      a pc luo 1050 1034 /dev/dsk/c1t4d0s7
      a pc luo 2084 1034 /dev/dsk/c1t4d0s7
      a pc luo 16 1034 /dev/dsk/c1t1d0s7
      a pc luo 1050 1034 /dev/dsk/c1t1d0s7
      a pc luo 2084 1034 /dev/dsk/c1t1d0s7
      a pc luo 1050 1034 /dev/dsk/c1t2d0s7
      a pc luo 2084 1034 /dev/dsk/c1t2d0s7

      # metastat -p
      d0 -m d5 d6 1
      d5 1 1 c1t1d0s6
      d6 1 1 c1t4d0s6
      d1 -m d7 d8 1
      d7 1 1 c1t2d0s4
      d8 1 1 c1t5d0s4
      d2 -m d4 d9 1
      d4 1 1 c1t2d0s6
      d9 1 1 c1t5d0s6
      d3 -m d12 d11 1
      d12 1 1 c1t3d0s6
      d11 1 1 c1t0d0s6

      # metadetach d3 d11
      # metaclear d11

      # metadb -df /dev/dsk/c1t0d0s7
      # metadb

      flags first blk block count
      a pc luo 16 1034 /dev/dsk/c1t4d0s7
      a pc luo 16 1034 /dev/dsk/c1t2d0s7
      a pc luo 16 1034 /dev/dsk/c1t3d0s7
      a pc luo 1050 1034 /dev/dsk/c1t4d0s7
      a pc luo 2084 1034 /dev/dsk/c1t4d0s7
      a pc luo 16 1034 /dev/dsk/c1t1d0s7
      a pc luo 1050 1034 /dev/dsk/c1t1d0s7
      a pc luo 2084 1034 /dev/dsk/c1t1d0s7
      a pc luo 1050 1034 /dev/dsk/c1t2d0s7
      a pc luo 2084 1034 /dev/dsk/c1t2d0s7

      # metadb -afc 3 /dev/dsk/c1t0d0s7
      metadb: testdb: metadevice database replica exists on device

      # metadb -a /dev/dsk/c1t0d0s7
      metadb: testdb: metadevice database replica exists on device

      ???
        • 1. Re: metadb create ** metadevice database replica exists on device
          Nik
          Hi.

          You can try:
          prtvtoc /dev/dsk/c1t0d0s7
          ( Check that slice s7 not start from sector 0 )
          dd if=/dev/zero of=/dev/dsk/c1t0d0s7
          metadb -a /dev/dsk/c1t0d0s7

          Regards.
          • 2. Re: metadb create ** metadevice database replica exists on device
            829313
            hey, guys

            I'm Tested, but the result is the same.
            help me anyone ????

            **** Test Result *******
            #
            # prtvtoc /dev/rdsk/c1t0d0s7
            * /dev/rdsk/c1t0d0s7 partition map
            *
            * Dimensions:
            * 512 bytes/sector
            * 424 sectors/track
            * 24 tracks/cylinder
            * 10176 sectors/cylinder
            * 14089 cylinders
            * 14087 accessible cylinders
            *
            * Flags:
            * 1: unmountable
            * 10: read-only
            *
            * First Sector Last
            * Partition Tag Flags Sector Count Sector Mount Directory
            0 2 00 0 20972736 20972735 /
            1 3 01 20972736 8395200 29367935
            2 5 00 0 143349312 143349311
            6 4 00 29367936 113910144 143278079
            7 0 00 143278080 71232 143349311
            #
            #
            # dd if=/dev/zero of=/dev/rdsk/c1t0d0s7
            dd: unexpected short write, wrote 0 bytes, expected 512
            71233+0 records in
            71233+0 records out

            # metadb -afc 3 /dev/rdsk/c1t0d0s7
            metadb: npdb1: metadevice database replica exists on device

            #