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
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