Problem in SVM after live upgrade

Hi
I am new to live upgrade.
I would like to tell you about my new setup, where my boot disk(c0d0) is mirrored with secondary disk(c0d1). I have remove the secondary whole disk(C0d1) from the mirror, so that I can do live upgrade on this secondary disk.
I have done live upgrade on s0 partition of c0d1 disk & install the latest patch cluster on it for this I have created a new BE called newliveupg-env. I have booted my system from it after implmenting latest patch cluster on it.
My Problem is that after boot from newliveupg-env(c0d1s0). I wanted to mirror secondary disk( having latest kernal patch & New BE) with primary disk ( having old kernal patch set ). After this my c0d1s0(secondary disk's slice0) become primary disk slice & vice versa for S0 partition on c0d0s0 as I have not touch the other two partition(having applications) on c0d0 disk.
After booting from newliveupg-env(c0d1s0), when I run the metastat command, it is showing(c0d0 disk is under SVM control. Please find the output below.
Now please let me know how do I proceed from here to do above process.

bash-3.2# lustatus
Boot Environment           Is       Active Active    Can    Copy
Name                       Complete Now    On Reboot Delete Status
-------------------------- -------- ------ --------- ------ ----------
c0d0s0                     yes      no     no        yes    -
newliveupg-env             yes      yes    yes       no     -
bash-3.2#
bash-3.2#
bash-3.2# uname -a
SunOS sunvm 5.10 Generic_147441-01 i86pc i386 i86pc
bash-3.2#
bash-3.2# metadb
        flags           first blk       block count
     a m  pc luo        16              8192            /dev/dsk/c0d0s5
     a    pc luo        8208            8192            /dev/dsk/c0d0s5
     a    pc luo        16400           8192            /dev/dsk/c0d0s5
bash-3.2#
bash-3.2# metastat -c
d30              m  5.4GB d31
    d31          s  5.4GB c0d0s7
d20              m  517MB d21
    d21          s  517MB c0d0s1
d10              m  5.9GB d11
    d11          s  5.9GB c0d0s0
bash-3.2#
bash-3.2#
bash-3.2#
bash-3.2# echo|format
Searching for disks...done

AVAILABLE DISK SELECTIONS:
       0. c0d0 <DEFAULT cyl 1563 alt 2 hd 255 sec 63>
          /pci@0,0/pci-ide@7,1/ide@0/cmdk@0,0
       1. c0d1 <DEFAULT cyl 1563 alt 2 hd 255 sec 63>
          /pci@0,0/pci-ide@7,1/ide@0/cmdk@1,0
       2. c2t0d0 <DEFAULT cyl 1171 alt 2 hd 255 sec 63>
          /pci@0,0/pci15ad,1976@10/sd@0,0
Specify disk (enter its number): Specify disk (enter its number):
bash-3.2#
bash-3.2#
bash-3.2#

Post output of:

df /

Please find the output

bash-3.2# uname -a
SunOS sunvm 5.10 Generic_147441-01 i86pc i386 i86pc
bash-3.2#
bash-3.2# df /
/                  (/dev/dsk/c0d1s0   ): 1875718 blocks   545592 files
bash-3.2# df -h
Filesystem             size   used  avail capacity  Mounted on
/dev/dsk/c0d1s0        5.8G   4.9G   857M    86%    /
/devices                 0K     0K     0K     0%    /devices
ctfs                     0K     0K     0K     0%    /system/contract
proc                     0K     0K     0K     0%    /proc
mnttab                   0K     0K     0K     0%    /etc/mnttab
swap                   569M   992K   568M     1%    /etc/svc/volatile
objfs                    0K     0K     0K     0%    /system/object
sharefs                  0K     0K     0K     0%    /etc/dfs/sharetab
/usr/lib/libc/libc_hwcap1.so.1
                       5.8G   4.9G   857M    86%    /lib/libc.so.1
fd                       0K     0K     0K     0%    /dev/fd
swap                   568M    40K   568M     1%    /tmp
swap                   568M    32K   568M     1%    /var/run
bash-3.2#
bash-3.2#
bash-3.2# metastat -c
d30              m  5.4GB d31
    d31          s  5.4GB c0d0s7
d20              m  517MB d21
    d21          s  517MB c0d0s1
d10              m  5.9GB d11
    d11          s  5.9GB c0d0s0
bash-3.2#
bash-3.2# metadb
^[[A    flags           first blk       block count
     a m  pc luo        16              8192            /dev/dsk/c0d0s5
     a    pc luo        8208            8192            /dev/dsk/c0d0s5
     a    pc luo        16400           8192            /dev/dsk/c0d0s5
bash-3.2#

So you just have to mirror current disk. First remove old boot environment (ludelete), then follow those instructions: Example?Creating a Mirror From root (/) (Solaris Volume Manager Administration Guide)

1 Like