Aug 222008
 

It’s been a while since I’ve made any posts. I am looking to migrate the site shortly (host it privately). But here’s one I thought I’d share with my thousands of anonymous readers.

Really folks…if you like what you read here…post a few lines. If you hate it…post that too!

Global Zone configuration

Add the oracle user and dba group

vistatst-01:$() # grep dba /etc/group<br /><span class="anchor" id="line-11"></span>dba::600:<br /><span class="anchor" id="line-12"></span>vistatst-01:$() # grep oracle /etc/passwd<br /><span class="anchor" id="line-13"></span>oracle:x:101:600:Oracle DBA:/u01/app/oracle:/usr/bin/ksh<br /><span class="anchor" id="line-14"></span>

Configure LUNs for Oracle ASM formatting

c4t6006016030C01C00EC2DC1FE8052DD11d0s2 is ASM disk...Let's inspect it's partition table...<br /><span class="anchor" id="line-20"></span>       2      5    01          0 104852480 104852479<br /><span class="anchor" id="line-21"></span>       6      0    00       2560 104849920 104852479<br /><span class="anchor" id="line-22"></span><br /><span class="anchor" id="line-23"></span>c4t6006016030C01C009698C4458152DD11d0s2 is ASM disk...Let's inspect it's partition table...<br /><span class="anchor" id="line-24"></span>       2      5    01          0 104852480 104852479<br /><span class="anchor" id="line-25"></span>       6      0    00       2560 104849920 104852479<br /><span class="anchor" id="line-26"></span><br /><span class="anchor" id="line-27"></span>c4t6006016030C01C0046A8487A8152DD11d0s2 is ASM disk...Let's inspect it's partition table...<br /><span class="anchor" id="line-28"></span>       2      5    01          0 104852480 104852479<br /><span class="anchor" id="line-29"></span>       6      0    00       2560 104849920 104852479<br /><span class="anchor" id="line-30"></span><br /><span class="anchor" id="line-31"></span>c4t6006016030C01C00CEF5BFAA8152DD11d0s2 is ASM disk...Let's inspect it's partition table...<br /><span class="anchor" id="line-32"></span>       2      5    01          0 104852480 104852479<br /><span class="anchor" id="line-33"></span>       6      0    00       2560 104849920 104852479<br /><span class="anchor" id="line-34"></span><br /><span class="anchor" id="line-35"></span>vistatst-01:$() #<br /><span class="anchor" id="line-36"></span>

(!) Here we have chosen to set up slice 6 as the “disk” with cylinder 0 being excluded by manually partitioning it. The starting sector count (as you can observe is 2560 instead of sector 0).

Make oracle:dba the owner of these LUNS.

vistatst-01:$() # for i in `vxdisk list|grep invalid|awk '{print $1}><br /><span class="anchor" id="line-44"></span>lrwxrwxrwx   1 oracle   dba           67 Jul 15 16:50 /dev/rdsk/c4t6006016030C01C00EC2DC1FE8052DD11d0s2 -> ../../devices/scsi_vhci/ssd@g6006016030c01c00ec2dc1fe8052dd11:c,raw<br /><span class="anchor" id="line-45"></span><br /><span class="anchor" id="line-46"></span>lrwxrwxrwx   1 oracle   dba           67 Jul 15 16:50 /dev/rdsk/c4t6006016030C01C009698C4458152DD11d0s2 -> ../../devices/scsi_vhci/ssd@g6006016030c01c009698c4458152dd11:c,raw<br /><span class="anchor" id="line-47"></span><br /><span class="anchor" id="line-48"></span>lrwxrwxrwx   1 oracle   dba           67 Jul 15 16:50 /dev/rdsk/c4t6006016030C01C0046A8487A8152DD11d0s2 -> ../../devices/scsi_vhci/ssd@g6006016030c01c0046a8487a8152dd11:c,raw<br /><span class="anchor" id="line-49"></span><br /><span class="anchor" id="line-50"></span>lrwxrwxrwx   1 oracle   dba           67 Jul 15 16:50 /dev/rdsk/c4t6006016030C01C00CEF5BFAA8152DD11d0s2 -> ../../devices/scsi_vhci/ssd@g6006016030c01c00cef5bfaa8152dd11:c,raw<br /><span class="anchor" id="line-51"></span>

And change the ownerships of the underlying files…

