[CentOS] What files to edit when changing the sdX of hard drives?

Thu Feb 28 17:11:29 UTC 2019
Valeri Galtsev <galtsev at kicp.uchicago.edu>


On 2/28/19 11:02 AM, Phelps, Matthew wrote:
> On Thu, Feb 28, 2019 at 11:52 AM mark <m.roth at 5-cent.us> wrote:
> 
>> Nicolas Kovacs wrote:
>>> Le 28/02/2019 à 04:12, Jobst Schmalenbach a écrit :
>>>
>>>> I want to lock in the SDA/SDB/SDC for my drives
>>>
>>> In short : use UUIDs or labels instead of hardcoding /dev/sdX.
>>>
>>> https://wiki.archlinux.org/index.php/persistent_block_device_naming
>>
>> Yeah - I strongly believe in labels, given the fact that *no* one can
>> remember a UUID....
>>
>>        mark
>>
> 
> ls -l /dev/disk/by-uuid
> 
> (copy)
> 
> (paste)
> 

I second Mark about filesystem labels. Labels you can read and type. 
UUIDs you can only copy and paste. Yes I did type them a few times, 
but... With upside there certainly comes downside of filesystem labels: 
if you are moving storage around you sometimes can hit the situation of 
having two identical labels. Which during last couple of decades I was 
able to get around.

Valeri

> 
> 

-- 
++++++++++++++++++++++++++++++++++++++++
Valeri Galtsev
Sr System Administrator
Department of Astronomy and Astrophysics
Kavli Institute for Cosmological Physics
University of Chicago
Phone: 773-702-4247
++++++++++++++++++++++++++++++++++++++++