|
|
# Software RAID 1
|
|
|
mdadm
|
|
|
# Partitioning: Compute Nodes
|
|
|
|
|
|
md0 -> boot
|
|
|
md1 -> lvm
|
|
|
The compute nodes (except diskless nodes) have two disks configured as a software RAID-1 using ``mdadm``.
|
|
|
Two partitions are available:
|
|
|
```
|
|
|
md0 -> /boot
|
|
|
md1 -> used for lvm
|
|
|
```
|
|
|
|
|
|
## SSD with 223G
|
|
|
lvextend -L 72G /dev/vg_system/lv_var
|
|
|
resize2fs -p /dev/vg_system/lv_var
|
|
|
lvcreate -L 100G -n lv_cinder-container vg_system
|
|
|
pvcreate /dev/vg_system/lv_cinder-container
|
|
|
vgcreate vg_cinder /dev/vg_system/lv_cinder-container
|
|
|
|
|
|
## HDD with 1000G
|
|
|
lvextend -L 400G /dev/vg_system/lv_var
|
|
|
resize2fs -p /dev/vg_system/lv_var
|
|
|
lvcreate -L 480G -n lv_cinder-container vg_system
|
|
|
pvcreate /dev/vg_system/lv_cinder-container
|
|
|
vgcreate vg_cinder /dev/vg_system/lv_cinder-container |
|
|
\ No newline at end of file |
|
|
The LVM is setup as follows:
|
|
|
```
|
|
|
lv_cinder-container vg_system -wi-a----- 480.00g HDD / 100g SSD
|
|
|
lv_home vg_system -wi-ao---- 10.00g
|
|
|
lv_root vg_system -wi-ao---- 2.00g
|
|
|
lv_swap vg_system -wi-ao---- 32.00g
|
|
|
lv_tmp vg_system -wi-ao---- 2.00g
|
|
|
lv_usr vg_system -wi-ao---- 5.00g
|
|
|
lv_var vg_system -wi-ao---- 400.00g HDD / 72g SSD
|
|
|
``` |
|
|
\ No newline at end of file |