Create a Linux LVM on RHEL command line

  1. Partition the disk –  fdisk /dev/sde
  2. Create the physical volume on the disk /dev/sde1 – pvcreate /dev/sde1
  3. Create a volume group on the physical volume using a 4M chunk called cheese- vgcreate -s 4M cheese /dev/sde1
  4. Create the logical volume on cheese with 11GB called mouse- lvcreate -L 11GB -n mouse cheese
  5. Now you can format and mount your LVM – mkfs.ext3 -b 4096 /dev/cheese/mouse
  6. mount /dev/cheese/mouse /mount_point

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.