{"id":418,"date":"2004-06-28T22:45:46","date_gmt":"2004-06-28T13:45:46","guid":{"rendered":"http:\/\/153.126.194.20\/?p=418"},"modified":"2024-11-17T15:23:39","modified_gmt":"2024-11-17T06:23:39","slug":"vine-lvm","status":"publish","type":"post","link":"https:\/\/funaori.com\/ja\/2004\/06\/28\/vine-lvm\/","title":{"rendered":"vine\/LVM"},"content":{"rendered":"<h2 id=\"content_1_0\">\u76ee\u7684  <a class=\"anchor_super\" id=\"z41b5b00\" href=\"http:\/\/192.168.1.4\/www_old\/linux\/index.php?vine%2FLVM#z41b5b00\" title=\"z41b5b00\">\u2020<\/a><\/h2>\n<p>HDD\u306e\u30c8\u30e9\u30d6\u30eb\u306b\u898b\u821e\u308f\u308c\u3066\u5927\u91cf\u306e\u30c7\u30fc\u30bf\u3092\u7d1b\u5931\u3057\u307e\u3057\u305f\uff0e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u306e\u5927\u5207\u3055\u3092\u6539\u3081\u3066\u5b9f\u611f\u3057\u307e\u3057\u305f\uff0e<a href=\"http:\/\/192.168.1.4\/www_old\/linux\/index.php?RAID\" title=\"RAID (194d)\">RAID<\/a>\u306b\u3042\u308b\u3088\u3046\u306bRAID5\u304b\u3089RAID1\u306b\u3057\u3066\u4fe1\u983c\u6027\u3092\u3042\u3052\u308b\u3068\u3068\u3082\u306b\uff0c\u5225\u9014\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u3068\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\uff0e<br \/>\n\u3082\u3046\u4e00\u53f0\u306ePC\u306bHDD\u3092\u5bc4\u305b\u96c6\u3081LVM\u3067\u5927\u304d\u306a\u30dc\u30ea\u30e5\u30fc\u30e0\u3092\u3064\u304f\u308a\uff0c\u305d\u3053\u306brsync\u3067\u30b3\u30d4\u30fc\u3092\u3057\u3066\u3044\u307e\u3059\uff0e<\/p>\n<div class=\"jumpmenu\"><a href=\"#navigator\">\u2191<\/a><\/div>\n<h2 id=\"content_1_1\">\u53c2\u8003  <a class=\"anchor_super\" id=\"ke7a1fe1\" href=\"http:\/\/192.168.1.4\/www_old\/linux\/index.php?vine%2FLVM#ke7a1fe1\" title=\"ke7a1fe1\">\u2020<\/a><\/h2>\n<p><a href=\"http:\/\/beer.dip.jp\/unix\/lvm.html\" rel=\"nofollow\">LVM\u69cb\u7bc9\u306b\u3064\u3044\u3066<\/a><br \/>\n<a href=\"http:\/\/www.itmedia.co.jp\/enterprise\/0308\/08\/epn01.html\" rel=\"nofollow\">\u7279\u96c6\uff1aLVM\u306b\u3088\u308b\u30c7\u30a3\u30b9\u30af\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u306e\u52d5\u7684\u5316\uff08\u5f8c\u7de8\uff09<\/a><\/p>\n<div class=\"jumpmenu\"><a href=\"#navigator\">\u2191<\/a><\/div>\n<h2 id=\"content_1_2\">LVM\u306e\u69cb\u7bc9  <a class=\"anchor_super\" id=\"e4494966\" href=\"http:\/\/192.168.1.4\/www_old\/linux\/index.php?vine%2FLVM#e4494966\" title=\"e4494966\">\u2020<\/a><\/h2>\n<ul class=\"list1\" style=\"padding-left:16px;margin-left:16px\">\n<li>LVM\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/li>\n<\/ul>\n<p>Vine\u306ekernel\u306fLVM\u306e\u30d1\u30c3\u30c1\u304c\u5f53\u305f\u3063\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u304c\uff0cLVM\u306e\u30c4\u30fc\u30eb\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3067\u3057\u305f\uff0e<br \/>\n<a href=\"http:\/\/sources-redhat.mirrors.redwire.net\/lvm\/1.0\/\" rel=\"nofollow\">redhat<\/a>\u304b\u3089lvm_1.0.8.tar.gz\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3057\u305f\uff0e<\/p>\n<pre># tar zxvf lvm_1.0.8.tar.gz\r\n# cd LVM\/1.0.8\r\n# .\/configure\r\n# make\r\n# make install<\/pre>\n<ul class=\"list1\" style=\"padding-left:16px;margin-left:16px\">\n<li>\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3ID\u306e\u5909\u66f4<\/li>\n<\/ul>\n<p>\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3ID\u3092 Linux LVM(8e) \u306b\u5909\u66f4\u3059\u308b<\/p>\n<pre># fdisk \/dev\/hdb\r\n\u30b3\u30de\u30f3\u30c9 (m \u3067\u30d8\u30eb\u30d7): t\r\n\u9818\u57df\u756a\u53f7 (1-5): 1\r\n16\u9032\u6570\u30b3\u30fc\u30c9 (L \u30b3\u30de\u30f3\u30c9\u3067\u30b3\u30fc\u30c9\u30ea\u30b9\u30c8\u8868\u793a): 8e\r\n\u30b3\u30de\u30f3\u30c9 (m \u3067\u30d8\u30eb\u30d7): w<\/pre>\n<p>\u540c\u69d8\u306b\u3057\u3066hdc1\u306e\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3ID\u3082\u5909\u66f4<\/p>\n<ul class=\"list1\" style=\"padding-left:16px;margin-left:16px\">\n<li>PV\u3068\u3057\u3066\u69cb\u7bc9<\/li>\n<\/ul>\n<pre># pvcreate \/dev\/hdb1\r\n# pvcreate \/dev\/hdc1<\/pre>\n<ul class=\"list1\" style=\"padding-left:16px;margin-left:16px\">\n<li>VG\u306e\u69cb\u7bc9<\/li>\n<\/ul>\n<pre># vgcreate vg01 \/dev\/hdb1\r\n# vgextend vg01 \/dev\/hdc1<\/pre>\n<ul class=\"list1\" style=\"padding-left:16px;margin-left:16px\">\n<li>LV\u306e\u69cb\u7bc9<\/li>\n<\/ul>\n<pre># lvcreate -L160G vg01<\/pre>\n<ul class=\"list1\" style=\"padding-left:16px;margin-left:16px\">\n<li>\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u306e\u4f5c\u6210<\/li>\n<\/ul>\n<pre># mkfs.ext3 \/dev\/vg01\/lvol1<\/pre>\n<ul class=\"list1\" style=\"padding-left:16px;margin-left:16px\">\n<li>mount<\/li>\n<\/ul>\n<p>fstab\u3078\u306e\u8a18\u8ff0\u8ffd\u52a0<\/p>\n<pre>\/dev\/vg01\/lvol1         \/home                   ext3    user,auto,exec  0 0<\/pre>\n<p>vine\u306e\u5834\u5408LVM\u3092\u8d77\u52d5\u6642\u306b\u4f5c\u6210\u3057\u3066\u304f\u308c\u306a\u3044\u306e\u3067\uff0c\/etc\/rc.d\/rc.sysinit\u3092\u7de8\u96c6<\/p>\n<pre># Mount all other filesystems (except for NFS and \/proc, which is already\r\n# mounted). Contrary to standard usage,\r\n# filesystems are NOT unmounted in single user mode.\r\n\/sbin\/vgscan             \u2190\u8ffd\u52a0\r\n\/sbin\/vgchange -a y\u3000\u3000\u3000\u2190\u8ffd\u52a0<\/pre>\n<div class=\"jumpmenu\"><a href=\"#navigator\">\u2191<\/a><\/div>\n<h2 id=\"content_1_3\">LVM\u306e\u62e1\u5f35  <a class=\"anchor_super\" id=\"gd4100da\" href=\"http:\/\/192.168.1.4\/www_old\/linux\/index.php?vine%2FLVM#gd4100da\" title=\"gd4100da\">\u2020<\/a><\/h2>\n<p>LVM\u3067\u4f5c\u6210\u3057\u305f\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u3082\u624b\u72ed\u306b\u306a\u3063\u3066\u304d\u305f\u306e\u3067\uff0cHDD\u3092\u8ffd\u52a0\u3057\u307e\u3057\u305f\uff0e<\/p>\n<ul class=\"list1\" style=\"padding-left:16px;margin-left:16px\">\n<li>\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3ID\u306e\u5909\u66f4<\/li>\n<\/ul>\n<p>\u4f5c\u6210\u3058\u3068\u540c\u3058\u3067\u3059\uff0e\/dev\/hde1\u3068\/dev\/hdf1\u3092\u4f5c\u6210<\/p>\n<ul class=\"list1\" style=\"padding-left:16px;margin-left:16px\">\n<li>PV\u306e\u69cb\u7bc9<\/li>\n<\/ul>\n<pre># pvcreate \/dev\/hde1\r\n# pvcreate \/dev\/hdf1<\/pre>\n<ul class=\"list1\" style=\"padding-left:16px;margin-left:16px\">\n<li>VG\u306e\u69cb\u7bc9<\/li>\n<\/ul>\n<pre># vgextend vg01 \/dev\/hde1\r\n# vgextend vg01 \/dev\/hdf1<\/pre>\n<ul class=\"list1\" style=\"padding-left:16px;margin-left:16px\">\n<li>LV\u306e\u62e1\u5f35<\/li>\n<\/ul>\n<p>lvol1\u3092\u30a2\u30f3\u30de\u30a6\u30f3\u30c8<\/p>\n<pre># umount \/home<\/pre>\n<p>\u62e1\u5f35<\/p>\n<pre># lvextend -L+150G \/dev\/vg01\/lvol1\r\n# lventend -L+96B \/dev\/vg01\/lvol1\r\n\r\n-L+150.96G\u3068\u4e00\u5ea6\u306b\u62e1\u5f35\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u5931\u6557\u3057\u307e\u3057\u305f\uff0e<\/pre>\n<p>\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u306e\u62e1\u5f35<br \/>\n\u30c7\u30a3\u30b9\u30af\u3092\u30c1\u30a7\u30c3\u30af<\/p>\n<pre># fsck -f \/dev\/vg01\/lvol1<\/pre>\n<p>\u30b5\u30a4\u30ba\u5909\u66f4<\/p>\n<pre># resize2fs \/dev\/vg01\/lvol1<\/pre>\n<div class=\"jumpmenu\"><a href=\"#navigator\">\u2191<\/a><\/div>\n<h2 id=\"content_1_4\">\u30c7\u30a3\u30b9\u30af\u306e\u53d6\u308a\u5916\u3057  <a class=\"anchor_super\" id=\"vf85fe4d\" href=\"http:\/\/192.168.1.4\/www_old\/linux\/index.php?vine%2FLVM#vf85fe4d\" title=\"vf85fe4d\">\u2020<\/a><\/h2>\n<ul class=\"list1\" style=\"padding-left:16px;margin-left:16px\">\n<li>\u5bfe\u8c61\u3092\u30a2\u30f3\u30de\u30a6\u30f3\u30c8<\/li>\n<\/ul>\n<pre># umount \/home<\/pre>\n<ul class=\"list1\" style=\"padding-left:16px;margin-left:16px\">\n<li>LV\u306e\u4f7f\u7528\u5bb9\u91cf\u3092\u6e1b\u3089\u3059<\/li>\n<\/ul>\n<pre># lvreduce -L-80G \/dev\/vg01\/lvol1<\/pre>\n<ul class=\"list1\" style=\"padding-left:16px;margin-left:16px\">\n<li>\u5916\u3057\u305f\u3044\u30c7\u30a3\u30b9\u30af\u5185\u5bb9\u3092\u79fb\u52d5<\/li>\n<\/ul>\n<pre># pvmove \/dev\/hdf1<\/pre>\n<ul class=\"list1\" style=\"padding-left:16px;margin-left:16px\">\n<li>\u5bfe\u8c61\u30c7\u30a3\u30b9\u30af\u3092VG\u304b\u3089\u5916\u3059<\/li>\n<\/ul>\n<pre># vgreduce vg01 \/dev\/hdf1<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u76ee\u7684 \u2020 HDD\u306e\u30c8\u30e9\u30d6\u30eb\u306b\u898b\u821e\u308f\u308c\u3066\u5927\u91cf\u306e\u30c7\u30fc\u30bf\u3092\u7d1b\u5931\u3057\u307e\u3057\u305f\uff0e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u306e\u5927\u5207\u3055\u3092\u6539\u3081\u3066\u5b9f\u611f\u3057\u307e\u3057\u305f\uff0eRAID\u306b\u3042\u308b\u3088\u3046\u306bRAID5\u304b\u3089RAID1\u306b\u3057\u3066\u4fe1\u983c\u6027\u3092\u3042\u3052\u308b\u3068\u3068\u3082\u306b\uff0c\u5225\u9014\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u3068\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\uff0e&hellip; <a class=\"more-link\" href=\"https:\/\/funaori.com\/ja\/2004\/06\/28\/vine-lvm\/\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">vine\/LVM<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_locale":"ja","_original_post":"418","footnotes":""},"categories":[15],"tags":[],"class_list":["post-418","post","type-post","status-publish","format-standard","hentry","category-vine","ja","entry"],"_links":{"self":[{"href":"https:\/\/funaori.com\/wp-json\/wp\/v2\/posts\/418","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/funaori.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/funaori.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/funaori.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/funaori.com\/wp-json\/wp\/v2\/comments?post=418"}],"version-history":[{"count":1,"href":"https:\/\/funaori.com\/wp-json\/wp\/v2\/posts\/418\/revisions"}],"predecessor-version":[{"id":419,"href":"https:\/\/funaori.com\/wp-json\/wp\/v2\/posts\/418\/revisions\/419"}],"wp:attachment":[{"href":"https:\/\/funaori.com\/wp-json\/wp\/v2\/media?parent=418"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/funaori.com\/wp-json\/wp\/v2\/categories?post=418"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/funaori.com\/wp-json\/wp\/v2\/tags?post=418"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}