OpenStack / Cloud / Virtualizaton / Linux

Using Filesystem Labels in Linux

When rebooting a RHEL box with a whole bunch of SAN luns I ran into an issue where the system was failing when trying to mount a device ( /dev/sdm). When I logged into the box in single user mode this device did not even exist. However, it was brought to my attention that a few luns where removed from this box recently, so apparently when I rebooted the box generated a new device list, and my renamed /devd/sdm to something different.

Apparently this is common.As the simple act such as adding or removing a
LUN can cause Linux to remap your /dev/sd entries, causing what used to
be /dev/sde1 to become /dev/sdd1. This problem can be solved by using filesystem labels, which are entries in the ext3 filesystem header.

have found 2 ways of doing this.

First is with e2label, Usage: e2label device [newlabel]

You can also show your label as below. In this instance my label is 'storage'