The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to check disk integrity

Discussion in 'General Discussion' started by Diatone, Jan 4, 2006.

  1. Diatone

    Diatone Well-Known Member

    Joined:
    Aug 22, 2001
    Messages:
    111
    Likes Received:
    0
    Trophy Points:
    16
    I'm getting some weird i/o kernel errors in my syslog, and was wondering the easiest way to check the integrity or filesystem of a mounted drive. - Or how can I unmount the backup drive, the one without the kernel or system on it, check it, then remount it?

    Thanks
     
    #1 Diatone, Jan 4, 2006
    Last edited: Jan 4, 2006
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Best way is to reboot and perform an FSCK with:

    shutdown -Fr now

    However, if the disk is seriously damaged, then running FSCK can completely corrupt it. If you're getting I/O errors then the disks is almost certainly on its last legs and you should get it replaced ASAP. The I/O errors indicate that disk corruption is already taking place, so it should be treated with urgency.
     
  3. Blue|Fusion

    Blue|Fusion Well-Known Member

    Joined:
    Sep 12, 2004
    Messages:
    378
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Cleveland, Ohio
    Besides checking the integrity of a filesystem, you should check the S.M.A.R.T. info from the drives.

    Assuming, they're IDE drives, you can use smartctl -a /dev/hda. There's a way to do SATA with libdata, but not sure on that one.
     
Loading...

Share This Page