Create filesystems
For SLES 15 SP1 and RedHat 8.1, you create a filesystem on the native nvme device and mount the filesystem.
- Run the multipath -ll command to get a list of /dev/nvme devices.The result of this command shows device nvme0n1:
eui.000007e15e903fac00a0980000d663f2 [nvme]:nvme0n1 NVMe,Lenovo DE-Series,98620002
size=207618048 features='n/a' hwhandler='ANA' wp=rw
|-+- policy='n/a' prio=n/a status=n/a\
| `- 0:10:1 nvme0c10n1 0:0 n/a n/a live
`-+- policy='n/a' prio=n/a status=n/a\
`- 0:32778:1 nvme0c32778n1 0:0 n/a n/a live - Create a file system on the partition for each /dev/nvme0n# device. The method for creating a file system varies depending on the file system chosen. This example shows creating an ext4 file system.
# mkfs.ext4 /dev/disk/by-id/nvme-eui.000082dd5c05d39300a0980000a52225 mke2fs 1.42.11
(22-Oct-2019) Creating filesystem with 2620928 4k blocks and 655360 inodes Filesystem UUID:
97f987e9-47b8-47f7-b434-bf3ebbe826d0 Superblock backups stored on blocks: 32768, 98304, 163840,
229376, 294912, 819200, 884736, 1605632 Allocating group tables: done Writing inode tables:
done Creating journal (32768 blocks): done Writing superblocks and filesystem accounting information:
done - Create a folder to mount the new device.# mkdir /mnt/ext4
- Mount the device.
# mount /dev/disk/by-id/nvme-eui.000082dd5c05d39300a0980000a52225 /mnt/ext4
Give documentation feedback