Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Read-only file system

Discussion in 'General Discussion' started by perk1z, Aug 26, 2008.

  1. perk1z

    perk1z Member

    Joined:
    Sep 4, 2007
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    51
    how to delete this file ...

    root@seturan [/home/user/mail/userdomain.com/customerservice/cur]# ls -al
    ?--------- ? ? ? ? ? 1218797301.H463469P29048.my.server.com:2,
    ?--------- ? ? ? ? ? 1218799539.H456096P4427.my.server.com:2,
    ?--------- ? ? ? ? ? 1218803002.H19008P16024.my.server.com:2,
    ?--------- ? ? ? ? ? 1218806347.H604247P29549.my.server.com:2,

    account cannot delete, chown and chmod file error message "Read-only file system"

    thank you
     
  2. MaestriaNick

    MaestriaNick Well-Known Member

    Joined:
    Aug 6, 2008
    Messages:
    159
    Likes Received:
    3
    Trophy Points:
    68
    is that partition become read only ?

    you will need to reboot the system, and then do an FSCK.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Ashok-armia

    Ashok-armia Member

    Joined:
    Aug 14, 2008
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    51
    Hi

    Could you please check the permission of customerservice/cur

    the permission of the folder customerservice should be 750
    the permission of the folder cur should be 700

    and try deleting, If you're unable to change the permissions try /scripts/mailperm

    Regards,
    Ashok kumar
    Supportpro.com
     
  4. perk1z

    perk1z Member

    Joined:
    Sep 4, 2007
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    51
    Nothing change after reboot server and execute /scripts/mailperm

    root@seturan [/home/username/mail/userdomain.com/customerservice/cur]# ls -al
    total 2604
    drwx------ 2 username username 12288 Aug 26 14:41 ./
    drwxr-x--- 22 username username 4096 Aug 26 12:21 ../

    ?--------- ? ? ? ? ? 1218835072.H694888P11825.my.server.com:2,
    ?--------- ? ? ? ? ? 1218837176.H616361P15933.my.server.com:2,
    ?--------- ? ? ? ? ? 1218839073.H681662P21337.my.server.com:2,
    ?--------- ? ? ? ? ? 1218839479.H836320P22143.my.server.com:2,
    ?--------- ? ? ? ? ? 1218839823.H864140P22867.my.server.com:2,

    root@seturan [/home/username/mail/userdomain.com]# ls -al
    total 20
    drwxr-x--- 5 username username 4096 Aug 25 17:53 ./
    drwxrwx--- 10 username username 4096 Aug 25 17:53 ../
    drwxr-x--- 22 username username 4096 Aug 26 12:21 customerservice/

    root@seturan [/home/username/mail/userdomain.com]# chmod 750 customerservice/
    chmod: changing permissions of `customerservice/': Read-only file system

    root@seturan [/home/username/mail/userdomain.com/customerservice]# ls -al
    total 20
    drwxr-x--- 22 username username 4096 Aug 26 12:21 ./
    drwxr-x--- 5 username username 4096 Aug 25 17:53 ../
    drwx------ 2 username username 12288 Aug 26 14:41 cur/

    root@seturan [/home/username/mail/userdomain.com/customerservice]# chmod 700 cur/
    chmod: changing permissions of `cur/': Read-only file system

    root@seturan [/home/username/mail/userdomain.com]# lsattr
    ------------- ./customerservice

    root@seturan [/home/username/mail/userdomain.com]# cd customerservice/
    root@seturan [/home/username/mail/userdomain.com/customerservice]# lsattr
    ----------I-- ./cur
     
  5. Ashok-armia

    Ashok-armia Member

    Joined:
    Aug 14, 2008
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    51
    Hi

    Try the following command
    chattr -i cur

    and try chmod.
    And let me know, If it doesn't works

    Regards,
    Ashok kumar,
    Support Team.
     
  6. perk1z

    perk1z Member

    Joined:
    Sep 4, 2007
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    51
    chattr -i cur
    chattr: Read-only file system while setting flags on cur
     
  7. Ashok-armia

    Ashok-armia Member

    Joined:
    Aug 14, 2008
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    51
    Hi

    Please check the file system tab for the permission, (ro) mentioned in any of the partition
    if you not sure paste the result of the following command

    cat /etc/fstab

    Regards,
    Ashok kumar,
    Supportpro.com
     
  8. perk1z

    perk1z Member

    Joined:
    Sep 4, 2007
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    51
    cat /etc/fstab

    LABEL=/ / ext3 defaults,usrquota 1 1
    LABEL=/home /home ext3 defaults,usrquota 1 2
    LABEL=/tmp /tmp ext3 defaults 1 2
    LABEL=/boot1 /boot ext2 defaults 1 2
    tmpfs /dev/shm tmpfs defaults,noexec,nosuid 0 0
    devpts /dev/pts devpts gid=5,mode=620 0 0
    sysfs /sys sysfs defaults 0 0
    proc /proc proc defaults 0 0
    LABEL=SWAP-sda2 swap swap defaults 0 0
    /tmp /var/tmp ext3 defaults,bind,noauto 0 0
     
  9. MaestriaNick

    MaestriaNick Well-Known Member

    Joined:
    Aug 6, 2008
    Messages:
    159
    Likes Received:
    3
    Trophy Points:
    68
    is /home itself is readonly ? what is the result of

    touch /home/testfile.txt ?

    if that partition is readonly, then there is a chance of harddisk or file system crash. If the filesystem is having problem, running an fsck (while rebooting ) will fix the problem. for that do

    # touch /forcefsck

    #reboot
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. perk1z

    perk1z Member

    Joined:
    Sep 4, 2007
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    51
    root@seturan [/]# touch /home/testfile.txt
    touch: cannot touch `/home/testfile.txt': Read-only file system
    root@seturan [/]# cat /forcefsck
    cat: /forcefsck: No such file or directory
    root@seturan [/]# touch /forcefsck
    root@seturan [/]# reboot

    Broadcast message from root (pts/0) (Wed Aug 27 00:27:17 2008):

    The system is going down for reboot NOW!


    We'll Report Back
     
  11. perk1z

    perk1z Member

    Joined:
    Sep 4, 2007
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    51
    Server does not want to reboot ....

    top - 00:40:06 up 6:02, 7 users, load average: 147.62, 156.70, 82.55
    Tasks: 289 total, 7 running, 280 sleeping, 0 stopped, 2 zombie
    Cpu(s): 8.2%us, 26.5%sy, 0.0%ni, 41.9%id, 23.3%wa, 0.0%hi, 0.1%si, 0.0%st
    Mem: 4149872k total, 3747196k used, 402676k free, 440108k buffers
    Swap: 4192956k total, 0k used, 4192956k free, 1986996k cached

    PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
    12097 root 18 0 1700 600 524 R 100 0.0 12:47.79 shutdown
    2822 mysql 15 0 156m 45m 4360 S 6 1.1 27:00.40 mysqld
    12694 nobody 15 0 93300 48m 4128 S 4 1.2 0:00.42 httpd
    3308 root 16 0 29380 27m 1768 S 3 0.7 0:08.75 spamd
    12678 nobody 15 0 86244 41m 4020 S 3 1.0 0:00.08 httpd
    12790 nobody 15 0 87760 42m 3800 S 3 1.1 0:00.40 httpd
    12732 nobody 15 0 88564 43m 3792 S 2 1.1 0:00.32 httpd
    12662 nobody 15 0 85176 41m 4388 S 2 1.0 0:00.25 httpd
    12635 nobody 15 0 89064 44m 3928 S 1 1.1 0:00.36 httpd
    12645 nobody 15 0 88352 43m 3780 S 1 1.1 0:00.27 httpd
    13524 mailnull 15 0 11236 4108 2788 S 1 0.1 0:00.02 exim

    /var/log/message :

    Aug 27 00:43:12 seturan kernel: BUG: soft lockup - CPU#0 stuck for 10s! [shutdown:12097]
    Aug 27 00:43:12 seturan kernel:
    Aug 27 00:43:12 seturan kernel: Pid: 12097, comm: shutdown
    Aug 27 00:43:12 seturan kernel: EIP: 0060:[<c0497ee7>] CPU: 0
    Aug 27 00:43:12 seturan kernel: EIP is at dqput+0x75/0x15d
    Aug 27 00:43:12 seturan kernel: EFLAGS: 00000202 Not tainted (2.6.18-92.1.6.el5PAE #1)
    Aug 27 00:43:12 seturan kernel: EAX: 00000004 EBX: e08f53c0 ECX: f1611800 EDX: 00000002
    Aug 27 00:43:12 seturan kernel: ESI: e08f53c0 EDI: f16118e4 EBP: ffffffff DS: 007b ES: 007b
    Aug 27 00:43:12 seturan kernel: CR0: 8005003b CR2: b7f3e000 CR3: 37f3f480 CR4: 000006f0
    Aug 27 00:43:12 seturan kernel: [<c04993d2>] vfs_quota_sync+0x9b/0x131
    Aug 27 00:43:12 seturan kernel: [<c049b159>] quota_sync_sb+0x11/0xcc
    Aug 27 00:43:12 seturan kernel: [<c049b2c0>] sync_dquots+0xac/0xed
    Aug 27 00:43:12 seturan kernel: [<c0471c1d>] do_sync+0x1b/0x55
    Aug 27 00:43:12 seturan kernel: [<c0471c61>] sys_sync+0xa/0xd
    Aug 27 00:43:13 seturan kernel: [<c0404eff>] syscall_call+0x7/0xb
    Aug 27 00:43:13 seturan kernel: =======================


    any idea? what if manual reboot request (hard reboot) ?
     
  12. MaestriaNick

    MaestriaNick Well-Known Member

    Joined:
    Aug 6, 2008
    Messages:
    159
    Likes Received:
    3
    Trophy Points:
    68
    Better contact your Data Center regarding this.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  13. perk1z

    perk1z Member

    Joined:
    Sep 4, 2007
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    51
    It appears the server finally rebooted but hung on fsck needing a manual fsck,
    server back online

    thank you Ashok kumar, MaestriaNick
     
  14. Ashok-armia

    Ashok-armia Member

    Joined:
    Aug 14, 2008
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    51
    Hi

    Is the server back online are you able to make the changes, You should have edited the fstab to make the home partition r/w (read and write)

    for ex


    /dev/tmpFS /tmp ext3 loop,noexec,nosuid,rw 0 0


    If your issue is still not fixed, Please try editing fstab to make the home partition rw

    You can edit as "LABEL=/home /home ext3 defaults,usrquota,rw 1 2"

    it should work.

    Regards,
    Ashok kumar,
    http://supportpro.com
     
  15. Ashok-armia

    Ashok-armia Member

    Joined:
    Aug 14, 2008
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    51
    Hi,

    It also needs a reboot of the sever after the changes made.

    Regards,
    Ashok kumar
    http://supportpro.com
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice