hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : Cannot restart MySQL, HTTPD and server
Reply

Forum Jump

Cannot restart MySQL, HTTPD and server

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old
Web Hosting Guru
 
Join Date: Oct 2003
Location: Aggie Land, Texas
Posts: 334

Cannot restart MySQL, HTTPD and server


I am not being able to restart the server, or MySQL or httpd via SSH.
PHP Code:
root@server [~]# /etc/init.d/httpd fullstatus

Looking up localhost
Making HTTP connection to localhost
Alert
!: Unable to connect to remote host.

lynxCan't access startfile http://localhost/server-status
root@server [~]# 
PHP Code:
root@server [~]# /etc/init.d/mysql reload
/etc/init.d/mysqlline 244kill: (3375) - No such process
touch
cannot touch `/var/lib/mysql/server.lubnan.us.pid': Read-only file system 
Suggestions??



Sponsored Links
  #2  
Old
Your support partner
 
Join Date: Apr 2005
Location: Queen of Arabian Sea
Posts: 2,422
The filesystem seems to be mounted as read only.

1. What does mount command on console show?
2. Are you able to touch/ create a file in your server?

__________________
Sam
Supportlobby.com - Specialist in Windows Server Management
Spiralbean.com - Custom Software Development

  #3  
Old
Web Hosting Guru
 
Join Date: Oct 2003
Location: Aggie Land, Texas
Posts: 334
Quote:
Originally Posted by activelobby4u View Post
The filesystem seems to be mounted as read only.

1. What does mount command on console show?
PHP Code:
root@server [~]# mount
/dev/mapper/VolGroup00-LogVol00 on type ext3 (rw,usrquota)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
usbfs on /proc/bus/usb type usbfs (rw)
/
dev/sda1 on /boot type ext3 (rw)
none on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
/
usr/tmpDSK on /tmp type ext3 (rw,noexec,nosuid,loop=/dev/loop0)
/
tmp on /var/tmp type none (rw,noexec,nosuid,bind)
root@server [~]
Quote:
2. Are you able to touch/ create a file in your server?
[/quote]

PHP Code:
root@server [~]# mkdir test
mkdircannot create directory `test': Read-only file system
root@server [~]# 
Thank you

Sponsored Links
  #4  
Old
Your support partner
 
Join Date: Apr 2005
Location: Queen of Arabian Sea
Posts: 2,422
Quote:
Originally Posted by DelPierro View Post
PHP Code:
root@server [~]# mount
/dev/mapper/VolGroup00-LogVol00 on type ext3 (rw,usrquota)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
usbfs on /proc/bus/usb type usbfs (rw)
/
dev/sda1 on /boot type ext3 (rw)
none on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
/
usr/tmpDSK on /tmp type ext3 (rw,noexec,nosuid,loop=/dev/loop0)
/
tmp on /var/tmp type none (rw,noexec,nosuid,bind)
root@server [~]
PHP Code:
root@server [~]# mkdir test
mkdircannot create directory `test': Read-only file system
root@server [~]# 
Thank you[/QUOTE]

Try:

mount -o remount,rw /

__________________
Sam
Supportlobby.com - Specialist in Windows Server Management
Spiralbean.com - Custom Software Development

  #5  
Old
Just me
 
Join Date: Sep 2002
Location: Among the corn
Posts: 10,504
There's a REASON your filesystem is mounted as RO. Usually that's because

A> you have bad drives (possible)
B> you have reached critical mass on a partition (usually / or /var) and can't store any more

In order to resolve this, you need to find out which this is
To start with, assuming that the system is up, from ssh , type
Code:
df -m
If ANY of those show up as 100% used, then remount the FS as instructed (see previous posts) and clean it up

If NOT, then you need to reboot the server, and have an fsck run. Do NOT do this while the server is up and running, as this can and WILL cause filesystem issues.

Quote:
mount -o remount,rw /
never just assume that it's ok to remount a file system. That will ONLY complicate issues. Address the issue properly by checking the partition and drives with fsck while the server is rebooting.

  #6  
Old
Web Hosting Guru
 
Join Date: Oct 2003
Location: Aggie Land, Texas
Posts: 334
Thanks guys.

PHP Code:
root@server [~]# df -m
Filesystem           1M-blocks      Used Available Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
                        232643     41724    179102  19
% /
/
dev/sda1                   99        16        79  17% /boot
none                       490         0       490   0
% /dev/shm
/usr/tmpDSK                485        12       448   3% /tmp
/tmp                       485        12       448   3% /var/tmp
root
@server [~]
None of my drives is 100% full. I can't reboot the server, neither via SSH nor WHM.

PHP Code:
n PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
16287 root      19   0  2332  572  504 R  100  0.1 300
:58.93 shutdown 

  #7  
Old
Web Hosting Master
 
Join Date: Oct 2004
Location: Kerala, India
Posts: 4,740
DelPierro,

Best option here is to go for an fask. Check the log files also to see any hardware failing errors.

__________________
David | www.cliffsupport.com
Affordable Server Management Solutions sales AT cliffsupport DOT com
CliffWebManager | Access WHM from iPhone and Android

  #8  
Old
Web Hosting Guru
 
Join Date: Oct 2003
Location: Aggie Land, Texas
Posts: 334
Quote:
Originally Posted by david510 View Post
DelPierro,

Best option here is to go for an fask. Check the log files also to see any hardware failing errors.
What's a fask? Would you please shed some lights on this.

I checked the error log files, and I don't see anything that could possibly mean a hardware failure.

  #9  
Old
Web Host
 
Join Date: Jun 2002
Posts: 1,791
Best option is, as long as it is responding to commands - BACK UP STUFF.
Then worry about fsck'ing it. I assume you mean it won't do a shutdown from the comand line. Before doing a hard reset, I'd back stuff up.

  #10  
Old
Web Hosting Guru
 
Join Date: Oct 2003
Location: Aggie Land, Texas
Posts: 334
I am not too familiar with Linux, could you please advise on a web site/tutorial that would walk me through the backup process?

  #11  
Old
Web Hosting Guru
 
Join Date: Oct 2003
Location: Aggie Land, Texas
Posts: 334
Apparently, I can't backup as well.

PHP Code:
-bashdatabasefile.sqlRead-only file system 

  #12  
Old
Web Hosting Master
 
Join Date: Oct 2004
Location: Kerala, India
Posts: 4,740
Quote:
Originally Posted by DelPierro View Post
What's a fask? Would you please shed some lights on this.
Sorry for the mistake. I meant fsck (File System Check). Yes, if you can backup the data do it first and ask your host to perform an fsck.

__________________
David | www.cliffsupport.com
Affordable Server Management Solutions sales AT cliffsupport DOT com
CliffWebManager | Access WHM from iPhone and Android

  #13  
Old
Web Hosting Guru
 
Join Date: Oct 2003
Location: Aggie Land, Texas
Posts: 334
Quote:
Originally Posted by david510 View Post
Sorry for the mistake. I meant fsck (File System Check). Yes, if you can backup the data do it first and ask your host to perform an fsck.
Thanks.

I don't have the permission to backup, even though I am logged in as root. I am running fsck as I type.

  #14  
Old
Web Hosting Guru
 
Join Date: Oct 2003
Location: Aggie Land, Texas
Posts: 334
I ran fsck, with no luck.

PHP Code:
root@server [~]# fsck
fsck 1.35 (28-Feb-2004)
e2fsck 1.35 (28-Feb-2004)
/
dev/VolGroup00/LogVol00 contains a file system with errorscheck forced.
Pass 1Checking inodesblocks, and sizes
Pass 2
Checking directory structure
Pass 3
Checking directory connectivity
Pass 4
Checking reference counts
Pass 5
Checking group summary information
/dev/VolGroup00/LogVol001031077/30261248 files (1.6non-contiguous), 11630796/60506112 blocks
e2fsck 1.35 
(28-Feb-2004)
/
dev/sda1 is mounted.

WARNING!!!  Running e2fsck on a mounted filesystem may cause
SEVERE filesystem damage
.

Do 
you really want to continue (y/n)? yes

/bootclean44/26104 files19295/104388 blocks 
This is what I get, when I attempt to restart MySQL.

PHP Code:

root
@server [~]# /etc/init.d/mysql restart
Shutting down MySQL/etc/init.d/mysqlline 220kill: (3375) - No such process
...................................                        [FAILED]
rmcannot remove `/var/lock/subsys/mysql': Read-only file system
Starting MySQL                                             [  OK  ]
root@server [~]# 

  #15  
Old
Web Host
 
Join Date: Jun 2002
Posts: 1,791
If it's a cpanel server how old are the backups? If it's a server with paying customers you might want to hire someone instead of going through the learning curve with OPD (other peoples data). I think linux-tech in this thread is one such person.

rsyncing whole partitions to another drive would be what I'd try, if there are no recent backups. It may save you from a real crappy holiday season.

Reply

Related posts from TheWhir.com
Title Type Date Posted
Google Releases Hosted Database Service Cloud SQL to General Availability Web Hosting News 2014-02-12 13:46:02
Google Cloud Provides Support For Native MySQL Connections Web Hosting News 2013-11-01 14:36:06
PHP And MySQL Scaling: Preparing A Startup For Growth Blog 2014-04-24 13:27:35
HostGee Introduces Reseller Hosting Program Web Hosting News 2013-06-12 11:02:08
Researchers Urge System Admins to Check for New Apache Web Server Backdoor Malware Web Hosting News 2013-05-01 11:35:53


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
WHT Host Brief Email:

We respect your privacy. We will never sell, rent, or give away your address to any outside party, ever.

Advertisement:
Web Hosting News:
WHT Membership
WHT Membership



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?