{"id":289501,"date":"2024-01-17T05:12:25","date_gmt":"2024-01-16T21:12:25","guid":{"rendered":"https:\/\/gulass.cn\/ljwjxtmrytr.html"},"modified":"2024-01-17T05:12:25","modified_gmt":"2024-01-16T21:12:25","slug":"ljwjxtmrytr","status":"publish","type":"post","link":"https:\/\/gulass.cn\/ljwjxtmrytr.html","title":{"rendered":"linux\u5efa\u6587\u4ef6\u7cfb\u7edf \uff08\u6bcf\u65e5\u4e00\u9898\uff09RedhatEnterpriselinux5"},"content":{"rendered":"

\u65b0\u627e\u4e86RedhatEnterpriselinux5linux\u4e4b\u5bb6\uff0c\u60f3\u5728\u540e\u8fb9\u5efaoracle1111g\u73a9\u513f\u3002\u6253\u7b97\u76f8\u7ee7\u8bb0\u5f55\u4e00\u4e0b\u6574\u4e2a\u8fc7\u7a0b\uff0c\u5305\u62ec\u64cd\u4f5c\u7cfb\u7edf<\/a>\u7684\u3002<\/p>\n

\u5148\u88c5\u4e0a\u4e86Redhat\uff0c\u8fc7\u7a0b\u5148\u4e0d\u63cf\u8ff0\u4e86\uff0c\u7528\u7684\u50bb\u86cb\u5f0f\u5b89\u88c5\uff0c\u57fa\u672c\u90fd\u662f\u7f3a\u7701\u3002\u5148\u8c08\u8c08\u600e\u6837\u5efalv\u5427\u3002<\/p>\n

\u7528fdisk-l\u547d\u4ee4<\/a>\u67e5\u770bc\u76d8\u60c5\u51b5\uff0c\u6709sda\u548csdb\u4e24\u5757\u76d8(scsi\u7684\u547d\u540d\u65b9\u6cd5)\uff0csda\u5df2\u505a\u4e86\u4e24\u5206\u533a(\u88c5\u7cfb\u7edf\u65f6\u4faf\u5efa\u7684)\u3002\u4e4b\u540e\u7528fdisk\/dev\/sdb\u547d\u4ee4\u5f00\u59cb\u505a\u5206\u533a\uff1a<\/p>\n

#fdisk\/dev\/sdb<\/p>\n

\u6b65\u5165fdisk\u6a21\u5f0f\uff1a<\/p>\n

Command(mforhelp):m\/\/\u67e5\u770bfdisk\u547d\u4ee4\u5e2e\u52a9<\/p>\n

\u547d\u4ee4\u7b80\u4ecb\uff1an\u547d\u4ee4\u521b\u5efa\u4e00\u4e2a\u65b0\u5206\u533a\uff1bd\u547d\u4ee4\u5220\u6389\u4e00\u4e2a\u5b58\u5728\u7684\u5206\u533a\uff1bp\u547d\u4ee4\u663e\u793a\u5206\u533a\u5217\u8868\uff1bt\u547d\u4ee4\u66f4\u6539\u5206\u533a\u7684\u7c7b\u578b\uff1bl\u547d\u4ee4\u663e\u793a\u5206\u533a\u7c7b\u578b\u7684\u5217\u8868\uff1ba\u547d\u4ee4\u6307\u5b9a\u542f\u52a8\u5206\u533a\uff1bw\u547d\u4ee4\u662f\u5c06\u5bf9\u5206\u533a\u8868\u7684\u66f4\u6539\u8bfb\u6863\u8ba9\u5b83\u53d1\u751f\u4f5c\u7528\u3002<\/p>\n

Command(mforhelp):n\/\/\u521b\u5efa\u65b0\u5206\u533a<\/p>\n

Commandaction<\/p>\n

linux\u5efa\u6587\u4ef6\u7cfb\u7edf_\u5efa\u7acb\u6587\u4ef6linux_linux\u7cfb\u7edf\u5efa\u7acb\u6587\u4ef6\u5939\u547d\u4ee4<\/p>\n

eextended\/\/\u8f93\u5165e\u4e3a\u521b\u5efa\u6269\u5145\u5206\u533a<\/p>\n

pprimarypartition(1-4)\/\/\u8f93\u5165p\u4e3a\u521b\u5efa\u4e3b\u5206\u533a\uff0c\u8fd9\u513f\u9009\u62e9p<\/p>\n

Partionnumber(1-4)\uff1a1\/\/\u7b2c\u4e00\u4e2a\u6269\u5145\u5206\u533a\uff0c\u6309\u9700\u6c42\u53ef\u4ee5\u6700\u591a\u52064\u4e2a\u4e3b\u5206\u533a<\/p>\n

FirstCylinder(1-1014,default1):1\/\/\u7b2c\u4e00\u4e2a\u4e3b\u5206\u533a\u8d77\u59cb\u7684c\u76d8\u5757\u6570\uff0c\u53ef\u4ee5\u9009\u62e9\u9ed8\u8ba4\u503c<\/p>\n

Lastcylindetor+sizaor+sizeMor+sizeK:+1024MB\/\/\u53ef\u4ee5\u662f\u4ee5MB\u4e3a\u5355\u4f4d\u7684\u6570\u5b57\u6216\u5219\u4ee5c\u76d8\u5757\u6570\uff0c\u8fd9\u91cc\u6211\u4eec\u8f93\u5165+7000M\u8868\u793a\u5206\u533a\u5927\u5c0f\u4e3a7G<\/p>\n

\u8fd9\u6837\u6211\u4eec\u5c31\u521b\u5efa\u5b8c\u4e00\u4e2a\u5206\u533a\uff0c\u5047\u5982\u8981\u521b\u5efa\u66f4\u591a\u5206\u533a\u53ef\u4ee5\u7167\u524d\u9762\u7684\u6b65\u9aa4\u7ee7\u7eed\u521b\u5efa\u3002\u6240\u6709\u5206\u533a\u521b\u5efa\u5b8c\u540e\u7528w\u4fdd\u5b58\u5206\u533a\u3002<\/p>\n

Command(mforhelp):w<\/p>\n

Thepartitiontablehasbeenaltered!<\/p>\n

\u4e4b\u524d\u6211\u4eec\u53ef\u4ee5\u7528t\u9009\u9879\u6765\u6539\u53d8\u5206\u533a\u7c7b\u578b\u4e3a8e\uff0c\u5373linuxLVM<\/p>\n

\u4fdd\u5b58\u5b8c\u6210\u540e\u91cd\u542f\u670d\u52a1\u5668\uff0c\u6216\u76f4\u63a5\u6267\u884cpartprobe\uff0c\u53ef\u4ee5\u7528<\/p>\n

#fdisk-l\u547d\u4ee4\u68c0\u6d4b\u521a\u624d\u6240\u5efa\u5206\u533a\uff0c\u53ef\u4ee5\u5728\u8fd4\u56de\u7ed3\u679c\u4e2d\u786e\u8ba4\/dev\/sdb1\u7684\u4fe1\u606f<\/p>\n

\u7136\u540e\u7528pvcreate\/dev\/sdb1\u547d\u4ee4\u6765\u6784\u5efa\u4e00\u4e2apvpuppy linux\uff0c\u6211\u770b\u539f\u5148\u7684\u6307\u5357\u4e0a\u8bf4\u5728\u6784\u5efapv\u4e4b\u524d\u987b\u8981\u6267\u884cpartprobe\u547d\u4ee4\u6765\u901a\u77e5OSc\u76d8\u5206\u533a\u7684\u53d8\u5316\uff0c\u514d\u53bb\u91cd\u542f\u7684\u8fc7\u7a0b\uff0c\u4e0d\u8fc7\u8fd9\u513f\u6211\u6ca1\u6267\u884c\uff0c\u6682\u65f6\u8fd8\u672a\u53d1\u89c9\u95ee\u9898\u3002\u7528pvdisplay\u547d\u4ee4\u53ef\u4ee5\u67e5\u770bpv\u7684\u60c5\u51b5\u3002<\/p>\n

vgcreatevg_ora\/dev\/sdb1\u547d\u4ee4\u521b\u5efa\u4e00\u4e2a\u53ebvg_ora\u7684vg\uff0c\u53ef\u7528vgdisplay\u547d\u4ee4\u6765\u67e5\u770bvg\u7684\u60c5\u51b5\u3002<\/p>\n

\u6700\u540e\u6784\u5efalv\uff0c\u4f7f\u7528\u547d\u4ee4lvcreate-L6680M-nlv_oravg_ora\u521b\u5efa\u4e00\u4e2a\u53eblv_ora\u7684lv\u3002\u7528lvdisplay\u547d\u4ee4\u53ef\u4ee5\u67e5\u770blv\u7684\u60c5\u51b5\u3002<\/p>\n

\u6700\u540e\u6784\u5efa\u4e00\u4e2aoracle\u7684\u6587\u4ef6\u7cfb\u7edf\uff0c\u5148\u4f4e\u683clv\uff0c\u7528mkfs.ext2\u3001mkfs.ext3\u3001mke2fs\u4e09\u4e2a\u547d\u4ee4\u90a3\u4e2a\u53ef\u4ee5\uff0c\u8fd9\u513f\u6211\u7528\u7684\u662fmkfs.ext3\/dev\/vg_ora\/lv_ora\u547d\u4ee4\u683c\u5f0f\u5316\u6210ext3\u683c\u5f0f\u3002mkdir\/oracle\u521b\u5efa\u4e00\u4e2aoracle\u76ee\u5f55\uff0c\u7528mount\/dev\/vg_ora\/lv_ora\/oracle\u547d\u4ee4\u52a0\u8f7dlv\u5230oracle\u76ee\u5f55\u4e0a\uff0c\u7136\u540e\u7528df-k\u547d\u4ee4\u53ef\u4ee5\u67e5\u770b\u7ed3\u679c\u3002<\/p>\n

\u4ee5\u4e0a\u5c31\u662f\u521b\u5efaoracle\u6587\u4ef6\u7cfb\u7edf\u7684\u6574\u4e2a\u8fc7\u7a0b\uff0c\u867d\u7136\u8ddfhp-ux\u5dee\u4e0d\u591a\u3002<\/p>\n

\u53e6\u5916lvextend\u547d\u4ee4\u53ef\u4ee5\u6269\u5145lv\u5927\u5c0f\uff0cvgextend\u53ef\u4ee5\u6269\u5145vg\u7684\u5927\u5c0f\uff0c\u8fd8\u6709\u51cf\u5c11lv\u7684\u65b9\u5f0f\u6709\u70b9\u5197\u957f(\u901a\u5e38\u4e5f\u4e0d\u4f1a\u5982\u6b64\u5e72\u5427)\uff0c\u4e0b\u8fb9\u6284\u4e2a\u53cd\u4f8b\uff1a<\/p>\n

1umount\/mnt\/lvm<\/p>\n

\u8fd9\u513f\uff0c\u987b\u8981\u5148\u5378\u8f7d\u5206\u533a<\/p>\n

2mke2fs-n\/dev\/rootvg\/lv1<\/p>\n

\u4f30\u7b97lv1\u7684block\u6570<\/p>\n

\u8fd9\u513f\u4e00\u5b9a\u8981\u52a0-n\u53c2\u6570\uff0c\u8fd9\u662f\u4f30\u7b97lv1\u7684block\u6570\uff0c\u800c\u4e0d\u662f\u4f4e\u683c\u5206\u533a\uff0c\u6ce8\u610f\u3002<\/p>\n

\u4f46\u662f\u6ce8\u610f\uff0c\u4eceMB->KB\u8fd9\u79cd\u7684\u4f30\u7b97\uff0c\u90fd\u662f\u4e581024\uff0c\u4e0d\u662f1000linux\u5efa\u6587\u4ef6\u7cfb\u7edf<\/strong>\uff0c\u8fd9\u662f\u4e2a\u7ec6\u8282\u95ee\u9898<\/p>\n

3\u4f30\u7b97\u964d\u4f4e50M\u540e\u7684block\u6570\u3002\u4ecemke2fs-n\/dev\/rootvg\/lv1\uff0c\u6211\u4eec\u53ef\u4ee5\u5f97\u51fa2\u4e2a\u987b\u8981\u7684\u4fe1\u606f\uff1a<\/p>\n

Blocksize\u548cblocks\uff0c\u8fd9\u4e24\u4e2a\u6570\u7684\u4e58\u79ef\u5c31\u662f\u5206\u533a\u5927\u5c0fA(\u5355\u4f4d\u5b57\u8282)\uff0c<\/p>\n

\u6211\u4eec\u628a\u987b\u8981\u964d\u4f4e\u7684\u5bb9\u91cf50M\u6362\u7b97\u6210\u5b57\u8282B\uff0c\u4e4b\u540eA-B\u7684\u7ed3\u679c\u4e58\u4ee5Blocksize,\u5c31\u662f\u5269\u4f59\u7684block\u6570<\/p>\n

4resize2fs-f\/dev\/rootvg\/lv1\u5269\u4f59\u7684block\u6570<\/p>\n

\u8c03\u6574\u6587\u4ef6\u7cfb\u7edf\u5927\u5c0f<\/p>\n

5lvreduce-L-50M\/dev\/rootvg\/lv1<\/p>\n

\u8c03\u6574lv\u5206\u533a\u5927\u5c0f\uff0c\u51cf\u5c1150M<\/p>\n

6\u91cd\u65b0mount\uff0cdf\u5bdf\u770b\u4e00\u4e0b\u5bb9\u91cf\u7684\u589e\u5927<\/p>\n

pvmove\u53ef\u4ee5\u642c\u52a8PV\u4e2d\u7684\u8d44\u6599(\u53ea\u9650\u4e8e\u540c\u4e00VG\u4e2d)<\/p>\n

linux\u7cfb\u7edf\u5efa\u7acb\u6587\u4ef6\u5939\u547d\u4ee4_linux\u5efa\u6587\u4ef6\u7cfb\u7edf_\u5efa\u7acb\u6587\u4ef6linux<\/p>\n

#pvmove[-n][]<\/p>\n

\u5982<\/p>\n

#pvmove\/dev\/hda5\/dev\/hda6<\/p>\n

\u5c06VG\u4e2dpvhda5\u7684\u5185\u5bb9\u642c\u52a8\u5230hda6\u4e2d<\/p>\n

pvmove\/dev\/hda5(\u4e5f\u53ef\u4ee5\u8fd9\u6837\uff0clvm\u51b3\u5b9ahda2\u7684\u5185\u5bb9\u88ab\u590d\u5236\u5230\u90a3\u91cc)<\/p>\n

2vgreducerootvg\/dev\/hda5<\/p>\n

\u628avghda5\u79fb\u9664<\/p>\n

\u901a\u5e38\u5728\u67d0\u4e2ac\u76d8\u53ef\u80fd\u51fa\u73b0\u95ee\u9898\u7684\u65f6\u4faflinux\u5efa\u6587\u4ef6\u7cfb\u7edf<\/strong>\uff0c\u4f1a\u7528\u5230\u8fd9\u4e2a\u547d\u4ee4\u3002<\/p>\n

\u53e6\u5916\u7684\u4e00\u4e0b\u60f3lvremovevgcremovepvremove\u7b49\u7b49\u547d\u4ee4\u5c31\u4e0d\u4e00\u4e00\u8bb0\u5f55\u4e86\uff0c\u67e5\u6307\u5357\u4fbf\u77e5\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

linux5\uff0c\u60f3\u5728\u4e0a\u9762\u5efaoracle11g\u73a9\u73a9\u3002\/dev\/sdb\u547d\u4ee4\u5f00\u59cb\u505a\u5206\u533a\uff1a\/dev\/vg_ora\/lv_ora\u547d\u4ee4\u683c\u5f0f\u5316\u6210ext3\u683c\u5f0f\u3002\u4ee5\u4e0a\u5c31\u662f\u521b\u5efaoracle\u6587\u4ef6\u7cfb\u7edf\u7684\u6574\u4e2a\u8fc7\u7a0b\uff0c\u5176\u5b9e\u8ddfhp-ux\u5dee\u4e0d\u591a\u3002\/dev\/hda5(\u4e5f\u53ef\u4ee5\u8fd9\u6837\uff0clvm\u51b3\u5b9ahda2\u7684\u5185\u5bb9\u88ab\u590d\u5236\u5230\u54ea\u91cc)<\/p>\n","protected":false},"author":1,"featured_media":289502,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[999],"class_list":["post-289501","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tougao","tag-999"],"acf":[],"_links":{"self":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/289501","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/comments?post=289501"}],"version-history":[{"count":0,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/289501\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/media\/289502"}],"wp:attachment":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/media?parent=289501"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/categories?post=289501"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/tags?post=289501"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}