(no subject)

Ying He (yhe@shadow.sph.jhu.edu)
Fri, 09 May 1997 12:13:21 -0400

>

Original quesion:

-------------------------------------------------------------------
> Hi, Managers:
>
>
> I am playing with disksuite, when I try to mount the metadevice
> by using /sbin/mount /export/home
>
> I got : mount: /dev/md/dsk/d10 write-protected
>
>
> So I can not attach the second metadevice by use :
> metattach /dev/md/dsk/d1 /dev/md/dsk/d11
>
> I got:
> metattach: shadow: d11: can't attach labeled submirror to an unlabeled mirror
>
> md.tab
> ------------------------------------
> /dev/md/dsk/d10 1 1 /dev/dsk/c0t3d0s7
> /dev/md/dsk/d11 1 1 /dev/dsk/c0t4d0s0
> /dev/md/dsk/d1 -m /dev/md/dsk/d10
>
>
> /etc/vfstab
>
>
--------------------------------------------------------------------------------
----
> /dev/md/dsk/d10 /dev/md/rdsk/d10 /export/home ufs 2
yes -
>
>
> Any one has experience, please give me some ideas. Thanks.
>
>
> Ying
>

Answer:

i only received 2 answers so far, they both are great !!

Glenn help me to solve my first problem:
mount: /dev/md/dsk/d10 write-protected

James answered my second question:

metattach: shadow: d11: can't attach labeled submirror to an unlabeled mirror
Even I did not try, but I believe that he is right, since i am trying use
the partition c0t4d0s0 as mirrow which has start address 0.

See the attached e-mail for both answers.

Thanks for the responses.

Ying
---------------------------------------------------------------------------
>From glenn@uniq.com.au Thu May 8 19:46 EDT 1997
To: yhe@shadow.sph.jhu.edu
Subject: Re: mount metadevice

In this case d10 is the sub-mirror and d1 is the mirror
metadevice, so in /etc/vfstab you should be mounting
/dev/md/dsk/d1. Note that it doesn't have to be mounted to
attach the second sub-mirror. Your syntax for metattach is
correct though.

The output for metastat on these devices would be useful for diagnosing.

regards,

--
Glenn Satchell   glenn@uniq.com.au    www.uniq.com.au  | Windows:
Uniq Professional Services Pty Ltd    ACN 056 279 335  | 
PO Box 70, Paddington,  NSW 2021,  (Sydney) Australia  | Just another pane
Phone 02 9380 6360 Pager 016 287 000 Fax 02 9380 6416  | in the glass...
      VISIT OUR WEB SITE http://www.uniq.com.au

>

>From ranks@avnasis.jccbi.gov Thu May 8 13:53 EDT 1997 To: yhe@shadow.sph.jhu.edu Subject: Re: mount metadevice

I don't know about the write protect problem, But on the metattach error about submirrors,

The problem is that one partition includes the boot block, and the other partition doesn't. DiskSuite doesn't like this. One way around this is to define all your disk partitions starting at cyl 1 instead of cyl 0 (Except for your root and mirrored-root partitions of course).

Hope that helps you.

James Ranks FAA