🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: muc.lists.freebsd.hackers
Article #19

Re: How do I tell the kernel to "retaste" a drive for geom multipath "automatic" devices?

#19
From: 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
Technical Details
Message-ID: <7BCF21A8-84A5-4DAD-99EF-DDEA5D951409@lysator.liu.se>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.space.net!news.muc.de!.POSTED.news.muc.de!not-for-mail
References: <25B88680-4D07-4C12-A44F-E382E528FEEA@lysator.liu.se>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.space.net!news.muc.de!.POSTED.news.muc.de!not-for-mail
From: Peter Eriksson <pen@lysator.liu.se>
Newsgroups: muc.lists.freebsd.hackers
Subject: Re: How do I tell the kernel to "retaste" a drive for geom multipath
 "automatic" devices?
Date: Sat, 10 Oct 2026 22:09:11 +0200
Organization: Newsgate at muc.de e.V.
Sender: owner-freebsd-hackers@FreeBSD.org
Approved: news-admin@muc.de
Distribution: world
Message-ID: <7BCF21A8-84A5-4DAD-99EF-DDEA5D951409@lysator.liu.se>
References: <25B88680-4D07-4C12-A44F-E382E528FEEA@lysator.liu.se>
MIME-Version: 1.0 (Mac OS X Mail 16.0 \(3901.100.1.1.12\))
Content-Type: multipart/alternative;
	boundary="Apple-Mail=_73840E37-267B-4803-929F-373C38DB5AC7"
Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2";
	logging-data="6992"; mail-complaints-to="news-admin@muc.de"
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim;
	t=1791662975; h=from:from:sender:sender:reply-to:subject:subject:date:date:
	 message-id:message-id:to:to:cc:mime-version:mime-version:
	 content-type:content-type:in-reply-to:in-reply-to:
	 references:references:list-id:list-help:list-owner:list-unsubscribe:
	 list-subscribe:list-post; bh=3pMBUwW5cdnWxqDbKTdNVdf80ayOZ/uD+jiwPxFe/4A=;
	b=drZbBfAXOWCs5fVfZKx8NVv+iqTd3T3ruETV0TX2yr6CwEO+HTluS1viN8I2zyNY5MCzGP
	8N4832FJA+WQ4asgyMQgZI85udnAsdFdiHisuydDApTY/+SUDXN/nXiucJ9wxA/sX24eRZ
	b84X4DNzzPasihLyFih5GdUmOkTR0dAQMwdfoUMA8CY3q5QOUb653y4sACJ92QGx3vwBS+
	6+4YSLJR0xw7sUyOqHlWuQXxqUWs+9bN/ZgjhpA88UFvtS4DlX1PJiRHZsYoSU2kl1nP7M
	g+PfDAaAk0ASWknZWC7TXkYh3WIiPOClhjMQTvrN2/l+j8HzaMVKxK/X0zhpDQ==
X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org
Authentication-Results: mx1.freebsd.org;
	dkim=pass header.d=lysator.liu.se header.s=2026 header.b=fxRLhCzq;
	dkim=pass header.d=lysator.liu.se header.s=2026 header.b="Z5t+r/qA";
	dkim=pass header.d=lysator.liu.se header.s=2026 header.b=CzvSP+IV;
	spf=pass (mx1.freebsd.org: domain of pen@lysator.liu.se designates 2001:6b0:17:f0a0::3 as permitted sender) smtp.mailfrom=pen@lysator.liu.se;
	dmarc=pass (policy=none) header.from=lysator.liu.se
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lysator.liu.se;
	s=2026; t=1791662964;
	bh=noJkFVJRB8mcFPtaQWi4SL2MN1cYVkPuDluXKgwaUD0=;
	h=From:Subject:Date:References:To:In-Reply-To:From;
	b=fxRLhCzqDqfqRgNwnKnmvXu6Izff9w3UNUGGqiyGXiCK56Xb2IEF088OkTpFElKD8
	 flROEVUIWaoSTnonU7+04MKSGAU9luzHrxD3UhrSRqNjvNGHjVy7/HWOoRxGCO8yk2
	 LWMZXp0/zPGOYOGQ1isNp54dq8XmC9u16L8s5K6TGhifBOnEmkH4M8yUwEeRpCycOE
	 ZbpaRh91MDA0rQ2ShT6bilZws7DyWBR40oVYjzZQEDvplYC61BMn2oK5NRMbflPipp
	 tB7/+eyqD+fnaf1m494QmhNUiYH4oyWfmIGNUL/FBaXgdk854zPyui8kyNM1IlgXL+
	 Yw8qPhRBb/8Yg==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lysator.liu.se;
	s=2026; t=1791662963;
	bh=noJkFVJRB8mcFPtaQWi4SL2MN1cYVkPuDluXKgwaUD0=;
	h=From:Subject:Date:References:To:In-Reply-To:From;
	b=Z5t+r/qAEZ2R9scKNrM9sUTwD0Nk2J+cmd523eeORlJwjlUxt+f4znptaKVCrSJaR
	 fP5qQrwHmyEGt5B5Mw/FoW51oH+GDMq/2Xo77eNFsDMRnf+hwaHm9u38t1teSdPK16
	 3UXAvzND9qQccAa25/SRsoHWfUEsilu5YcVWWD8hLU0qlmJ7QbzfnUL8P7twi4se0l
	 jMCIEBi6qtyUUzTCoy6gAN7t8liw3KA/ZsqfzIxQjKVC88nZc6P/cEHQlZe47EUF7V
	 FldLnKwlWhbfkDrqB3D5n8IOhKWtWjwLhHcdSTy6bawBM/uW/KwXhLbdgx7y3vUTjc
	 p6ThPzqKnjtmQ==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lysator.liu.se;
	s=2026; t=1791662962;
	bh=noJkFVJRB8mcFPtaQWi4SL2MN1cYVkPuDluXKgwaUD0=;
	h=From:Subject:Date:References:To:In-Reply-To:From;
	b=CzvSP+IVoUkAg1wIupdRRL/2AgGFF6+92YBRxy74Xno4u3Fs67WwKe/iZ+zxCi0LC
	 ou3QSIoFZPEEor6l45mROdtV3LSLr3GposOfedq3CH2bFL2hA4d9Dab38DUcthmzMN
	 D7thUPZQ/rIp38OFLsBg9XW1qx/9IZ1Bk8emgDTSzQ1lf6aA2C8P22B3pX+ZkMsFT8
	 sjpcpDYt2/gcPjjFC0TaWkGLgiSVg68lfacp0oZ0z3KNwsD53Ggz0hDPuJIWg2fZLC
	 NMjYpjRUCCTSr0103+Tf66PcClo2NzUZ6fdxAngMv4Ra64sFxYbgOmn/NMiURfHDkL
	 /4wduciu9HhpQ==
Precedence: list
In-Reply-To: <25B88680-4D07-4C12-A44F-E382E528FEEA@lysator.liu.se>
X-Spamd-Bar: /
X-Spamd-Result: default: False [-0.50 / 15.00];
	SUBJECT_ENDS_QUESTION(1.00)[];
	DWL_DNSWL_LOW(-1.00)[liu.se:dkim];
	DMARC_POLICY_ALLOW(-0.50)[lysator.liu.se,none];
	MV_CASE(0.50)[];
	R_SPF_ALLOW(-0.20)[+a:mail.lysator.liu.se];
	R_DKIM_ALLOW(-0.20)[lysator.liu.se:s=2026];
	MIME_GOOD(-0.10)[multipart/alternative,text/plain];
	RCPT_COUNT_ONE(0.00)[1];
	RCVD_TLS_LAST(0.00)[];
	MIME_TRACE(0.00)[0:+,1:+,2:~];
	ASN(0.00)[asn:1653, ipnet:2001:6b0::/32, country:EU];
	RCVD_VIA_SMTP_AUTH(0.00)[];
	MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org];
	ARC_NA(0.00)[];
	FROM_EQ_ENVFROM(0.00)[];
	FROM_HAS_DN(0.00)[];
	MID_RHS_MATCH_FROM(0.00)[];
	TO_MATCH_ENVRCPT_ALL(0.00)[];
	TO_DN_ALL(0.00)[];
	PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org];
	RCVD_COUNT_THREE(0.00)[3];
	DKIM_TRACE(0.00)[lysator.liu.se:+]
X-Rspamd-Queue-Id: 4j2FF8572cz4FRl
X-Newsgate-Id: f02c70b8849f+
X-No-Archive: Yes