Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is the procedure to do kernel patching?

Answer Posted / venkatesh

1.) Download the bundle patch (Recommended Solaris Cluster Patch) from www.support.oracle.com
2.Take necessary backups of the server. (make one directory under /var/tmp and put the outputs in the server also).

Take backup of uname -a –>(will give your current Kernel Patch Level), df -k , metastat -p, metadb -i, netastat -nr, ifconfig -a, prtconf, prtdiag -v, metastat -ac (sol. 10), metastat -t, eeprom, echo | format etc.

3.) Identify the rootdisk and rootmirror disk with metastat -p or df -k or metastat -ac (-ac only work in Solaris 10).

6.) Mount your detached disk (rootmirror) on mountpoint /mnt and edit /mnt/etc/vfstab & /mnt/etc/system.

mount /dev/dsk/<rootmirror disk with slice 0) /mnt

vi /mnt/etc/vfstab

change all md (SVM) entries with native devices eg:

/dev/md/dsk/d0 —> /dev/dsk/<rootmirror disk with corresponding slice>

&

/dev/md/rdsk/d0 —> /dev/rdsk/<rootmirror disk with corresponding slice>

eg: This is only for one slice, repeat same for all slices for your rootmirror disk.

yogesh-test#grep -i /dev/md/dsk/d0 /mnt/etc/vfstab
/dev/md/dsk/d0 /dev/md/rdsk/d0 / ufs 1 no logging

yogesh-test#vi /mnt/etc/vfstab
/dev/dsk/c0t1d0s0 /dev/rdsk/c0t1d0s0 / ufs 1 no logging

—————————————————————-

grep -i md /mnt/etc/system (to check SVM related entries in system file which we need to comment out in order to bring mirrordisk out of SVM).

yogesh-test#grep -i md /mnt/etc/system
* Begin MDD root info (do not edit)
rootdev:/pseudo/md@0:0,0,blk ——————-> (comment it out with star)
* End MDD root info (do not edit)

After Changes the system file should look like as given below for rootmirror disk.

yogesh-test#grep -i md /mnt/etc/system
* Begin MDD root info (do not edit)
* rootdev:/pseudo/md@0:0,0,blk
* End MDD root info (do not edit)

7.) Un-mount your root-mirror disk.

umount /mnt

8.) Now your Rootdisk is under SVM control and Rootmirror disk is under native raw Solaris disk. By doing this step we are making sure that in case if any thing goes against our action plan then we will be able to recover our server from other disk.

9.) We have to test the booting of our server from both the disks to make sure that the server will come up with both of the disks without any issues.

# init 0

At OK prompt

# devalias
# boot <rootmirror disk> ———-> (if no alias is there create it (using nvalias aliasname <diskpath>) as we have alread taken the backup of echo | format)

Once the server booted from rootmirror disk, do the post checks like df -k, ifconfig etc..

Now boot the server from rootdisk as well.

#init 0
#devalias
#boot <rootdisk>

Once booted from rootdisk, do the post check like df -k, ifconfig etc..

10.) We are sure at this point of time that our server is coming up from both the disks.

Here we go with the patching now, boot your server in single your mode with your root-disk.

# init 0
# devalias
# boot rootdisk -s
# mount your slice where the unzipped bundle patch file is placed
# Go-though the read-me file as well.
# and run the installpatchset script with passcode to start bundle patching

###########EXAMPLE: Bundle Patch Installation##############

# Run the installpatchset script.

# cd 10_Recommended

# ./installpatchset –s10patchset ———–(passcode required for script execution, which you can find from Cluster Patch ReadMe file))

Setup …..
Recommended OS Patchset Solaris 10 SPARC (2011.06.22)

The patch set will complete installation in this session. No intermediate
reboots are required.

11.) It will take some hours (depending upon your previous kernel patch level). Once the patching gets completed, go with the reconfig reboot. (reboot — -r or init 0 and boot -r).

12.) Once the server will come up do the post-checks, compare the outputs which you have taken earlier to be pretty much sure about the success.

Check the latest kernel patch level with “uname -a” and you are done with the kernel patching

4.) Dont forget to take the backups of /etc/vfstab and /etc/system.

5.) Break the mirror i.e isolate one disk (usually rootmirror as best practise).

Firstly Delete the statedatabase replica for your rootmirror disk.

metadb -i

metadb -d /dev/rdsk/<slicename>

Proceed with the mirror detach for your root-mirror disk.

metastat -p

metadeatach <mirror> <submirror for second disk>

metaclear <submirror>

Repeat the same for all submirrors for rootmirror disk.

Check the outputs by metastat -ac, metastat -p, metastat -t and metadb -i

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do u know that,what patch can be applicable on the system?

2230


What is the zone in DNS?

2309


what is mean by netfmd in sun cluster what is the use of netfmd and what is the relation between ccd and netfmd?

2677


how can u give space garentee for volume in netapp storage

3223


when i am starting solaris10 with 'fail safe mode' on intel machine it is asking "#starting shell".what is it and how to solve this problem?

2443


hi to all,, i need few real time issues please provide me,, if you have any,,,

2104


How to create a gateway?

7717


Local zone in shutting down state.how to bring state of zone to installed?

2078


In a two node cluster i have typed #hastart command in one node.The cluster is starting in second node also,what is going in background?

2295


What is the use of Sam utility in solaris

2810


Hi, I need information regarding LDOMS.Like What is LDOMS ,Creation of LDOMS, errors on LDOMS, troubleshooting LDOMS...etc.... pls post the info. Regards, Naresh

3188


What is cachefs?

2300