crw-r-----   1 oracle   dba      118, 426 Aug 14 13:41 devices/scsi_vhci/ssd@g6006016030c01c00ec2dc1fe8052dd11:c,raw<br /><span class="anchor" id="line-57"></span>crw-r-----   1 oracle   dba      118, 418 Aug 14 13:41 devices/scsi_vhci/ssd@g6006016030c01c009698c4458152dd11:c,raw<br /><span class="anchor" id="line-58"></span>crw-r-----   1 oracle   dba      118, 402 Aug 14 13:41 devices/scsi_vhci/ssd@g6006016030c01c0046a8487a8152dd11:c,raw<br /><span class="anchor" id="line-59"></span>crw-r-----   1 oracle   dba      118, 434 Aug 14 13:41 devices/scsi_vhci/ssd@g6006016030c01c00cef5bfaa8152dd11:c,raw<br /><span class="anchor" id="line-60"></span>

Configure Solaris Non-Global Zone (NGZ)

vistatst-01:$() # zonecfg -z vistatst-01-z01 set limitpriv=def<span class="anchor" id="line-66"></span>ault,proc_priocntl<br />vistatst-01:$() # zonecfg -z vistatst-01-z01 export<br /><span class="anchor" id="line-67"></span>create -b<br /><span class="anchor" id="line-68"></span>set zonepath=/zonefiles/vistatst-01-z01<br /><span class="anchor" id="line-69"></span>set autoboot=true<br /><span class="anchor" id="line-70"></span>set limitpriv=default,proc_priocntl<br /><span class="anchor" id="line-71"></span>set ip-type=shared<br /><span class="anchor" id="line-72"></span>add net<br /><span class="anchor" id="line-73"></span>set address=10.10.10.119<br /><span class="anchor" id="line-74"></span>set physical=ce0<br /><span class="anchor" id="line-75"></span>end<br /><span class="anchor" id="line-76"></span>add device<br /><span class="anchor" id="line-77"></span>set match=/dev/rdsk/c4t6006016030C01C00EC2DC1FE8052DD11d0s6<br /><span class="anchor" id="line-78"></span>end<br /><span class="anchor" id="line-79"></span>add device<br /><span class="anchor" id="line-80"></span>set match=/dev/dsk/c4t6006016030C01C00EC2DC1FE8052DD11d0s6<br /><span class="anchor" id="line-81"></span>end<br /><span class="anchor" id="line-82"></span>add device<br /><span class="anchor" id="line-83"></span>set match=/dev/rdsk/c4t6006016030C01C009698C4458152DD11d0s6<br /><span class="anchor" id="line-84"></span>end<br /><span class="anchor" id="line-85"></span>add device<br /><span class="anchor" id="line-86"></span>set match=/dev/dsk/c4t6006016030C01C009698C4458152DD11d0s6<br /><span class="anchor" id="line-87"></span>end<br /><span class="anchor" id="line-88"></span>add device<br /><span class="anchor" id="line-89"></span>set match=/dev/rdsk/c4t6006016030C01C0046A8487A8152DD11d0s6<br /><span class="anchor" id="line-90"></span>end<br /><span class="anchor" id="line-91"></span>add device<br /><span class="anchor" id="line-92"></span>set match=/dev/dsk/c4t6006016030C01C0046A8487A8152DD11d0s6<br /><span class="anchor" id="line-93"></span>end<br /><span class="anchor" id="line-94"></span>add device<br /><span class="anchor" id="line-95"></span>set match=/dev/rdsk/c4t6006016030C01C00CEF5BFAA8152DD11d0s6<br /><span class="anchor" id="line-96"></span>end<br /><span class="anchor" id="line-97"></span>add device<br /><span class="anchor" id="line-98"></span>set match=/dev/dsk/c4t6006016030C01C00CEF5BFAA8152DD11d0s6<br /><span class="anchor" id="line-99"></span>end<br /><span class="anchor" id="line-100"></span>add dataset<br /><span class="anchor" id="line-101"></span>set name=vinmarttstpool<br /><span class="anchor" id="line-102"></span>end<br /><span class="anchor" id="line-103"></span>vistatst-01:$() #<br /><span class="anchor" id="line-104"></span>vistatst-01:$() # zoneadm -z vistatst-01-z01 reboot<br /><span class="anchor" id="line-105"></span>

(!) Set up CSSD to start up

/!\ If CSSD doesn’t start up at this point — run the following command from $ORACLE_HOME/bin

