This discussion is archived
3 Replies Latest reply: Aug 8, 2011 9:49 AM by Nik RSS

Disk needs maintenance - metasync required ??? - now getting Invalid VTOC !

856019 Newbie
Currently Being Moderated
Hi there,

Can someone advise me on the following please.
I'm running solaris 5.8
I have a failed disk on a 3300 storedge array....

(extract from messages file.......)

c3t11d0 Soft Errors: 703 Hard Errors: 570 Transport Errors: 0
Vendor: SEAGATE Product: ST336607LSUN36G Revision: 0707 Serial No: 3JAX0Y8Q00007420
Size: 36.42GB <36418595328 bytes>
Media Error: 569 Device Not Ready: 0 No Device: 1 Recoverable: 703
Illegal Request: 0 Predictive Failure Analysis: 1

This is being flagged by metastat also......


# metastat d80
d80: Mirror
Submirror 0: d81
State: Okay
Submirror 1: d82
State: Needs maintenance
Pass: 1
Read option: roundrobin (default)
Write option: parallel (default)
Size: 37750563 blocks

d81: Submirror of d80
State: Okay
Size: 37750563 blocks
Stripe 0:
Device Start Block Dbase State Hot Spare
c3t8d0s5 0 No Okay


d82: Submirror of d80
State: Needs maintenance
Invoke: metareplace d80 c3t11d0s5 <new device>
Size: 37750563 blocks
Stripe 0:
Device Start Block Dbase State Hot Spare
c3t11d0s5 0 No Maintenance

I have just received the new disk so can anyone confirm please, are any manual steps required to replace the disk or is it just a straight swap ?
I presume the metareplace is only required if i wanted to introduce a new location into the D80 mirror ?
Is there any manual formatting, metasyncs required afterwards ?

Many thanks in advance.

Sean

Edited by: 853016 on 08-Aug-2011 06:17
  • 1. Re: Disk needs maintenance - metasync required ???
    abrante Pro
    Currently Being Moderated
    No, after replacing the disk you will have to resync it manually.

    1. First of all, you need to check if you have any metadb's on the failed disk (with the command 'metadb') and remove any metadb's which are on the disk which you are about to replace (metadb -d <device>)

    2. Replace the disk

    3. Partition the disk (this can be done by using prtvtoc and fmthard).

    4. Replace the mirror (metareplace -e d80 c3t11d0s5)

    5. Recreate any metadb's (metadb -a <device from step 1>).

    .7/M.
  • 2. Re: Disk needs maintenance - metasync required ???
    856019 Newbie
    Currently Being Moderated
    Hi there - thanks for your help !

    I am getting an Invalid VTOC error when i use the file detailed below......


    # fmthard -s /tmp/vtoc-c3t11d0s2 /dev/rdsk/c3t11d0s2
    /dev/rdsk/c3t11d0s2: Invalid VTOC


    # cat /tmp/vtoc-c3t11d0s2

    * /dev/rdsk/c3t11d0s2 partition map
    *
    * Dimensions:
    * 512 bytes/sector
    * 107 sectors/track
    * 27 tracks/cylinder
    * 2889 sectors/cylinder
    * 24622 cylinders
    * 24620 accessible cylinders
    *
    * Flags:
    * 1: unmountable
    * 10: read-only
    *
    * Unallocated space:
    * First Sector Last
    * Sector Count Sector
    * 38285028 32842152 71127179
    *
    * First Sector Last
    * Partition Tag Flags Sector Count Sector Mount Directory
    0 2 00 0 262899 262898
    1 3 01 262899 262899 525797
    2 5 01 0 71127180 71127179
    5 0 00 525798 37750563 38276360
    7 0 00 38276361 8667 38285027

    Can you advise what might be causing this please ?

    Thanks,
    Sean
  • 3. Re: Disk needs maintenance - metasync required ???
    Nik Expert
    Currently Being Moderated
    Hi.
    Use format /dev/rdsk/c3t11d0s2 for write initial label on disk. Then use
    fmthard -s /tmp/vtoc-c3t11d0s2 /dev/rdsk/c3t11d0s2

    Regards.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points