To configure disk partitions using device UUIDs

Purpose

If you deploy an NSP VM in a VMware environment, you must mount each non-LVM partition using the block-device UUID, and not the block-device name.

Perform this procedure to change the block-device identifier for each non-LVM partition from the device name to the device UUID.

Steps
 

Log in as the root user on the station that hosts the partition.


Open a console window.


Enter the following:

grep /dev/sd /etc/fstab ↵

The devices and associated partitions are listed; a line like the following is displayed for each partition:

/dev/device  path    fs_type    noatime    1 2

where

device is the block-device name

path is the mount point, for example, /opt

fs_type is the file system type, for example, ext4 or xfs


Perform the following steps for each listed partition:

  1. Enter the following

    blkid | grep /dev/device

    One or more lines like the following are displayed, depending on the number of partitions on the device:

    /dev/device: UUID="device_UUID" BLOCK_SIZE="4096" TYPE="fs_type" PARTUUID="partition_UUID"

  2. Record the device_UUID value.


Open the /etc/fstab file using a plain-text editor such as vi.


Use the recorded device_UUID values to modify the fstab entries.

The fstab entry example in Step 3 changes from:

/dev/device  path    fs_type    noatime    1 2

to:

UUID=device_UUID  path    fs_type    noatime    1 2


Close the /etc/fstab file.


Close the console window.

End of steps