Virtual TapeServer 8.4 Supplemental Installation Guide

Installing GFS | 5
11. Perform LVM initialization of the device. /dev/sde1 is used as an example partition on the
/dev/sde device.
a. If GFS was previously installed and you want to remove all volume data, enter the
following commands to remove the logical volume (lv1) and wipe labels from the
physical volume (sda1):
lvremove -f /dev/gfsvg1/lv1 gfsvg1
pvremove /dev/sda1 -ff
When prompted, enter y to confirm.
b. Create the physical volume by entering the following command:
pvcreate /dev/sde1
You may need to use the -ff option to force creation.
c. Create the volume group by entering the following (this example creates the gfsvg1
group):
vgcreate gfsvg1 /dev/sde1
d. Create the logical volume by entering the following command. The -l 100%FREE option
creates a logical volume using the entire volume group.
lvcreate -l 100%FREE -n lv1 gfsvg1
e. Enter the following command to confirm the physical volume:
pvscan
Here is an example of the output:
PV /dev/sde1 VG gfsvg1 lvm2 [17.14 GB / 0 free]
Total: 1 [17.14 GB] / in use: 1 [17.14 GB] / in no VG: 0 [0 ]
f. Enter the following command to confirm the volume group:
vgscan
Here is an example of the output:
Reading all physical volumes. This may take a while...
Found volume group "gfsvg1" using metadata type lvm2