View Single Post
  #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