{"id":543,"date":"2014-10-03T18:31:08","date_gmt":"2014-10-03T10:31:08","guid":{"rendered":"http:\/\/www.shuran.cn\/?p=543"},"modified":"2014-10-03T18:31:08","modified_gmt":"2014-10-03T10:31:08","slug":"redhat-%e6%9f%a5%e7%9c%8b%e7%a3%81%e7%9b%98%e5%88%86%e5%8c%ba%e4%bb%a5%e5%8f%8a%e6%8c%82%e8%bd%bd%e5%88%86%e5%8c%ba","status":"publish","type":"post","link":"https:\/\/www.shuran.cn\/?p=543","title":{"rendered":"redhat \u67e5\u770b\u78c1\u76d8\u5206\u533a\u4ee5\u53ca\u6302\u8f7d\u5206\u533a"},"content":{"rendered":"<p>\n\tredhat \u67e5\u770b\u78c1\u76d8\u5206\u533a\u6302\u8f7d\n<\/p>\n<p>\n\t\n<\/p>\n<pre class=\"prettyprint lang-js\">[root@dell ~]# df -Th\r\n\u6587\u4ef6\u7cfb\u7edf    \u7c7b\u578b      \u5bb9\u91cf  \u5df2\u7528  \u53ef\u7528 \u5df2\u7528%% \u6302\u8f7d\u70b9\r\n\/dev\/sda1     ext3     50G  3.1G   44G   7% \/\r\ntmpfs        tmpfs    3.9G     0  3.9G   0% \/dev\/shm\r\n\/dev\/sda2     ext4    360G  195M  342G   1% \/wwwroot<\/pre>\n<p>\u67e5\u770b\u78c1\u76d8\u5206\u533a\u4fe1\u606f<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t\n<\/p>\n<pre class=\"prettyprint lang-js\">fdisk -l\r\n \r\n   Device Boot      Start         End      Blocks   Id  System\r\n\/dev\/sda1   *           1        6528    52428800   83  Linux\r\n\/dev\/sda2           13054       60734   382997632+  83  Linux\r\n\/dev\/sda3            6528       13053    52418398+  83  Linux<\/pre>\n<p>\u56e0\u4e3asda2\u5206\u533a\u5927\u5c0f380g\u672a\u52a0\u8f7dmount<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t\u5148\u683c\u5f0f\u5316 mkfs.ext4 \/dev\/sda2\n<\/p>\n<p>\n\t<span style=\"line-height:1.5;\">\u518d\u52a0\u8f7d mkdir \/wwwroot<\/span>\n<\/p>\n<p>\n\tmount -t ext4 \/dev\/sda2 \/wwwroot<br \/>\n\u5728\u6bcf\u6b21\u7cfb\u7edf\u542f\u52a8\u65f6\u81ea\u52a8\u6302\u8f7d\u65b0\u5206\u533a\uff0c\u9700\u8981\u4fee\u6539\/etc\/fstab\u6587\u4ef6\u6765\u8fdb\u884c\u81ea\u52a8\u6302\u8f7d\u3002\u5728\u6587\u4ef6\u7684\u672b\u4f4d\u52a0\u5165\u5982\u4e0b\u4e00\u884c\uff1a<br \/>\n\/dev\/sda2 \/wwwroot ext4 defaults 0 2\n<\/p>\n<p>\n\t\n<\/p>\n<p><p>\n\t\t<span style=\"color:#999999;\">\u5f53\u7cfb\u7edf\u542f\u52a8\u7684\u65f6\u5019\uff0c\u7cfb\u7edf\u4f1a\u81ea\u52a8\u5730\u4ece\u8fd9\u4e2a\u6587\u4ef6\u8bfb\u53d6\u4fe1\u606f\uff0c\u5e76\u4e14\u4f1a\u81ea\u52a8\u5c06\u6b64\u6587\u4ef6\u4e2d\u6307\u5b9a\u7684\u6587\u4ef6\u7cfb\u7edf\u6302\u8f7d\u5230\u6307\u5b9a\u7684\u76ee\u5f55\u3002\u4e0b\u9762\u6211\u6765\u4ecb\u7ecd\u5982\u4f55\u5728\u6b64\u6587\u4ef6\u4e0b\u586b\u5199\u4fe1\u606f\u3002<\/span>\n\t<\/p>\n<p>\n\t\t<span style=\"color:#999999;\"> \u5728\u8fd9\u4e2a\u6587\u4ef6\u4e0b\uff0c\u6211\u4eec\u8981\u5173\u6ce8\u7684\u662f\u5b83\u7684\u516d\u4e2a\u57df\uff0c\u5206\u522b\u4e3a\uff1a&lt;file system&gt;\u3001&lt;mount point&gt;\u3001&lt;type&gt; \u3001&lt;options&gt;\u3001&lt;dump&gt;\u3001&lt;pass&gt;\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u8fd9\u516d\u4e2a\u57df\u7684\u8be6\u7ec6\u610f\u4e49\u3002<\/span>\n\t<\/p>\n<p>\n\t\t<span style=\"color:#999999;\"> 1\u3001&lt;fie sysytem&gt;\u3002\u8fd9\u91cc\u7528\u6765\u6307\u5b9a\u4f60\u8981\u6302\u8f7d\u7684\u6587\u4ef6\u7cfb\u7edf\u7684\u8bbe\u5907\u540d\u79f0\u6216\u5757\u4fe1\u606f\uff0c\u4e5f\u53ef\u4ee5\u662f\u8fdc\u7a0b\u7684\u6587\u4ef6\u7cfb\u7edf\u3002\u505a\u8fc7\u5d4c\u5165\u5f0flinux\u5f00\u53d1\u7684\u670b\u53cb\u90fd\u53ef\u80fd\u77e5\u9053 mount 192.168.1.56:\/home\/nfs \/mnt\/nfs\/ -o nolock (\u53ef\u4ee5\u662f\u5176\u4ed6IP)\u547d\u4ee4\u6240\u4ee3\u8868\u7684\u610f\u4e49\u3002\u5b83\u7684\u4efb\u52a1\u662f\u628aIP\u4e3a192.168.1.56\u7684\u8fdc\u7a0b\u4e3b\u673a\u4e0a\u7684\/home\/nfs\/\u76ee\u5f55\u6302\u8f7d\u5230\u672c\u673a\u7684\/mnt\/nfs \/\u76ee\u5f55\u4e4b\u4e0b\u3002\u5982\u679c\u8981\u628a\u5b83\u5199\u8fdb\/etc\/fstab\u6587\u4ef6\u4e2d\uff0cfile system\u8fd9\u90e8\u5206\u5e94\u586b\u5199\u4e3a\uff1a\/192.168.1.56:\/home\/nfs\/\u3002<\/span>\n\t<\/p>\n<p>\n\t\t<span style=\"color:#999999;\"> \u5982\u679c\u60f3\u628a\u672c\u673a\u4e0a\u7684\u67d0\u4e2a\u8bbe\u5907\uff08device\uff09\u6302\u8f7d\u4e0a\u6765\uff0c\u5199\u6cd5\u5982\uff1a\/dev\/sda1\u3001\/dev\/hda2\u6216\/dev\/cdrom\uff0c\u5176\u4e2d\uff0c\/dev\/sda1 \u8868\u793a\u7b2c\u4e00\u4e2a\u4e32\u53e3\u786c\u76d8\u7684\u7b2c\u4e00\u4e2a\u5206\u533a\uff0c\u4e5f\u53ef\u4ee5\u662f\u7b2c\u4e00\u4e2aSCSI\u786c\u76d8\u7684\u7b2c\u4e00\u4e2a\u5206\u533a\uff0c\/dev\/hda1\u8868\u793a\u7b2c\u4e00\u4e2aIDE\u786c\u76d8\u7684\u7b2c\u4e00\u4e2a\u5206\u533a\uff0c\/dev\/cdrom \u8868\u793a\u5149\u9a71\u3002<\/span>\n\t<\/p>\n<p>\n\t\t<span style=\"color:#999999;\"> \u6b64\u5916\uff0c\u8fd8\u53ef\u4ee5label(\u5377\u6807)\u6216UUID\uff08Universally Unique Identifier\u5168\u5c40\u552f\u4e00\u6807\u8bc6\u7b26\uff09\u6765\u8868\u793a\u3002\u7528label\u8868\u793a\u4e4b\u524d\uff0c\u5148\u8981e2label\u521b\u5efa\u5377\u6807\uff0c\u5982\uff1ae2label \/dir_1 \/dir_2\uff0c\u5176\u610f\u601d\u662f\u8bf4\u7528\/dir_2\u6765\u8868\u793a\/dir_1\u7684\u540d\u79f0\u3002\u7136\u540e\uff0c\u518d\u5728\/etc\/fstab\u4e0b\u6309\u5982\u4e0b\u5f62\u5f0f\u6dfb\u52a0\uff1aLABEL=\/dir_2 \/dir_2 &lt;type&gt; &nbsp; &lt;options&gt; &lt;dump&gt; &lt;pass&gt;\u3002\u91cd\u542f\u540e\uff0c\u7cfb\u7edf\u5c31\u4f1a\u5c06\/dir_1\u6302\u8f7d\u5230\/dir_2\u76ee\u5f55\u4e0a\u3002\u5bf9\u4e8eUUID\uff0c\u53ef\u4ee5\u7528vol_id -u \/dev\/sdax\u6765\u83b7\u53d6\u3002\u6bd4\u5982\u6211\u60f3\u6302\u8f7d\u7b2c\u4e00\u5757\u786c\u76d8\u7684\u7b2c\u5341\u4e00\u4e2a\u5206\u533a\uff0c\u5148\u7528\u547d\u4ee4vol_id -u \/dev\/sda11 \u6765\u53d6\u5f97UUID\uff0c\u6bd4\u5982\u662f\uff1a5dc08a62-3472-471b-9ef5-0a91e5e2c126\uff0c\u7136\u540e\u5728&lt;file system&gt;\u8fd9\u4e2a\u57df\u4e0a\u586b\u5199\uff1a UUID=5dc08a62-3472-471b-9ef5-0a91e5e2c126\uff0c\u5373\u53ef\u8868\u793a\/dev\/sda11\u3002Red Hat linux \u4e00\u822c\u4f1a\u4f7f\u7528label\uff0c\u800cUbuntu linux \u4e00\u822c\u4f1a\u7528UUID\u3002<\/span>\n\t<\/p>\n<p>\n\t\t<span style=\"color:#999999;\"> 2\u3001&lt;mount point&gt;\u3002\u6302\u8f7d\u70b9\uff0c\u4e5f\u5c31\u662f\u81ea\u5df1\u627e\u4e00\u4e2a\u6216\u521b\u5efa\u4e00\u4e2adir\uff08\u76ee\u5f55\uff09\uff0c\u7136\u540e\u628a\u6587\u4ef6\u7cfb\u7edf&lt;fie sysytem&gt;\u6302\u5230\u8fd9\u4e2a\u76ee\u5f55\u4e0a\uff0c\u7136\u540e\u5c31\u53ef\u4ee5\u4ece\u8fd9\u4e2a\u76ee\u5f55\u4e2d\u8bbf\u95ee\u8981\u6302\u8f7d\u6587\u4ef6\u7cfb\u7edf\u3002\u5bf9\u4e8eswap\u5206\u533a\uff0c\u8fd9\u4e2a\u57df\u5e94\u8be5\u586b\u5199\uff1anone\uff0c\u8868\u793a\u6ca1\u6709\u6302\u8f7d\u70b9\u3002<\/span>\n\t<\/p>\n<p>\n\t\t<span style=\"color:#999999;\"> 3\u3001&lt;type&gt;\u3002\u8fd9\u91cc\u7528\u6765\u6307\u5b9a\u6587\u4ef6\u7cfb\u7edf\u7684\u7c7b\u578b\u3002\u4e0b\u9762\u7684\u6587\u4ef6\u7cfb\u7edf\u90fd\u662f\u76ee\u524dLinux\u6240\u80fd\u652f\u6301\u7684\uff1aadfs\u3001befs\u3001cifs\u3001ext3\u3001 ext2\u3001ext\u3001iso9660\u3001kafs\u3001minix\u3001msdos\u3001vfat\u3001umsdos\u3001proc\u3001reiserfs\u3001swap\u3001 squashfs\u3001nfs\u3001hpfs\u3001ncpfs\u3001ntfs\u3001affs\u3001ufs\u3002<\/span>\n\t<\/p>\n<p>\n\t\t<span style=\"color:#999999;\"> 4\u3001&lt;options&gt;\u3002\u8fd9\u91cc\u7528\u6765\u586b\u5199\u8bbe\u7f6e\u9009\u9879\uff0c\u5404\u4e2a\u9009\u9879\u7528\u9017\u53f7\u9694\u5f00\u3002\u7531\u4e8e\u9009\u9879\u975e\u5e38\u591a\uff0c\u800c\u8fd9\u91cc\u7bc7\u5e45\u6709\u9650\uff0c\u6240\u4ee5\u4e0d\u518d\u4f5c\u8be6\u7ec6\u4ecb\u7ecd\uff0c\u5982\u9700\u4e86\u89e3\uff0c\u8bf7\u7528\u547d\u4ee4 man mount \u6765\u67e5\u770b\u3002\u4f46\u5728\u8fd9\u91cc\u6709\u4e2a\u975e\u5e38\u91cd\u8981\u7684\u5173\u952e\u5b57\u9700\u8981\u4e86\u89e3\u4e00\u4e0b\uff1adefaults\uff0c\u5b83\u4ee3\u8868\u5305\u542b\u4e86\u9009\u9879rw,suid,dev,exec,auto,nouser\u548c async\u3002<\/span>\n\t<\/p>\n<p>\n\t\t<span style=\"color:#999999;\"> 5\u3001&lt;dump&gt;\u3002\u6b64\u5904\u4e3a1\u7684\u8bdd\uff0c\u8868\u793a\u8981\u5c06\u6574\u4e2a&lt;fie sysytem&gt;\u91cc\u7684\u5185\u5bb9\u5907\u4efd\uff1b\u4e3a0\u7684\u8bdd\uff0c\u8868\u793a\u4e0d\u5907\u4efd\u3002\u73b0\u5728\u5f88\u5c11\u7528\u5230dump\u8fd9\u4e2a\u5de5\u5177\uff0c\u5728\u8fd9\u91cc\u4e00\u822c\u90090\u3002<\/span>\n\t<\/p>\n<p>\n\t\t<span style=\"color:#999999;\"> 6\u3001&lt;pass&gt;\u3002\u8fd9\u91cc\u7528\u6765\u6307\u5b9a\u5982\u4f55\u4f7f\u7528fsck\u6765\u68c0\u67e5\u786c\u76d8\u3002\u5982\u679c\u8fd9\u91cc\u586b0\uff0c\u5219\u4e0d\u68c0\u67e5\uff1b\u6302\u8f7d\u70b9\u4e3a \/ \u7684\uff08\u5373\u6839\u5206\u533a\uff09\uff0c\u5fc5\u987b\u5728\u8fd9\u91cc\u586b\u51991\uff0c\u5176\u4ed6\u7684\u90fd\u4e0d\u80fd\u586b\u51991\u3002\u5982\u679c\u6709\u5206\u533a\u586b\u5199\u5927\u4e8e1\u7684\u8bdd\uff0c\u5219\u5728\u68c0\u67e5\u5b8c\u6839\u5206\u533a\u540e\uff0c\u63a5\u7740\u6309\u586b\u5199\u7684\u6570\u5b57\u4ece\u5c0f\u5230\u5927\u4f9d\u6b21\u68c0\u67e5\u4e0b\u53bb\u3002\u540c\u6570\u5b57\u7684\u540c\u65f6\u68c0\u67e5\u3002\u6bd4\u5982\u7b2c\u4e00\u548c\u7b2c\u4e8c\u4e2a\u5206\u533a\u586b\u51992\uff0c\u7b2c\u4e09\u548c\u7b2c\u56db\u4e2a\u5206\u533a\u586b\u51993\uff0c\u5219\u7cfb\u7edf\u5728\u68c0\u67e5\u5b8c\u6839\u5206\u533a\u540e\uff0c\u63a5\u7740\u540c\u65f6\u68c0\u67e5\u7b2c\u4e00\u548c\u7b2c\u4e8c\u4e2a\u5206\u533a\uff0c\u7136\u540e\u518d\u540c\u65f6\u68c0\u67e5\u7b2c\u4e09\u548c\u7b2c\u56db\u4e2a\u5206\u533a\u3002<\/span>\n\t<\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>redhat \u67e5\u770b\u78c1\u76d8\u5206\u533a\u6302\u8f7d [root@dell ~]# df -Th \u6587\u4ef6\u7cfb\u7edf \u7c7b\u578b \u5bb9\u91cf \u5df2\u7528 \u53ef\u7528 \u2026 <span class=\"read-more\"><a href=\"https:\/\/www.shuran.cn\/?p=543\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[],"class_list":["post-543","post","type-post","status-publish","format-standard","hentry","category-os"],"_links":{"self":[{"href":"https:\/\/www.shuran.cn\/index.php?rest_route=\/wp\/v2\/posts\/543","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.shuran.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.shuran.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.shuran.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.shuran.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=543"}],"version-history":[{"count":1,"href":"https:\/\/www.shuran.cn\/index.php?rest_route=\/wp\/v2\/posts\/543\/revisions"}],"predecessor-version":[{"id":544,"href":"https:\/\/www.shuran.cn\/index.php?rest_route=\/wp\/v2\/posts\/543\/revisions\/544"}],"wp:attachment":[{"href":"https:\/\/www.shuran.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=543"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.shuran.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=543"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.shuran.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=543"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}