{"id":1487,"date":"2014-02-18T16:36:22","date_gmt":"2014-02-18T08:36:22","guid":{"rendered":"http:\/\/www.gejoin.com\/?p=1487"},"modified":"2014-02-18T16:36:22","modified_gmt":"2014-02-18T08:36:22","slug":"vmware-%e4%b8%adlinux-%e8%b0%83%e6%95%b4%e5%88%86%e5%8c%ba%e5%a4%a7%e5%b0%8f","status":"publish","type":"post","link":"https:\/\/www.mujins.com\/?p=1487","title":{"rendered":"VMware \u4e2dLinux \u8c03\u6574\u5206\u533a\u5927\u5c0f"},"content":{"rendered":"<p><a href=\"https:\/\/www.gigiwangs.com\/wp-content\/uploads\/2013\/12\/Fedora_logo.png\" data-lightbox=\"gal[1487]\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter\" alt=\"Fedora_logo\" src=\"https:\/\/www.gigiwangs.com\/wp-content\/uploads\/2013\/12\/Fedora_logo.png\" width=\"440\" height=\"141\" \/><\/a><\/p>\n<p>Precondition\u00a0\uff1aVMware Player \u4e2d\u5b89\u88c5\u7684Fedora 17 Linux 32bit\uff0c\u4e2a\u4eba\u8f83\u4e45\u8fdc\u7684\u6d4b\u8bd5\u73af\u5883\uff0c\u5b89\u88c5\u65f6\u6ca1\u6709\u8fdb\u884c\u78c1\u76d8\u89c4\u5212\uff0c\u9ed8\u8ba420G\u7a7a\u95f4\uff08\u52a8\u6001\u8c03\u6574\uff09\uff0c\u5b89\u88c5\u5728\u6839\/\u4e0b\u3002<br \/>\nBackground\u00a0\uff1a\u5728\u4e0a\u8ff0\u73af\u5883\u4e2d\u5b89\u88c5IBM DB2 Express-C 10.5\uff08v10.5fp1_linuxia32_expc.tar.gz\uff09\uff0c\u5b89\u88c5\u65f6\/tmp\u7a7a\u95f4\u4e0d\u8db3\uff0c\u65e0\u6cd5\u5b89\u88c5\u3002<br \/>\nPlan\uff1a\u9700\u8981\u8fdb\u884c\u78c1\u76d8\u6269\u5bb9\u3002\u8003\u8651\u5230\u4f7f\u7528VMware Player\u865a\u62df\u673a\u3002<\/p>\n<p>1.\u9996\u5148\u8c03\u6574\u865a\u62df\u673a\u5927\u5c0f\uff1a<a href=\"https:\/\/www.gigiwangs.com\/wp-content\/uploads\/2014\/02\/player_vm_fedora.jpg\" data-lightbox=\"gal[1487]\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-1489\" alt=\"player_vm_fedora\" src=\"https:\/\/www.gigiwangs.com\/wp-content\/uploads\/2014\/02\/player_vm_fedora.jpg\" width=\"565\" height=\"358\" \/><\/a><\/p>\n<p>2.\u865a\u62df\u673a\u5f00\u673a\uff0c\u4f7f\u7528fdisk \u547d\u4ee4\u65b0\u5efa\u65b0\u533a fdisk \u00a0\/dev\/sda \u6dfb\u52a0\u00a0\/dev\/sda3<\/p>\n<p>3.\u63a5\u4e0b\u6765\u5c31\u8d34\u4ee3\u7801\u4e86\uff1a<\/p>\n<pre>Fedora release 17 (Beefy Miracle)\nKernel 3.4.0-1.fc17.i686 on an i686 (0)\n\n[root@localhost ~]# df -h\nFilesystem Size Used Avail Use% Mounted on\nrootfs 6.5G 6.0G 529M 92% \/\ndevtmpfs 494M 0 494M 0% \/dev\ntmpfs 502M 0 502M 0% \/dev\/shm\ntmpfs 502M 940K 502M 1% \/run\n\/dev\/mapper\/vg-lv_root 6.5G 6.0G 529M 92% \/\ntmpfs 502M 0 502M 0% \/sys\/fs\/cgroup\ntmpfs 502M 0 502M 0% \/media\n\/dev\/sda1 497M 81M 392M 17% \/boot\n\n[root@localhost ~]# # fdisk \/dev\/sda\n\n[root@localhost ~]# fdisk -l\n\nDisk \/dev\/sda: 32.2 GB, 32212254720 bytes\n255 heads, 63 sectors\/track, 3916 cylinders, total 62914560 sectors\nUnits = sectors of 1 * 512 = 512 bytes\nSector size (logical\/physical): 512 bytes \/ 512 bytes\nI\/O size (minimum\/optimal): 512 bytes \/ 512 bytes\nDisk identifier: 0x00002255\n\nDevice Boot Start End Blocks Id System\n\/dev\/sda1 * 2048 1026047 512000 83 Linux\n\/dev\/sda2 1026048 16777215 7875584 8e Linux LVM\n\/dev\/sda3 16777216 62914559 23068672 83 Linux\n\nDisk \/dev\/mapper\/vg-lv_swap: 1073 MB, 1073741824 bytes\n255 heads, 63 sectors\/track, 130 cylinders, total 2097152 sectors\nUnits = sectors of 1 * 512 = 512 bytes\nSector size (logical\/physical): 512 bytes \/ 512 bytes\nI\/O size (minimum\/optimal): 512 bytes \/ 512 bytes\n\nDisk \/dev\/mapper\/vg-lv_root: 6979 MB, 6979321856 bytes\n255 heads, 63 sectors\/track, 848 cylinders, total 13631488 sectors\nUnits = sectors of 1 * 512 = 512 bytes\nSector size (logical\/physical): 512 bytes \/ 512 bytes\nI\/O size (minimum\/optimal): 512 bytes \/ 512 bytes\n\n[root@localhost ~]# pvcreate \/dev\/sda3\nWriting physical volume data to disk \"\/dev\/sda3\"\nPhysical volume \"\/dev\/sda3\" successfully created\n\n[root@localhost ~]# vgextend \/dev\/mapper\/vg \/dev\/sda3 \nVolume group \"vg\" successfully extended\n[root@localhost ~]# lvextend -L +20G \/dev\/mapper\/vg-lv_root\nExtending logical volume lv_root to 26.50 GiB\nLogical volume lv_root successfully resized\n\n[root@localhost ~]# resize2fs \/dev\/mapper\/vg-lv_root \nresize2fs 1.42 (29-Nov-2011)\nFilesystem at \/dev\/mapper\/vg-lv_root is mounted on \/; on-line resizing required\nold_desc_blocks = 1, new_desc_blocks = 2\nThe filesystem on \/dev\/mapper\/vg-lv_root is now 6946816 blocks long.\n\n[root@localhost ~]# df -h\nFilesystem Size Used Avail Use% Mounted on\nrootfs 27G 6.2G 21G 24% \/\ndevtmpfs 494M 0 494M 0% \/dev\ntmpfs 502M 0 502M 0% \/dev\/shm\ntmpfs 502M 956K 502M 1% \/run\n\/dev\/mapper\/vg-lv_root 27G 6.2G 21G 24% \/\ntmpfs 502M 0 502M 0% \/sys\/fs\/cgroup\ntmpfs 502M 0 502M 0% \/media\n\/dev\/sda1 497M 81M 392M 17% \/boot\n[root@localhost ~]#<\/pre>\n<p>\u81f3\u6b64\uff0c\u64cd\u4f5c\u7ed3\u675f\uff0c\u7a7a\u95f4\u8c03\u6574\u4e3a30GB\uff0c\u6ee1\u8db3\u4f7f\u7528\u9700\u6c42\u3002\u5f53\u7136\uff0c\u6b64\u65b9\u6848\u9488\u5bf9\u865a\u62df\u673a\u4e2d\u5df2\u5b89\u88c5\u7684\u6ca1\u6709\u91c7\u7528LVM\u7684linux\u5206\u533a\u5927\u5c0f\u8c03\u6574\uff0c\u5176\u5b83\u4e0d\u5fc5\u53c2\u8003\u6b64\u65b9\u6848\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Precondition\u00a0\uff1aVMware Player \u4e2d\u5b89\u88c5\u7684Fedora 17 Linux 32bit\uff0c\u4e2a\u4eba\u8f83\u4e45\u8fdc\u7684\u6d4b\u8bd5\u73af\u5883\uff0c\u5b89\u88c5\u65f6\u6ca1\u6709\u8fdb\u884c\u78c1\u76d8\u89c4\u5212\uff0c\u9ed8\u8ba420G\u7a7a\u95f4\uff08\u52a8\u6001\u8c03\u6574\uff09\uff0c\u5b89\u88c5\u5728\u6839\/\u4e0b\u3002 Background\u00a0\uff1a\u5728\u4e0a\u8ff0\u73af\u5883\u4e2d\u5b89\u88c5IBM DB2 Express-C 10.5\uff08v10.5fp1_linuxia32_expc.tar.gz\uff09\uff0c\u5b89\u88c5\u65f6\/tmp\u7a7a\u95f4\u4e0d\u8db3\uff0c\u65e0\u6cd5\u5b89\u88c5\u3002 Plan\uff1a\u9700\u8981\u8fdb\u884c\u78c1\u76d8\u6269\u5bb9\u3002\u8003\u8651\u5230\u4f7f\u7528VMware Player\u865a\u62df\u673a\u3002 1.\u9996\u5148\u8c03\u6574\u865a\u62df\u673a\u5927\u5c0f\uff1a 2.\u865a\u62df\u673a\u5f00\u673a\uff0c\u4f7f\u7528fdisk \u547d\u4ee4\u65b0\u5efa\u65b0\u533a fdisk \u00a0\/dev\/sda \u6dfb\u52a0\u00a0\/dev\/sda3 3.\u63a5\u4e0b\u6765\u5c31\u8d34\u4ee3\u7801\u4e86\uff1a Fedora release 17 (Beefy Miracle) Kernel 3.4.0-1.fc17.i686 on an i686 (0) [root@localhost ~]# df -h Filesystem Size Used Avail Use% Mounted on rootfs 6.5G 6.0G 529M 92% \/ devtmpfs 494M 0 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1380,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[31,50,4,10,21],"tags":[22,13,58,60,38],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.mujins.com\/index.php?rest_route=\/wp\/v2\/posts\/1487"}],"collection":[{"href":"https:\/\/www.mujins.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mujins.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mujins.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mujins.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1487"}],"version-history":[{"count":0,"href":"https:\/\/www.mujins.com\/index.php?rest_route=\/wp\/v2\/posts\/1487\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.mujins.com\/index.php?rest_route=\/"}],"wp:attachment":[{"href":"https:\/\/www.mujins.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1487"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mujins.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1487"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mujins.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1487"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}