Product SiteDocumentation Site

Chapter 2. XFS Practical Exercises - 02 - mkfs & mount

2.1. Overview
2.1.1. Goals
2.1.2. Prerequisites
2.1.3. Setup
2.2. Exercises
2.2.1. Exercise 1
2.2.2. Exercise 2
2.2.3. Exercise 3
2.2.4. Exercise 4
2.2.5. Exercise 5
2.2.6. Exercise 6
2.3. Questions
2.4. Answers

2.1. Overview

In order to use XFS we must first create a filesystem. Filesystems can be used for various different purposes and the tool used to create an XFS filesystem, mkfs.xfs, can be used to customise the characteristics of the filesystem.

2.1.1. Goals

The goal of this lab is to understand the procedure for creating an XFS filesystem including the options available for customising it for a particular purpose.
In this lab exercise we will explore the options to:
  • adjust the filesystem block size
  • filesystem directory block size
  • set the stripe unit and width sizes
  • configure an external log
  • set the allocation group count and/or size
  • grow a filesystem

2.1.2. Prerequisites

It is assumed that the reader is familiar with basic UNIX commands, in particular mkfs and mount.

2.1.3. Setup

  • Recent Linux kernel with XFS enabled (and loaded if installed as a module)
  • XFS user-space commands package, xfsprogs, installed.
  • One or more spare block device(s).
MediaWiki Appliance - Powered by TurnKey Linux