RE: Problem with fsck : continued



You are going around the wrong way to solve your problem.
Problem is not with FreeBSD or fsck, it's your electrical power
supply.
Every body else in the world puts a UPS unit between their pc and
the wall socket.
The UPS unit can give you 30 min run time from its battery and then
signal its time to shutdown your system.
There is FreeBSD port system software that works with different UPS
systems to do this. After system shutdown when your power comes back
on your system will start up normally with no problems and no risk
to the hardware. A complete hands off solution. Having the power
stopped on a running pc will damage the hardware and destroy your
system. You are just plan lucky that has not occured yet.

-----Original Message-----
From: owner-freebsd-questions@xxxxxxxxxxx
[mailto:owner-freebsd-questions@xxxxxxxxxxx]On Behalf Of manish jain
Sent: Tuesday, January 31, 2006 12:26 PM
To: freebsd-questions@xxxxxxxxxxx
Subject: Problem with fsck : continued



Hi,

Thanks for the support so far. FreeBSD is working beautifully,
both on the server as well as client workstations. Except for fsck.
I am writing from India, where the electrical power scenario makes
up for any possible lack of frustration.

My server faces unscheduled power cuts and consequent improper
shutdown 2-3 times every day. This is what I have placed in my
server's rc.conf :

fsck_y_enable="YES"
background_fsck="NO"

Most of the time when the system comes up on its own without first
being subjected to single-user mode operations, half the services
(including squid, webmin, vsftpd, svscan and - most significantly -
getty for the local console) fail to start up, although fsck does
run automatically in the foreground - with the y[es] argument
enabled - on all partitions listed in fstab on system restart (i.e.
restoration of electricity). The only solution I know is to first go
into single-user mode and run fsck on the commandline for all
partitions, after which the server comes up quite nicely.

This would be okay if I could leave a console attached to the
server, in which case I could run fsck interactively in single-user
mode and get the system up again. For daily operations however, my
organisation would much prefer to have the server working without a
console attached.

So now the question is if I can get FreeBSD 6.0 to run fsck
automatically on restart in such a manner that all services come up
consistently. I am even willing to have fsck run in the foreground
upon EACH restart, irrespective of whether the previous shutdown was
proper or improper. How do I do this ?

Thanks for any help. Attached at the bottom is the previous
communication.

Manish Jain
goodredhat@xxxxxxxxx





On Thursday 26 January 2006 19:39, manish jain wrote:
> I recently persuaded my organisation to shift our main
> server from Linux to FreeBSD 6.0. We are now facing a
> problem with fsck. After improper shutdown, we need
> fsck to run automatically and non-interactively in the
> foreground upon restart. Enabling background fsck lets
> the system come up but fails to properly start a few
> network services.
When you say you enabled it, do you simply mean you did nothing at
all, or did you add an extra fsck -B somewhere.
Background fsck is enabled by default, and it runs 60 seconds
after all other initialization. Partitions can only be deferred for
background checking if they support it, and are in a mountable
state. These partitions are simply skipped in the pre-mount fsck
check.
All it does is recover lost space. It shouldn't have any impact
other than a general slowdown.



---------------------------------

What are the most popular cars? Find out at Yahoo! Autos
_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribe@xxxxxxxxxxx"

_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Three FreeBSD 6 questions
    ... areas which require updates: ... What is the best way to keep my FreeBSD 6.x system up2date? ... booting up the server. ... After running fsck, server would be up for about an ...
    (freebsd-stable)
  • Booting Problem After Power Loss (fsck)?
    ... Server was idle (e.g. absolutely no processes running aside from ... Booted into single-user mode and ran 'fsck' - the latest output to ... Have I suffered a total loss or is this still some way to revover my ... I would hate to walk away thinking that a simple power loss ...
    (freebsd-questions)
  • Re: Booting Problem After Power Loss (fsck)?
    ... The server was totally idle when the power was cut, ... FreeBSD community and a new start on computing, ... >>Booted into single-user mode and ran 'fsck' - the latest output to ... > and no disk activity I suggest that you break to debugger hitting ...
    (freebsd-questions)
  • Problem with fsck : continued
    ... FreeBSD is working beautifully, both on the server as well as client workstations. ... Except for fsck. ... My server faces unscheduled power cuts and consequent improper shutdown 2-3 times every day. ...
    (freebsd-questions)
  • Re: Help! Hard disk problems
    ... I rebooted and to my surprise, I started receiving many messages displaying information regarding that /usr has issues. ... This is the first time that I have ever run fsck and I have no idea what this message means or what the best course of action on CLEAR to take. ... Any input at all would be greatly appreciated (FreeBSD 6.0-STABLE if it helps). ... What does the expand option do? ...
    (freebsd-questions)