Skip to main content
E-Series Systems

Create filesystems (RHEL 8, RHEL 9, and SLES 15)

Contributors netapp-driley NetAppZacharyWambold

For RHEL 8, RHEL 9, and SLES 15, you create a filesystem on the native nvme device and mount the filesystem.

Steps
  1. Run the multipath -ll command to get a list of nvme devices.

    # multipath -ll

    The result of this command can be used to find the devices associated /dev/disk/by-id/nvme-eui.[uuid#] location. For the example below this would be /dev/disc/by-id/nvme-eui.000082dd5c05d39300a0980000a52225.

    eui.000082dd5c05d39300a0980000a52225 [nvme]:nvme0n6 NVMe,NetApp E-Series,08520000
    size=4194304 features='n/a' hwhandler='ANA' wp=rw
    |-+- policy='n/a' prio=50 status=optimized
    | `- 0:0:1 nvme0c0n1 0:0 n/a optimized     live
    |-+- policy='n/a' prio=50 status=optimized
    | `- 0:1:1 nvme0c1n1 0:0 n/a optimized     live
    |-+- policy='n/a' prio=10 status=non-optimized
    | `- 0:2:1 nvme0c2n1 0:0 n/a non-optimized live
    `-+- policy='n/a' prio=10 status=non-optimized
      `- 0:3:1 nvme0c3n1 0:0 n/a non-optimized live
  2. Create a file system on the partition for the desired nvme device using the location /dev/disk/by-id/nvme-eui.[id#].

    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
  3. Create a folder to mount the new device.

    # mkdir /mnt/ext4
  4. Mount the device.

    # mount /dev/disk/by-id/nvme-eui.000082dd5c05d39300a0980000a52225 /mnt/ext4