Virtual TapeServer 6.04.03 Operations and Administration Guide

158 |
Here is an example of the output:
Disk /dev/sde: 18.4 GB, 18413722112 bytes
255 heads, 63 sectors/track, 2238 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sde1 1 2238 17976703+ 83 Linux
If the vault will be 2-4TB in size, complete these steps to partition the disk:
a. Start the partition editor, which is an interactive program similar to fdisk:
parted /dev/sda
b. Create a GPT disk label, which is a GUID partition table:
mklabel gpt
c. Create a 4TB primary partition at the beginning of the disk:
mkpart primary 0 4000G
d. Quit parted.
quit
5. Perform LVM initialization of the device. /dev/sde1 is used as an example partition on
the /dev/sde device.
a. Create the physical volume by entering the following command:
pvcreate /dev/sde1
b. Create the volume group by entering the following:
vgcreate gfsvg1 /dev/sde1
c. Enter the following commands to stop the GFS service and restart the CLVMD
service:
service gfs stop
service clvmd restart
d. Create the logical volume by entering the following command. The -l 100%FREE
argument 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
g. Enter the following to display details about the physical volume: