{"id":732,"date":"2017-04-12T11:05:49","date_gmt":"2017-04-12T03:05:49","guid":{"rendered":"http:\/\/www.821121.com\/?p=732"},"modified":"2020-12-04T11:07:21","modified_gmt":"2020-12-04T03:07:21","slug":"aix%e5%b8%b8%e7%94%a8%e5%91%bd%e4%bb%a4","status":"publish","type":"post","link":"http:\/\/www.821121.com\/?p=732","title":{"rendered":"AIX\u5e38\u7528\u547d\u4ee4"},"content":{"rendered":"<p>\u67e5\u770b\u64cd\u4f5c\u7cfb\u7edf\u7248\u672c<\/p>\n<p>oslevel<\/p>\n<p>\u5173\u95ed\u9632\u706b\u5899<\/p>\n<p>1.\u4f7f\u7528smit\u547d\u4ee4\u6253\u5f00\u56fe\u5f62\u5316\u7a97\u53e3\u8fdb\u884c\u7cfb\u7edf\u914d\u7f6e<\/p>\n<p>2.\u9009\u62e9\u4ee5\u4e0b\u5b50\u9879\u5f00\u542f\u6216\u5173\u95ed\u9632\u706b\u5899<\/p>\n<p>Communications Applications and Services\uff0d\uff1eTcp IP\uff0d\uff1eConfigure Ip Security(IPv4)\uff0d\uff1eStart\/Stop IP Security\uff0d\uff1eStart IP Security<\/p>\n<ol start=\"3\">\n<li>\u4e5f\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u5b50\u9879\u5bf9\u9632\u706b\u5899\u8fdb\u884c\u914d\u7f6e<\/li>\n<\/ol>\n<p>Communications Applications and Services\uff0d\uff1eTcp IP\uff0d\uff1eConfigure Ip Security(IPv4)\uff0d\uff1eStart\/Stop IP Security\uff0d\uff1eAdvantanced IP Security Configuration<\/p>\n<p>\u9ed8\u8ba4\u662f\u6ca1\u6709\u914d\u9632\u706b\u5899<\/p>\n<p>HA\u5207\u6362\u8d44\u6e90\u7ec4<\/p>\n<p>smit hacmp<\/p>\n<p>-System Management (C-SPOC)<\/p>\n<p>--Resource Group and Applications<\/p>\n<p>---Move a Resource Group to Another Node \/ Site<\/p>\n<p>----Move Resource Groups to Another Node<\/p>\n<p>\u67e5\u770b\u903b\u8f91CPU\u4e2a\u6570<\/p>\n<p>pmcycles -m<\/p>\n<p>\u67e5\u770b\u7269\u7406CPU\u4e2a\u6570<\/p>\n<p>prtconf |grep Processors<\/p>\n<p>\u67e5\u770b\u7269\u7406\u5185\u5b58\u5927\u5c0f<\/p>\n<p>prtconf |grep Memory<\/p>\n<p>bootinfo -r<\/p>\n<p>svmon -G##\u5b9e\u9645\u503c=SIZE*4K<\/p>\n<p>\u67e5\u770b\u78c1\u76d8\u5927\u5c0f<\/p>\n<p>bootinfo -s hdiskpower1(\u5355\u4f4dM\uff09<\/p>\n<p>\u67e5\u770b\u8bbe\u5907\u8be6\u7ec6\u4fe1\u606f<\/p>\n<p>lsdev  ##\u5217\u51fa\u6240\u6709\u8bbe\u5907<\/p>\n<p>lsdev -El \u8bbe\u5907\u540d  ##\u67e5\u770b\u8bbe\u5907\u7684\u8be6\u7ec6\u4fe1\u606f<\/p>\n<p>\u5982:lsdev -El proc0 --\u67e5\u770b\u5355\u4e2aCPU\u7684\u8be6\u7ec6\u4fe1\u606f<\/p>\n<p>\u4fee\u6539\u6587\u4ef6\u5927\u5c0f\u9650\u5236<\/p>\n<p>vi \/etc\/security\/limits<\/p>\n<p>root:<\/p>\n<p>fsize = -1<\/p>\n<p>\u6307\u5b9aORACLE\u76ee\u5f55\u603b\u5927\u5c0f\u4e3a4G<\/p>\n<p>chfs -a size=4G \/oracle<\/p>\n<p>\u521b\u5efa\u7528\u6237<\/p>\n<p>smit mkuser<\/p>\n<p>\u521b\u5efa\u7528\u6237\u7ec4<\/p>\n<p>smit mkgroup<\/p>\n<p>\u914d\u7f6e\u7528\u6237<\/p>\n<p>smit chuser<\/p>\n<p>\u914d\u7f6e\u7528\u6237\u7ec4<\/p>\n<p>smit group<\/p>\n<p>\u67e5\u770bswap<\/p>\n<p>lsps -a<\/p>\n<p>\u521b\u5efa\u6587\u4ef6\u7cfb\u7edf<\/p>\n<p>smit crfs<\/p>\n<p>\u521b\u5efalv<\/p>\n<p>smit mklv<\/p>\n<p>\u5220\u9664lv<\/p>\n<p>smit rmlv<\/p>\n<p>\u521b\u5efalv\u955c\u50cf<\/p>\n<p>smit mklvcopy<\/p>\n<p>-\u9009\u62e9lv\u540d\u79f0<\/p>\n<p>--\u4fee\u6539NEW TOTAL number of logical partition copies \u4e3a2<\/p>\n<p>lv\u955c\u50cf\u540e\u540c\u6b65\u6570\u636e(rootvg\u4e3alv\u6240\u5728\u7684vg\u540d)<\/p>\n<p>syncvg -v rootvg<\/p>\n<p>lsvg rootvg        \/\/\u67e5\u770b\u5355\u4e2app\u5927\u5c0f<\/p>\n<p>lsvg rootvg<\/p>\n<p>VOLUME GROUP:       rootvg                   VG IDENTIFIER:  00f7ccf700004c000000013b221b4a22<\/p>\n<p>VG STATE:           active                   PP SIZE:        512 megabyte(s)<\/p>\n<p>\u68c0\u6d4b\u7269\u7406\u5185\u5b58<\/p>\n<p>\/usr\/sbin\/lsattr -E -l sys0 -a realmen<\/p>\n<p>\/usr\/sbin\/lsps -a  \/\/\u67e5\u770b\u4ea4\u6362\u5206\u533a\u5927\u5c0f<\/p>\n<p>lsps -a<\/p>\n<p>Page Space      Physical Volume   Volume Group Size %Used Active  Auto  Type Chksum<\/p>\n<p>hd6             hdisk0            rootvg       33280MB     1   yes   yes    lv     0<\/p>\n<p>chps -s 60 hd6  \/\/swap\u589e\u52a060\u4e2aLP<\/p>\n<p>lscfg -vpl hdisk0<\/p>\n<p>\u67e5\u786c\u76d8\u7269\u7406\u4f4d\u7f6e<\/p>\n<p>chps -s 60 hd6     \/\/\u4fee\u6539\u4ea4\u6362\u5206\u533a\u5927\u5c0f,\u589e\u52a060\u4e2aPPS<\/p>\n<p>\u89e3\u538bCPIO\u6587\u4ef6<\/p>\n<p>cpio -idcmv &lt;ORACLE.cpio<\/p>\n<p>AIX\u5b57\u7b26\u96c6\u4e71\u7801<\/p>\n<p>export LC_ALL=en_US<\/p>\n<p>\u5f3a\u5236umount lv<\/p>\n<p>\u4e0d\u5fc5\u5f3a\u884cumount\u4e00\u4e2aFS, \u5982\u679cFS \u4e0d\u80fdumount,\u53ef\u7528\u4ee5\u4e0b\u65b9\u6cd5\u89e3\u51b3<\/p>\n<p>(1\uff09\u6587\u4ef6\u7cfb\u7edf\u6b63\u5728\u88ab\u4f7f\u7528\uff0c\u7528fuser -x -c FSNAME\u627e\u51fa\u4f7f\u7528\u8be5FS\u7684\u8fdb\u7a0b\u53f7\uff0c\u5e76KILL\u4e4b\u5373\u53ef<\/p>\n<p>(2\uff09\u6709\u53e6\u4e00\u4e2aFS\u88abmount\u5230\u8fd9\u4e2aFS\u4e2d\uff0c\u7528mount\u547d\u4ee4\u67e5\u627e<\/p>\n<p>(3\uff09\u6709\u4f4d\u4e8e\u8be5FS\u7684\u6269\u5c55\u6838\u5fc3\u88ab\u8f7d\u5165\uff0c\u53ef\u7528genkex\u627e\u5230\u6240\u6709\u52a0\u8f7d\u7684\u6838\u5fc3\u6269\u5c55(fuser\u53ea\u80fd\u53d1\u73b0\u7528\u6237\u8fdb\u7a0b),\u65e0\u547d\u4ee4\u5177\u4f53\u7528\u6cd5<\/p>\n<p>\u67e5\u770b\u7aef\u53e3\u5173\u8054\u8fdb\u7a0b<\/p>\n<p>netstat -An|grep 1521<\/p>\n<p>f1000e00038b03b8 tcp4       0      0  192.12.1.198.1521     192.12.1.186.42307    ESTABLISHED<\/p>\n<p>rmsock f1000e00038b03b8 tcpcb<\/p>\n<p>The socket 0xf1000e00038b0008 is being held by proccess 18939930 (oracle).<\/p>\n<p>\u67e5\u770b\u8fdb\u7a0b\u73af\u5883\u53d8\u91cf<\/p>\n<p>ps ewww \u8fdb\u7a0b\u53f7<\/p>\n<hr \/>\n","protected":false},"excerpt":{"rendered":"<p>\u67e5\u770b\u64cd\u4f5c\u7cfb\u7edf\u7248\u672c oslevel \u5173\u95ed\u9632\u706b\u5899 1.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[33],"tags":[],"class_list":["post-732","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"http:\/\/www.821121.com\/index.php?rest_route=\/wp\/v2\/posts\/732","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.821121.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.821121.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.821121.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.821121.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=732"}],"version-history":[{"count":2,"href":"http:\/\/www.821121.com\/index.php?rest_route=\/wp\/v2\/posts\/732\/revisions"}],"predecessor-version":[{"id":734,"href":"http:\/\/www.821121.com\/index.php?rest_route=\/wp\/v2\/posts\/732\/revisions\/734"}],"wp:attachment":[{"href":"http:\/\/www.821121.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=732"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.821121.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=732"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.821121.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=732"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}