DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 15th October 2018
beavers beavers is offline
Shell Scout
 
Join Date: Nov 2017
Posts: 85
Default disk was sd0, now is sd0

I have a system with the OS on disk sd0, and physical disks sd1 thru sd3 setup as a RAID5 array on sd4.
Code:
$ grep sd[0-4] /var/log/messages
Sep 10 18:13:28 shack /bsd: sd0 at scsibus2 targ 0 lun 0: <ATA, Hitachi HDS72168, P21O> SCSI3 0/direct fixed naa.5000cca336c7bd4a
Sep 10 18:13:28 shack /bsd: sd0: 76324MB, 512 bytes/sector, 156312576 sectors
Sep 10 18:13:28 shack /bsd: sd1 at scsibus2 targ 1 lun 0: <ATA, Hitachi HUS72403, MJ8O> SCSI3 0/direct fixed naa.5000cca22cc86e70
Sep 10 18:13:28 shack /bsd: sd1: 2861588MB, 512 bytes/sector, 5860533168 sectors
Sep 10 18:13:28 shack /bsd: sd2 at scsibus2 targ 2 lun 0: <ATA, Hitachi HUS72403, MJ8O> SCSI3 0/direct fixed naa.5000cca22ccea267
Sep 10 18:13:28 shack /bsd: sd2: 2861588MB, 512 bytes/sector, 5860533168 sectors
Sep 10 18:13:28 shack /bsd: sd3 at scsibus2 targ 3 lun 0: <ATA, Hitachi HUS72403, MJ8O> SCSI3 0/direct fixed naa.5000cca22ccdcf8f
Sep 10 18:13:28 shack /bsd: sd3: 2861588MB, 512 bytes/sector, 5860533168 sectors
Sep 10 18:13:28 shack /bsd: sd4 at scsibus4 targ 1 lun 0: <OPENBSD, SR RAID 5, 006> SCSI2 0/direct fixed
Sep 10 18:13:28 shack /bsd: sd4: 5723176MB, 512 bytes/sector, 11721064960 sectors
Now the physical disks are being detected as wd0-wd3, and the array as sd0:
Code:
$ grep [sw]d[0-4]
Oct 15 11:44:23 shack /bsd: wd0 at pciide1 channel 0 drive 0: <Hitachi HDS721680PLA380 IBM>
Oct 15 11:44:23 shack /bsd: wd0: 16-sector PIO, LBA48, 76324MB, 156312576 sectors
Oct 15 11:44:23 shack /bsd: wd1 at pciide1 channel 0 drive 1: <Hitachi HUS724030ALE641>
Oct 15 11:44:23 shack /bsd: wd1: 16-sector PIO, LBA48, 2861588MB, 5860533168 sectors
Oct 15 11:44:23 shack /bsd: wd0(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 6
Oct 15 11:44:23 shack /bsd: wd1(pciide1:0:1): using PIO mode 4, Ultra-DMA mode 6
Oct 15 11:44:23 shack /bsd: wd2 at pciide1 channel 1 drive 0: <Hitachi HUS724030ALE641>
Oct 15 11:44:23 shack /bsd: wd2: 16-sector PIO, LBA48, 2861588MB, 5860533168 sectors
Oct 15 11:44:23 shack /bsd: wd3 at pciide1 channel 1 drive 1: <Hitachi HUS724030ALE641>
Oct 15 11:44:23 shack /bsd: wd3: 16-sector PIO, LBA48, 2861588MB, 5860533168 sectors
Oct 15 11:44:23 shack /bsd: wd2(pciide1:1:0): using PIO mode 4, Ultra-DMA mode 6
Oct 15 11:44:23 shack /bsd: wd3(pciide1:1:1): using PIO mode 4, Ultra-DMA mode 6
Oct 15 11:44:23 shack /bsd: sd0 at scsibus3 targ 1 lun 0: <OPENBSD, SR RAID 5, 006> SCSI2 0/direct fixed
Oct 15 11:44:23 shack /bsd: sd0: 5723176MB, 512 bytes/sector, 11721064960 sectors
I just noticed this a few days before:
Code:
Oct 11 13:53:03 shack /bsd: softraid0: volume sd0 is roaming, it used to be sd4, updating metadata
Oct 11 13:53:03 shack /bsd: softraid0: roaming device sd1a -> wd2a
Oct 11 13:53:03 shack /bsd: softraid0: roaming device sd2a -> wd1a
Oct 11 13:53:03 shack /bsd: softraid0: roaming device sd3a -> wd3a
My /etc/fstab is using DUIDs instead of devices names, so no problem. But what causes disks to suddenly start to "roam"?
Reply With Quote
  #2   (View Single Post)  
Old 15th October 2018
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

Your physical connection used to be ATA over scsibus(4). Now, it is pciide(4).

I cannot tell you why, but you've stated you are on -current. I expect a historical dmesg(8) vs. a current dmesg(8) could provide some indication of the cause. I don't see anything in recent ChangeLog entries that jumps out at me with a reason.
Reply With Quote
  #3   (View Single Post)  
Old 16th October 2018
beavers beavers is offline
Shell Scout
 
Join Date: Nov 2017
Posts: 85
Default

Bummer, I don't think I have a dmesg that's old enough, unless they're stored somewhere else that I'm not aware of. /var/run/dmesg.boot, /var/log/messages, etc?

I don't know what to make of it. Everything is still functioning fine, and I'm certain there hasn't been any physical tampering. <shrug>
Reply With Quote
  #4   (View Single Post)  
Old 16th October 2018
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

You can create an "old" dmesg. All you need to do is install 6.3-release onto a USB stick, then boot it.

Last edited by jggimi; 16th October 2018 at 04:35 PM. Reason: typo
Reply With Quote
  #5   (View Single Post)  
Old 16th October 2018
beavers beavers is offline
Shell Scout
 
Join Date: Nov 2017
Posts: 85
Default

Quote:
Originally Posted by jggimi View Post
You can create an "old" dmesg. All you need to do is install 6.3-release onto a USB stick, then boot it.
Coooool, I'll try this when I get a chance!
Reply With Quote
  #6   (View Single Post)  
Old 18th October 2018
beavers beavers is offline
Shell Scout
 
Join Date: Nov 2017
Posts: 85
Default

Well shucks, a booting 6.3 on a usb drive showed the same new "wd0" disks. Could AHCI or some other such setting in the BIOS cause the disks to be detected differently?
Reply With Quote
  #7   (View Single Post)  
Old 18th October 2018
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

Absolutely.
Reply With Quote
  #8   (View Single Post)  
Old 18th October 2018
beavers beavers is offline
Shell Scout
 
Join Date: Nov 2017
Posts: 85
Default

Sure enough, the disks were set to Compatibility Mode in the BIOS. Switched it back to AHCI, etc etc and the disks "roamed" back to sd(4) devices. Mystery solved!
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Verify integrity of disk image file written to disk ? gustaf OpenBSD General 2 14th December 2017 06:34 AM
SSD disk speed drm OpenBSD General 3 14th February 2014 12:42 PM
disk mgt and zfs ananix FreeBSD General 1 26th December 2011 10:37 PM
Disk > 100% Weaseal FreeBSD General 3 11th February 2009 05:50 PM
Disk geometry for Seagate disk phreud FreeBSD Installation and Upgrading 5 8th November 2008 10:51 PM


All times are GMT. The time now is 11:03 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick