Changes between Version 8 and Version 9 of TipAndDoc/storage/LVM


Ignore:
Timestamp:
May 5, 2015 8:07:35 PM (9 years ago)
Author:
mitty
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TipAndDoc/storage/LVM

    v8 v9  
    99 * [http://pc.watanet.com/lab/homesvr/linux/lvm_resize/lvm_resize.html LVMパーティションの拡張] 
    1010 
    11  * [http://unix.stackexchange.com/questions/150644/raiding-with-lvm-vs-mdraid-pros-and-cons raid - RAIDing with LVM vs MDRAID - pros and cons? - Unix & Linux Stack Exchange] 
    12   * Debian Wheezy/Jessie での例が詳しく載っている。LVM-RAIDについては情報が見つけにくいというのは現時点(2015/05)でもあまり変わらないように思える 
    13   * LVM-RAIDは実体としてはMD-RAIDと同じらしい 
    14  * [https://access.redhat.com/documentation/ja-JP/Red_Hat_Enterprise_Linux/6/html/Logical_Volume_Manager_Administration/raid_volumes.html 4.4.15. RAID 論理ボリューム] 
    15   * RHELでLVM-RAIDを使う際のマニュアル。「Red Hat Enterprise Linux 6.3 リリースでは、LVM は RAID4/5/6 およびミラーリングの新実装をサポートしています。」とある。 
    16   * [https://access.redhat.com/documentation/ja-JP/Red_Hat_Enterprise_Linux/6/html/Logical_Volume_Manager_Administration/mirrorrecover.html 6.3. LVM ミラー障害からの回復] 
    17    * このページの説明は、古い実装とされている[https://access.redhat.com/documentation/ja-JP/Red_Hat_Enterprise_Linux/6/html/Logical_Volume_Manager_Administration/mirror_create.html 4.4.3. ミラー化ボリュームの作成]からリンクされているので、新実装で当てはまるのか不明 
    18   * なお、未翻訳のRHEL 7版でもほぼ同じ章立てになっている [https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Logical_Volume_Manager_Administration/ Logical Volume Manager Administration] 
    19  
    20  * [http://ruzia.hateblo.jp/entry/2014/01/04/203603 mdadm と LVM で作る、全手動 BeyondRAID もどき - 守破離] 
    21  > ざっくり言うと、RAID1 か RAID5 でHDDを横断する領域をいくつか作って、その領域をまとめあげる事で大容量のストレージを作る感じですね。 
    22  > これのイケてる点は HDD が 1 台消えても大丈夫な上に、状況によっては HDD を 1 台交換するだけでストレージの容量がアップすること。 
    23  > 最低 2 台の HDD を大容量の物に交換すれば確実に容量が増えます。 
     11 * arch:LVM そこそこ詳しい 
     12 * https://wiki.gentoo.org/wiki/LVM 非常に良くまとまっている 
    2413 
    2514 = lvchange/vgchange -ay = 
     
    147136 
    148137 * [http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=466141 #466141 - lvm2: error message during shutdown (Can't deactivate volume group...) - Debian Bug report logs] > This is not a bug 
     138 
     139 = LVM RAID = 
     140 * [http://unix.stackexchange.com/questions/150644/raiding-with-lvm-vs-mdraid-pros-and-cons raid - RAIDing with LVM vs MDRAID - pros and cons? - Unix & Linux Stack Exchange] 
     141  * Debian Wheezy/Jessie での例が詳しく載っている。LVM-RAIDについては情報が見つけにくいというのは現時点(2015/05)でもあまり変わらないように思える 
     142  * LVM-RAIDは実体としてはMD-RAIDと同じらしい 
     143 * [https://access.redhat.com/documentation/ja-JP/Red_Hat_Enterprise_Linux/6/html/Logical_Volume_Manager_Administration/raid_volumes.html 4.4.15. RAID 論理ボリューム] 
     144  * RHELでLVM-RAIDを使う際のマニュアル。「Red Hat Enterprise Linux 6.3 リリースでは、LVM は RAID4/5/6 およびミラーリングの新実装をサポートしています。」とある。 
     145  * [https://access.redhat.com/documentation/ja-JP/Red_Hat_Enterprise_Linux/6/html/Logical_Volume_Manager_Administration/mirrorrecover.html 6.3. LVM ミラー障害からの回復] 
     146   * このページの説明は、古い実装とされている[https://access.redhat.com/documentation/ja-JP/Red_Hat_Enterprise_Linux/6/html/Logical_Volume_Manager_Administration/mirror_create.html 4.4.3. ミラー化ボリュームの作成]からリンクされているので、新実装で当てはまるのか不明 
     147  * なお、未翻訳のRHEL 7版でもほぼ同じ章立てになっている [https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Logical_Volume_Manager_Administration/ Logical Volume Manager Administration] 
     148 
     149 * https://wiki.gentoo.org/wiki/LVM#Different_storage_allocation_methods 
     150 > It is not possible to stripe an existing volume, nor reshape the stripes across more/less physical volumes, nor to convert to a different RAID level/linear volume. A stripe set can be mirrored. It is possible to extend a stripe set across additional physical volumes, but they must be added in multiples of the original stripe set (which will effectively linearly append a new stripe set). 
     151  * RAID1,4,5,6でreshapeなどが使えないのは結構厳しい制限に思える。MD-RAIDでは可能なので、そのうちサポートされるかも知れない 
     152 
     153 == LVM with MD-RAID == 
     154 * [http://ruzia.hateblo.jp/entry/2014/01/04/203603 mdadm と LVM で作る、全手動 BeyondRAID もどき - 守破離] 
     155 > ざっくり言うと、RAID1 か RAID5 でHDDを横断する領域をいくつか作って、その領域をまとめあげる事で大容量のストレージを作る感じですね。 
     156 > これのイケてる点は HDD が 1 台消えても大丈夫な上に、状況によっては HDD を 1 台交換するだけでストレージの容量がアップすること。 
     157 > 最低 2 台の HDD を大容量の物に交換すれば確実に容量が増えます。 
     158 
     159 = Thin provisioning = 
     160 * https://www.kernel.org/doc/Documentation/device-mapper/thin-provisioning.txt 
     161 > These targets are very much still in the EXPERIMENTAL state.  Please do not yet rely on them in production. 
     162 * https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Logical_Volume_Manager_Administration/LV.html#thinly_provisioned_volume_creation 
     163 
     164 * https://wiki.gentoo.org/wiki/LVM#Thin_provisioning 非常に良くまとまっている 
     165 
     166 * [http://lists.centos.org/pipermail/centos/2014-January/139850.html (CentOS) LVM thinpool snapshots broken in 6.5?] 
     167 > For the people who run into this as well: 
     168 > This is apparently a feature and not a bug. Thin provisioning snapshots  
     169 > are no longer automatically activated and a "skip activation" flag is  
     170 > set during creation by default. One has to add the "-K" option to  
     171 > "lvchange -ay <snapshot-volume>" to have lvchange ignore this flag and  
     172 > activate the volume for real. "-k" can be used on lvcreate to not add  
     173 > this flag to the volume. See man lvchange/lvcreate for more details. 
     174 > /etc/lvm/lvm.conf also contains a "auto_set_activation_skip" option now  
     175 > that controls this. 
     176 >  
     177 > Apparently this was changed in 6.5 but the changes were not mentioned in  
     178 > the release notes.