From nobody Sun Aug 24 23:15:59 2025 X-Original-To: current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4c98tp6bx9z669w6 for ; Sun, 24 Aug 2025 23:16:18 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-pj1-x1033.google.com (mail-pj1-x1033.google.com [IPv6:2607:f8b0:4864:20::1033]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4c98tp4MPFz3hKK for ; Sun, 24 Aug 2025 23:16:18 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-pj1-x1033.google.com with SMTP id 98e67ed59e1d1-32519b32b6cso1773665a91.0 for ; Sun, 24 Aug 2025 16:16:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20230601.gappssmtp.com; s=20230601; t=1756077372; x=1756682172; darn=freebsd.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=dHNF8d4e3fcg3D569jvM7YlLG7N9JrlG0GDsVVFHXqE=; b=ebnJdkP8wjeR5ixOTwYG2s2U69/SRPXyuD20bMbXA8m+B8RPEmjmw7FXvKIovIlyXo xbv8TWiYS2oPBu2jJ84MW/d3zOI5a+U8nVJttKD4ZzgbnVevr51o9xbhTtwwFA8Jay67 wXi1o7sqGzh/LleivIUw4cJdvNVx+66KgCMaaySrmvPbC/hLgvLqYxuZ9QnE8kQUyP/W tPY0DcPDMfqSUPgSIupqCr23XycgQKfgkMNw2IBgsSjCq5B43ffPc0vy7xis/qYW4gMh wY70hEqJG0cvTX6jPQHxUoaqqtb8wvOSaOsxVBsbltvmr7xULf8vUA76vpBoaXQIxsS9 3/rw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1756077372; x=1756682172; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=dHNF8d4e3fcg3D569jvM7YlLG7N9JrlG0GDsVVFHXqE=; b=ASGDc6rmdrWPxxT5s+DV8l3gFtbfiLiTWvJQLig3UWoRMtYam6dOqACMFAovpgKhZ6 SJpO5DOoM44DRQNThDnFaC83wuEt52JBPa+5h3c0bgueghtBBvgm1kHXkosWZ3k+VoRu a9fQ2ZfFDvCQJ/cqQ6wmKLXd6joG0Fc1v8gAxLbVePZ6rW/mMNGN4uHWOW1phh2Ca4AD hIHZcbo071NUuVTPAb3CwzOC79KQ7c20e5CLCju63dE6LiEpnsMSwIy5v+2juCFg6S1O LPl8DBcYueki/J9MOFq04mvCHeAnkaUfAY+BBAPSyA6mPP0FmexiBr0BZUHnt/K0mWO9 15LA== X-Forwarded-Encrypted: i=1; AJvYcCUu/Sg6VmG+somed5QwBqfp35GUkQYYInYiS2DwWnNmy0JCjuss8J2QPcOLvrCHiy1T7ysCbX13@freebsd.org X-Gm-Message-State: AOJu0Yw2kcYlQHF+4jltRMnYfJAsx3Wo9f6ED3yPNejoiVv8oZkr9SLK PW/w0dKHtLscl8xqbppeMMz7vVBILRYCSwj45aPzL9DcoUtay4nbsS4LMdKEo6DtNmx18RYyFx4 dXNyIAOCD42C11d32qoXEErKhf802ry2XqvA+cklq+esOVkEMtUuc05s= X-Gm-Gg: ASbGnct4tWROdGFv/NfY7cxyAGNEhUpzeUdhyjrwf5l+KoDgfLko3w00C/dJcZtkC5H Kml5496JkbGaDthF5U8Zeu/xYh1msMiuJidc78Y/RON7HyWuJpqenQzsXkNYolmWHXE1fQvlD3i xOxpHMkFnTQhxHcNhJW88/9NNaFd45j5+tFpVcu7y2N/R8NekaGY9ISKAgu7I2WE1VhxYuMFAmv XQx8ny7Eia/iQ08jNHyFljqNONqDE1M1J6cOUI5d29mZMnOEVgqIRegwHiU5bdCgHDtnA== X-Google-Smtp-Source: AGHT+IGTaHVggSFdgq4LPWUGPUJuNOaZkeUfP8p5xC8BhnQYBPHD60hIjr4Q7xzp28l9kTwXO6+W4AmS2RRYac+8b+U= X-Received: by 2002:a17:90b:1845:b0:31a:ab75:6e45 with SMTP id 98e67ed59e1d1-32517742cd6mr11774078a91.28.1756077371699; Sun, 24 Aug 2025 16:16:11 -0700 (PDT) List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org MIME-Version: 1.0 References: In-Reply-To: From: Warner Losh Date: Sun, 24 Aug 2025 17:15:59 -0600 X-Gm-Features: Ac12FXwMKvoZ3O5sBgdkp2iY_0zkWMk_7dVc-3EejhrFevtVk02IeKeig-1QLM4 Message-ID: Subject: Re: No longer single-user on unclean fs? To: polyduekes@proton.me Cc: "Bjoern A. Zeeb" , FreeBSD Current Content-Type: multipart/alternative; boundary="000000000000f050c7063d249f1a" X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Rspamd-Queue-Id: 4c98tp4MPFz3hKK --000000000000f050c7063d249f1a Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, Aug 24, 2025, 10:37=E2=80=AFAM wrote: > > > On Sunday, August 24th, 2025 at 2:46 PM, Warner Losh > wrote: > > > > On Sun, Aug 24, 2025 at 8:32=E2=80=AFAM Bjoern A. Zeeb < > bzeeb-lists@lists.zabbadoz.net> wrote: > >> Hi, >> >> I just updated a bhyve file system and forgot to unmount it on the host; >> starting the guest I am surprised to see Login: and not press enter for >> /bin/sh from init ... >> > > > There's two issues. First, /etc/rc output only goes to the primary > console. It wouldn't have prompted you or shown you a single user shell > here anyway. > > Second, we've never dropped to single user mode solely for unclean > shutdown. Only for filesystems that couldn't be fixed. These could be fix= ed > with fsck, so no single user. > > i agree with bz, there have been numerous times where i was dropped to > single user for unclean shutdown which could be fixed with fsck > > I've had thousands of panics recover by the automatic fsck -p we do. The very definition of and unclean shutdown. About 1% fail to do so and throw me into single user to fix. Which I do with fsck -y... So the unclean message by itself does not necessarily mean single user. It can, but often doesn't The weirder thing is his no output thing... Warner Unclean shutdown only prevents read-write mounting of a filesystem. It's > cleared when the filesystem checks out a good with fsck (or fsck is able = to > fix safe to fix things). You'll only drop to single user if fsck can't fi= x > it in 'preen' mode. > > Warner > >> >> ... >> isa_probe_children: disabling PnP devices >> atkbdc: atkbdc0 already exists; skipping it >> atrtc: atrtc0 already exists; skipping it >> attimer: attimer0 already exists; skipping it >> sc: sc0 already exists; skipping it >> isa_probe_children: probing non-PnP devices >> sc0 failed to probe on isa0 >> vga0: at port 0x3b0-0x3bb iomem 0xb0000-0xb7fff pnpid >> PNP0900 on isa0 >> pcib0: allocated type 4 (0x3b0-0x3bb) for rid 0 of vga0 >> isa_probe_children: probing PnP devices >> Device configuration finished. >> procfs registered >> Statistical TSC calibration took 18310 us and 4437 data points >> Timecounter "TSC" frequency 1895998951 Hz quality 1000 >> Statistical lapic calibration took 11276 us and 699 data points >> lapic: Divisor 2, Frequency 67108868 Hz >> Timecounters tick every 10.000 msec >> lo0: bpf attached >> vlan: initialized, using hash tables with chaining >> IPsec: Initialized Security Association Processing. >> tcp_init: net.inet.tcp.tcbhashsize auto tuned to 131072 >> usb_needs_explore_all: no devclass >> ahcich0: AHCI reset... >> pci0: driver added >> found-> vendor=3D0x8086, dev=3D0x2725, revid=3D0x1a >> domain=3D0, bus=3D0, slot=3D5, func=3D0 >> class=3D02-80-00, hdrtype=3D0x00, mfdev=3D0 >> cmdreg=3D0x0007, statreg=3D0x0010, cachelnsz=3D0 (dwords) >> lattimer=3D0x00 (0 ns), mingnt=3D0x00 (0 ns), maxlat=3D0x00 (0 ns) >> powerspec 3 supports D0 D3 current D0 >> MSI supports 1 message, 64 bit >> MSI-X supports 16 messages in map 0x10 >> pci0:0:5:0: reprobing on driver added >> ahcich0: SATA connect time=3D0us status=3D00000133 >> ahcich0: AHCI reset: device found >> ahcich0: AHCI reset: device ready after 0ms >> ada0 at ahcich0 bus 0 scbus0 target 0 lun 0 >> ada0: ACS-2 ATA SATA 3.x device >> ada0: Serial Number BHYVE-DEEE-91F5-8E77 >> ada0: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 8192bytes) >> ada0: Command Queueing enabled >> ada0: 16384MB (33554432 512 byte sectors) >> pass0 at ahcich0 bus 0 scbus0 target 0 lun 0 >> pass0: ACS-2 ATA SATA 3.x device >> pass0: Serial Number BHYVE-GEOM: new disk ada0 >> DEEE-91F5-8E77 >> pass0: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 8192bytes) >> pass0: Command Queueing enabled >> Trying to mount root from ufs:/dev/ada0p4 [rw]... >> WARNING: WITNESS option enabled, expect reduced performance. >> WARNING: / was not properly dismounted >> WARNING: /: mount pending error: blocks 177952 files 3815 >> efirtc0: providing initial system time >> Dual Console: Serial Primary, Video Secondary >> start_init: trying /sbin/init >> >> FreeBSD/amd64 (Amnesiac) (ttyu0) >> >> login: >> >> >> -- >> Bjoern A. Zeeb r15:7 >> >> > --000000000000f050c7063d249f1a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Sun, Aug 24, 2025, 10:37=E2=80=AFAM <<= a href=3D"mailto:polyduekes@proton.me" target=3D"_blank" rel=3D"noreferrer"= >polyduekes@proton.me> wrote:

On Sunday, August 24th, 2025 at 2:46 PM, Warner Losh <imp= @bsdimp.com> wrote:


On Sun, Aug 24, 2025 at 8= :32=E2=80=AFAM Bjoern A. Zeeb <bzeeb-lists@lists.zabbadoz.net> wrote:
Hi,

I just updated a bhyve file system and forgot to unmount it on the host; starting the guest I am surprised to see Login: and not press enter for
/bin/sh from init ...


Th= ere's two issues. First, /etc/rc output only goes to the primary consol= e. It wouldn't have prompted you or shown you a single user shell here = anyway.

Second, we've never dropped to single = user mode solely for unclean shutdown. Only for filesystems that couldn'= ;t be fixed. These could be fixed with fsck, so no single user.
<= br>
i agree with bz, there have been numerous times where i was d= ropped to single user for unclean shutdown which could be fixed with fsck

I've had thousands of panics recover by = the automatic fsck -p we do. The very definition of and unclean shutdown. A= bout 1% fail to do so and throw me into single user to fix. Which I do with= fsck -y...

So the uncle= an message by itself does not necessarily mean single user.=C2=A0 It can, b= ut often doesn't=C2=A0=C2=A0

The weirder thing is his no output thing...

Warner

Unclean shutdown on= ly prevents read-write mounting of a filesystem. It's cleared when the = filesystem checks out a good with fsck (or fsck is able to fix safe to fix = things). You'll only drop to single user if fsck can't fix it in &#= 39;preen' mode.

Warner

...
isa_probe_children: disabling PnP devices
atkbdc: atkbdc0 already exists; skipping it
atrtc: atrtc0 already exists; skipping it
attimer: attimer0 already exists; skipping it
sc: sc0 already exists; skipping it
isa_probe_children: probing non-PnP devices
sc0 failed to probe on isa0
vga0: <Generic ISA VGA> at port 0x3b0-0x3bb iomem 0xb0000-0xb7fff pnp= id PNP0900 on isa0
pcib0: allocated type 4 (0x3b0-0x3bb) for rid 0 of vga0
isa_probe_children: probing PnP devices
Device configuration finished.
procfs registered
Statistical TSC calibration took 18310 us and 4437 data points
Timecounter "TSC" frequency 1895998951 Hz quality 1000
Statistical lapic calibration took 11276 us and 699 data points
lapic: Divisor 2, Frequency 67108868 Hz
Timecounters tick every 10.000 msec
lo0: bpf attached
vlan: initialized, using hash tables with chaining
IPsec: Initialized Security Association Processing.
tcp_init: net.inet.tcp.tcbhashsize auto tuned to 131072
usb_needs_explore_all: no devclass
ahcich0: AHCI reset...
pci0: driver added
found-> vendor=3D0x8086, dev=3D0x2725, revid=3D0x1a
domain=3D0, bus=3D0, slot=3D5, func=3D0
class=3D02-80-00, hdrtype=3D0x00, mfdev=3D0
cmdreg=3D0x0007, statreg=3D0x0010, cachelnsz=3D0 (dwords)
lattimer=3D0x00 (0 ns), mingnt=3D0x00 (0 ns), maxlat=3D0x00 (0 ns)=
powerspec 3 supports D0 D3 current D0
MSI supports 1 message, 64 bit
MSI-X supports 16 messages in map 0x10
pci0:0:5:0: reprobing on driver added
ahcich0: SATA connect time=3D0us status=3D00000133
ahcich0: AHCI reset: device found
ahcich0: AHCI reset: device ready after 0ms
ada0 at ahcich0 bus 0 scbus0 target 0 lun 0
ada0: <BHYVE SATA DISK 001> ACS-2 ATA SATA 3.x device
ada0: Serial Number BHYVE-DEEE-91F5-8E77
ada0: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 8192bytes)
ada0: Command Queueing enabled
ada0: 16384MB (33554432 512 byte sectors)
pass0 at ahcich0 bus 0 scbus0 target 0 lun 0
pass0: <BHYVE SATA DISK 001> ACS-2 ATA SATA 3.x device
pass0: Serial Number BHYVE-GEOM: new disk ada0
DEEE-91F5-8E77
pass0: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 8192bytes)
pass0: Command Queueing enabled
Trying to mount root from ufs:/dev/ada0p4 [rw]...
WARNING: WITNESS option enabled, expect reduced performance.
WARNING: / was not properly dismounted
WARNING: /: mount pending error: blocks 177952 files 3815
efirtc0: providing initial system time
Dual Console: Serial Primary, Video Secondary
start_init: trying /sbin/init

FreeBSD/amd64 (Amnesiac) (ttyu0)

login:


--
Bjoern A. Zeeb r15:7

--000000000000f050c7063d249f1a--