{"id":128301,"date":"2018-11-24T09:32:28","date_gmt":"2018-11-24T01:32:28","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=128301"},"modified":"2018-11-21T09:17:45","modified_gmt":"2018-11-21T01:17:45","slug":"partition-file-system","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/partition-file-system.html","title":{"rendered":"Linux\u67e5\u770b\u5206\u533a\u6587\u4ef6\u7cfb\u7edf\u7c7b\u578b\u7684\u51e0\u79cd\u65b9\u6cd5"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\n\u5728Linux \u4e2d\u5982\u4f55\u67e5\u770b\u5206\u533a\u7684\u6587\u4ef6\u7cfb\u7edf\u7c7b\u578b\uff0c\u4e0b\u9762\u603b\u7ed3\u51e0\u79cd\u67e5\u770b\u5206\u533a\u6587\u4ef6\u7cfb\u7edf\u7c7b\u578b\u7684\u65b9\u6cd5\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n
1\u3001df -T \u547d\u4ee4\u67e5\u770b<\/strong><\/strong><\/div>\n

\u8fd9\u4e2a\u662f\u6700\u7b80\u5355\u7684\u547d\u4ee4\uff0c\u6587\u4ef6\u7cfb\u7edf\u7c7b\u578b\u5728Type\u5217\u8f93\u51fa\u3002\u53ea\u53ef\u4ee5\u67e5\u770b\u5df2\u7ecf\u6302\u8f7d\u7684\u5206\u533a\u548c\u6587\u4ef6\u7cfb\u7edf\u7c7b\u578b\u3002\u5982\u4e0b\u6240\u793a\uff1a<\/p>\n

[root@mylnx008 ~]# df -T \/dev\/sdb\r\n\r\nFilesystem\u00a0 \u00a0 \u00a0Type 1K-blocks\u00a0 \u00a0 Used Available Use% Mounted on\r\n\r\n\/dev\/sdb\u00a0 \u00a0 \u00a0 \u00a0xfs\u00a0 315467264 4356404 311110860\u00a0 \u00a02% \/mysql\r\n\r\n[root@mylnx008 ~]# df -T\r\n\r\nFilesystem\u00a0 \u00a0 \u00a0Type\u00a0 \u00a0 \u00a01K-blocks\u00a0 \u00a0 \u00a0Used Available Use% Mounted on\r\n\r\n\/dev\/sda2\u00a0 \u00a0 \u00a0 xfs\u00a0 \u00a0 \u00a0 \u00a030929148 22455300\u00a0 \u00a08473848\u00a0 73% \/\r\n\r\ndevtmpfs\u00a0 \u00a0 \u00a0 \u00a0devtmpfs\u00a0 \u00a01746644\u00a0 \u00a0 \u00a0 \u00a0 0\u00a0 \u00a01746644\u00a0 \u00a00% \/dev\r\n\r\ntmpfs\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 tmpfs\u00a0 \u00a0 \u00a0 1757220\u00a0 \u00a0 \u00a0 \u00a0 0\u00a0 \u00a01757220\u00a0 \u00a00% \/dev\/shm\r\n\r\ntmpfs\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 tmpfs\u00a0 \u00a0 \u00a0 1757220\u00a0 \u00a0 24868\u00a0 \u00a01732352\u00a0 \u00a02% \/run\r\n\r\ntmpfs\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 tmpfs\u00a0 \u00a0 \u00a0 1757220\u00a0 \u00a0 \u00a0 \u00a0 0\u00a0 \u00a01757220\u00a0 \u00a00% \/sys\/fs\/cgroup\r\n\r\n\/dev\/sda1\u00a0 \u00a0 \u00a0 xfs\u00a0 \u00a0 \u00a0 \u00a0 \u00a0508580\u00a0 \u00a0 63024\u00a0 \u00a0 445556\u00a0 13% \/boot\r\n\r\n\/dev\/sdc1\u00a0 \u00a0 \u00a0 ext4\u00a0 \u00a0 \u00a0139203080\u00a0 8699072 123409840\u00a0 \u00a07% \/mnt\/resource\r\n\r\ntmpfs\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 tmpfs\u00a0 \u00a0 \u00a0 \u00a0351448\u00a0 \u00a0 \u00a0 \u00a0 0\u00a0 \u00a0 351448\u00a0 \u00a00% \/run\/user\/1000\r\n\r\n\/dev\/sdb\u00a0 \u00a0 \u00a0 \u00a0xfs\u00a0 \u00a0 \u00a0 315467264\u00a0 4356404 311110860\u00a0 \u00a02% \/mysql\r\n<\/pre>\n
2\u3001parted -l\u547d\u4ee4\u67e5\u770b<\/strong><\/strong><\/div>\n

\u5982\u4e0b\u6240\u793a\uff0cparted -l \u547d\u4ee4\u4f1a\u8f93\u51fa\u6587\u4ef6\u7cfb\u7edf\u7c7b\u578b\uff08File system\uff09\uff0c \u5176\u4e2d\u53c2\u6570l\u8868\u793a\u5217\u51fa\u6240\u6709\u8bbe\u5907\u7684\u5206\u533a\u4fe1\u606f\u3002<\/p>\n

[root@DB-Server ~]# parted -l\r\n\r\nModel: ATA ST500DM002-1BD14 (scsi)\r\n\r\nDisk \/dev\/sda: 500GB\r\n\r\nSector size (logical\/physical): 512B\/512B\r\n\r\nPartition Table: msdos\r\n\r\n\u00a0\r\n\r\nNumber\u00a0 Start\u00a0 \u00a0End\u00a0 \u00a0 Size\u00a0 \u00a0Type\u00a0 \u00a0 \u00a0File system\u00a0 Flags\r\n\r\n1\u00a0 \u00a0 \u00a0 32.3kB\u00a0 107MB\u00a0 107MB\u00a0 primary\u00a0 ext3\u00a0 \u00a0 \u00a0 \u00a0 \u00a0boot\r\n\r\n2\u00a0 \u00a0 \u00a0 107MB\u00a0 \u00a0500GB\u00a0 500GB\u00a0 primary\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0lvm\r\n<\/pre>\n
3\u3001blkid\u547d\u4ee4\u67e5\u770b<\/strong><\/strong><\/div>\n

\u67e5\u770b\u5df2\u683c\u5f0f\u5316\u5206\u533a\u7684UUID\u548c\u6587\u4ef6\u7cfb\u7edf\u3002\u4f7f\u7528blkid\u53ef\u4ee5\u8f93\u51fa\u5206\u533a\u6216\u5206\u533a\u7684\u6587\u4ef6\u7cfb\u7edf\u7c7b\u578b\uff0c\u67e5\u770bTYPE\u5b57\u6bb5\u8f93\u51fa\u3002<\/p>\n

[root@DB-Server ~]# blkid\r\n\r\n\/dev\/mapper\/VolGroup00-LogVol01: TYPE=\"swap\"\r\n\r\n\/dev\/mapper\/VolGroup00-LogVol00: UUID=\"1c0d5470-1503-4a18-b184-53483466d948\" TYPE=\"ext3\"\r\n\r\n\/dev\/sda1: LABEL=\"\/boot\" UUID=\"582b189c-396c-4da8-a7a3-1effaa3e4000\" TYPE=\"ext3\"\r\n\r\n\/dev\/VolGroup00\/LogVol00: UUID=\"1c0d5470-1503-4a18-b184-53483466d948\" TYPE=\"ext3\"\r\n\r\n\/dev\/VolGroup00\/LogVol01: TYPE=\"swap\"\r\n\r\n\/dev\/mapper\/VolGroup00-LogVol03: UUID=\"f037ba1e-77a1-439a-8a10-b78c3cca68ec\" SEC_TYPE=\"ext2\" TYPE=\"ext3\"\r\n\r\n[root@DB-Server ~]# blkid\u00a0 \/dev\/sda1\r\n\r\n\/dev\/sda1: LABEL=\"\/boot\" UUID=\"582b189c-396c-4da8-a7a3-1effaa3e4000\" TYPE=\"ext3\"\r\n<\/pre>\n
4\u3001\u547d\u4ee4lsblk -f \u67e5\u770b<\/strong><\/strong><\/div>\n

\u6709\u4e9b\u7cfb\u7edf\u53ef\u80fd\u6ca1\u6709\u8fd9\u4e2a\u547d\u4ee4\uff0c\u9700\u8981\u5b89\u88c5\u3002\u6ce8\u610f\uff1alsblk -f\u4e5f\u53ef\u4ee5\u67e5\u770b\u672a\u6302\u8f7d\u7684\u6587\u4ef6\u7cfb\u7edf\u7c7b\u578b<\/p>\n

[root@mylnx008 ~]# lsblk -f\r\n\r\nNAME\u00a0 \u00a0FSTYPE LABEL UUID\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0MOUNTPOINT\r\n\r\nfd0\r\n\r\nsda\r\n\r\n\u251c\u2500sda1 xfs\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 b98659b2-5f8c-493e-9304-658905ef1391 \/boot\r\n\r\n\u2514\u2500sda2 xfs\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 b7559ac5-b3a4-4b00-b98a-a2a2611806d0 \/\r\n\r\nsdb\u00a0 \u00a0 xfs\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 6fcc5417-3c1b-4c71-aac7-344bac7654a4 \/mysql\r\n\r\nsdc\r\n\r\n\u2514\u2500sdc1 ext4\u00a0 \u00a0 \u00a0 \u00a0 \u00a01ad7da45-2366-4c4f-acd4-484600c4153a \/mnt\/resource\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"

\u8fd9\u4e2a\u662f\u6700\u7b80\u5355\u7684\u547d\u4ee4\uff0c\u6587\u4ef6\u7cfb\u7edf\u7c7b\u578b\u5728Type\u5217\u8f93\u51fa\u3002\u53ea\u53ef\u4ee5\u67e5\u770b\u5df2\u7ecf\u6302\u8f7d\u7684\u5206\u533a\u548c\u6587\u4ef6\u7cfb\u7edf\u7c7b\u578b\u3002\u5982\u4e0b\u6240\u793a\uff1a [roo […]<\/p>\n","protected":false},"author":63,"featured_media":128302,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-128301","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/128301","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/63"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=128301"}],"version-history":[{"count":6,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/128301\/revisions"}],"predecessor-version":[{"id":128445,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/128301\/revisions\/128445"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/128302"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=128301"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=128301"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=128301"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}