Setup guide
Logical volume “lvol1” created
NOTE If the command outputs several lines about a file descriptor leaked on lvdisplay invocation, ignore
them.
7 Check if the adsk_lvm startup script has been installed by the DKU to enable automatic LVM reassembly
upon reboot:
chkconfig --list | grep adsk_lvm
if the script is properly configured, the command output is the following:
adsk_lvm 0:off 1:off 2:on 3:on 4:on 5:on 6:off
If the command output is different, enable the script by typing:
chkconfig --add adsk_lvm
chkconfig adsk_lvm on
Creating the XFS Filesystem on the LVM device
After having created the LVM logical volume, you are now ready to create and mount the XFS filesystem.
To create and mount an XFS filesystem:
1 Identify the optimal agsize value for your array by running the mkfs.xfs command. Type:
mkfs.xfs -d agcount=128 -f /dev/vg00/lvol1
This command displays diagnostics information similar to the following (your values may differ):
meta-data=/dev/vg00/lvol1 agcount=128, agsize=1066667 blks
= sectsz=512 attr=0
data = bsize=4096 blocks=134400000, imaxpct=25
= sunit=16 swidth=64 blks, unwritten=1...
2 From the diagnostic information printed in the previous step, note the following values:
■ agsize on the first line
■ sunit and swidth on the fourth line
3 Depending on the values of sunit and swidth, calculate a new agsize value using one of the following
three methods:
■ If the values of sunit and swidth are both equal to 0, multiply the agsize value by 4096. For example
(your values will differ):
1066667 * 4096 = 4369068032
Proceed to step 4 using the value calculated above as the new agsize value.
■ If the command displays a warning message about the agsize being a multiple of the stripe width,
multiply the agsize value by 4096, and subtract the sunit value multiplied by 4096. For example
(your values will differ):
1066667 * 4096 = 4369068032
16 * 4096= 65536
4369068032 - 65536 = 4369002496
Proceed to step 4 using the value calculated above as the new agsize value.
■ If the values of sunit and swidth are not equal to 0, and no warning message appears, proceed to step
4 using the agsize value displayed by the mkfs.xfs command in step 1.
40 | Chapter 6 Configuring Storage