HOME RESTORATION DIGITAL PHOTOS DIGITAL BOOKS PROFESSIONAL HISTORY CONTACT ME


CentOS 7 Creating/Managing a Logical Volume (Part 2)

Domain name: example.com     Realm name: EXAMPLE.COM

Workgroup: EXAMPLE     Server IP address: xx.xx.xx.xx

Server name: linuxsvr01     Client name: linuxclnt01

Root password: ?Pa55w0rd!

In creating and managing a Logical Volume (1) we used LVM2 and we created a logical volume (pvcreate + vgcreate + lvcreate) that was ready to be partitioned (fdisk) and formatted (mkfs).

We are now going to create, partition and format a logical volume with 1 command instead of the 5 above, this is done using System Storage Manager (SSM). SSM provides a unified user interface to manage various storage technologies including LVM.

Before we start we must install SSM

# yum -y install system-storage-manager

To get an overview of our devices

# ssm list dev
----------------------------------------------------------------------
Device        Free       Used      Total  Pool            Mount point
----------------------------------------------------------------------
/dev/sda                       465.76 GB                  PARTITIONED
/dev/sda1                      500.00 MB                  /boot
/dev/sda2  0.00 KB  465.27 GB  465.27 GB  centos
/dev/sdb   0.00 KB  931.51 GB  931.51 GB  centos
/dev/sdc                       931.51 GB
/dev/sdd                       931.51 GB
/dev/sde                       931.51 GB
----------------------------------------------------------------------

It shows that 3 devices are not used /dev/sdc, /dev/sdd and /dev/sde so for this exercise let's use /dev/sde.

We need to create a mount directory for the logical volume

# mkdir /mnt/virtual_disks

Now we can create, format and mount the logical volume.

# ssm create -s 931.51G -n vmware --fstype xfs -p vms01 /dev/sde /mnt/virtual_disks

-s = size of disk (use M, G, T etc.)   -n = name of logical volume   --fstype = file system (ext3, xfs or the new btrfs)   -p = name of storage pool

To learn more about about SSM visit the redhat customer portal