LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-04-2015, 09:52 AM   #1
romagnolo
Member
 
Registered: Jul 2009
Location: Montaletto
Distribution: Debian GNU/Linux
Posts: 107

Rep: Reputation: 5
_WHY_ block device names are dynamic?


The question is not "how to work around block devices with dynamically-assigned names at each boot", this can be done with UUIDs, labels or black magics.

At the time of 2.6.x kernels, we were all accustomed on that, once the physical machine was assembled, drives screwed in, net card inserted, etc, all that would remain exactly the same forever. At the first boot you had /dev/sda1, /dev/sdb1, and /dev/whatever, and that would remain the same forever.

Upgrading to linux 3.something trashes this de-facto rule. At each boot, you enter a new wonderland and even the root device may hide under a different device name, thus failing the boot unless UUIDs are used.

My question is: is there any rationale, advantage, or conscious tradeoff for why 3.x kernels trashed the straight, easy and effective device naming rules used in 2.6.x ?

Last edited by romagnolo; 06-04-2015 at 09:57 AM.
 
Old 06-04-2015, 10:13 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,930

Rep: Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320
I would rather say that was never so, but the algorithm used to detect devices found them usually in the same order. That was specified by how the detection algorithm was implemented. Using newer kernels you will get another, improved algorithm and probably also parallel execution (multi-threading) was introduced inside the kernel, so it gives more features, faster, but that non-documented and never-existed behaviour has been lost.
 
Old 06-04-2015, 04:24 PM   #3
joec@home
Member
 
Registered: Sep 2009
Location: Galveston Tx
Posts: 291

Rep: Reputation: 70
Correct me if I am wrong, but that is simply the method used for the default configuration? You can change it back to the old system you are familiar with so long as you are using physical volumes and not getting into more fancy LV stuff? That is to say, by default it is using these methods to better integrate into networked solutions such as hardware RAID arrays, fibre channels and the like.

Last edited by joec@home; 06-04-2015 at 04:26 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Randomly changing block device names for external devices Pinonoir Linux - General 3 04-07-2015 09:23 AM
Make block device names persistent between reboots on Oracle Linux vahab Linux - General 1 06-25-2013 11:39 PM
block device names change after reboot (sometimes^^) Orangutanklaus Linux - Hardware 2 01-19-2011 09:38 AM
Restricting Dynamic Ipaddress by based on Dynamic DNS host names karthik9110 Linux - Newbie 5 12-13-2009 11:46 PM
Logical device names and instant names Gins Linux - General 8 11-30-2004 08:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration