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.

File System Goes "Read Only"

Discussion in 'General Discussion' started by ankushdawar, Aug 26, 2006.

  1. ankushdawar

    ankushdawar Member

    Joined:
    May 11, 2003
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    India
    Hi,

    After every few days my server stops responding,
    and the file sytem goes read only. What can be
    the cause and how can it be rectified.

    Thanks
     
  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
    Linux will usually mount disks read-only if it thinks the disk is about to die. You need to get the disk where the filesystem is located replaced as soon as possible.
     
  3. freedman

    freedman Well-Known Member

    Joined:
    Feb 13, 2005
    Messages:
    312
    Likes Received:
    1
    Trophy Points:
    18
    run:
    smartctl -a /dev/DISKDEVICE
    in my case:
    smartctl -a /dev/hda

    it should give you a bunch of messages about drive failures.
    these will likely (as chirpy indicated) correspond to when you're filesystem went read-only.
    if it's happening as frequently as you say, you'll be lucky if you have more than a few days before your drive is gone for good.

    I have a drive that's got 3 smart errors and it's to the point it can't even be cloned, which is frustrating, but it's still online so mounting a replacement and copying files will have to do.

    you can possibly minimize the effects of this in the future by using a different filesystem.. on my non-boot partitions I'm using xfs...this, at least, will speed up your reboot times since a journal replay is relatively fast whereas a full fsck (as required by hfs2/3) takes forever.
     
Loading...

Share This Page