From nobody Tue Mar 19 00:44:53 2024 X-Original-To: freebsd-questions@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 4TzCg060gfz5FLjl for ; Tue, 19 Mar 2024 00:45:00 +0000 (UTC) (envelope-from grog@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TzCg05XC4z4pdq; Tue, 19 Mar 2024 00:45:00 +0000 (UTC) (envelope-from grog@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1710809100; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=UBk1YNnhrkBNbWQwBoJ1kszcxTwzo+/Nmm6FFGhuz5I=; b=ncEd18Jh1HuOpracwrVjhXEiLPMjw1zZ5z6iJz5+KeqzTrNnMsvrIeUvkr/NCUtNd3iZOw S47RajfCJFPJIfCK/qgshBdviHZeV1C70jiSSM7GGBx1X768uRFnQ0+RlN2mWjPLKyuvhw S2hgXnc1xuHpQos8EoifOnPzpopfi9IevU3OvxB6RnRx2QyXj8a6WX3DO02olZBK0nXYB3 6OvObLew2ZmkdO8Za/nHmQpAr5a7jXwYOP2HFQTUVNVekXAtnvRv35X57bXxy3QhsuPxce pD4fStF3EWYY4IBMu5d60JPznrTXkjzjwcTZAJ02EMP/TPtwXnCV9q+K8KWofg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1710809100; a=rsa-sha256; cv=none; b=ceuZgoTDygoqiPSQCaRq1n+rqeei8zwtx+/M/1/D5YvOJvJFZtUbQFYXDtXwoHug0hLWmk 3LfJ2sOfrdzEILSnmdLc4cnWkF3A+ntE7FlxTng1fpEwZR3J2bsa06aRmfU+ImygV9/1Oq zjVWIRgC3rcEG7F4v3SLNJSgTO9v+K53bpwNjju/pR+GMUAhxr8fWpJqtS4/EYgYJbQvZt /1w5RqSMjBz14UihFYp0BQNXJOG6/8+3861tlow7+ueOZcPyjoepndVvrhbgat2C1YcRZ2 JJSMd7ObPCbqCK8ciazhs2VS8w+/r9oxgieFAlxnERc8CBE//EfKqAnFDuk12A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1710809100; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=UBk1YNnhrkBNbWQwBoJ1kszcxTwzo+/Nmm6FFGhuz5I=; b=Hzs1thR8343NHJ2j58mYhjc4yHo0p67CBf0aUd7l11q8GTIU0PZW3uBAdLbaTm/Czjan/t w6j2+fMrJlA54OnQemSntTjYxU+gs54alKLOSgJTQQR9Zy+uJQy0v1ylAlNnDlQjiScmBk +8noVURAf28vSA92QrJ0dEoQWef0ugYlD6Z2S1nV1ZzF/ciTFR/NP6hl4m1Sj+adkrwBe8 71F96l31OIiTps19/yhSeGudq53Y0cyfKKHdS4OT2Utreib9WY0Za77RKBjksTxJJ1zaWZ 4UKaRO8Cal5CEa82TeZChxJkL9FpN68QW4JJ4+LfpjcnRxiK5YGHBkUZm0JyTA== Received: from hydra.lemis.com (121-200-11-253.79c80b.mel.nbn.aussiebb.net [121.200.11.253]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: grog/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4TzCfz4HvHzWJG; Tue, 19 Mar 2024 00:44:59 +0000 (UTC) (envelope-from grog@freebsd.org) Date: Tue, 19 Mar 2024 11:44:53 +1100 From: Greg 'groggy' Lehey To: Jim Pazarena Cc: freebsd-questions@freebsd.org Subject: Re: reboot forcing a fsck Message-ID: References: List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Ibb/69U0wb+n2O7M" Content-Disposition: inline In-Reply-To: Organization: The FreeBSD Project Phone: +61-3-5309-0418 Mobile: +61-490-494-038. Use only as instructed. WWW-Home-Page: https://www.FreeBSD X-PGP-Fingerprint: 9A1B 8202 BCCE B846 F92F 09AC 22E6 F290 507A 4223 --Ibb/69U0wb+n2O7M Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Monday, 18 March 2024 at 14:08:08 -0700, Jim Pazarena wrote: > I have a server which seems to have a fs issue for my exim folder. > an "ls -l" hangs. anything going near the exim folder hangs - for > whatever reason. When you say "folder", do you mean a directory or a file? I'm assuming directory. > If I trigger a 'reboot', I assume the boot process will > automatically enter a fsck as per the documentation. If the file systems are marked "clean", the boot process doesn't perform an fsck. Current versions of reboot don't seem to provide the possibility of forcing fsck on reboot. The best you could do would be the -n option, about which the man page says "This option should probably not be used." > What is unclear is if the system will eventually g et to multi-user > mode, or hang at a CLI question from the fsck? Yes, this is unclear. If you do get into fsck, and it can't find a solution, it will prompt for an action. > I have no hands or eyes available to be there. This is a bare metal > chassis not a vm. That's a problem. A number of possibilities, none of them good: - Assuming that this is a directory, does ls without the -l option work? That only reads the directory, while -l also reads the inodes referenced in the directory. If so, you can potentially identify the damaged file and rename it to something harmless. Don't try to delete it; that could cause more problems. - Rename the folder and create a new one with the correct name. - umount the file system on the running system and try running fsck. If this is possible, it's probably the best choice. - run fsdb. That's arcane, and I don't know how to use it either. It could at least give you some insight into what's wrong. Ultimately, though, you're going to have to consider console access to the machine. > Would appreciate learning the procedure which fsck uses during a > boot. (beyond what the man fsck advises) which seems to exclude > this question. There's some information in the description of the -F and -B options. What else would you like to know? Greg -- When replying to this message, please copy the original recipients. If you don't, I may ignore the reply or reply to the original recipients. For more information, see http://www.lemis.com/questions.html Sent from my desktop computer. See complete headers for address and phone numbers. This message is digitally signed. If your Microsoft mail program reports problems, please read http://lemis.com/broken-MUA.php --Ibb/69U0wb+n2O7M Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQSaG4ICvM64RvkvCawi5vKQUHpCIwUCZfjgAQAKCRAi5vKQUHpC I7HlAKCmTtsxVzYbzcijsSENUwmQExN1cQCfXW6hxT7I7JXn66TyzCjZxTZ3rdQ= =Gf2b -----END PGP SIGNATURE----- --Ibb/69U0wb+n2O7M--