Hi, Is there a way to run fsck or any other program to check if there is drive problem. I don't want it repaired, now, but maybe later on. I can't shutdown the system and reboot in single user-mode. All suggestions are welcomed. -- Thanks http://www.911networks.com When the network has to work
mmm why you not reboot? you can set the service you wan in init 1 and go it 2009/5/16 <centos at 911networks.com>> Hi, > > Is there a way to run fsck or any other program to check if there is > drive problem. I don't want it repaired, now, but maybe later on. > > I can't shutdown the system and reboot in single user-mode. > > All suggestions are welcomed. > > -- > Thanks > http://www.911networks.com > When the network has to work > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20090516/1c1d1af7/attachment-0004.html>
centos at 911networks.com
2009-May-16 19:24 UTC
[CentOS] fsck while file system is mounted
On Sat, 16 May 2009 21:18:17 +0200 Equinox86 <equinox86 at gmail.com> wrote:> mmm why you not reboot?Because to reboot, I will need the authorization of 3 different people. Don't ask, they are having major "political" fights between 2 divisions. -- Thanks http://www.911networks.com When the network has to work
centos at 911networks.com wrote:> Hi, > > Is there a way to run fsck or any other program to check if there is > drive problem. I don't want it repaired, now, but maybe later on. > > I can't shutdown the system and reboot in single user-mode. > > All suggestions are welcomed.You can run fsck with the "-n" option (assumes a "no" response to all prompts) on a mounted file system, but some inconsistencies are to be expected in the on-disk metadata for an active file system, so the result is likely to be more confusing than useful unless you really know what you are doing (and thus probably wouldn't have asked this question). If you just want to check for physical drive problems, running dd if=/dev/hda of=/dev/null bs=32k will attempt to read the entire device and abort if it encounters and unreadable sectors. Replace "hda" with the appropriate device or partition, of course. -- Bob Nichols "NOSPAM" is really part of my email address. Do NOT delete it.
On Sat, 2009-05-16 at 11:51 -0700, centos at 911networks.com wrote:> Hi, > > Is there a way to run fsck or any other program to check if there is > drive problem. I don't want it repaired, now, but maybe later on. > > I can't shutdown the system and reboot in single user-mode. > > All suggestions are welcomed.Along with the -n another suggested, consider two more possibilities. Probably smartdrive capable disks, you can use the smartd and smartctl (man pages in section 8) to have non-intrusive monitoring and diagnostics active. Then reports can be generated. Another possibility, if allowed by you situation, is to remount the drive ro (IIRC, mount -o remount,ro <you device or mount path>. No one will be able to write to the drive at that time, but you should be able to run the fsck and (IIRC) do repairs if desired. HTH -- Bill
On Sat, May 16, 2009 at 2:51 PM, <centos at 911networks.com> wrote:> Hi, > > Is there a way to run fsck or any other program to check if there is > drive problem. I don't want it repaired, now, but maybe later on. > > I can't shutdown the system and reboot in single user-mode. > > All suggestions are welcomed.This URL has been passed around a while now, but you can give this a shot (if you use LVM): https://www.redhat.com/archives/ext3-users/2008-January/msg00032.html -Ross
On 5/16/09, centos at 911networks.com <centos at 911networks.com> wrote:> Is there a way to run fsck or any other program to check if there is > drive problem. I don't want it repaired, now, but maybe later on. > > I can't shutdown the system and reboot in single user-mode. > > All suggestions are welcomed.In the 7 1/2 years I have been hosting with OLM, several times, I have seen things like this, which was posted on April 8th. Fortunately, the servers I use have been trouble free, so far.... I hope you have a_current_backup of everything on that server! "The server (deleted) is currently off-line and undergoing maintenance. The server experienced multiple drive failures in the disk array. We are in the process of rebuilding the array. This process will take several hours to complete. We appreciate your patience during this time."