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.
mmm why you not reboot?
you can set the service you wan in init 1 and go it
2009/5/16 centos@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@centos.org http://lists.centos.org/mailman/listinfo/centos
On Sat, 16 May 2009 21:18:17 +0200 Equinox86 equinox86@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.
centos@911networks.com wrote:
On Sat, 16 May 2009 21:18:17 +0200 Equinox86 equinox86@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.
You really need to arrange a scheduled maintenance window and a procedure to announce when emergency maintenance will happen. Pretending things never break or need maintenance operations is just unrealistic - but if the authorization you need is part of a working scheduling process it is not necessarily a bad thing.
On Sat, May 16, 2009 at 2:39 PM, Les Mikesell lesmikesell@gmail.com wrote:
centos@911networks.com wrote:
On Sat, 16 May 2009 21:18:17 +0200 Equinox86 equinox86@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.
You really need to arrange a scheduled maintenance window and a procedure to announce when emergency maintenance will happen. Pretending things never break or need maintenance operations is just unrealistic - but if the authorization you need is part of a working scheduling process it is not necessarily a bad thing.
Les is correct. You need to be able to take the server offline and check the hard drive and/or replace it. Hardware does break and you should have spares available, on site, ready to use. Or, a backup server.
centos@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.
On Sat, 2009-05-16 at 11:51 -0700, centos@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
On Sat, May 16, 2009 at 2:51 PM, centos@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@911networks.com centos@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."