ÈçºÎ¸øsolaris´ò²¹¶¡
Ò»¡¢solaris²¹¶¡½éÉÜ
1£®1²¹¶¡µÄÖÖÀ༰ÎļþÃû
solarisµÄ²¹¶¡·ÖΪÁ½À࣬һÀàÊÇPoint²¹¶¡£¬ÁíÒ»ÀàÊÇCluster²¹¶¡¡£
a)Point²¹¶¡³ÌÐò:
ÕâÀಹ¶¡½ö½öÊÇÕë¶ÔijһÎÊÌâ»òȱÏݶø·¢²¼µÄµ¥¸ö²¹¶¡³ÌÐò£¬solaris7¡¢solaris8¡¢solairs9µÄPatchÒ»°ãΪ*.zipÎļþsolaris2.6Ò»°ãΪ.tar.Z»ò.tar.gzÎļþ£¬ËüÓÐÈçϱàºÅ·½Ê½£º
patch base code-revision num (Èç110668-04)
Ç°Ã沿·ÖÊÇÕâ¸ö²¹¶¡µÄÖ÷°æ±¾ºÅ£¨base code£©£¬ºóÃ沿·ÖÊǴ˲¹¶¡µÄÐÞ¶©ºÅ¡£Á½ÕߺÏÆðÀ´¹¹³É´Ë²¹¶¡µÄPatch-ID¡£ÈçÉÏÀý±àºÅΪ110668-04µÄ²¹¶¡£¬110668ΪÖ÷°æ±¾ºÅ£¬04ÊÇÐÞ¶©ºÅ¡£´Ë²¹¶¡ÊÇÔÚ110668-03µÄ»ù´¡ÉÏ×öÁËеÄÐÞ¸´¡£ÓÐÒ»µãÐèÒªÖ¸³ö£¬²¹¶¡°æ±¾ºÅΪ110668µÄһϵÁв¹¶¡¶¼ÊÇÕë¶Ô /usr/sbin/in.telnetd ÕâÒ»ÎļþµÄ²»Í¬ÎÊÌâµÄÐÞ¸´£¬110668-04·¢²¼ÒÔºó£¬sun½«²»ÔÙÌṩ110668-04ÒÔÇ°µÄ²¹¶¡£¬Èç110668-03µÈ¡£
b) Cluster²¹¶¡³ÌÐò:
cluster²¹¶¡½ö½öÊÇһϵÁÐpoint²¹¶¡µÄÖØаü×°,²¢´øÓÐ×Ô¶¯°²×°³ÌÐò¡£Cluster²¹¶¡µÄÃüÃû·½Ê½ÈçÏ£º
version_Recommended
Èç9_x86_Recommended.zipÊÇÕë¶ÔSolaris 9 for X86µÄ²¹¶¡¼¯¡£
8_Recommended.zipÊÇÕë¶ÔSolaris 8 for Sparc µÄ²¹¶¡¼¯¡£
ÿ¸öCluster²¹¶¡¶¼¶ÔÓ¦Ò»¸öCLUSTER_READMEÎļþ£¬ÏêϸÃèÊöÁ˸ÃCluster°üº¬µÄ²¹¶¡£¬ÒÔ¼°°²×°µÄ·½·¨»ò×¢ÒâÊÂÏî¡£
1£®2 ¹ØÓÚ²¹¶¡µÄÆäËûÐÅÏ¢
sun¹«Ë¾¶Ôÿһ°æ±¾µÄsolaris¶¼Î¬»¤ÁËÒ»·ÝPatch Reports£¬¸ÃPatch Reports°üº¬Á˶ÔÓ¦°æ±¾solarisËùÓв¹¶¡µÄÃèÊö¡£Patch ReportsÿÔ¸üÐÂÁ½´Î£¬¿ÉÒÔ´ÓÈçϵØÖ·µÃµ½£º
http://sunsolve.sun.com/pub-cgi/show.pl?target=patches/patch-Access&nav=patchpage
ÁíÍâsun»¹Î¬»¤ÁËÒ»·ÝSun Alert Patch Report£¬¸ÃÎĵµ°´²úÆ··ÖÀ࣬²¢ÇÒËæʱ¸üС£´ÓÕâÀï¿ÉÒÔÕÒµ½ËùÓÐsun²úÆ·µÄ¸üÐÂÎĵµ¼°ÏàÓ¦²¹¶¡£¬µ±È»Ò²°üÀ¨µÄsolarisµÄSun Alert Îĵµ¡¢Patch ID¡¢¼òҪ˵Ã÷µÈ¡£Sun Alert Patch Report´ÓÕâÀï¿ÉÒԵõ½£º
http://sunsolve.sun.com/pub-cgi/show.pl?target=sunalert_patches
ÏàÓ¦µÄsolaris²¿·Ö¿É´ÓÈçÏÂÁ´½ÓµÃµ½£º
http://sunsolve.sun.com/pub-cgi/show.pl?target=sunalert_patches#Solaris
±í¸ñ°´Ê±¼äÅÅÐò£¬´ÓCategory±í¸ñÖпÉÒÔÖªµÀ´ËÎÊÌâÊôÓÚ°²È«È±ÏÝÐÞ¸´»¹ÊÇÓ¦ÓÃÓÅ»¯¡£
¶þ¡¢²¹¶¡µÄÏÂÔØ
Cluster²¹¶¡¿ÉÒÔ´ÓÈçÏÂÍøÖ·ÏÂÔØ£º
http://sunsolve.sun.com/pub-cgi/show.pl?target=patches/patch-access&nav=patchpage
ͬÑù¿ÉÒÔʹÓÃFTPÐÒéÏÂÔØ£¬ÔÚsunsolve.sun.comµÄ/pub/patches¿ÉÒÔÕÒµ½ËùÓеIJ¹¶¡¡£
ÏÂÔغóΪһ¸ö*_Recommended.zipÎļþ¡£¸ÃѹËõÎļþ°üº¬Ò»·ÝCLUSTER_READMEÎļþ£¬½¨Òé°²×°Ç°ÔĶÁ´ËÎļþ¡£
Point²¹¶¡ÓÉÓÚÆä·ÖÉ¢ÐÔ²»Ò×ÏÂÔØÓë¹ÜÀí£¬¿ÉÒÔʹÓÃSun Alert Patch Report»òPatch ReportsÀ´²é¿´²¹¶¡Çé¿ö£¬ÕâÁ½·ÝÎĵµÏàÓ¦µÄPatch ID¼°¶ÔÓ¦ÏÂÔصØÖ·¡£ÁíÍâsunÍøÕ¾ÌṩµÄPatch Finder ¹¦ÄÜÒ²¿ÉÒÔʹÎÒÃÇÔÚÖªµÀPatch IDµÄÇé¿öϺܷ½±ãµÄÕÒµ½¸Ã²¹¶¡£¬Á¬½ÓÈçÏ£º
http://sunsolve.sun.com/pub-cgi/show.pl?target=patches/patch-access&nav=patchpage
ͬÑù£¬ÀûÓÃftpÐÒé´Ósunsolve.sun.comµÄ/pub/patchesĿ¼ÏÂÒ²¿ÉÒÔÏÂÔØÖ¸¶¨Patch¡£
Sun¹«Ë¾½¨ÒéËùÓÐÏÂÔصIJ¹¶¡¶¼·Åµ½/var/tmpĿ¼Ï£¨ÕâÒ²ÊÇͨ³£µÄ×ö·¨£©,Èç´Ë½«²»»áµ¼Ö²¹¶¡°²×°Ê±³öÏÖµÄÈκÎpermission/ownershipµÄÎÊÌâ¡£
Èý¡¢solaris²¹¶¡µÄ°²×°ºÍɾ³ý
3£®1 /var/sadm/patchĿ¼
ÔÚ/var/sadm/patchĿ¼Ï£¬¼Ç¼ÁËÒÑ°²×°µÄ²¹¶¡¡£
Èç: # ls /var/sadm/patch
107558-05 107594-04 107630-01 107663-01 107683-01
107696-01 107817-01 107582-01 107612-06 107640-03
[1] [2] [3]
½¨Òé²»Òª¶Ô´ËĿ¼×öÈκÎÐ޸ģ¬´ËĿ¼±»ÆÆ»µºó½«²»ÄÜ°²×°»òɾ³ýÈκβ¹¶¡¡£
3£®2 ¹ÜÀísolaris²¹¶¡
SolarisÌṩÁËÁ½¸öÃüÁîÀ´¹ÜÀí²¹¶¡£¬PatchaddºÍpatchrm¡£ÕâÁ½¸öÃüÁîÊÇÔÚSolaris 2.6°æ±¾¿ªÊ¼ÌṩµÄ£¬ÔÚ2.6ÒÔÇ°µÄ°æ±¾ÖУ¬Ã¿¸ö²¹¶¡°üÖж¼ÌṩÁËÒ»¸ö installpatch ³ÌÐòºÍÒ»¸ö backoutpatch ³ÌÐòÀ´Íê³É²¹¶¡µÄ°²×°ºÍжÔØ¡£
Patchadd ÓÃÀ´°²×°½âѹËõºóµÄ²¹¶¡³ÌÐò¡£Patchaddͨ¹ýµ÷Óà pkgadd ÃüÁîÀ´°²×°²¹¶¡¡£°²×°²¹¶¡Ç°£¬ÎÒÃÇÐèÒª½«²¹¶¡½âѹµ½/var/tmpÏ°²×°¡£°²×°²¹¶¡ÈçÏÂÃüÁ
# cd /var/tmp
# patchadd 110668-04
Checking installed patches...
Verifying sufficient filesystem capacity (dry run method)
Installing patch packages...
Èç¹ûµ±Ç°Ä¿Â¼ÏÂÓÐ110668-04Ŀ¼£¬patchadd½«°²×°´Ë²¹¶¡¡£²¹¶¡°²×°ºó£¬ÏµÍ³»á±¸·ÝÔÎļþ£¬ÒÔ±ãÔÚÒÔºóɾ³ý´Ë²¹¶¡¡£Èç¹ûʹÓÃpatchadd ¨Cd Ñ¡Ïî°²×°²¹¶¡£¬ÏµÍ³½«²»±¸·ÝÔ´Îļþ£¬ÕâÒâζ×ÅÄ㽫²»ÄÜÔÚÒÔºóɾ³ý´Ë²¹¶¡¡£Ê¹ÓÃPatchadd ¨Cp Ñ¡Ïî¿ÉÒÔ¼ìÑéÒÑ°²×°µÄpatch£¬ÀýÈ磺
# patchadd -p
Patch: 106793-01 Obsoletes: Requires: Incompatibles:
Packages: SUNWhea
. . .
ͬÑù£¬solarisÌṩÁËÁíÒ»ÃüÁîÀ´²é¿´ÒÑ°²×°µÄpatch£º
#showrev -p
Patch: 106793-01 Obsoletes: Requires: Incompatibles:
Packages: SUNWhea
. . .
Patchrm Èç¹ûÒòΪijÖÖÇé¿öÄãÏëжÔØijһ²¹¶¡£¬Äã¿ÉÒÔʹÓÃPatchrmÃüÁîÀ´Íê³É¡£´ËÃüÁîͨ¹ýµ÷Óà pkgadd À´»Ö¸´°²×°²¹¶¡Ç°µÄÎļþ±¸·ÝÀ´Ð¶Ôز¹¶¡¡£Ê¹ÓÃPatch-ID×÷ΪPatchrmµÄ²ÎÊý¾Í¿ÉÒÔжÔز¹¶¡£º
# patchrm 106793-01
Checking installed packages and patches...
Backing out patch 106793-01...
Patch 106793-01 has been backed out.
ÕâÀïÐèҪ˵Ã÷һϣ¬ÔÚÈçÏÂÈýÖÖÇé¿öÏ£¬²¹¶¡½«²»ÄÜжÔØ£º
1.ÔÚ°²×°patchʱ,ÓÃpatchadd -dÃüÁîÖ¸¶¨patchadd ²»±¸·Ý±»¸üеÄÎļþ¡£ÕâÑù°²×°µÄpatchÎÞ·¨É¾³ý¡£
2.ÁíÒ»PatchÐèÒª´ËPatch£¬¼´´æÔÚdependence(¹ØÁªÐÔ), ÈçÒ»¶¨ÒªÉ¾µô¸Ãpatch,ÏÈɾµôÁíÒ»patch¡£
3.ҪɾµÄpatchÒѱ»ÁíÒ»¸üеÄpatch·ÏÆúÁË¡£Èç°²×°110668-04²¹¶¡ºó£¬Èç¹ûÒÔÇ°°²×°¹ý110668-03£¬Ôò110668-03½«±»110668-04·ÏÆú£¬110668-03½«ÎÞ·¨É¾³ý¡£
3£®3 Cluster²¹¶¡µÄ°²×°
Cluster²¹¶¡Îªµ¥¸ö²¹¶¡µÄ¼¯ºÏ£¬ÏÂÔؽâѹºó£¬¿ÉÒÔͨ¹ýÖ´ÐÐ./install_Cluster½Å±¾À´Íê³É²¹¶¡¼¯µÄ°²×°¡£Ö´ÐÐ./install_Clusterºó£¬½Å±¾½«¼ì²éµ±Ç°Ä¿Â¼ÏµÄpatch_orderÎļþ£¬´ËÎļþ±êÃ÷ÁËPatchµÄ°²×°Ë³Ðò£¬./install_Cluster½«°´ÕÕPatch_orderÎļþ¸ø³öµÄ˳ÐòÀ´°²×°patch¡£Èç¹ûûÓÐpatch_orderÎļþ£¬Ôò¼Ù¶¨µ±Ç°Ä¿Â¼ÏÂËùÓÐÒÔ1¿ªÊ¼µÄĿ¼Ãû¾ùΪÐèÒª°²×°µÄ²¹¶¡Ä¿Â¼£¬²¢ÇÒ¼Ù¶¨ÕâЩĿ¼µÄÃû³Æ´ÎÐò×÷Ϊ°²×°PatchµÄ´ÎÐò¡£Òò´ËÄã¿ÉÒÔͨ¹ýÐÞ¸Äpatch_orderÎļþÀ´¾ö¶¨°²×°»ò²»°²×°Ä³Patch¡£
3£®4 °²×°PatchʱµÄ×¢ÒâÊÂÏî
ÓÉÓÚÔÚ°²×°PatchʱÐèÒª¸üÐÂÎļþ£¬¹Ê´ËSolaris¹Ù·½ÍƼöÔÚ°²×°²¹¶¡Ê±½øÈëµ¥Óû§Ä£Ê½°²×°¡£ÔÚijЩÖØÒª·þÎñÆ÷ÉÏ¿ÉÄÜ´øÀ´²»±ã£¬Òò´ËÄãÍêÈ«¿ÉÒÔÔÚ¶àÓû§Ä£Ê½ÏÂͨ¹ýÍ£Ö¹Ïà¹Ø·þÎñ½ø³ÌÀ´Íê³ÉPatchµÄ°²×°¡£
sunÍƳöµÄPatch²¢²»ÊÇÿ¸ö¶¼Ò»¶¨Òª°²×°µÄ£¬Òò´ËÐèÒªÔÚ°²×°patchÇ°×ÐϸÔĶÁREADMEÀ´È·¶¨ÊÇ·ñÐèÒª°²×°´Ë²¹¶¡¡£ÁíÍ⣬ijЩ²¹¶¡¾ßÓÐÒÀÀµÐÔ£¬ÐèÒªÏÈ°²×°ÁíÒ»²¹¶¡²ÅÄÜÍê³É´Ë²¹¶¡µÄ°²×°£¬ÕâЩ¶¼»áÔÚREADMEÖбêÃ÷¡£×ÜÖ®£¬°²×°²¹¶¡Ö®Ç°Ç¿ÁÒ½¨ÒéÄãÔĶÁÏàÓ¦µÄREADME£¨Ã¿¸öPatch¶¼Ìṩµ¥¶ÀµÄREADMEÎļþ£©¡£
3£®5 °²×°PATCH¹ý³ÌÖгöÏÖµÄÎÊÌâ
ÔÚ°²×°²¹¶¡µÄ¹ý³ÌÖУ¬¾³£³öÏÖһЩ´íÎóÌáʾ¡£ÀýÈ磺
Installation of 123456-11 failed. Return code 2
ͨ¹ýReturn codeÎÒÃÇ¿ÉÒÔÖªµÀ´íÎóÀàÐÍ¡£ÐèҪעÒâµÄÊÇ£¬Return code 2˵Ã÷´Ë²¹¶¡Òѱ»°²×°£¬Return code 8˵Ã÷´Ë²¹¶¡ÒªÐÞ¸´µÄÈí¼þûÓб»ÏµÍ³°²×°¡£Òò´Ë£¬2ºÍ8ÊÇÍêÈ«¿ÉÒÔ±»ºöÂԵĴíÎóÌáʾ¡£Ï±í˵Ã÷Á˸÷¸öReturn code¶ÔÓ¦µÄ´íÎóÀàÐÍ¡£
Exit code Meaning
0 No error
1 Usage error
2 Attempt to apply a patch that's already been applied
3 Effective UID is not root
4 Attempt to save original files failed
5 pkgadd failed
6 Patch is obsoleted
7 Invalid package Directory
8 Attempting to patch a package that is not installed
9 Cannot access /usr/sbin/pkgadd (client problem)
10 Package validation errors
11 Error adding patch to root template
12 Patch script terminated due to signal
[1] [2] [3]
13 Symbolic link included in patch
14 NOT USED
15 The prepatch script had a return code other than 0.
16 The postpatch script had a return code other than 0.
17 Mismatch of the -d option between a previous patch install and the current one.
18 Not enough space in the file systems that are targets of the patch.
19 $SOFTINFO/INST_RELEASE file not found
20 A direct instance patch was required but not found
21 The required patches have not been installed on the manager
22 A progressive instance patch was required but not found < tr>
23 A restricted patch is already applied to the package
24 An incompatible patch is applied
25 A required patch is not applied
26 The user specified backout data can't be found
27 The relative directory supplied can't be found
28 A pkginfo file is corrupt or missing
29 Bad patch ID format
30 Dryrun failure(s)
31 Path given for -C option is invalid
32 Must be running Solaris 2.6 or greater
33 Bad formatted patch file or patch file not found
34 The appropriate kernel jumbo patch needs to be installed
35 Later revision already installed
Reference:
1.Solaris™8 Operating Environment System Administration I, (SA-238)
2.System Administration Guide, Volume 1, (805-7228),Solaris
3.SunSolve Patch Support Portal http://sunsolve.sun.com/pub-cgi/show.pl?target=patchpage
£¨³ö´¦£ºhttp://www.sheup.com£©
[1] [2] [3]
21 The required patches have not been installed on the manager
22 A progressive instance patch was required but not found < tr>
23 A restricted patch is already applied to the package
24 An incompatible patch is applied
25 A required patch is not applied
26 The user specified backout data can't be found
27 The relative directory supplied can't be found
28 A pkginfo file is corrupt or missing
29 Bad patch ID format
30 Dryrun failure(s)
31 Path given for -C option is invalid
32 Must be running Solaris 2.6 or greater
33 Bad formatted patch file or patch file not found
34 The appropriate kernel jumbo patch needs to be installed
35 Later revision already installed
Reference:
1.Solaris™8 Operating Environment System Administration I, (SA-238)
2.System Administration Guide, Volume 1, (805-7228),Solaris
3.SunSolve Patch Support Portal http://sunsolve.sun.com/pub-cgi/show.pl?target=patchpage
£¨³ö´¦£ºhttp://www.sheup.com£©
[1] [2] [3] [4]