LVM on 3 SATA drives:
3 raid 1 (hardware)
Challenge:
To create LVM on all 3 raid 1 drives excluding the partition used by OS.
Steps OS level:
1. Create Raid 1 on 6 drives = 3 Logical 200 GB
2. On OS install part. Create partition for OS (/, /home, /usr, swap)
3. On the remaining disk free space, create an LVM partition
4. Install OS.
Steps on LVM creation
1. Run pvcreate on the disk.
# pvcreate /dev/sda
# pvcreate /dev/sdb
# pvcreate /dev/sdc
2. Create a Volume Group
# vgcreate my_volume_group /dev/sda /dev/sdb /dev/sdc/
3. Run vgdisplay to verify the volume group
# vgdisplay
--- Volume Group ---
VG Name my_volume_group
VG Access read/write
VG Status available/resizable
VG # 1
MAX
Cur
Open
MAX
Max PV 256
Cur PV 3
Act PV 3
VG Size 1.45 GB
PE Size 4 MB
Total PE 372
Alloc PE / Size 0 / 0
Free PE / Size 372/ 1.45 GB
VG UUID nP2PY5-5TOS-hLx0-FDu0-2a6N-f37x-0BME0Y
4. If the volume group looks correct, it is time to create a logical volume on top of the volume group
# lvcreate -L1G -nmy_logical_volume my_volume_group
5. Create a file system.
mkfs -t ext3 /dev/my_volume_group/my_logical_volume
6.Mount the filesystem.
FIN
