Results 1 to 17 of 17
-
11-22-2007, 06:41 PM #1Web 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.
lynx: Can't access startfile http://localhost/server-status
root@server [~]#
PHP Code:root@server [~]# /etc/init.d/mysql reload
/etc/init.d/mysql: line 244: kill: (3375) - No such process
touch: cannot touch `/var/lib/mysql/server.lubnan.us.pid': Read-only file system
-
11-22-2007, 06:45 PM #2Disabled
- Join Date
- Apr 2005
- Location
- Cochin
- Posts
- 2,452
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?
-
11-22-2007, 06:47 PM #3Web Hosting Guru
- Join Date
- Oct 2003
- Location
- Aggie Land, Texas
- Posts
- 334
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 [~]#
2. Are you able to touch/ create a file in your server?
PHP Code:root@server [~]# mkdir test
mkdir: cannot create directory `test': Read-only file system
root@server [~]#
-
11-22-2007, 07:14 PM #4Disabled
- Join Date
- Apr 2005
- Location
- Cochin
- Posts
- 2,452
-
11-22-2007, 07:25 PM #5
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 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.
mount -o remount,rw /Tom Whiting, WHMCS Guru extraordinaire
Linux problems? WHMCS Problems? Give me a shout
Check out my WHMCS Addons
-
11-22-2007, 08:47 PM #6Web 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 [~]#
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
-
11-22-2007, 09:09 PM #7Web Hosting Master
- Join Date
- Oct 2004
- Location
- Kerala, India
- Posts
- 4,771
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
-
11-22-2007, 09:56 PM #8Web Hosting Guru
- Join Date
- Oct 2003
- Location
- Aggie Land, Texas
- Posts
- 334
-
11-22-2007, 10:00 PM #9Web Host
- Join Date
- Jun 2002
- Posts
- 1,798
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.
-
11-22-2007, 10:03 PM #10Web 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-22-2007, 10:08 PM #11Web Hosting Guru
- Join Date
- Oct 2003
- Location
- Aggie Land, Texas
- Posts
- 334
Apparently, I can't backup as well.
PHP Code:-bash: databasefile.sql: Read-only file system
-
11-22-2007, 10:10 PM #12Web Hosting Master
- Join Date
- Oct 2004
- Location
- Kerala, India
- Posts
- 4,771
David | www.cliffsupport.com
Affordable Server Management Solutions sales AT cliffsupport DOT com
CliffWebManager | Access WHM from iPhone and Android
-
11-22-2007, 10:14 PM #13Web Hosting Guru
- Join Date
- Oct 2003
- Location
- Aggie Land, Texas
- Posts
- 334
-
11-22-2007, 10:25 PM #14Web 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 errors, check forced.
Pass 1: Checking inodes, blocks, 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/LogVol00: 1031077/30261248 files (1.6% non-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
/boot: clean, 44/26104 files, 19295/104388 blocks
PHP Code:
root@server [~]# /etc/init.d/mysql restart
Shutting down MySQL/etc/init.d/mysql: line 220: kill: (3375) - No such process
................................... [FAILED]
rm: cannot remove `/var/lock/subsys/mysql': Read-only file system
Starting MySQL [ OK ]
root@server [~]#
-
11-22-2007, 11:04 PM #15Web Host
- Join Date
- Jun 2002
- Posts
- 1,798
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.
-
11-22-2007, 11:09 PM #16WHT Addict
- Join Date
- May 2007
- Posts
- 129
You should ask your datacenter to run an fsck as it was already mentioned, if the disk report as damaged, the would be able to provide you a new one, and you may ask they leave the disk as a second drive so you can restore the data to the new disk.
I would recommend you hire a company to do it of you are not familiar with these kind of issues.
Regards,
-
11-22-2007, 11:24 PM #17Web Hosting Guru
- Join Date
- Oct 2003
- Location
- Aggie Land, Texas
- Posts
- 334
Thanks guys for your help.
I will see what my provider can do for me, if I have to hire an experienced Linux person, I will come here to look for someone.
I don't have any customers ... I run my business site along with few personal sites, hence, I don't mind the downtime as long as the data are recoverable.