From nobody Thu Nov 27 10:13:17 2025 X-Original-To: freebsd-hackers@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 4dHC1J27hRz6J29K for ; Thu, 27 Nov 2025 10:13:08 +0000 (UTC) (envelope-from anthony.pankov@yahoo.com) Received: from sonic304-21.consmr.mail.ir2.yahoo.com (sonic304-21.consmr.mail.ir2.yahoo.com [77.238.179.146]) (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 did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4dHC1H52ncz43Nb for ; Thu, 27 Nov 2025 10:13:07 +0000 (UTC) (envelope-from anthony.pankov@yahoo.com) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1764238385; bh=Xo39Aq7fbHE0eZFt6LcfSZKZfq7TunUkfsEpXKNkr/U=; h=Date:From:To:CC:Subject:In-Reply-To:References:From:Subject:Reply-To; b=TJjFWE78oYyHNdeDozL+A9FDtWdWSJnIUZIk6N43RjWeUrgX+UOTbCKXX7P5JeygXaNl1n9h9kUBBjbRGGJAfqKWrMYuDkeZ5OWUYEr/rjdvQvkyLSKhxg/f1B7/UcMnIUqPcw9j59anhEclEDIl6jEceo6aDfMXT8xdNannFaFsJP0wlA7CKsHOgJbFqmiJWH7SNvh7lycBRt78bAQ/0s6MyuS4+QstvcYvE57O7Gvyjn8IbBduzGzcExsaE6gWj9zqAedf7C/SRoKkqa4rVBN2yXs4vG32mSKPzFEOhRAwZdVRrvaaTifSEMXoChk1COB44ZXCFPXSF07/gQQ8gQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1764238385; bh=eW/3nueO9LLwdUJazaVGaREETa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.oCOoJLZjbQdTLG7rC4nueGK4dIuIitSg_3KBqCVZZxBCdSqG2RbQsdDJj6Twl VJH9CAj2ORZTy9UuVD8ThnbgbWiz47YXOJYgntTDNvxu5gRJ3jd0VWL1Gh54nPWpWLVyyTf184em splifgjr06.XWJ0BNd8ca10M1RTk4DOVn_Wdr1lw1hupmDiPffy02CeQEndyyRbVz5RUxAuA.70N _BaLrhRryh.QA_F8MTSgjrhC9mTWfyJGDdleYBiV5Sx.BwBpVUJILw0NocvJmwFyOzNc8_MlqNJh iqeakznJhm1nsOJIjcWnv0D6O2AVW7DNfWizi.MgBGaFpGllFdqPH97IZBbR5N9wLITfDrUgrT4O 1kcoxfktKV38.A.euUBY80xqMMOwd0McstQGJmZbbUxHubi_GBpKuXk03MknwoQevkzdvko66YZZ 5aHwPiTjpne.dYS4JZpjCcM41r5Fcy4nPtOumJmQEwjtUQQC.NRZDrgp0b7x_XhDppiEIOOUkYIx jQ2WZJZUywyRWrOxf72kNaufO1T0- X-Sonic-MF: X-Sonic-ID: bf9ccae1-ca27-43ef-a4e1-bd14554924c6 Received: from sonic.gate.mail.ne1.yahoo.com by sonic304.consmr.mail.ir2.yahoo.com with HTTP; Thu, 27 Nov 2025 10:13:05 +0000 Received: by hermes--production-ir2-76fb978d99-44fvc (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 33ff9eb4bf7b94a08d48f71ffcf1b20c; Thu, 27 Nov 2025 10:13:03 +0000 (UTC) Date: Thu, 27 Nov 2025 13:13:17 +0300 From: Anthony Pankov Message-ID: <908785764.20251127131317@yahoo.com> To: Warner Losh CC: freebsd-hackers@freebsd.org Subject: Re: any way to recover from I/O hang? In-Reply-To: References: <458400081.20251126171621.ref@yahoo.com> <458400081.20251126171621@yahoo.com> List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Mailer: WebService/1.1.24794 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Rspamd-Queue-Id: 4dHC1H52ncz43Nb Thursday, November 27, 2025, 7:58:21 AM, you wrote: > On Wed, Nov 26, 2025 at 7:16 AM Anthony Pankov > wrote: >> >> Recently I'm again facing a situation where some UFS (?) error on one >> partition forced me to reboot whole server and interrupt people's work. >> As I understand the brief is: >> >> Reason: A process in state 'D' (uninterruptible wait/sleep) is blocked on >> an I/O operation (e.g., waiting for a network file share, a disk operation, >> or a device that is no longer responding) at the kernel level. The process >> is not awaken to handle signals until the condition it is waiting for is >> resolved. >> Solution: You cannot kill a 'D' state process with any signal, including >> SIGKILL (kill -9). The condition must be resolved (e.g., fixing the network >> connection, waiting for the I/O to time out, or potentially unmounting the >> filesystem with umount -f if it's a mounted network share). In some rare >> cases involving buggy kernel code or hardware failure, a reboot may be the >> only option. >> >> In my case there was a jailed samba which share one ufs-formatted >> partition. The samba processes hangs one by one and sharing has stopped it >> work. >> There was no message in log. Geom reported no errors. Disk's has no error. >> It seems that there was some introduced inconsistency in UFS. >> My thoughts was to stop/kill samba, remove samba's jail, unmount partition >> and do fsck. >> >> But 'jail -r' exit with something 'rc.shutdown exited ... 9' and left jail >> running. pskill -KILL for samba processes say nothing and do nothing. >> 'umount -f' say 'Device is busy'. Various utilities such as 'df' hangs. So >> I forced to shutdown the server which has other important and workable >> service to resolve the situation. >> >> I wander is there any way to treat such a cases? May be 'umount -f' can >> have more power... >> > So no errors from geom? Or from CAM? what's the underlying storage > hardware? And what's the wchan / straceback for the processes in 'D' state? > And do you know the location of the file that's waiting for I/O? No errors. UFS was on gmirror and 'gmirror status' said 'OK'. Unfortunately I was unable to do meaningful investigation under stress. There was a number of smbd process in a jail which ignore killing and anything else. The first inconsistency found by fsck later was a file with mtime corresponding to a first claim of a problem from one user. Hour later there was more claims and finally samba share stop working. As I understand UFS inconsistency grew over that hour. Because there was multiple smbd processes each corresponding to different user there it is no one file maked problem. > There's a number of things that might cause this, but they typically are > noisy about it. There's a couple of deadlock issues that might cause this, > but getting some more information is needed to understand what might be > done to mitigate or prevent the deadlocks. > P.S. Previous situation was when I do simple (as I think) experiments with >> ggated and have forced to reboot server when 'mount' hung. >> > I assume ggate isn't involved when this happens now, right? That's right. I note this because it seems that stoping ggate server while running ggate client is the simplest way to reproduce the problem. P.S. I was really hope that "umount -f" awake waiting processes for killing. >> -- >> Best regards, >> Anthony Pankov mailto:anthony.pankov@yahoo.com >> >> >> -- Best regards, Anthony