£¨2£©Migration Installation (Éý¼¶°²×°)
ʹÓøð²×°·½·¨È¥Éý¼¶AIX 3.2 4.1 4.2 4.3 To AIX 5L Version 5.1 Éý¼¶Ê±±£ÁôÁËÒѾ´æÔÚµÄrootvg¾í×飬³ýÁË/tmp£¬¸Ã·½·¨±£ÁôÁËËùÓеÄÎļþϵͳ£¬°üÀ¨rootvg,lvºÍϵͳÅäÖÃÎļþ£¬Í¬Ê±±£ÁôÁËÓû§ÅäÖÃÎļþ¡£ £¨3£©Preservation Installation
¸Ã·½·¨¸²¸ÇÁË/usr , /tmp, /var, ºÍ / Îļþϵͳ£¬ÔÚÕâЩĿ¼ÖÐÈκÎÓû§Êý¾Ý½«¶ªÊ§£¬ÈÎºÎÆäËûµÄLPPºÍFilesets½«»á¶ªÊ§£¬ÏµÍ³ÅäÖý«ÖØ×öÔÚ°²×°½áÊøºó ÓÐÒ»¸ö /etc/preserve.listÎļþ£¬ÔÚ¸ÃÎļþÖеÄÌõÄ¿½«»á±»±£Áô
# bootinfo ¨Cy ±êʾϵͳӲ¼þµÄÀàÐÍ ( 32bit»ò64bit ) oslevel µÄÔËÐÐ
# oslevel ( to see the current maintenance level of your system ) 4.3.3.0
Èí¼þµÄ×é³ÉÒÔ¼°¸÷²¿·ÖµÄº¬Òå vv.rr.mmmm.ffff
vv : Á½¸öÊý×Ö ±êʾ version number rr : Á½¸öÊý×Ö ±êʾ release number
mmmm: ËĸöÊý×Ö ±êʾ modification lever ffff: ËĸöÊý×Ö ±êʾ fix level
ÔÚÉý¼¶ºó£¬oslevleºó£¬Èç¹ûÄãµÄϵͳûÓÐÏÔʾ³öеÄά»¤²ã£¬Ê¹ÓÃ
After an update, if your system is not showing the new maintenance level . use the ¨Cl flag with the oslevle command to detemine what filesets have note been upgraded to match the new BOS levle # oslevle ¨Cl < Current Level ¡µÈ¥¾ö¶¨»¹ÓÐʲôfilesetsûÓб»Éý¼¶µ½ÐµÄBOS Level
PTF and APARs
PTF : Program Temporary Fix , a PTF is an updated fileset or a fileset that fixes a previous system problem
PTF µÄ°²×°ÊÇʹÓà installp ÃüÁî
APAR: Authorized Program Analysis Report , An APAR is an emergency fix. Or e-fix . to a unique problem on the system , APARS will eventually become PTFs after tesing and verification. APAR µÄ°²×°ÊÇʹÓà instfix ÃüÁî
InstallpÃüÁî
-X Èç¹ûÔÚ°²×°¹ý³ÌÖпռ䲻¹»½«À©Õ¹Îļþϵͳ
-v ÔÚ°²×°½áÊøºóÈ·ÈÏÔÚÎļþ¼¯ÖеÄËùÓа²×°µÄÎļþ±¸ÕýÈ·µØ¼ì²é¹ý¡£¿ÉÒÔͬ-a ºÍ ¨CacÒ»ÆðʹÓÃÀ´È·ÈÏÒ»¸ö³É¹¦µÄ°²×°¡£
-a Ó¦ÓÃÒ»¸ö»ò¸ü¶àµÄÈí¼þ²úÆ·»òÉý¼¶£¬¸Ã²ÎÊýÊÇĬÈϵÄÐÐΪ£¬¸Ã²ÎÊý¿ÉÒÔºÍ ¨Cc Ò»ÆðʹÓÃÀ´apply ºÍ commitÒ»¸öÈí¼þµÄÉý¼¶»ò°²×°
-p Ö´ÐÐÒ»¸ö°²×°Ô¤ÀÀ£¬ÔËÐÐÔ¤°²×°µÄËùÓмì²é -B ±íʾÇëÇóµÄÐÐΪ±»ÏÞÖÆµ½Èí¼þµÄÉý¼¶
-C Çå³ýÒ»¸öÖжϵݲװºÍɾ³ýËùÓÐûÓÐÍê³ÉµÄ°²×° -c commit appliedµÄÉý¼¶µ½ÏµÍ³ -d Ö¸¶¨°²×°Ã½ÖÊ
-F Ç¿ÆÈ°²×°£¬ÎÞÂÛÊÇ·ñ´æÔÚ£¬ÊÇ·ñоÉ
-f read the names of the software products from listfile
g µ±ÓÃÀ´installºÍcommitµÄʱºò£¬ ¸ÃÑ¡Ïî×Ô¶¯°²×°»òcommit£¬ Èí¼þ¿ÉÒÔÒÔÁ½ÖÖ·½Ê½½øÐа²×°£º
applied state: ¸Ã״̬°²×°Èí¼þµ½ÏµÍ³Í¬Ê±±£ÁôÒÔǰ°æ±¾µÄÈí¼þ £¬¸Ã״̬ÊǷdz£ÓÐÓÃÀ´²âÊÔеÄÈí¼þ£¬ÔÚÓбØÒªµÄʱºò¿ÉÒÔ·µ»Øµ½ÒÔǰ°æ±¾µÄÈí¼þ committed state : °²×°Èí¼þͬʱɾ³ýÒÔǰµÄÈí¼þ ÀýÈ磺 1¡¢°²×°ÔÚ bos.netÈí¼þ°üÖеÄËùÓеÄfilesets µ½ /usr/sys/inst.imagesĿ¼£¨ in the applied state£© Installp¨CavX ¨Cd/usr/sys/inst.images bos.net
2¡¢Ô¤°²×°ÔÚbos.netÈí¼þ°üÖеÄËùÓеÄÎļþ¼¯µ½/usr/sys/inst.imagesĿ¼£¨ In the committed state £©Í¬Ê±¼ì²é´ÅÅ̿ռäµÄÐèÇó
3¡¢Çå³ýÒ»¸öÖжϵݲװºÍɾ³ýËùÓÐûÓÐÍê³ÉµÄ°²×° # installp ¨CC
4¡¢committing applied updates ÃüÁ # installp ¨Ccgx all »òÕßÊÇ smitty install_commit Õâ¸öÃüÁcommitËùÓеÄupdatesͬʱɾ³ýÒÔǰ°æ±¾µÄfilesets
5¡¢Rejecting applied updates ÃüÁî # installp ¨CrBfX ./reject.list»òÊÇsmitty install_reject
¸ÃÃüÁɾ³ýËùÓÐuncommitted updates listed in ./reject.list ͬʱ½«ÏµÍ³´ø»Øµ½ÒÔǰµÄmaintenance level
6¡¢É¾³ýÒ»¸ö°²×°µÄÈí¼þ # installp ¨Cugp ¨CV2 bos.net.ipsec.rte ÔËÐиÃÃüÁÏÔʾһ¸ö½«ÒªÉ¾³ýµÄÎļþµÄÁÐ±í£¬µ«²¢²»ÕæÕýɾ³ýËü »òÊÇ # smitty install_remove 7¡¢ÁÐʾÔÚýÖÊÉϵÄËùÓеÄÈí¼þ # installp ¨CL ¨Cd /dev/cd0
8¡¢Ê¹ÓÃsmitty°²×°Èí¼þ # smitty install_latest
×¢Ò⣺ ÔÚ°²×°½áÊøºó£¬ÎÞÂÛÃüÁîµÄ״̬±¨¸æÊdzɹ¦µÄ»¹ÊÇʧ°ÜµÄ£¬¶¼Ó¦¸Ã¿´¿´ $HOME/smit.logÎļþ£¬ÒòΪÄãÏë°²×°µÄfilesetϵͳ¿ÉÄܲ¢Ã»Óа²×° A version number and a release number : ±êʾ release level
A modification level and a fix level number : ±êʾ the level of the update
ÓÃÏÂÃæµÄ²½Öèʹһ¸öϵͳÉý¼¶µ½×îеÄmaintenance level£º 1¡¢ÁÐʾÈí¼þµÄ maintenance level 2¡¢ÏÂÔØ fixs
3¡¢ÏÔʾ²¢Éý¼¶°²×°µÄÈí¼þµ½×îеÄlevel
ΪÁË¿´Ä㵱ǰÔËÐеÄfilesetsµÄmaintenance level £¬Ê¹ÓÃÏÂÃæµÄÃüÁ # lslpp ¨Cl
ΪÁËdisplay all files installed with the bos.64bit fileset # lslpp ¨Cf bos.64bit
ΪÁËÏÔʾfilesets°²×°ºÍÉý¼¶µÄÀúÊ· £º # lslpp ¨Ch bos.sysmgt.trace
ÏÂÔØ FIXs :
1¡¢ftp://service.software.ibm.com
2¡¢Í¨¹ýfixdistµÄ¹¤¾ß ·ÃÎÊ£º http://service.software.ibm.com
ͨ¹ýfixdist ÏÂÔØµÄÈí¼þBFFµÄ¸ñʽµÄ£¬ÊÇÓÃbackupÃüÁî´´½¨µÄ£¬Èç*.bff£¬¿ÉÒÔÓÃrestoreÃüÁîÀ´¶Á¡£
Èç¹ûÄã¾³£Ó¦ÓÃÉý¼¶²¢½«ËùÓеÄÉý¼¶Èí¼þ·ÅÔÚÏàͬµÄĿ¼ÖУ¬.tocÎļþ¿ÉÄÜ»á¹ýÆÚ£¬installpÃüÁîʹÓÃ.tocÎļþÀ´Ö´Ðа²×°£¬ÎªÁ˵±ÄãÖ´Ðа²×°µÄʱºòʹÕýÈ·²¢×îеÄÈí¼þ°²×°£¬ÍƼöÖØ¹¹.tocÎļþ,ÃüÁîÈçÏ£º
# inutoc
Äã¿ÉÒÔʹÓÃfixdist¹¤¾ßÏÂÔØ¸ö±ðµÄfix£¬ÎªÁ˾ö¶¨Ò»¸öfixÊÇ·ñ°²×°ÔÚϵͳÉÏ»òΪÁ˰²×°Ò»¸öfix£¬Ê¹ÓÃinstfixÃüÁ ºÍfixÓйأ©
instfixÃüÁîÔÊÐíÄã°²×°Ò»¸öfix»òset of fixes without knowing any information ³ýÁËAPARºÅ»òΨһµÄ¹Ø¼ü×ÖÀ´±êʾÕâ¸öfix
ÀýÒ»£ºÎªÁËÁÐʾÔÚÒ»¸öCD-ROMÖеÄfixes # instfix ¨CT ¨Cd /dev/cd0
Àý¶þ£ºÎªÁ˾ö¶¨ÊÇ·ñAPAR IX75893°²×°µ½ÏµÍ³ # instfix ¨Cik IX75893
ÀýÈý£ºTo examine information about APAR IX75893 and what it does # instfix ¨Caik IX75893
ÀýËÄ£ºTo list what maintenance levels have been installed on your system with the instfix command
# instfix ¨Ci | grep ML
ÀýÎ壺ΪÁË´Ó/dev/cd0°²×°APAR IX75893 # instfix ¨Ck IX75893 ¨Cd /dev/cd0
ÀýÁù£ºTo view the new maintenance level of your software # lslpp ¨Cl Ö÷Òª»¹ÊÇÏÔʾ fix level
this will show you the latest maintenance level of the filesets including those you just updated ΪÁË´´½¨installation images on your hard disk # smitty bffcreate
ΪÁ˿ˡrootvgµ½Ò»¸öеĴÅÅÌ # smitty alt_clone
Ìõ¼þ£º The target disk should be a stand-alone disk not belonging to a VG£¬Í¬Ê±£¬SSA disks cannote be used as your target disks
µÚËIJ¿·Ö£º ODM
´ó¶àÊýµÄϵͳ object classes ºÍ objects´æ´¢ÔÚ/usr/lib/objreposĿ¼£¬È»¶ø£¬ODMÐÅÏ¢´æ´¢ÔÚ
1¡¢/usr/lib/objrepos
2¡¢/usr/share/lib/objrepos 3¡¢/etc/bojrepos ODMµÄÏà¹ØÃüÁ
odmadd: add objects to an boject class odmcreate: create empty object classes
odmchange: change specific objects in a specified object class odmdelete remove objects from an boject class odmdrop remove an entire object class
odmget retrives objects from object classes
odmshow display the description of an object class
µÚÎ岿·Ö£º´æ´¢¹ÜÀíºÍÎļþϵͳ VGDA:
The VGDA, located at the beginning of each physical volume,contain informatino that describes all the logical volumes and all the physical volumes that belong to the volume group of which that physical volume is a memober
The VGDA is allocated when the disk is assigned as a physical volume,When the PV is assigned to a VG ,The actual VG informationg is placed in the VGDA
VGSA:
The VGSA contains state information about PP and PV
LVCB:
The LVCB is located at the start of every LV , It contains information about the LV and users a few hundred bytes
Disk Quorum:
Each Physical disk in a VG has at least one VGDA/VGSA, single PV in a VG: two VGDAs on one disk
two PV in a VG: two VGDAs on the first disk, one VGDA on the second disk Three or more : one VGDA on each disk
Disk Mirroring :
disk mirroring is the association of two or three PP with each LP in a LV,ÔÚLV´´½¨µÄʱºò¾Í¿ÉÒÔ×öMirroring ¡£
mklv ÃüÁîÔÊÐíÄãÑ¡Ôñ one or two additional copied for each LV,MirrorÒ²¿ÉÒÔ¼ÓÔÚÒ»¸öÒѾ´æÔÚµÄLV£¬Í¨¹ýʹÓÃmklvcopyÃüÁî
mirrorvgÃüÁî¾µÏñÔÚÒ»¸ö¸ø¶¨VGÖеÄËùÓеÄLV,ÏàͬµÄ¹¦ÄÜ¿ÉÒÔ±»Íê³Éͨ¹ýmklvcopyÃüÁÈç¹ûÔÚÒ»¸öVGÖÐÔËÐÐmklvcopyÃüÁîfor ÿһ¸öµ¥¶ÀµÄLV£¬×¢Òâ´Ë´¦¾ÍÊÇÄ¿±ê´ÅÅ̱ØÐëºÍÔ´´ÅÅ̵ȵÈÔÚͬһ¸öVGÖÐ
ÀýÒ»£º# mirrorvg -c 3 workvg ÈýÖØ¾µÏñÒ»¸ö¾í×é Àý¶þ£º# mirrorvg workvg ÒÔĬÈϵķ½Ê½¾µÏñ¾í×é
ΪÁËɾ³ýÒ»¸ö¾í×éÖÐÒѾË𻵵ĴÅÅÌ£º # unmirrorvg workvg hdisk7 # reducevg work hdisk7 # remdev -l hdisk7 -d
ɾ³ýºóÌí¼ÓÒ»¸öеĴÅÅÌ£¨ÒÔͬÑùµÄÃû³Æ£© # extendvg workvg hdisk7 # mirrorvg workvg ͬ²½Ð½¨µÄ¾µÏñ