#./localconfig reset<br /><span class="anchor" id="line-113"></span>vinmartst-01:$(bin) # ./localconfig reset<br /><span class="anchor" id="line-114"></span>Successfully accumulated necessary OCR keys.<br /><span class="anchor" id="line-115"></span>Creating OCR keys for user 'root', privgrp 'root'..<br /><span class="anchor" id="line-116"></span>Operation successful.<br /><span class="anchor" id="line-117"></span>Configuration for local CSS has been initialized<br /><span class="anchor" id="line-118"></span><br /><span class="anchor" id="line-119"></span>Adding to inittab<br /><span class="anchor" id="line-120"></span>Aug 14 11:58:36 vinmartst-01 root: Oracle Cluster Synchronization Service starting by user request.<br /><span class="anchor" id="line-121"></span>Startup will be queued to init within 30 seconds.<br /><span class="anchor" id="line-122"></span>Checking the status of new Oracle init process...<br /><span class="anchor" id="line-123"></span>Expecting the CRS daemons to be up within 600 seconds.<br /><span class="anchor" id="line-124"></span>Aug 14 11:58:36 vinmartst-01 root: Cluster Ready Services completed waiting on dependencies.<br /><span class="anchor" id="line-125"></span>CSS is active on these nodes.<br /><span class="anchor" id="line-126"></span>        vinmartst-01<br /><span class="anchor" id="line-127"></span>CSS is active on all nodes.<br /><span class="anchor" id="line-128"></span>Oracle CSS service is installed and running under init(1M)<br /><span class="anchor" id="line-129"></span>

Verify that cssd is running in the process table —

vinmartst-01:$(bin) # ps -ef|grep css<br /><span class="anchor" id="line-135"></span>  oracle  9120  8207   0 11:58:36 ?           0:00 /u01/app/oracle/product/10.2.0/db_1/bin/ocssd.bin<br /><span class="anchor" id="line-136"></span>    root  9220  8373   0 11:59:59 console     0:00 grep css<br /><span class="anchor" id="line-137"></span>

Verify that the LUNs are visible to the NGZ —

vinmartst-01:$(.oracle) # ls -alrt /dev/rdsk<br /><span class="anchor" id="line-143"></span>total 4<br /><span class="anchor" id="line-144"></span>drwxr-xr-x   2 root     root         512 Aug 12 16:34 .<br /><span class="anchor" id="line-145"></span>drwxr-xr-x  12 root     root        1024 Aug 14 11:57 ..<br /><span class="anchor" id="line-146"></span>crw-r-----   1 oracle   dba      118, 422 Aug 14 13:46 c4t6006016030C01C009698C4458152DD11d0s6<br /><span class="anchor" id="line-147"></span>crw-r-----   1 oracle   dba      118, 430 Aug 14 13:55 c4t6006016030C01C00EC2DC1FE8052DD11d0s6<br /><span class="anchor" id="line-148"></span>crw-r-----   1 oracle   dba      118, 438 Aug 14 14:10 c4t6006016030C01C00CEF5BFAA8152DD11d0s6<br /><span class="anchor" id="line-149"></span>crw-r-----   1 oracle   dba      118, 406 Aug 14 14:10 c4t6006016030C01C0046A8487A8152DD11d0s6<br /><span class="anchor" id="line-150"></span>

vinmartst-01:$(.oracle) # ls -lart /dev/dsk<br /><span class="anchor" id="line-154"></span>total 4<br /><span class="anchor" id="line-155"></span>brw-r-----   1 oracle   dba      118, 430 Aug 12 16:34 c4t6006016030C01C00EC2DC1FE8052DD11d0s6<br /><span class="anchor" id="line-156"></span>brw-r-----   1 oracle   dba      118, 438 Aug 12 16:34 c4t6006016030C01C00CEF5BFAA8152DD11d0s6<br /><span class="anchor" id="line-157"></span>brw-r-----   1 oracle   dba      118, 422 Aug 12 16:34 c4t6006016030C01C009698C4458152DD11d0s6<br /><span class="anchor" id="line-158"></span>brw-r-----   1 oracle   dba      118, 406 Aug 12 16:34 c4t6006016030C01C0046A8487A8152DD11d0s6<br /><span class="anchor" id="line-159"></span>drwxr-xr-x   2 root     root         512 Aug 12 16:34 .<br /><span class="anchor" id="line-160"></span>drwxr-xr-x  12 root     root        1024 Aug 14 11:57 ..<br /><span class="anchor" id="line-161"></span>

/!\ Run Oracle Installer and do the rest of the stuff that needs to be done!

References

289 total views, 1 views today

 Posted by at 5:16 pm

 Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>