Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

LiveUpgrade question

Status
Not open for further replies.

cnull

MIS
Oct 30, 2003
56
0
0
US
I need to understand how to upgrade a mirrored env using lu.
Current: Sol10 u3 sparc
Upgrade to: Sol10 u8

The current fs looks like this:

d10 mirrored md (root)
d11 c2t0d0s0
d12 c2t1d0s0

d20 mirrored md(swap)
d21 c2t0d0s1
d22 c2t1d0s1

d30 mirrored md(/var)
d31 c2t0d0s3
d32 c2t1d0s3

d40 mirrored md(/data)
d41 c2t0d0s4
d42 c2t1d0s4

d50 mirrored md(/export/home)
d51 c2t0d0s5
d52 c2t1d0s5

d60 mirrored md(metadb 250mb)
d61 c2t0d0s6
d62 c2t1d0s6

I want to break the mirror and upgrade the second subdisk.
Boot to the upgraded subdisks and if all is well resync it all back as it was.

This is what I have been trying, to no avail:
lucreate -c orig -n patchBE \
-m /:/dev/md/dsk/d12:ufs,mirror \
-m /:/dev/dsk/c2t1d0s0:detach,attach,preserve \
-m /var:/dev/md/dsk/d32:ufs,mirror \
-m /var:/dev/dsk/c2t1d0s3:detach,attach,preserve

Discovering physical storage devices
Discovering logical storage devices
Cross referencing storage devices with boot environment configurations Determining types of file systems supported Validating file system requests Preparing logical storage devices Preparing physical storage devices Configuring physical storage devices Configuring logical storage devices
ERROR: status <1> output from </usr/sbin/metainit> command: <metainit: <hostname>: d12: unit already set up

>
ERROR: problem attaching metadevice to metadevice mirror using </usr/sbin/metainit>
ERROR: cannot create mirror <d12> with metadevice <d12>
ERROR: cannot create logical devices
ERROR: cannot configure and prepare file systems as they are current configured
ERROR: cannot perform requested file system operations
*******************************************


I figured that I cannot create the same metadevice so next I was going to try this...

lucreate -c orig -n patchBE \
-m /:/dev/md/dsk/d0:ufs,mirror \
-m /:/dev/dsk/c2t1d0s0:detach,attach,preserve \
-m /var:/dev/md/dsk/d1:ufs,mirror \
-m /var:/dev/dsk/c2t1d0s3:detach,attach,preserve

But even if that works how do I get back to my original configuration(including all the mirrored md's)?

Your help is appreciated!

Chris


 
You should use:

If you have not broken the mirrors already for root and var in your original BE this will work. If you have already broke them then it will not.


lucreate -c orig -n patchBE -m /:/dev/md/dsk/d0:ufs,mirror -m /:/dev/md/dsk/d12:detach,attach,preserve -m /var:/dev/md/dsk/d1:ufs,mirror -m /var:/dev/md/dsk/d32:detach,attach,preserve
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top