G.3.3 Formatting the HDFS Partition of an Operating System Disk
Partition 4 (sda4) on an operating system disk is used for HDFS. After you format the partition and set the correct label, HDFS rebalances the job load to use the partition if the disk space is needed.
To format the HDFS partition:
-
Format the HDFS partition as an ext4 file system:
# mkfs -t ext4 /dev/disk/by-hba-slot/snp4
Note:
If this command fails because the device is mounted, then dismount the drive now and skip step 3. See "Prerequisites for Replacing a Failing Disk" for dismounting instructions.
-
Verify that the partition label (such as
/u01
fors0p4
) is missing:# ls -l /dev/disk/by-label
-
Dismount the appropriate HDFS partition, either
/u01
for/dev/sda
, or/u02
for/dev/sdb
:# umount /u0n
-
Reset the partition label:
# tune2fs -c -1 -i 0 -m 0.2 -L /u0n /dev/disk/by-hba-slot/snp4
-
Mount the HDFS partition:
# mount /u0n
-
Complete the steps in "Restoring the Swap Partition".