Skip to content

create a linux logical volume

List out all your disks to see which ones are mapped to which /dev/sdx
#fdisk -l
Delete any existing partitions with fdisk  -> d -> w
#fdisk /dev/sda
Use pvcreate to prepare the disks
#pvcreate /dev/sda; pvcreate /dev/sdb; pvcreate /dev/sdc; pvcreate /dev/sdd
Create a volume group
#vgcreate VolGroup00 /dev/sda /dev/sdb /dev/sdc /dev/sdd
Check to see total size of volume group
#vgdisplay VolGroup00
Create a volume group spanning the entire space
#lvcreate VolGroup00 –size 3.63T -n LogVol00
Create the filesystem
#mkfs /dev/VolGroup00/LogVol00
Map the new filesystem to a folder
#mkdir /backup; mount /dev/VolGroup00/LogVol00 /backup

Thats it, modify your fstab if you want it to mount on boot.

If you need to remove a drive which has failed use this:
#vgreduce VolGroup00 –removemissing –force

Post a Comment

You must be logged in to post a comment.