raid:mdadm:lvm_on_raid
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
raid:mdadm:lvm_on_raid [2021/10/01 11:38] – created peter | raid:mdadm:lvm_on_raid [2021/10/01 17:18] (current) – peter | ||
---|---|---|---|
Line 5: | Line 5: | ||
* This Volume Group can be split into Logical Volumes; in essence different Partitions. | * This Volume Group can be split into Logical Volumes; in essence different Partitions. | ||
* LVM provides the ability to resize these Logical Volumes very easily. | * LVM provides the ability to resize these Logical Volumes very easily. | ||
- | * LVM is not a replacement for RAID, as it only supports mirroring or stripe. | + | * LVM is not a replacement for RAID, as LVM does not provide any options |
- | * Using LVM for resilience without | + | |
* Therefore it is best to be have LVM in conjunction with RAID. | * Therefore it is best to be have LVM in conjunction with RAID. | ||
+ | |||
+ | < | ||
+ | |--------------------------------------------------------------------------------------------| | ||
+ | |LVM Logical Volumes | / | /var | /usr | /home | /mnt | | ||
+ | |--------------------------------------------------------------------------------------------| | ||
+ | |LVM Volume Group | / | ||
+ | |--------------------------------------------------------------------------------------------| | ||
+ | |RAID Arrays | ||
+ | |--------------------------------------------------------------------------------------------| | ||
+ | |Physical Partitions | /dev/sda1 | /dev/sda2 | /dev/sdb1 | /dev/sdb2 | /dev/sdc1 | /dev/sdc2 | | ||
+ | |--------------------------------------------------------------------------------------------| | ||
+ | |Devices | ||
+ | |--------------------------------------------------------------------------------------------| | ||
+ | |Hard Drives | ||
+ | |--------------------------------------------------------------------------------------------| | ||
+ | </ | ||
<WRAP info> | <WRAP info> | ||
Line 43: | Line 58: | ||
* Enter an **e** for an extended partition. | * Enter an **e** for an extended partition. | ||
* Enter a **p** for a primary partition (1-4). | * Enter a **p** for a primary partition (1-4). | ||
- | * Enter a **1* for primary partition number 1. | + | * Enter a **1** for primary partition number 1. |
* Accept the default sizes. | * Accept the default sizes. | ||
Line 54: | Line 69: | ||
===== Wipe everything ===== | ===== Wipe everything ===== | ||
- | |||
- | |||
<code bash> | <code bash> | ||
Line 65: | Line 78: | ||
---- | ---- | ||
- | |||
===== Create the RAID Array ===== | ===== Create the RAID Array ===== | ||
Line 263: | Line 275: | ||
| | ||
</ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | |||
+ | <file bash / | ||
+ | / | ||
+ | </ | ||
+ | |||
+ | </ | ||
+ | |||
---- | ---- | ||
Line 283: | Line 305: | ||
</ | </ | ||
+ | |||
+ | If the system has sufficient RAM the size of the software RAID MD cache can be increased: | ||
+ | |||
+ | <code bash> | ||
+ | echo 8192 > / | ||
+ | </ | ||
+ | |||
---- | ---- |
raid/mdadm/lvm_on_raid.1633088303.txt.gz · Last modified: 2021/10/01 11:38 by peter