I am new to Solaris. I have to install some latest patches on my SPARC Machine running Solaris 10. I have installed the required patches.
Please guide me through the rest of the process. Please include even minute details so that I don't face any problems while doing this activity.
I am using mirrored root filesystem through SVM. So please include the unmirroring steps also.
The best way of updating your patching is apply a Sun supplied recommended patch cluster, there are instructions here: Solaris Patch Cluster Install
on how to do that, it is best to have the system running in single user mode (run "reboot -- -s" if system is running or just "boot -s" if at the Open Boot prompt), you do not need to break the mirrors for patching unless you want a quick way of reverting back to the system state before the patching was applied.
So steps are:
Download appropriate recommended patch cluster from here: SunSolve
Copy patch cluster into /var/tmp and unzip it, e.g.:
# unzip -q 10_Receommended.zip
Reboot into single user mode:
# reboot -- -s
Log back on as root and ensure all local filesystems are mounted:
# mountall
Apply patch cluster:
# cd /var/tmp/10_Recommended
# ./install_cluster
Answer questions, and wait for patches to apply.
Reboot:
# reboot
Done.
You may then wish to use something like the patchdiag tool (may be downloaded from here: Product Downloads ) with an up to date patchdiag.xref to see if there are any patches that were not included in the Recommended Patch Cluster that your system needs.
If this is a critical system then it goes without saying that you should take backups before patching although patches can be backed out using the patchrm(1M) command but could be a long and laborious process.
To keep the forums high quality for all users, please take the time to format your posts correctly.
First of all, use Code Tags when you post any code or data samples so others can easily read your code. You can easily do this by highlighting your code and then clicking on the # in the editing menu. (You can also type code tags
```text
and
```
by hand.)
Second, avoid adding color or different fonts and font size to your posts. Selective use of color to highlight a single word or phrase can be useful at times, but using color, in general, makes the forums harder to read, especially bright colors like red.
Third, be careful when you cut-and-paste, edit any odd characters and make sure all links are working property.
just read my last post. this IS my answer... and yes, i've done that a thousend times! you CAN unmirror the disks to have a backup of the system but you don't need to!
yes we need to unmirror to have a backup of the system.
I do know how to unmirror the root filesystem, but I have some doubts that what all steps we should leave from the un-mirroring procedure, as we have to re-mirror the root disks again after patching.
Also will the unmirror steps be same for root and /opt,/usr etc. ?
As I have already said, no you do not need to break the mirrors in order to patch the system, just as you would not break the mirrors to add a new user account or add a new mount.
If you have an off line back from which you can restore the system quickly enough then breaking the mirrors just makes the whole process a lot longer.
If you wish to break the mirrors using metdetach(1m) then you run:
# metadetach mirror submirror
In your case:
# metadetach d0 d20
The /etc/vfstab inside d20 will need amending to make it mount the actual device that is in d20 (i.e. /dev/dsk/c1t1d0s0 ) and when booting off it you will need to boot off the dev-alias in the OBP that points to that disk, if you are wanting to use the broken off sub-mirror to recover back to the state the machine was in before mirroring make sure you can boot off it before patching the other side of the mirror.
I can apply a patch cluster in the middle of the day without affecting my users at all. Then just after the end of the day, I can activate the patched environment and reboot. Total downtime just a few minutes.
Hi kamaldeep1986,
if I got your question true,question is do you need to unmirror your disks in case system patching. Absolutely "no". Suns patches upgrading enough often, you would not unmirror your disks every time when u need patch your system ::))