HP Software/Patch ¼³Ä¡ ¹× Á¦°Å
8. HP Software/Patch ¼³Ä¡ ¹× Á¦°Å with SD-UX
8.1 Software Distributor-HP-UX °³¿ä
Software Distributor-HP-UX(SD-UX)´Â software °ü¸®¿Í °ü·ÃµÈ ¸ðµç ÀÛ¾÷ »çÇ×(¼³Ä¡,Á¦°Å,¼öÁ¤,±¸¼º)À» ¼öÇàÇÏ´Â ÇÁ·Î±×·¥ÀÌ´Ù. Çâ»óµÈ ±â´ÉÀ» °®Ãá SD-O¸¦ »ç¿ëÇϸé ÇÑ node¿¡¼ ³ª¸ÓÁö ´Ù¸¥ nodeµéÀÇ software management°¡ °¡´ÉÇÏ´Ù.
8.2 SD-UX command »ç¿ë¹ý ¿ä¾à
n swcopy
½Ã½ºÅÛ °ü¸®ÀÚ°¡ ¼ÒÇÁÆ®¿þ¾î ÆÐÅ°Áö·ÎºÎÅÍ(or depot ·ÎºÎÅÍ) ƯÁ¤ depot À¸·Î º¹»ç
Çϴµ¥ ¾²ÀÌ´Â ¸í·ÉÀ¸·Î, ¿©·¯ °³ÀÇ depotÀ» ÇϳªÀÇ depotÀ¸·Î ¸¸µé ¶§ À¯¿ëÇÏ´Ù.
SD-OV¸¦ ÀÌ¿ëÇϸé ÇÑ nodeÀÇ disk¿¡ depotÀ» swcopy ÈÄ central¿¡¼ ³ª¸ÓÁö node·Î Çѹø¿¡ install ¼öÇàÇÒ ¼ö ÀÖ´Ù.
n swinstall
CD-ROM/Å×ÀÌÇÁ ¶Ç´Â ƯÁ¤ depot ·ÎºÎÅÍ local host¿¡ ¼ÒÇÁÆ®¿þ¾î¸¦ ¼³Ä¡Çϰųª
¾÷µ¥ÀÌÆ® ÇÑ´Ù.
[¿¹Á¦1] Çö µð·ºÅ丮³»¿¡ ÀÖ´Â software¶ó´Â depot¿¡ ÀÖ´Â ¸ðµç ¼ÒÇÁÆ®¿þ¾î¸¦ ¼³Ä¡
# swinstall –s $PWD/software \*
[¿¹Á¦2] HP¿¡¼ Á¦°øµÈ CD-ROMÀ¸·Î ¼ÒÇÁÆ®¿þ¾î¸¦ ¼³Ä¡ÇÒ ¶§
# ioscan –fnkCdisk
©£ CDROM ÀÇ device fileÀ» È®ÀÎ, N4000ÀÏ °æ¿ì /dev/dsk/c0t2d0
# mount /dev/dsk/c0t2d0 /SD_CDROM
# swinstall –s /SD_CDROM
¢Ñ NOTE
11.0¿¡¼ /SD_CDROMÀÇ mount ´Â »ý·« °¡´ÉÇÏ´Ù. Áï, swinstall –s /SD_CDROM °ú °°À̸¸ »ç¿ëÇصµ OS¿¡¼ ÀÚµ¿À¸·Î mount ½ÃÄÑ Àоî¿Â´Ù.
n swlist
Çö ½Ã½ºÅÛ, depot ȤÀº ¹Ìµð¾î¿¡ ÀÖ´Â ¼ÒÇÁÆ®¿þ¾îÀÇ ¸ñ·ÏÀ» º¸¿©ÁØ´Ù.
[¿¹Á¦] ½Ã½ºÅÛ¿¡ ¼³Ä¡µÇ¾î ÀÖ´Â ¼ÒÇÁÆ®¿þ¾î ¹× patch¸¦ º¸¿©ÁÜ
# swlist
[¿¹Á¦] ½Ã½ºÅÛ¿¡ ¼³Ä¡µÇ¾î ÀÖ´Â software ¸¦ level º°·Î º¸¿©ÁÜ.
# swlist –l <root/depot/bundle/product/subproduct/fileset/file>
[¿¹Á¦] CD-ROM³»ÀÇ depot ³»¿ëÀ» º¸¿©ÁÜ
# swlist –s /SD_CDROM
n swpackage
¼ÒÇÁÆ®¿þ¾î ¾÷ü³ª ½Ã½ºÅÛ °ü¸®ÀÚ°¡ ¼ÒÇÁÆ®¿þ¾î¸¦ ÆÐÅ°Áö Çϴµ¥ ¾²ÀÌ´Â ¸í·É.
[¿¹Á¦] Çö µð·ºÅ丮³»¿¡ ÀÖ´Â software¶ó´Â depot¿¡ ÀÖ´Â ¸ðµç ¼ÒÇÁÆ®¿þ¾î¸¦
Å×ÀÌÇÁ¿¡ ÆÐÅ°ÁöÇÒ ¶§
# swpackage –s `pwd`/software –d /dev/rmt/0m –x target_type=tape
n swremove
Çö ½Ã½ºÅÛ¿¡ ¼³Ä¡µÇ¾î ÀÖ´Â ¼ÒÇÁÆ®¿þ¾î³ª depot¿¡ ÀÖ´Â ¼ÒÇÁÆ®¿þ¾îÀÇ Á¦°Å.
[¿¹Á¦] Çö ½Ã½ºÅÛ¿¡ ¼³Ä¡µÇ¾î ÀÖ´Â B3910AA_APZÀ̶ó´Â À̸§ÀÇ ¼ÒÇÁÆ®¿þ¾î
bundleÀ» Á¦°ÅÇÏ°íÀÚ ÇÒ ¶§
# swremove B3910AA_APZ
[¿¹Á¦] ¸¸ÀÏ Çö ½Ã½ºÅÛ¿¡¼ ¾²°í ÀÖ´Â ¶óÀ̺귯¸®³ª Ä¿³Î°ú ¿¬°üÀÌ ÀÖ´Â Á¦Ç°À»
Á¦°ÅÇÒ ¶§
# swremove –x autoreboot=true B3910AA_APZ
n swconfig
Install µÈ software¸¦ configure ½ÃŲ´Ù. ´ëü·Î swinstall ¼öÇà ½Ã swconfig°¡ ¼öÇà
µÇÁö¸¸ configurationÀÌ ½ÇÆÐ ½Ã manual·Î ¼öÇàÇØ ÁØ´Ù.
[¿¹Á¦] ½Ã½ºÅÛ¿¡ ÀÖ´Â ¸ðµç filesetÀ» configuration ÇÒ ¶§
# swconfig \*
[¿¹Á¦] ½Ã½ºÅÛ¿¡ ÀÖ´Â B3910AA_APZ¸¦ configuration ÇÒ ¶§
# swconfig B3901AA_APZ
n swverify
install µÈ softwareÀÇ integrity ¸¦ Á¡°ËÇÑ´Ù. Software³ª patch¸¦ install ÈÄ install ÀÇ ¼º°ø¿©ºÎ¸¦ È®ÀÎÇϱâ À§ÇØ »ç¿ëµÉ ¼ö ÀÖ´Ù.
[¿¹Á¦] ½Ã½ºÅÛ¿¡ ÀÖ´Â ¸ðµç filestÀ» Á¡°Ë
# swverify \*
[¿¹Á¦] ½Ã½ºÅÛ¿¡ ÀÖ´Â B3901AA_APZÀ» Á¡°Ë
# swverify B3901AA_APZ
n ±× ¹Û¿¡ swacl , swmodify , swreg µîÀÌ ÀÖ´Ù.
8.3 HP ¼ÒÇÁÆ®¿þ¾î ¼³Ä¡ ¹æ¹ý
¨ç # /etc/mount /dev/dsk/c1t2d0 /SD_CDROM
¨è # /usr/sbin/swinstall –s /SD_CDROM
©£ software installÀ» ½Ç½ÃÇϸé TUI ȤÀº GUI°¡ ¶á´Ù.
¨é ¼³Ä¡ÇÏ·Á´Â ¼ÒÇÁÆ®¿þ¾î¿Í °ü·ÃµÈ ºÎºÐÀ» ¼±ÅÃÇÑ ÈÄ Action ¸Þ´º¿¡¼ ¡°Mark for Install¡±À» ½ÇÇà½ÃŲ´Ù.
¨ê ´Ù½Ã ¡°Action Menu¡± ¹Ø¿¡ ÀÖ´Â ¡°Install(Analysis)¸¦ ½ÇÇà½ÃŲ´Ù.
(HPUX 10.20 ºÎÅÍ Mark °úÁ¤ »ý·« °¡´ÉÇÔ)
©£ À̶§ "Install Analysis" window°¡ ³ªÅ¸³´Ù.
©£ ¿©±â¼ Analysis°¡ ³¡³ª¸é "View Log File" buttonÀ» ´©¸¥´Ù. ¸¶Áö¸· ÁÙ¿¡
"The Analysis Phase succeeded"¶ó°í ³ª¿À¸é Analysis°¡ ¹«»çÈ÷ ³¡³ °ÍÀÌ´Ù.
©£ ¸¸ÀÏ error°¡ ³ªÅ¸³ª¸é °¡Àå óÀ½ error·Î °¡¼ ³»¿ëÀ» È®ÀÎÇÑ ÈÄ Á¶Ä¡¸¦ ÃëÇÑ´Ù.
´ë°³ÀÇ °æ¿ì Á¶Ä¡ »çÇ×ÀÌ log¿¡ ±â·ÏµÇ¾î ÀÖ´Ù.
¨ë ±× ´ÙÀ½ "Install Analysis" window·Î µ¹¾Æ°¡¼ "OK" buttonÀ» ´©¸¥´Ù.
©£ °è¼ÓµÇ´Â Áú¹®¿¡ "OK"¸¦ ¼±ÅÃÇϸé InstallÀÌ ¼öÇàµÈ´Ù.
¨ì ´Ù ³¡³ª¸é "Done" buttonÀ» ´©¸¥ ÈÄ swinstallÀ» Á¾·áÇÑ´Ù.
©£ Software Á¾·ù¿¡ µû¶ó¼ ½Ã½ºÅÛÀ» Àç ºÎÆÃÇϱ⵵ ÇÑ´Ù.
¨í InstallÀ» È®ÀÎÇÏ·Á¸é "swlist" ¶ó´Â ¸í·ÉÀ» ½ÇÇàÇÑ´Ù.
8.4 Patch ¼³Ä¡ ¹æ¹ý
¨ç patch ÈÀÏÀ» /tmp ¹Ø¿¡ ´Ù¿î·Îµå ¹Þ´Â´Ù.
©£ ¿¹Á¦·Î ¡°PHSS_12345¡± À» ¼³Á¤
¨è HP-UX¿¡¼ shell archive¸¦ Ǭ´Ù
# sh PHSS_12345
©£ PHSS_12345.depot ¿Í PHSS_12345.text °¡ »ý¼ºµÊ.
¨é # swinstall -s /tmp/ PHSS_12345.depot
©£ ¿©±â¼ –s ´ÙÀ½¿¡ Àý´ë°æ·Î¸¦ ½á¾ß ÇÔ.
©£ GUI or TUI °¡ ¶á´Ù.
©£ Non-interactive mode¿¡¼ ÀÛ¾÷ ½Ã´Â full optionÀ» ÁØ´Ù.
# swinstall –x autoreboot=true –x patch_match_target=true \
-s /tmp/PHSS_12345.depot
¨ê ³ª¸ÓÁö »çÇ×Àº ¡°7.2 HP ¼ÒÇÁÆ®¿þ¾î ¼³Ä¡¹ý¡±ÀÇ 3¹øºÎÅÍ µ¿ÀÏ
[ÂüÁ¶1] swinstall ½Ã ÁÖÀÇ »çÇ×
¢Ñ À§¿¡¼ ÇöÀç CD-ROM¿¡ ÀÖ´Â ¸ðµå ¼ÒÇÁÆ®¿þ¾î¸¦ ¼³Ä¡ÇÏ·Á¸é ¡°swinstall –s /cdrom \*¡±À» ¼öÇà.
¢Ñ ¼ÒÇÁÆ®¿þ¾î¸¦ ¼³Ä¡ÇÏ·Á°í ÇÏ´ø Áß¿¡ /etc/fstab¿¡ ÀÖ´Â ³»¿ë Áß¿¡ ÀϺΰ¡ ¸¶¿îÆ®µÇÁö ¾Ê¾Ò´Ù´Â ¸Þ½ÃÁö°¡ ³ª¿À´Â °æ¿ì: ÇØ´ç entry¸¦ /etc/fstab¿¡¼ »èÁ¦Çϰųª swinstallÀÇ ¿É¼Ç¿¡¼ ¸¶¿îÆ®¿¡ °ü·ÃµÈ »çÇ×À» È®ÀÎÇÏ´Â ¿É¼ÇÀ» disable ÇÑ´Ù.
¢Ñ ±×¹Û¿¡ Analysis ÀÛ¾÷ µµÁß ¿¡·¯°¡ ¹ß»ýÇÏ¸é ¡°View Log¡± ¹öÆ°À» Ŭ¸¯ÇÏ¿© ·Î±× ÈÀÏÀÇ ³»¿ëÀ» »ìÆì º¸¾Æ¾ß ÇÑ´Ù. ´ë°³ÀÇ °æ¿ì ·Î±× ÆÄÀÏ¿¡ Á¶Ä¡»çÇ×ÀÌ ³ª¿Í ÀÖ´Ù.
[ÂüÁ¶2] Patch ÆÄÀÏ ¹Þ´Â ¹æ¹ý
n Patch ¶õ?
Patch¶õ HP°¡ Á¦°øÇÏ´Â H/W, OS ¹× application s/w¿¡ ¹®Á¦³ª ¹ö±×°¡ ¹ß°ßµÉ ½Ã
ÇØ°áÀ» À§ÇØ Á¦°øÇÏ´Â fix s/w¸¦ ¸»ÇÑ´Ù. ÀÌ°ÍÀº °è¼ÓÇؼ ³»¿ëÀÌ updateµÇ°í »õ·Î¿î
³»¿ëÀÌ Ãß°¡ µÈ´Ù.
n Patch Site
HPÀÇ Patch´Â ¡°HP Electronic Support Center¡±¶ó´Â ±¹Á¦ÀûÀÎ WebÀ» ÅëÇØ Á¦°øµÈ´Ù.
URL http://us-support.external.hp.com ¶Ç´Â http://www.itresourcecenter.hp.com
ÀÌ web site¿¡ µé¾î°¡¸é User ID¿Í Password¸¦ È®ÀÎÇϴµ¥ óÀ½À¸·Î ÀÌ site¸¦ ¹æ¹®ÇÒ °æ¿ì ¡°New Users Register Now!¡±¸¦ ¼±ÅÃÇÏ¿© User µî·ÏÀ» ÇÏ¸é °ð¹Ù·Î ID¿Í password¸¦ ¹ÞÀ» ¼ö ÀÖ´Ù.
¿øÇÏ´Â patch¸¦ ãÀ¸·Á¸é Á¤È®ÇÑ patch ¹øÈ£¸¦ ¾Æ´Â °ÍÀÌ Á¦ÀÏ ÁÁÁö¸¸ ´ë°³ÀÇ °æ¿ì keyword¿¡ ÀÇÇØ Ã£À» ¼ö ÀÖ´Ù.
[ÂüÁ¶3] HP Software Web Site ¼Ò°³
n HP-UX »ç¿ëÀڵ鿡°Ô ¸Å¿ì À¯¿ëÇÑ Web Site°¡ ÀÖ´Ù.
URL http://www.software.hp.com/
n ÀÌ°÷¿¡´Â ´ÙÀ½°ú °°Àº °ÍµéÀÌ ÀÖ´Ù.
- HP-UX9.0x¸¦ HP-UX10.20À¸·Î UpgradeÇÏ°í ½ÍÀº °í°´Àº Transition ToolkitÀ»
¹«·á·Î OrderÇÒ ¼ö ÀÖ´Ù.
¡°Development Tools & Distributed Computing¡±À» ¼±ÅÃÇؼ µé¾î °¡¸é µÊ.
- HP-UX 10.20 ACE(Additional Core Enhancement) VersionÀ» ´Ù¿î·Îµå ¹ÞÀ» ¼ö
ÀÖ´Ù.(¹«»ó)
- ±âŸ ¹«»óÀ¸·Î »ç¿ëÇÒ ¼ö ÀÖ´Â HP Software (OpenGL Runtime, PowerShade,
Netscape FastTrack Server, Communicator ¡¦)¸¦ ´Ù¿î·Îµå ÇÒ ¼ö ÀÖ´Ù.
- Public Domain Software(°øÂ¥ software)¸¦ ¹ÞÀ» ¼ö ÀÖ´Ù.
(Æí¸®ÇÑ Search ±â´ÉÀÌ Á¦°øµÊ)
- ±¸¸ÅÇØ¾ß ÇÏ´Â Á¦Ç°¿¡ ´ëÇÏ¿©´Â Trial VersionÀ» ´Ù¿î·ÎµåÇÒ ¼ö ÀÖ°í Order ÇÏ´Â
¹æ¹ýÀ» Á¦°øÇÑ´Ù.
[ÂüÁ¶4] HP Technical Documentation Web Site ¼Ò°³
¾Æ·¡ÀÇ web site¿¡¼ HP h/w ¹× s/w productÀÇ ÃֽŠ±â¼ú¹®¼¿Í manualµéÀ» ã¾Æ
º¼ ¼ö ÀÖ´Ù. (HTML À̳ª PDF Æ÷¸ËÀ¸·Î µÇ¾î ÀÖÀ½)
URL http://docs.hp.com/
[ÂüÁ¶5] ¼ÒÇÁÆ®¿þ¾î depotÀ» packageÇÏ´Â ¹æ¹ý
¨ç source directory(ÀÓÀÇ·Î ¸¸µê. ¿©±â¼´Â /SOURCE¶ó °¡Á¤)¿¡ °ü·ÃµÈ patch¸¦ ¸ðµÎ Ǭ´Ù.
# mkdir /SOURCE ; cd /SOURCE
# sh PHCO_12345; sh PHSS_13579
¨è °¢°¢ÀÇ °³º° depot À» ÇϳªÀÇ depotÀ¸·Î ¸ðÀº´Ù.
# for i in `ls -l *.depot|cut –d . –f 1|awk ¡®{print $9}¡¯`
do
swcopy -s "$PWD/$i.depot" -x target_directory="$PWD/depot¡±
-x enforce_dependencies=false -x software=$i
done
©£ ¡°/DEPOT¡± directory´Â ÀÚµ¿À¸·Î »ý¼ºµÇ°í À§ÀÇ ¸í·É¾î´Ânon-interactive mode·Î ½ÇÇàµÈ´Ù.
¨é ¸ð¾ÆÁø depotÀ» tapeÀ¸·Î packageÇÑ´Ù.
# swpackage -s "/DEPOT" -d /dev/rmt/0m -x target_type=tape
|