<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://dev1galaxy.org/extern.php?action=feed&amp;tid=5508&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / Disk blockdevice detecting order scrambled after every boot]]></title>
		<link>http://dev1galaxy.org/viewtopic.php?id=5508</link>
		<description><![CDATA[The most recent posts in Disk blockdevice detecting order scrambled after every boot.]]></description>
		<lastBuildDate>Tue, 31 Jan 2023 12:37:44 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: Disk blockdevice detecting order scrambled after every boot]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=40720#p40720</link>
			<description><![CDATA[<p>This is what <span class="bbc">realpath /sys/class/block/sd?/</span> gave back:</p><div class="codebox"><pre><code>/sys/devices/pci0000:00/0000:00:11.0/ata1/host0/target0:0:0/0:0:0:0/block/sda
/sys/devices/pci0000:00/0000:00:11.0/ata2/host1/target1:0:0/1:0:0:0/block/sdb
/sys/devices/pci0000:00/0000:00:11.0/ata3/host2/target2:0:0/2:0:0:0/block/sdc
/sys/devices/pci0000:00/0000:00:11.0/ata4/host3/target3:0:0/3:0:0:0/block/sdd
/sys/devices/pci0000:00/0000:00:12.2/usb1/1-3/1-3:1.0/host6/target6:0:0/6:0:0:0/block/sde
/sys/devices/pci0000:00/0000:00:12.2/usb1/1-3/1-3:1.0/host6/target6:0:0/6:0:0:1/block/sdf
/sys/devices/pci0000:00/0000:00:12.2/usb1/1-3/1-3:1.0/host6/target6:0:0/6:0:0:2/block/sdg
/sys/devices/pci0000:00/0000:00:12.2/usb1/1-3/1-3:1.0/host6/target6:0:0/6:0:0:3/block/sdh</code></pre></div><p>Note: When i&#039;ve ran this command, the order was correct.</p><div class="codebox"><pre><code>NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 119,2G  0 disk 
└─sda1   8:1    0 119,2G  0 part /
sdb      8:16   0 119,2G  0 disk 
└─sdb1   8:17   0 119,2G  0 part 
sdc      8:32   0 465,8G  0 disk 
├─sdc1   8:33   0     8G  0 part [SWAP]
├─sdc3   8:35   0    64G  0 part 
├─sdc4   8:36   0 137,8G  0 part 
├─sdc5   8:37   0   128G  0 part 
└─sdc6   8:38   0   128G  0 part 
sdd      8:48   0 465,8G  0 disk 
├─sdd1   8:49   0     8G  0 part [SWAP]
├─sdd3   8:51   0    64G  0 part /media/GAMEDISK
├─sdd4   8:52   0 137,8G  0 part /media/WORKDISK
├─sdd5   8:53   0   128G  0 part /media/UTILDISK
└─sdd6   8:54   0   128G  0 part /media/SOFTDISK
sr0     11:0    1  1024M  0 rom  
sr1     11:1    1  1024M  0 rom  </code></pre></div><p>I suspect i need to compare this to that, when the order will be scrambled up.</p><div class="quotebox"><cite>ralph.ronnquist wrote:</cite><blockquote><div><p>The answer to why it turns up as a new thing for you would probably be that the kernel+module code involved has been updated to include a more refined multi-threading in one way or another.</p></div></blockquote></div><p>That might be the reason.</p><div class="quotebox"><cite>ralph.ronnquist wrote:</cite><blockquote><div><p>Or, it might be hardware related that something has changed with some parts of the hardware due to aging, causing the startup timings to be slightly different now compared to how they have been previously.</p></div></blockquote></div><p>That <em>could</em> be a reason, but why it only occurred after the update? Coincidence? Again? The other reason seems more likely.</p><div class="quotebox"><cite>ralph.ronnquist wrote:</cite><blockquote><div><p>I think we can agree to that magic is not involved.</p></div></blockquote></div><p>It was never hypothesised at all.</p>]]></description>
			<author><![CDATA[dummy@example.com (TCH)]]></author>
			<pubDate>Tue, 31 Jan 2023 12:37:44 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=40720#p40720</guid>
		</item>
		<item>
			<title><![CDATA[Re: Disk blockdevice detecting order scrambled after every boot]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=40711#p40711</link>
			<description><![CDATA[<p>To get an association table between PCI address and device node name, I think I might do:</p><div class="codebox"><pre><code>ralph@stolpe:~$ realpath /sys/class/block/sd?/ 
/sys/devices/pci0000:00/0000:00:1f.2/ata5/host4/target4:0:0/4:0:0:0/block/sda
/sys/devices/pci0000:00/0000:00:1f.2/ata6/host5/target5:0:0/5:0:0:0/block/sdb
/sys/devices/pci0000:00/0000:00:14.0/usb2/2-1/2-1.1/2-1.1:1.0/host6/target6:0:0/6:0:0:0/block/sdc
/sys/devices/pci0000:00/0000:00:14.0/usb2/2-1/2-1.4/2-1.4:1.0/host7/target7:0:0/7:0:0:0/block/sdd
/sys/devices/pci0000:00/0000:00:14.0/usb2/2-1/2-1.2/2-1.2:1.0/host8/target8:0:0/8:0:0:0/block/sde</code></pre></div><p>My example case shows 2 SATA disks and 3 USB disks. You may note that sdd and sde got enumerated in &quot;wrong&quot; order by the scsi module (relative to the USB host/port enumeration) for some reason. This appears to be consistent for that setup, but on occasion sdc and sdd are swapped, which is something I deal with by repeated monkey handson (= unplug+plugin) until order returns.</p><p>As @rolfie noted, the reason those &quot;reorderings&quot; happen is probably because the kernel+module code is multi-threaded with separate threads handling separate devices independently and these threads then compete and synchronize about &quot;acquire the next device node name&quot; on a first-come, first-served basis.</p><p>The answer to why it turns up as a new thing for you would probably be that the kernel+module code involved has been updated to include a more refined multi-threading in one way or another. Or, it might be hardware related that something has changed with some parts of the hardware due to aging, causing the startup timings to be slightly different now compared to how they have been previously. I think we can agree to that magic is not involved.</p>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Mon, 30 Jan 2023 22:37:20 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=40711#p40711</guid>
		</item>
		<item>
			<title><![CDATA[Re: Disk blockdevice detecting order scrambled after every boot]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=40698#p40698</link>
			<description><![CDATA[<div class="quotebox"><cite>ralph.ronnquist wrote:</cite><blockquote><div><p>I would hope the PCI enumeration is the same, but I would also check rather than just guessing.<br />Though I suppose it doesn&#039;t matter any more.</p></div></blockquote></div><p>How can i check this? <span class="bbc">lspci</span>?</p><div class="codebox"><pre class="vscroll"><code>00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD/ATI] RD9x0/RX980 Host Bridge (rev 02)
00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD/ATI] RD890S/RD990 I/O Memory Management Unit (IOMMU)
00:02.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] RD890/RD9x0/RX980 PCI to PCI bridge (PCI Express GFX port 0)
00:04.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] RD890/RD9x0/RX980 PCI to PCI bridge (PCI Express GPP Port 0)
00:05.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] RD890/RD9x0/RX980 PCI to PCI bridge (PCI Express GPP Port 1)
00:09.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] RD890/RD9x0/RX980 PCI to PCI bridge (PCI Express GPP Port 4)
00:0a.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] RD890/RD9x0/RX980 PCI to PCI bridge (PCI Express GPP Port 5)
00:11.0 SATA controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 SATA Controller [AHCI mode] (rev 40)
00:12.0 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
00:12.2 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller
00:13.0 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
00:13.2 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 SMBus Controller (rev 42)
00:14.2 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 Azalia (Intel HDA) (rev 40)
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 LPC host controller (rev 40)
00:14.4 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 PCI to PCI Bridge (rev 40)
00:14.5 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI2 Controller
00:15.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] SB700/SB800/SB900 PCI to PCI bridge (PCIE port 0)
00:16.0 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
00:16.2 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h Processor Function 0
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h Processor Function 1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h Processor Function 2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h Processor Function 3
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h Processor Function 4
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h Processor Function 5
01:00.0 VGA compatible controller: NVIDIA Corporation GM206 [GeForce GTX 960] (rev a1)
01:00.1 Audio device: NVIDIA Corporation GM206 High Definition Audio Controller (rev a1)
02:00.0 USB controller: Etron Technology, Inc. EJ168 USB 3.0 Host Controller (rev 01)
03:00.0 Parallel controller: Oxford Semiconductor Ltd Device c110
04:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 06)
05:00.0 Serial controller: Device 1c00:3250 (rev 10)
06:06.0 Serial controller: MosChip Semiconductor Technology Ltd. PCI 9865 Multi-I/O Controller
06:06.1 Serial controller: MosChip Semiconductor Technology Ltd. PCI 9865 Multi-I/O Controller
06:06.2 Parallel controller: MosChip Semiconductor Technology Ltd. PCI 9865 Multi-I/O Controller
06:07.0 Multimedia controller: Philips Semiconductors SAA7131/SAA7133/SAA7135 Video Broadcast Decoder (rev d1)
07:00.0 PCI bridge: Tundra Semiconductor Corp. Tsi381 PCIe to PCI Bridge (rev 02)
08:00.0 Multimedia audio controller: Creative Labs CA0108/CA10300 [Sound Blaster Audigy Series]</code></pre></div><p>It does not shows the SATA disks separately, just the controller.</p><div class="quotebox"><cite>rolfie wrote:</cite><blockquote><div><p>Maybe I am wrong, but I think it is because the &quot;enumeration&quot; has been parallelised instead of looking at ata, then scsi, then usb in serial order. And since usb has become more important over the years chances are much higher nowadays that additional usb devices pop up as block devices.</p><p>Edith: Just checked, I already had issues with that when setting up my file server with Debian 3 Sarge. Adding/removing a scsi disk screwed the device naming, in my early Linux days I started to use uuid.</p></div></blockquote></div><p>But all my disks are SATA (even the DVD drives) and they are unchanged for years.</p>]]></description>
			<author><![CDATA[dummy@example.com (TCH)]]></author>
			<pubDate>Mon, 30 Jan 2023 19:29:20 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=40698#p40698</guid>
		</item>
		<item>
			<title><![CDATA[Re: Disk blockdevice detecting order scrambled after every boot]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=40690#p40690</link>
			<description><![CDATA[<p>Maybe I am wrong, but I think it is because the &quot;enumeration&quot; has been parallelised instead of looking at ata, then scsi, then usb in serial order. And since usb has become more important over the years chances are much higher nowadays that additional usb devices pop up as block devices.</p><p>Edith: Just checked, I already had issues with that when setting up my file server with Debian 3 Sarge. Adding/removing a scsi disk screwed the device naming, in my early Linux days I started to use uuid.</p>]]></description>
			<author><![CDATA[dummy@example.com (rolfie)]]></author>
			<pubDate>Mon, 30 Jan 2023 11:45:09 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=40690#p40690</guid>
		</item>
		<item>
			<title><![CDATA[Re: Disk blockdevice detecting order scrambled after every boot]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=40689#p40689</link>
			<description><![CDATA[<p>I would hope the PCI enumeration is the same, but I would also check rather than just guessing.<br />Though I suppose it doesn&#039;t matter any more.</p>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Mon, 30 Jan 2023 11:22:15 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=40689#p40689</guid>
		</item>
		<item>
			<title><![CDATA[Re: Disk blockdevice detecting order scrambled after every boot]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=40687#p40687</link>
			<description><![CDATA[<p>But the PCI addresses should be the same as they are connected to the same slot, should not they?</p><p>Footnote: today &quot;morning&quot; (1:30-2:00 AM) i rewrote my backup script. Now it backups via the disklabels and i simply give the labels in a list, so the random order is no longer a concern.</p><p>Still, out of technological curiousity, i would like to know, why was it constant for 11 years and why it is random now.</p>]]></description>
			<author><![CDATA[dummy@example.com (TCH)]]></author>
			<pubDate>Mon, 30 Jan 2023 09:57:24 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=40687#p40687</guid>
		</item>
		<item>
			<title><![CDATA[Re: Disk blockdevice detecting order scrambled after every boot]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=40683#p40683</link>
			<description><![CDATA[<p>I guess it would be kernel related since it&#039;s the kernel modules that invent the names.</p><p>Or, does the naming coincide with PCI numbering?<br />Eg that the PCI address for /dev/sda is lesser than the PCI address for /dev/sdb ?</p>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Mon, 30 Jan 2023 02:44:17 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=40683#p40683</guid>
		</item>
		<item>
			<title><![CDATA[Re: Disk blockdevice detecting order scrambled after every boot]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=40681#p40681</link>
			<description><![CDATA[<p>What could cause that the order only started to be random after upgrading to Devuan 4?</p>]]></description>
			<author><![CDATA[dummy@example.com (TCH)]]></author>
			<pubDate>Sun, 29 Jan 2023 23:35:11 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=40681#p40681</guid>
		</item>
		<item>
			<title><![CDATA[Re: Disk blockdevice detecting order scrambled after every boot]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=40678#p40678</link>
			<description><![CDATA[<p>Can only recommend to use UUIDs or labels, everything else is coincidence. Device detection order is ambiguous since a while already.</p>]]></description>
			<author><![CDATA[dummy@example.com (rolfie)]]></author>
			<pubDate>Sun, 29 Jan 2023 20:22:22 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=40678#p40678</guid>
		</item>
		<item>
			<title><![CDATA[Re: Disk blockdevice detecting order scrambled after every boot]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=40676#p40676</link>
			<description><![CDATA[<div class="quotebox"><cite>TCH wrote:</cite><blockquote><div><p>Well, the order was the same for 11 years, across several versions of several distributions, including Devuan. Is there a chance that this was only coincidence?</p></div></blockquote></div><p>Yes, there&#039;s a chance it&#039;s coincidence. I&#039;ve gotten away with using device names instead of uuids many times, even though the recommendation to use uuids in fstab goes back to some older version of debian that pre-dates devuan. I forget which one.&#160; (squeeze? wheezy?)</p>]]></description>
			<author><![CDATA[dummy@example.com (fsmithred)]]></author>
			<pubDate>Sun, 29 Jan 2023 18:34:09 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=40676#p40676</guid>
		</item>
		<item>
			<title><![CDATA[Re: Disk blockdevice detecting order scrambled after every boot]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=40673#p40673</link>
			<description><![CDATA[<p>Well, the order was the same for 11 years, across several versions of several distributions, including Devuan. Is there a chance that this was only coincidence?</p>]]></description>
			<author><![CDATA[dummy@example.com (TCH)]]></author>
			<pubDate>Sun, 29 Jan 2023 15:46:24 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=40673#p40673</guid>
		</item>
		<item>
			<title><![CDATA[Re: Disk blockdevice detecting order scrambled after every boot]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=40672#p40672</link>
			<description><![CDATA[<p>PSA: I&#039;ve already told the OP that this is the normal, expected behaviour (unless I&#039;m wrong):</p><p><a href="https://daemonforums.org/showthread.php?t=12340" rel="nofollow">https://daemonforums.org/showthread.php?t=12340</a></p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Sun, 29 Jan 2023 15:31:27 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=40672#p40672</guid>
		</item>
		<item>
			<title><![CDATA[Disk blockdevice detecting order scrambled after every boot]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=40669#p40669</link>
			<description><![CDATA[<p>Hello there,</p><p>For the last 11 years, Ubuntu 10.04, Debian 7, Debian 8 and finally Devuan 2 all detected my disk devices in this order (save for Ubuntu, when i did not have the SSD-s yet, but the disk detecting order was constant there too):<br />/dev/sda: primary SSD where the system resides<br />/dev/sdb: secondary SSD where i back up the system with rsync regularly<br />/dev/sdc: secondary HDD where i back up the data with rsync regularly<br />/dev/sdd: primary HDD where the data resides<br />This order was constant, it never changed. This is the same order as the disks are plugged into the motherboard. (Yes, this is the same motherboard from 2012.) Clean, obvious, logical. Working.</p><p>A few days ago i&#039;ve upgraded to Devuan 4 and now the order is entirely random. At every boot.<br />I tried to check how can i set up a persistent order, but all i found is how to write fstab entries by disk id; but this is not a partition problem, it is a disk blockdevice detecting order problem, it cannot be solved from fstab.</p><p>Any tips on this?</p>]]></description>
			<author><![CDATA[dummy@example.com (TCH)]]></author>
			<pubDate>Sun, 29 Jan 2023 14:54:24 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=40669#p40669</guid>
		</item>
	</channel>
</rss>
