What is the procedure to do kernel patching?

Answers were Sorted based on User's Feedback



What is the procedure to do kernel patching?..

Answer / sweet

we have to update patch on test server before applying onto
production server
on test server or production server the same procedure as follow

1.First break the mirror if the os disk in mirror
2.bring the server into single user mode
3. update patch on primary disk
4. reboot
5. check update using showrev
6. test for any error at least a week
7. attach mirror if no error

Is This Answer Correct ?    6 Yes 0 No

What is the procedure to do kernel patching?..

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

What is the procedure to do kernel patching?..

Answer / vijay

1 first break the mirror.
2 then check the detached mirror whether it is booting successfully by changing the boot-device to the detached disk from ok prompt or from os by using eeprom boot-device=disk1.
(if the alias name for the detached disk is set as disk1)
3 then after confirming the success.then again change to the older boot-device.
then follow the steps as said by sweet.


if i am wrong correct me.

Is This Answer Correct ?    1 Yes 0 No

What is the procedure to do kernel patching?..

Answer / sabari

reboot the server to single usermode (reboot -- -s or init
0,boot -s) and install kernel patch (download from
sunsolve.sun),after install do touch /reconfigure,reboot
(or) reboot -- -r then it will boot the server multiuser
mode with reconfigure option while booting you can able
check the kernel version or once boot check uname -a

Is This Answer Correct ?    8 Yes 12 No

Post New Answer

More Solaris AllOther Interview Questions

What is the use of Ldap utility in solaris

1 Answers  


which hardware u using present

3 Answers   IBM,


how u will recover the disk group

2 Answers   IBM,


vxdisk -o alldgs list o/p shows some disk groups in braces… What does that signify?

3 Answers  


What r the daemons for DNS , Veritas, Apache,NFS Server & Client

1 Answers   IBM,






How would you freeze a service group?

1 Answers  


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

0 Answers   Thomson Reuters,


Suppose if u want to reconfigure the kernel then how ur going to do?

3 Answers  


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

0 Answers  


Is there any difference b/w dhcp and jumpstart..?

2 Answers  


What is the Boot procedure in Solaris(Unix)

3 Answers   IBM,


what is the significance of 51% state database replicas in SVM?

2 Answers   Cap Gemini,


Categories
  • Solaris Commands Interview Questions Solaris Commands (360)
  • Solaris Threads Interview Questions Solaris Threads (9)
  • Solaris IPC Interview Questions Solaris IPC (30)
  • Solaris Socket Programming Interview Questions Solaris Socket Programming (3)
  • Solaris System Calls Interview Questions Solaris System Calls (25)
  • Solaris General Interview Questions Solaris General (170)
  • Solaris AllOther Interview Questions Solaris AllOther (297)