Create Logical volume

First we need to find out which disks and partitions are being used. So we could use the following commands
#df -h [This will display which partitions are being used]
#fdisk -l [This will show which disks are being used and disks that are not mounted.]
Now we can start the lvm implementation,we have two unused partitions /dev/sda3 and /dev/sda4
In logical volume creation,need to the following sequence

1. create physical volume
2. create volume group
3. create logical volume

1.Create physical volume
#pvcreate /dev/sda3
#pvcreate /dev/sda4
Verify the volumes with pvdisplay command
#pvdisplay
2.Create volume group
#vgcreate test_volume /dev/sda3 /dev/sda4
#vgchange -a y test_volume [To activate the volume]
Verify the group with vgdisplay

#vgdisplay
3.Now create logical volume
#lvcreate -L5G -n test_logical test_volume
test_logical –name of logical volume
test_volume–name of volume group

Verify the logical volumes with lvdisplay
#lvdisplay
Create filesystem for this logical volume
#mkfs.ext3 /dev/test_volume/test_logical
To use this file system, we need to mount and add to /etc/fstab to use permanently.
#mount /dev/test_volume/test_logical /mnt
add the following entry to /etc/fstab
/dev/test_volume/test_logical /mnt ext3 defaults 0 0

**********DONE*************

White Paper
Linux Management with Red Hat Satellite: Measuring Business Impact and ROI

Linux has become a key foundation for supporting today's rapidly growing IT environments. Linux is being used to deploy business applications and databases, trading on its reputation as a low-cost operating environment. For many IT organizations, Linux is a mainstay for deploying Web servers and has evolved from handling basic file, print, and utility workloads to running mission-critical applications and databases, physically, virtually, and in the cloud. As Linux grows in importance in terms of value to the business, managing Linux environments to high standards of service quality — availability, security, and performance — becomes an essential requirement for business success.

Learn More

Sponsored by Red Hat

White Paper
Private PaaS for the Agile Enterprise

If you already use virtualized infrastructure, you are well on your way to leveraging the power of the cloud. Virtualization offers the promise of limitless resources, but how do you manage that scalability when your DevOps team doesn’t scale? In today’s hypercompetitive markets, fast results can make a difference between leading the pack vs. obsolescence. Organizations need more benefits from cloud computing than just raw resources. They need agility, flexibility, convenience, ROI, and control.

Stackato private Platform-as-a-Service technology from ActiveState extends your private cloud infrastructure by creating a private PaaS to provide on-demand availability, flexibility, control, and ultimately, faster time-to-market for your enterprise.

Learn More

Sponsored by ActiveState