Installation Manual

30 Preparing file systems for FSE
Creating file systems on top of LVM logical volumes
After the LVM logical volumes have been successfully initialized, you need to create file systems on top of
them using the command mkfs.ext3.
HP recommends that you use the mkfs.ext3 option -b 4096 for specifying a block size of 4096 bytes.
TIP: If you want to check the properties your file system will have without actually creating it, you can run
the command mkfs.ext3 with the switch -n.
An example output of checking the example_fs file system values is as follows:
NOTE: The number of inodes in the mkfs.ext3 output corresponds to the expected maximum number of
files on the file system. If this number is not satisfactory, you can explicitly tell mkfs.ext3 to reserve a
certain number of inodes with the -N option.
Note that the upper limit for the number of inodes is affected by two factors: the file system size and the file
system block size. On a file system with size Fs and block size Bs, the maximum size of inodes ln is
determined by the equation In = Fs / Bs. If you specify a number bigger than ln, the mkfs.ext3
command creates ln inodes.
For example, to create one million inodes you must specify the -N 1000000 option. In case of a block
size of 4096 bytes, the file system size must be equal to or greater than 3.8 GB (4 096 000 bytes) for this
number of inodes to be actually created:
Proceed as follows and first create the file systems for the FSE databases and system files, and after that
create HSM file systems.
Step 1: Creating file systems for FSE databases and system files
Use the following command sequence to create the file systems for the FSE databases and system files (for
our example):
# mkfs.ext3 -n -b 4096 /dev/vg_fsefs/example_fs
mkfs.ext3 1.28 (14-Mar-2002)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
456064 inodes, 911680 blocks
45584 blocks (5.00%) reserved for the super user
First data block=0
28 block groups
32768 blocks per group, 32768 fragments per group
16288 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736
# mkfs.ext3 -b 4096 -N 1000000 /dev/vg_fsefs/example_fs
# mkfs.ext3 -b 4096 /dev/vg_fse/fsevar
# mkfs.ext3 -b 4096 /dev/vg_fse/fsepart