SUMMARY: Unable to create the metadb due to overlapping

From: Plant, Dean <dean.plant_at_roke.co.uk>
Date: Mon May 12 2008 - 11:31:16 EDT
Thanks to Gary Paveza & Chris Ruhnke for the replies. I had checked the
partitioning before posting to the list.

Special thanks to Tobias Nutt who hit the nail on the head with the
below reply.

Important Note: The vendor string has to be 8 characters and the product
string 16. So Tobias's reply shows

sd-config-list=
         "DEC     HSG80           ", "workaround";
             ^^^^^     ^^^^^^^^^^^
            5 blanks    11 blanks

In my case the correct line was

sd-config-list=
         "SEAGATE ST373455LC      ", "workaround";
                 ^          ^^^^^^
              1 blank      6 blanks


------------------------------

Since Sol8 (rev.NN) sds use IDs to identify disks and this dosnt
work sometimes with NON-SUN disks
There are some dokuments inside sunsolve how to add an ID to these
drives.

I've got some hints to solve this problem:

1)
Enter the following two lines into the /kernel/drv/md.conf file
imediately
before the "Begin MDD Database" line:

      md_devid_destroy=1;
      md_keep_repl_state=1;

These lines only disable the DevID (relocation) information.
No data is removed or destroyed.

A reboot is needed to complete the procedure.


2)
  format -e ; then select scsi, then inquiry.
         Vendor:                     DEC
         Product:                    HSG80
         Revision:                   V86F
         Removable media:            no
         Device type:                0
         ISO version:                0
         ECMA version:               0
         ANSI version:               2
         Async event notification:   no
         Terminate i/o process msg:  no
         Response data format:       2
         Additional length:          247
         Relative addressing:        no
         32 bit transfers:           no
         16 bit transfers:           yes
         Synchronous transfers:      yes
         Linked commands:            no
         Command queueing:           yes
         Soft reset option:          no

Add an entry in the file '/kernel/drv/sd.conf'.

In general, the entry will be:

     sd-config-list=
              "vendor  product         ", "anystring";
      anystring=1,0x8,0,0,0,0,0;

here is it:
sd-config-list=
         "DEC     HSG80           ", "workaround";
             ^^^^^     ^^^^^^^^^^^
            5 blanks    11 blanks



have a look at the blanks!!!
reboot


everything should be fine



-----Original Message-----
From: Plant, Dean
Sent: 12 May 2008 11:10
To: 'sunmanagers@sunmanagers.org'
Subject: Unable to create the metadb due to overlapping


I have had to replace two system disks and am now trying to rebuild the
mirror. I am unable to add the metadbs to both disks, which I think is
down to the SCSI disks having the same device id as shown below. Is
there a way of changing the device id of a disk drive?

Solaris 10 3/05 SPARC on Sun v240 with non Sun hard drives.

# iostat -iE
sd0       Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Vendor: SEAGATE  Product: ST373455LC       Revision: 0003 Device Id:
id1,sd@n5000000000000000
Size: 73.35GB <73347749888 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 0 Predictive Failure Analysis: 0
sd1       Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Vendor: SEAGATE  Product: ST373455LC       Revision: 0003 Device Id:
id1,sd@n5000000000000000
Size: 73.35GB <73347749888 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0

# metadb
        flags           first blk       block count
     a        u         16              8192
/dev/dsk/c1t1d0s7
     a        u         8208            8192
/dev/dsk/c1t1d0s7
     a        u         16400           8192
/dev/dsk/c1t1d0s7
# metadb -a -f -c3 /dev/dsk/c1t0d0s7
metadb: myhost: c1t0d0s7: overlaps with device in metadevice state
database

# cat /etc/lvm/mddb.cf
#metadevice database location file do not hand edit
#driver minor_t daddr_t device id       checksum
sd      15      16      id1,sd@n5000000000000000/h      -1815
sd      15      8208    id1,sd@n5000000000000000/h      -10007
sd      15      16400   id1,sd@n5000000000000000/h      -18199


Thanks

Dean.
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Mon May 12 11:32:17 2008

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:44:11 EST