πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: muc.lists.freebsd.hackers
2 messages
2 total messages Started by Peter Eriksson Fri, 09 Oct 2026 13:57
How do I tell the kernel to "retaste" a drive for geom multipath "automatic" devices?
#9
Author: Peter Eriksson
Date: Fri, 09 Oct 2026 13:57
64 lines
6962 bytes
I plugged in a new SAS drive into a multiported external storage box connected to multiple SAS HBA controllers. The drive shows up fine, but when I create the multipath device it only finds one β€œpath” for the drive - until I reboot the server (or unplugs the SAS cables so the server sees the drive as a β€œnew" one). Surely there must be a better way?


mpr1: Found device <401<SspTarg>,End Device> <12.0Gbps> handle<0x00fa> enclosureHandle<0x000d> slot 82
mpr1: At enclosure level 2 and connector name (C0  )
mpr0: Found device <401<SspTarg>,End Device> <12.0Gbps> handle<0x00fa> enclosureHandle<0x0009> slot 82
mpr0: At enclosure level 2 and connector name (C0  )
da172 at mpr0 bus 0 scbus0 target 913 lun 0
da172: <WDC WUH722422AL5204 CHA2> Fixed Direct Access SPC-5 SCSI device
da172: Serial Number 69HL882E
da172: 1200.000MB/s transfers
da172: Command Queueing enabled
da172: 20981760MB (42970644480 512 byte sectors)
da375 at mpr1 bus 0 scbus1 target 913 lun 0
da375: <WDC WUH722422AL5204 CHA2> Fixed Direct Access SPC-5 SCSI device
da375: Serial Number 69HL882E
da375: 1200.000MB/s transfers
da375: Command Queueing enabled
da375: 20981760MB (42970644480 512 byte sectors)

# gmultipath label -v DISK-69HL882E diskid/DISK-69HL882E

# gmultipath status DISK-69HL882E
                   Name    Status  Components
multipath/DISK-69HL882E  DEGRADED  da375 (ACTIVE)

# gmultipath list DISK-69HL882E
Geom name: DISK-69HL882E
Type: AUTOMATIC
Mode: Active/Passive
UUID: 9fbaa07a-c3e7-11f1-be71-507c6f8a45ae
State: DEGRADED
Providers:
1. Name: multipath/DISK-69HL882E
   Mediasize: 22000969973248 (20T)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r0w0e0
   State: DEGRADED
Consumers:
1. Name: da375
   Mediasize: 22000969973760 (20T)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r1w1e1
   State: ACTIVE

- Peter




--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Re: How do I tell the kernel to "retaste" a drive for geom multipath "automatic" devices?
#19
Author: Peter Eriksson
Date: Sat, 10 Oct 2026 20:09
184 lines
13345 bytes
--Apple-Mail=_73840E37-267B-4803-929F-373C38DB5AC7
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8

For other=E2=80=99s reference in case someone else has the same issue: =
One way to fix it is do use the command:

	geom label refresh $DEV

This apparently tells the kernel to retaste the disk and find the other =
path. So a simple:

     cd /dev ; geom label refresh da[0-9]*

seems to work.

=E2=80=94
Peter Eriksson <pen@lysator.liu.se>
http://www.lysator.liu.se/~pen






> On 9 Oct 2026, at 15:57, Peter Eriksson <pen@lysator.liu.se> wrote:
>=20
> I plugged in a new SAS drive into a multiported external storage box =
connected to multiple SAS HBA controllers. The drive shows up fine, but =
when I create the multipath device it only finds one =E2=80=9Cpath=E2=80=9D=
 for the drive - until I reboot the server (or unplugs the SAS cables so =
the server sees the drive as a =E2=80=9Cnew" one). Surely there must be =
a better way?
>=20
>=20
> mpr1: Found device <401<SspTarg>,End Device> <12.0Gbps> handle<0x00fa> =
enclosureHandle<0x000d> slot 82
> mpr1: At enclosure level 2 and connector name (C0  )
> mpr0: Found device <401<SspTarg>,End Device> <12.0Gbps> handle<0x00fa> =
enclosureHandle<0x0009> slot 82
> mpr0: At enclosure level 2 and connector name (C0  )
> da172 at mpr0 bus 0 scbus0 target 913 lun 0
> da172: <WDC WUH722422AL5204 CHA2> Fixed Direct Access SPC-5 SCSI =
device
> da172: Serial Number 69HL882E
> da172: 1200.000MB/s transfers
> da172: Command Queueing enabled
> da172: 20981760MB (42970644480 512 byte sectors)
> da375 at mpr1 bus 0 scbus1 target 913 lun 0
> da375: <WDC WUH722422AL5204 CHA2> Fixed Direct Access SPC-5 SCSI =
device
> da375: Serial Number 69HL882E
> da375: 1200.000MB/s transfers
> da375: Command Queueing enabled
> da375: 20981760MB (42970644480 512 byte sectors)
>=20
> # gmultipath label -v DISK-69HL882E diskid/DISK-69HL882E
>=20
> # gmultipath status DISK-69HL882E
>                   Name    Status  Components
> multipath/DISK-69HL882E  DEGRADED  da375 (ACTIVE)
>=20
> # gmultipath list DISK-69HL882E
> Geom name: DISK-69HL882E
> Type: AUTOMATIC
> Mode: Active/Passive
> UUID: 9fbaa07a-c3e7-11f1-be71-507c6f8a45ae
> State: DEGRADED
> Providers:
> 1. Name: multipath/DISK-69HL882E
>   Mediasize: 22000969973248 (20T)
>   Sectorsize: 512
>   Stripesize: 4096
>   Stripeoffset: 0
>   Mode: r0w0e0
>   State: DEGRADED
> Consumers:
> 1. Name: da375
>   Mediasize: 22000969973760 (20T)
>   Sectorsize: 512
>   Stripesize: 4096
>   Stripeoffset: 0
>   Mode: r1w1e1
>   State: ACTIVE
>=20
> - Peter
>=20
>=20
>=20


--Apple-Mail=_73840E37-267B-4803-929F-373C38DB5AC7
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=utf-8

<html aria-label=3D"message body"><head><meta http-equiv=3D"content-type" =
content=3D"text/html; charset=3Dutf-8"></head><body =
style=3D"overflow-wrap: break-word; -webkit-nbsp-mode: space; =
line-break: after-white-space;">For other=E2=80=99s reference in case =
someone else has the same issue: One way to fix it is do use the =
command:<div><br></div><div><span class=3D"Apple-tab-span" =
style=3D"white-space:pre">	</span>geom label refresh =
$DEV</div><div><br></div><div>This apparently tells the kernel to =
retaste the disk and find the other path. So a =
simple:</div><div><br></div><div>&nbsp; &nbsp; &nbsp;cd /dev ; geom =
label refresh da[0-9]*</div><div><br></div><div>seems to =
work.</div><div><br id=3D"lineBreakAtBeginningOfMessage"><div>
<meta charset=3D"UTF-8"><div dir=3D"auto" style=3D"caret-color: rgb(0, =
0, 0); color: rgb(0, 0, 0); letter-spacing: normal; orphans: 2; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
text-decoration-line: none; text-decoration-thickness: auto; =
text-decoration-style: solid; overflow-wrap: break-word; =
-webkit-nbsp-mode: space; line-break: after-white-space;"><div =
dir=3D"auto" style=3D"caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); =
letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; =
text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; text-decoration-line: none; =
text-decoration-thickness: auto; text-decoration-style: solid; =
overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: =
after-white-space;"><div dir=3D"auto" style=3D"caret-color: rgb(0, 0, =
0); color: rgb(0, 0, 0); letter-spacing: normal; orphans: 2; text-align: =
start; text-indent: 0px; text-transform: none; white-space: normal; =
widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
text-decoration-line: none; text-decoration-thickness: auto; =
text-decoration-style: solid; overflow-wrap: break-word; =
-webkit-nbsp-mode: space; line-break: =
after-white-space;"><div>=E2=80=94</div><div>Peter Eriksson =
&lt;pen@lysator.liu.se&gt;</div><div>http://www.lysator.liu.se/~pen</div><=
div><br></div></div><br class=3D"Apple-interchange-newline"></div><br =
class=3D"Apple-interchange-newline"></div><br =
class=3D"Apple-interchange-newline"><br =
class=3D"Apple-interchange-newline">
</div>
<div><br><blockquote type=3D"cite"><div>On 9 Oct 2026, at 15:57, Peter =
Eriksson &lt;pen@lysator.liu.se&gt; wrote:</div><br =
class=3D"Apple-interchange-newline"><div><div>I plugged in a new SAS =
drive into a multiported external storage box connected to multiple SAS =
HBA controllers. The drive shows up fine, but when I create the =
multipath device it only finds one =E2=80=9Cpath=E2=80=9D for the drive =
- until I reboot the server (or unplugs the SAS cables so the server =
sees the drive as a =E2=80=9Cnew" one). Surely there must be a better =
way?<br><br><br>mpr1: Found device &lt;401&lt;SspTarg&gt;,End Device&gt; =
&lt;12.0Gbps&gt; handle&lt;0x00fa&gt; enclosureHandle&lt;0x000d&gt; slot =
82<br>mpr1: At enclosure level 2 and connector name (C0 &nbsp;)<br>mpr0: =
Found device &lt;401&lt;SspTarg&gt;,End Device&gt; &lt;12.0Gbps&gt; =
handle&lt;0x00fa&gt; enclosureHandle&lt;0x0009&gt; slot 82<br>mpr0: At =
enclosure level 2 and connector name (C0 &nbsp;)<br>da172 at mpr0 bus 0 =
scbus0 target 913 lun 0<br>da172: &lt;WDC WUH722422AL5204 CHA2&gt; Fixed =
Direct Access SPC-5 SCSI device<br>da172: Serial Number =
69HL882E<br>da172: 1200.000MB/s transfers<br>da172: Command Queueing =
enabled<br>da172: 20981760MB (42970644480 512 byte sectors)<br>da375 at =
mpr1 bus 0 scbus1 target 913 lun 0<br>da375: &lt;WDC WUH722422AL5204 =
CHA2&gt; Fixed Direct Access SPC-5 SCSI device<br>da375: Serial Number =
69HL882E<br>da375: 1200.000MB/s transfers<br>da375: Command Queueing =
enabled<br>da375: 20981760MB (42970644480 512 byte sectors)<br><br># =
gmultipath label -v DISK-69HL882E diskid/DISK-69HL882E<br><br># =
gmultipath status DISK-69HL882E<br> =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Name &nbsp;&nbsp;&nbsp;Status =
&nbsp;Components<br>multipath/DISK-69HL882E &nbsp;DEGRADED &nbsp;da375 =
(ACTIVE)<br><br># gmultipath list DISK-69HL882E<br>Geom name: =
DISK-69HL882E<br>Type: AUTOMATIC<br>Mode: Active/Passive<br>UUID: =
9fbaa07a-c3e7-11f1-be71-507c6f8a45ae<br>State: =
DEGRADED<br>Providers:<br>1. Name: multipath/DISK-69HL882E<br> =
&nbsp;&nbsp;Mediasize: 22000969973248 (20T)<br> &nbsp;&nbsp;Sectorsize: =
512<br> &nbsp;&nbsp;Stripesize: 4096<br> &nbsp;&nbsp;Stripeoffset: 0<br> =
&nbsp;&nbsp;Mode: r0w0e0<br> &nbsp;&nbsp;State: =
DEGRADED<br>Consumers:<br>1. Name: da375<br> &nbsp;&nbsp;Mediasize: =
22000969973760 (20T)<br> &nbsp;&nbsp;Sectorsize: 512<br> =
&nbsp;&nbsp;Stripesize: 4096<br> &nbsp;&nbsp;Stripeoffset: 0<br> =
&nbsp;&nbsp;Mode: r1w1e1<br> &nbsp;&nbsp;State: ACTIVE<br><br>- =
Peter<br><br><br><br></div></div></blockquote></div><br></div></body></htm=
l>=

--Apple-Mail=_73840E37-267B-4803-929F-373C38DB5AC7--


--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads