Rate This Document
Findability
Accuracy
Completeness
Readability

Formatting an NVMe SSD

In a Linux OS, the ext4 file system supports the atomic write requirements of MySQL 16 KB page size. Through the bigalloc option, ext4 can organize file logical address mapping in a larger granularity.

You can run the mkfs.ext4 command with the bigalloc option to format an NVMe SSD.

An example command is as follows. The command format is mkfs.ext4 -O bigalloc -C 16384 <device>, in which <device> indicates the SSD device name, for example, /dev/nvme0n1.

1
mkfs.ext4 -O bigalloc -C 16384 /dev/nvme0n1

If information similar to content in the following figure is displayed, the NVMe SSD is successfully formatted.