Previous Topic: Set Up a Multipath Configuration for SAN Storage

Next Topic: Prepare the Logical Volume for CA Enterprise Log Manager

Create a Logical Volume

You can use volume manager software to combine multiple LUNs into a logical volume for CA Enterprise Log Manager to access. Logical Volume Manager (LVM) manages disk drives and similar mass-storage devices on the Linux operating system. Storage columns created under the LVM can be resized or moved on to backend devices like SAN storage.

To create a logical volume

  1. Create the first physical volume:
    pvcreate /dev/mapper/mpath0
    
  2. Create the second physical volume:
    pvcreate /dev/mapper/mpath1
    
  3. Show all the physical volumes on the system:
    pvdisplay
    
  4. Create the VolGroup01 volume group. (The VolGroup00 volume group exists.)
    vgcreate VolGroup01 /dev/mapper/mpath0 /dev/mapper/mpath1 
    

    Note: This command creates a volume and makes the two physical volumes part of the group.

  5. Create a logical volume within the volume group:
    lvcreate -n LogVol00 -l 384030 VolGroup01
    
  6. Create a file system:
    mkfs -t ext3 /dev/VolGroup01/LogVol00