Setup guide
9 Type t to set the partition type.
You are prompted to enter the hexadecimal code of the partition type to be created on the LUN.
10 Type 8e to set the partition type to Linux LVM.
fdisk sets the partition as Linux LVM and the following output appears:
Changed system type of partition 1 to 8e (Linux LVM)
11 Type w to save the new partition table.
12 Repeat steps 2 through 9 for each disk or LUN device identified in step 1.
Assembling the Disk or LUN Devices into a Logical Volume
After you have formatted each disk or LUN device as a Linux LVM partition, you must assemble the LUNs
into a single LVM logical volume on which you create the XFS filesystem.
This procedure does not cover creating fault-tolerance and assumes that the LUNs are RAID-protected, as is
the case with Stone Direct XR-series arrays.
NOTE It is not recommended to create an LVM volume using the md RAID driver, as it has been found to provide
poor performance with XFS.
To assemble an LVM logical volume:
1 Verify that the disk or LUN devices are detected by the operating system. Type:
fdisk -l | grep dev
All devices appear in a list similar to the following example (your values may vary):
■ For arrays with 450GB drives:
Disk /dev/sdb: 2227.7 GB, 2227760529408 bytes
Disk /dev/sdc: 2227.7 GB, 2227760529408 bytes
Disk /dev/sdd: 2227.7 GB, 2227760529408 bytes
Disk /dev/sde: 2227.7 GB, 2227760529408 bytes
■ For arrays with smaller capacity drives:
Disk /dev/sdf: 726.2 GB, 726247931904 bytes
/dev/sdg1 1 88294 709221523+8eLinux LVM
Disk /dev/sdg: 726.2 GB, 726247931904 bytes
/dev/sdh1 1 88294 709221523+8eLinux LVM
NOTE Other devices of different types may be listed before and after the LVM devices.
2 Create a physical volume on each of the devices using the following command:
pvcreate <list of devices>
where <list of devices> is a list of all LVM devices. For example, if you have four devices, ranging
from /dev/sdb to /dev/sde, you would type:
■ For arrays with 450GB drives:
pvcreate /dev/sdb /dev/sdc /dev/sdd /dev/sde
■ For smaller capacity drives:
pvcreate /dev/sdb1 /dev/sdc1 /dev/sdd1 /dev/sde1
The physical volumes are created, and the command output should be similar to the following example:
38 | Chapter 6 Configuring Storage