To create and mount an XFS filesystem:
- Identify the optimal agsize value for your array by running the mkfs.xfs command. Type:
This command displays diagnostics information similar to the following (your values may differ):
meta-data=/dev/vg00/lvol1 agcount=128, agsize=1066667 blks
- 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
- 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):
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):
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.
- If the values of sunit and swidth are both equal to 0, multiply the agsize value by 4096. For example (your values will differ):
- Run the mkfs.xfs command again to create the XFS filesystem on the device /dev/vg00/lvol1 using the value calculated in one of the previous steps. Type:
- Verify that the storage can be mounted by typing one of the following commands:
- For HP Z800 systems:
- For older systems:
The storage should mount, as the DKU installation script. should have created the mount point directory for your storage (/mnt/StorageMedia on HP Z800 workstations, or /mnt/stoneMedia on older workstations), as well as the corresponding entry in the /etc/fstab file.
If you receive an error message and the storage does not mount, follow the instructions in the next section to manually mount the storage.
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/27064837/viewspace-746198/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/27064837/viewspace-746198/