From owner-freebsd-current@FreeBSD.ORG Sun Nov 15 11:58:05 2009 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E38FE1065693 for ; Sun, 15 Nov 2009 11:58:05 +0000 (UTC) (envelope-from admin@lissyara.su) Received: from hosting.lissyara.su (hosting.lissyara.su [77.221.149.162]) by mx1.freebsd.org (Postfix) with ESMTP id 99F5F8FC08 for ; Sun, 15 Nov 2009 11:58:05 +0000 (UTC) Received: from [95.27.65.70] (port=40136 helo=HP.lissyara.su) by hosting.lissyara.su with esmtpa (Exim 4.69 (FreeBSD)) (envelope-from ) id 1N9dk2-0001MJ-V7 for current@freebsd.org; Sun, 15 Nov 2009 14:58:02 +0300 Message-ID: <4AFFECCA.5010706@lissyara.su> Date: Sun, 15 Nov 2009 14:58:02 +0300 From: Alex Keda User-Agent: Thunderbird 2.0.0.23 (X11/20090906) MIME-Version: 1.0 To: current@freebsd.org Content-Type: multipart/mixed; boundary="------------020101090400020907090505" X-Spam-Description: if spam count > 60 - this is spam X-Spam-Count: 0 X-Descriptions: powered by www.lissyara.su X-Bounce-ID: hosting.lissyara.su Cc: Subject: Additional features for /etc/rc.d/fsck X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Nov 2009 11:58:06 -0000 This is a multi-part message in MIME format. --------------020101090400020907090505 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit hi! I have many servers with using gjournal. Sometimes, after unexpected reboot, booting OK, but, filesystem have error. If I run fsck -y manually - all OK. But, for some servers I do not have physical access, and check '/' and some another filesystems - impossible. I modify /etc/rc.d/fsck, and add 2 new options to rc.conf HP$ grep fsck /etc/rc.conf force_fsck="YES" force_fsck_list="/" HP$ It's required background_fsck="NO" in rc.conf May be include it in source three? Very useful. --------------020101090400020907090505 Content-Type: text/plain; name="fsck.diff" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="fsck.diff" LS0tIC9yb290L2ZzY2sJMjAwOS0xMS0xNSAxNDoxMzoyNS4wMDAwMDAwMDAgKzAzMDAKKysr IC9ldGMvcmMuZC9mc2NrCTIwMDktMTEtMTUgMTQ6NDI6MzIuMDAwMDAwMDAwICswMzAwCkBA IC0yNyw3ICsyNywxNiBAQAogCQlpZiBjaGVja3llc25vIGJhY2tncm91bmRfZnNjazsgdGhl bgogCQkJZnNjayAtRiAtcAogCQllbHNlCi0JCQlmc2NrIC1wCisJCQlpZiBjaGVja3llc25v IGZvcmNlX2ZzY2s7IHRoZW4KKwkJCQllY2hvICJGb3JjZSBmc2NrIGVuYWJsZWQiCisJCQkJ Zm9yIGZpbGVzeXN0ZW0gaW4gJHtmb3JjZV9mc2NrX2xpc3R9CisJCQkJZG8KKwkJCQkJZWNo byAiRm9yY2UgY2hlY2sgJGZpbGVzeXN0ZW0iCisJCQkJCWZzY2sgLXkgJGZpbGVzeXN0ZW0K KwkJCQlkb25lCisJCQllbHNlCisJCQkJZnNjayAtcAorCQkJZmkKIAkJZmkKIAogCQljYXNl ICQ/IGluCg== --------------020101090400020907090505--