| Summary: | /etc/rc has no way to force fsck -y at next boot, corrupt filesystems with soft updates required manual intervention | ||
|---|---|---|---|
| Product: | Base System | Reporter: | Roy Hooper <rhooper> |
| Component: | misc | Assignee: | Crist J. Clark <cjc> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | 4.5-RELEASE | ||
| Hardware: | Any | ||
| OS: | Any | ||
|
Description
Roy Hooper
2002-03-17 02:00:04 UTC
On Sat, Mar 16, 2002 at 05:57:48PM -0800, Roy Hooper wrote: [snip] > >Fix: > The solution was to force a fsck -y at boot time by modifying /etc/rc so that I could remotely reboot the machine. > Adding the ability to touch a temporary file such as /force-fsck-y would be very useful for remote maintenance. I'm confused. What does, # touch /force-fsck-y Do for you that, # echo 'fsck_y_enable="YES"' >> /etc/rc.conf Doesn't? -- Crist J. Clark | cjclark@alum.mit.edu | cjclark@jhu.edu http://people.freebsd.org/~cjc/ | cjc@freebsd.org fsck_y_enable="YES" might not trigger fsck-y at the next reboot as it relies on fsck -p to make it's decision. In my case, it wasn't triggering fsck -y ever at reboot beacuse it thought the filesystem was clean when it was not. Roy -- Roy Hooper Project Manager & Senior UNIX Consultant Decisive Technologies Inc. ----- Original Message ----- From: "Crist J. Clark" <cjc@FreeBSD.ORG> To: "Roy Hooper" <rhooper@toybox.ca> Cc: <freebsd-gnats-submit@FreeBSD.ORG> Sent: Saturday, March 16, 2002 11:49 PM Subject: Re: misc/35992: /etc/rc has no way to force fsck -y at next boot, corrupt filesystems with soft updates required manual intervention > On Sat, Mar 16, 2002 at 05:57:48PM -0800, Roy Hooper wrote: > [snip] > > > >Fix: > > The solution was to force a fsck -y at boot time by modifying /etc/rc so that I could remotely reboot the machine. > > Adding the ability to touch a temporary file such as /force-fsck-y would be very useful for remote maintenance. > > I'm confused. What does, > > # touch /force-fsck-y > > Do for you that, > > # echo 'fsck_y_enable="YES"' >> /etc/rc.conf > > Doesn't? > -- > Crist J. Clark | cjclark@alum.mit.edu > | cjclark@jhu.edu > http://people.freebsd.org/~cjc/ | cjc@freebsd.org > On Sun, Mar 17, 2002 at 01:17:29AM -0500, Roy Hooper wrote: > fsck_y_enable="YES" might not trigger fsck-y at the next reboot as it relies > on fsck -p to make it's decision. In my case, it wasn't triggering fsck -y > ever at reboot beacuse it thought the filesystem was clean when it was not. # echo 'fsck -y' >> /etc/rc.early -- Crist J. Clark | cjclark@alum.mit.edu | cjclark@jhu.edu http://people.freebsd.org/~cjc/ | cjc@freebsd.org Cool, sounds like a Handbook entry to me Roy -- Roy Hooper Project Manager & Senior UNIX Consultant Decisive Technologies Inc. ----- Original Message ----- From: "Crist J. Clark" <crist.clark@attbi.com> To: "Roy Hooper" <rhooper@toybox.ca> Cc: <freebsd-gnats-submit@FreeBSD.ORG> Sent: Sunday, March 17, 2002 1:34 AM Subject: Re: misc/35992: /etc/rc has no way to force fsck -y at next boot, corrupt filesystems with soft updates required manual intervention > On Sun, Mar 17, 2002 at 01:17:29AM -0500, Roy Hooper wrote: > > fsck_y_enable="YES" might not trigger fsck-y at the next reboot as it relies > > on fsck -p to make it's decision. In my case, it wasn't triggering fsck -y > > ever at reboot beacuse it thought the filesystem was clean when it was not. > > # echo 'fsck -y' >> /etc/rc.early > > -- > Crist J. Clark | cjclark@alum.mit.edu > | cjclark@jhu.edu > http://people.freebsd.org/~cjc/ | cjc@freebsd.org > On Sun, Mar 17, 2002 at 01:39:03AM -0500, Roy Hooper wrote: > Cool, sounds like a Handbook entry to me rc.early probably should just be documented in rc(5). -- Crist J. Clark | cjclark@alum.mit.edu | cjclark@jhu.edu http://people.freebsd.org/~cjc/ | cjc@freebsd.org State Changed From-To: open->analyzed Added documentation for the rc.early(8) script to -CURRENT. Responsible Changed From-To: freebsd-bugs->cjc I'll MFC to -STABLE in a few days. State Changed From-To: analyzed->closed The documentation mentioned in the audit trail was MFCed. As for possible fsck(8) problems, there was insufficient information to determine if there was a problem and what it might be. Sumbitter can submit a new PR if there are problems in the future. Thanks. |