Setup guide

5 Type n to display the New partition creation menu. fdisk displays the type of partitions you can create
(primary or extended).
6 Create a primary partition on the disk device by typing p at the prompt.
7 When prompted to enter a partition number, type 1 to make the primary partition the first one on the
LUN.
NOTE You may have to delete pre-existing partitions by entering d when prompted, and repeating step 3.
8 When prompted to set the starting cylinder number, press Enter twice to accept the defaults, which
are the first and last cylinder on the device. The fdisk prompt reappears.
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 partition, you must assemble the LUNs into a single
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.
To assemble a logical volume:
1 Verify that the disk or LUN devices are detected by the operating system: fdisk -l | grep dev All
devices appear in a list similar to the following example (your values may vary):
/dev/sdb1 1 180482 1449713663+ ee EFI GPT
/dev/sdc1 1 180482 1449713663+ ee EFI GPT
/dev/sdd1 1 180482 1449713663+ ee EFI GPT
/dev/sde1 1 180482 1449713663+ ee EFI GPT
Partitions created with the parted command for arrays with 450 GB disks are marked EFI GPT.
Partitions created in fdisk for arrays with smaller capacity disks are marked Linux LVM. Other devices
of different types may be listed before and after the GPT or LVM devices.
2 Create a physical volume on each of the devices: pvcreate <list of devices> where <list of
devices> is a list of all the devices in the storage array. For example, if you have four devices, ranging
from /dev/sdb1 to /dev/sde1, you would type: pvcreate /dev/sdb1 /dev/sdc1 /dev/sdd1 /dev/sde1.
The physical volumes are created.
TIP You can use the command pvremove to delete any erroneously entered devices.
3 Verify that the physical volumes were initialized correctly: pvscan -v. A list of all of the physical
volumes you created appears. The following sample output is for the previous example of 4 physical
volumes created on devices /dev/sdb1 through /dev/sde1:
Walking through all physical volumes
PV /dev/sdb1 lvm2 [2.03 TB / 2.03 TB free]
PV /dev/sdc1 lvm2 [2.03 TB / 2.03 TB free]
PV /dev/sdd1 lvm2 [2.03 TB / 2.03 TB free]
PV /dev/sde1 lvm2 [2.03 TB / 2.03 TB free]
Total: 4 [8.10 TB] / in use: 0 [0 ] / in no VG: 4 [8.10 TB]
28 | Chapter 1 Flame Premium Installation and Configuration