Re: LVM / DiskSuite question

From: Another Tom (sg7188_at_snet.net)
Date: 01/30/05


Date: Sun, 30 Jan 2005 17:08:28 GMT


Peter C. Tribble wrote:
> In article <0001HW.BE22C8EA00096080F03055B0@news.diapason.com>,
> Georges Tomazi <gt@diapason.com> writes:
>
>>Hi -
>>
>>Last night I had a problem with a Solaris 9 server. A 67 Gb slice (on a 73 Gb
>>RAID-1 disk) failed and the slice was taken over by a hot spare. This
>>morning, metastat was showing the following :
>>
>># metastat d3
>
> ...
>
>>d33: Submirror of d3
>
> ...
>
>> Device Start Block Dbase State Reloc Hot Spare
>> c0t2d0s3 0 No Okay Yes c0t4d0s7
>
> ...
>
>
>>However, the disk seems to be OK (less than a year old). No bad blocks and
>>the others slices on it are just fine.
>
>
> So why did disksuite fail it? It must have had some reason for doing so
> that is likely to be logged somewhere. Disksuite is pretty aggressive
> at failing devices (it dosn't allow many errors before chucking it out
> completely) but I've always seen at least one error that explains it.
>
> I usuall (in the cases where the disk is responsive at all) do a
> format/analyze/read/repair and try replacing it just to see if it was a
> single bad block. Sometimes works.
>
>
>>So before physically replacing it, I'd
>>like to put back the submirror on it and see how it goes. If it fails again
>>I'll replace it.
>>
>>I'm just not 100% sure how to enable again the mirror. It would be great if
>>someone could confirm if that's the right way to do it:
>>
>># metadetach d3 d33 (detaching the failed submirror)
>># metaclear d33 (clearing it)
>># metainit d33 1 1 c0t2d0s3 -h hsp000 (creating the submirror and allocating
>>again the hot spare pool)
>># metattach d3 d33 (attaching and synchronizing the submirror)
>
>
> Seems complicated. How about just
>
> metareplace -e d3 c0t2d0s3
>
>
>>I'm not sure about the third step. In Sun's documentation, they suggest a
>>command like "metainit d33 2 1 c0t2d0s3 1 c0t3d0s3".
>
>
> That's a concatenation. Don't think you want that...
>
>
>>I'm concerned about the risk of loosing the data on the working submirror
>>(c0t3d0s3)...
>>
>>After enabling again the submirror, the hot spare should be automatically
>>released, right ?
>
>
> If the metareplace succeeds. And if the metareplace fails, the hot
> spare should still be in place.
>

It should be in the messages file.



Relevant Pages

  • Re: LVM / DiskSuite question
    ... the disk seems to be OK. ... >>like to put back the submirror on it and see how it goes. ... the hot spare should be automatically ... And if the metareplace fails, ...
    (comp.sys.sun.admin)
  • hot spare failover issue with volume manage
    ... I recently had a disk go out on a mirrored volume, ... spare is still showing assigned/in_use by the volume. ... d20 is still showing the hotspare in_use. ... Submirror 0: d21 ...
    (comp.unix.solaris)
  • Re: SDS 4.2 advice needed
    ... are active because the disk in the submirror it's not ok. ... hsp000: 1 hot spare ... # iostat -En ...
    (comp.unix.solaris)
  • Re: Server Advice Wanted.
    ... per disk on a mildle used disk on the other a hard drive ... > write out to DVDs. ... > expensive to mirror and backup. ... If a 3TB mirrored system fails, ...
    (borland.public.delphi.non-technical)
  • Re: Replacing 7133 SSA Raid 5 disk without Hot Spare
    ... After replacing the offending drive with a spare, ... is it possible to simply add the replacement disk to the array as ... I've replaced drives in the following manner with a RAID1 configuration but ... Replacing 7133 SSA Raid 5 disk without Hot Spare ...
    (AIX-L)