{"id":177343,"date":"2020-04-26T11:47:25","date_gmt":"2020-04-26T03:47:25","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=177343"},"modified":"2020-04-20T09:39:40","modified_gmt":"2020-04-20T01:39:40","slug":"linux-lvm-new","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/linux-lvm-new.html","title":{"rendered":"Linux\u4e0b\u521b\u5efalvm\u865a\u62df\u78c1\u76d8\u9635\u5217+\u811a\u672c\u5316\u89e3\u51b3\u65b9\u6848"},"content":{"rendered":"
\u5bfc\u8bfb<\/td>\n | \u903b\u8f91\u5377\u7ba1\u7406\u5668\uff08\u82f1\u8bed\uff1aLogical Volume Manager\uff0c\u7f29\u5199\u4e3aLVM\uff09\uff0c\u53c8\u8bd1\u4e3a\u903b\u8f91\u5377\u5b97\u7ba1\u7406\u5668\u3001\u903b\u8f91\u6247\u533a\u7ba1\u7406\u5668\u3001\u903b\u8f91\u78c1\u76d8\u7ba1\u7406\u5668\uff0c\u662fLinux\u6838\u5fc3\u6240\u63d0\u4f9b\u7684\u903b\u8f91\u5377\u7ba1\u7406\uff08Logical volume management\uff09\u529f\u80fd\u3002\u5b83\u5728\u786c\u76d8\u7684\u786c\u76d8\u5206\u533a\u4e4b\u4e0a\uff0c\u53c8\u521b\u5efa\u4e00\u4e2a\u903b\u8f91\u5c42\uff0c\u4ee5\u65b9\u4fbf\u7cfb\u7edf\u7ba1\u7406\u786c\u76d8\u5206\u5272\u7cfb\u7edf\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n \u6700\u5148\u7531IBM\u5f00\u53d1\uff0c\u5728AIX\u7cfb\u7edf\u4e0a\u5b9e\u73b0\uff0cOS\/2 \u64cd\u4f5c\u7cfb\u7edf\u4e0e HP-UX\u4e5f\u652f\u6301\u8fd9\u4e2a\u529f\u80fd\u3002\u57281998\u5e74\uff0cHeinz Mauelshagen \u6839\u636e\u5728 HP-UX \u4e0a\u7684\u903b\u8f91\u5377\u7ba1\u7406\u5668\uff0c\u5199\u4f5c\u51fa\u7b2c\u4e00\u4e2a Linux \u7248\u672c\u7684\u903b\u8f91\u5377\u7ba1\u7406\u5668\u3002<\/p>\n LVM\u57fa\u672c\u672f\u8bed<\/strong><\/div>\n PV\uff1a\u7269\u7406\u5377\uff0cPV\u5904\u4e8eLVM\u7cfb\u7edf\u6700\u4f4e\u5c42\uff0c\u5b83\u53ef\u4ee5\u662f\u6574\u4e2a\u786c\u76d8\uff0c\u6216\u8005\u4e0e\u78c1\u76d8\u5206\u533a\u5177\u6709\u76f8\u540c\u529f\u80fd\u7684\u8bbe\u5907\uff08\u5982RAID\uff09\uff0c\u4f46\u548c\u57fa\u672c\u7684\u7269\u7406\u5b58\u50a8\u4ecb\u8d28\u76f8\u6bd4\u8f83\uff0c\u591a\u4e86\u4e0eLVM\u76f8\u5173\u7ba1\u7406\u53c2\u6570 \u8fc7\u7a0b<\/strong><\/div>\n \u521b\u5efalvm\u5206\u533a\u7684\u65b9\u6cd5\u5176\u5b9e\u975e\u5e38\u7684\u7b80\u5355\uff0c\u4e3b\u8981\u5206\u4e3a\u4ee5\u4e0b\u51e0\u4e2a\u6b65\u9aa4\uff1a<\/p>\n \u521b\u5efa\u78c1\u76d8\u5206\u533apart<\/strong><\/span><\/div>\n \u76ee\u524d\u505aLVM\u5206\u533a\u6bd4\u8f83\u63a8\u8350\u7684\u5de5\u5177\u8fd8\u662ffdisk\uff0c\u4e0d\u662f\u8bf4parted\u4e0d\u80fd\u505a\uff0c\u800c\u662ffdisk\u53ef\u80fd\u66f4\u52a0\u65b9\u4fbf\u4e00\u70b9\u3002\u6d41\u7a0b\u5982\u4e0b\uff1a<\/p>\n \r\n# fdisk \/dev\/nvme0n1\r\nCommand (m for help): n ## \u65b0\u5efa\r\nCommand action\r\n e extended\r\n p primary partition (1-4)\r\np ## \u4e3b\u5206\u533a\r\n\r\nPartition number (1-4): 1 ## \u5206\u533a\u53f7\r\nFirst cylinder (2048-543352123, default 2048): ## \u56de\u8f66\u7528\u9ed8\u8ba4\u76841\r\nLast cylinder, +cylinders or +size{K,M,G} (2048-543352123, default 543352123): ## \u56de\u8f66\u9ed8\u8ba4\u5927\u5c0f\u5927\u5c0f\r\n\r\nCommand (m for help): t ## \u6539\u53d8toggle\u7c7b\u578b\r\nSelected partition 1\r\nHex code (type L to list codes): 8e ## LVM \u7684\u5206\u533a\u4ee3\u78018e\r\nChanged system type of partition 1 to 8e (Linux LVM)\r\n<\/pre>\n |