HELP!! squid dead, /var: Read-only & smartd is confusing
by laurence orchard
Hi all
when trying to access the web through firefox I get an access denyed
error from the proxy server.
I have tried to restart squid as listed below and get the following
errors:-
[root@athlon init.d]# cd /etc/init.d
[root@athlon init.d]# ./squid status
squid dead but pid file exists
squid: ERROR: Could not send signal 0 to process 2828: (3) No such
process
[root@athlon init.d]# ./squid stop
Stopping squid: ./squid: line 84: /var/log/squid/squid.out: Read-only
file system
[FAILED]
[root@athlon init.d]# echo temp > /var/temp
bash: /var/temp: Read-only file system
[root@athlon init.d]# mount
/dev/hda4 on / type ext3 (rw)
none on /proc type proc (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/hda1 on /boot type ext3 (rw)
none on /dev/shm type tmpfs (rw)
/dev/hdg1 on /usr type ext3 (rw)
/dev/hde3 on /var type ext3 (rw)
/dev/hde1 on /home type ext3 (rw)
/dev/hdf1 on /mnt/hdf type ext3 (rw)
/dev/hdh1 on /tracks type ext3 (rw)
/dev/hda3 on /windows/C type vfat (rw,uid=500,gid=500,umask=000)
/dev/hde2 on /windows/D type ext3 (rw)
/dev/hdg2 on /windows/E type vfat (rw,uid=500,gid=500,umask=000)
/dev/hda5 on /windows/F type vfat (rw,uid=500,gid=500,umask=000)
/dev/hda6 on /windows/G type vfat (rw,uid=500,gid=500,umask=000)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
/proc on /var/named/chroot/proc type none (rw,bind)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
//athlon-64/athlon-64(C) on /athlon-64/C type smbfs (0)
automount(pid2195) on /net type autofs
(rw,fd=4,pgrp=2195,minproto=2,maxproto=4)nfsd on /proc/fs/nfsd type nfsd
(rw)
mount obviously sees /var on /dev/hde3 as read-write
on the last reboot I got the following messages in /var/log/messages:-
Feb 17 15:12:31 localhost smartd[2202]: smartd version 5.33
[i386-redhat-linux-gnu] Copyright (C) 2002-4 Bruce Allen
Feb 17 15:12:31 localhost smartd[2202]: Home page is
http://smartmontools.sourceforge.net/
Feb 17 15:12:31 localhost smartd[2202]: Opened configuration
file /etc/smartd.conf
Feb 17 15:12:31 localhost smartd[2202]: Configuration
file /etc/smartd.conf parsed.
Feb 17 15:12:31 localhost smartd[2202]: Device: /dev/hda, opened
Feb 17 15:12:31 localhost smartd[2202]: Device: /dev/hda, not found in
smartd database.
Feb 17 15:12:31 localhost smartd[2202]: Device: /dev/hda, is SMART
capable. Adding to "monitor" list.
Feb 17 15:12:31 localhost smartd[2202]: Device: /dev/hde, opened
Feb 17 15:12:31 localhost smartd[2202]: Device: /dev/hde, found in
smartd database.
Feb 17 15:12:32 localhost smartd[2202]: Device: /dev/hde, is SMART
capable. Adding to "monitor" list.
Feb 17 15:12:32 localhost smartd[2202]: Device: /dev/hdf, opened
Feb 17 15:12:32 localhost smartd[2202]: Device: /dev/hdf, found in
smartd database.
Feb 17 15:12:32 localhost smartd[2202]: Device: /dev/hdf, is SMART
capable. Adding to "monitor" list.
Feb 17 15:12:32 localhost smartd[2202]: Device: /dev/hdg, opened
Feb 17 15:12:32 localhost smartd[2202]: Device: /dev/hdg, found in
smartd database.
Feb 17 15:12:33 localhost smartd[2202]: Device: /dev/hdg, is SMART
capable. Adding to "monitor" list.
Feb 17 15:12:33 localhost smartd[2202]: Device: /dev/hdh, opened
Feb 17 15:12:33 localhost smartd[2202]: Device: /dev/hdh, found in
smartd database.
Feb 17 15:12:33 localhost smartd[2202]: Device: /dev/hdh, is SMART
capable. Adding to "monitor" list.
Feb 17 15:12:33 localhost smartd[2202]: Monitoring 5 ATA and 0 SCSI
devices
Feb 17 15:12:33 localhost smartd[2202]: Device: /dev/hde, 1 Currently
unreadable (pending) sectors
Feb 17 15:12:33 localhost smartd[2202]: Sending warning via mail to
root(a)localhost.localdomain ...
Feb 17 15:13:36 localhost smartd[2202]: Warning via mail to
root(a)localhost.localdomain: successful
Feb 17 15:13:36 localhost smartd[2202]: Device: /dev/hdf, 1 Currently
unreadable (pending) sectors
Feb 17 15:13:36 localhost smartd[2202]: Sending warning via mail to
root(a)localhost.localdomain ...
Feb 17 15:14:36 localhost smartd[2202]: Warning via mail to
root(a)localhost.localdomain: successful
Feb 17 15:14:36 localhost smartd[2202]: Device: /dev/hdf, 1 Offline
uncorrectable sectors
Feb 17 15:14:36 localhost smartd[2202]: Sending warning via mail to
root(a)localhost.localdomain ...
Feb 17 15:15:37 localhost smartd[2202]: Warning via mail to
root(a)localhost.localdomain: successful
Feb 17 15:15:37 localhost smartd[2202]: Device: /dev/hdg, 2 Currently
unreadable (pending) sectors
Feb 17 15:15:37 localhost smartd[2202]: Sending warning via mail to
root(a)localhost.localdomain ...
Feb 17 15:16:37 localhost smartd[2202]: Warning via mail to
root(a)localhost.localdomain: successful
Feb 17 15:16:38 localhost smartd[2621]: smartd has fork()ed into
background mode. New PID=2621.
Feb 17 17:16:38 localhost smartd[2621]: Device: /dev/hde, 1 Currently
unreadable (pending) sectors
Feb 17 17:16:39 localhost smartd[2621]: Device: /dev/hdf, 1 Currently
unreadable (pending) sectors
Feb 17 17:16:39 localhost smartd[2621]: Device: /dev/hdf, 1 Offline
uncorrectable sectors
Feb 17 17:16:39 localhost smartd[2621]: Device: /dev/hdg, 2 Currently
unreadable (pending) sectors
Feb 17 17:46:39 localhost smartd[2621]: Device: /dev/hde, 1 Currently
unreadable (pending) sectors
Feb 17 17:46:39 localhost smartd[2621]: Device: /dev/hdf, 1 Currently
unreadable (pending) sectors
Feb 17 17:46:39 localhost smartd[2621]: Device: /dev/hdf, 1 Offline
uncorrectable sectors
Feb 17 17:46:40 localhost smartd[2621]: Device: /dev/hdg, 2 Currently
unreadable (pending) sectors
since this last reboot everything seemed to run OK until this morning
the last part of /var/log/messages reads:-
Feb 22 08:01:01 localhost kernel: SMB connection re-established (-5)
Feb 22 08:16:39 localhost smartd[2621]: Device: /dev/hde, 1 Currently
unreadable (pending) sectors
Feb 22 08:16:49 localhost kernel: hdf: irq timeout: status=0xd0 { Busy }
Feb 22 08:16:49 localhost kernel: ide: failed opcode was: 0xb0
Feb 22 08:16:49 localhost smartd[2621]: Device: /dev/hdf, not capable of
SMART self-check
Feb 22 08:17:03 localhost kernel: hdf: irq timeout: status=0xd0 { Busy }
Feb 22 08:17:03 localhost kernel: ide: failed opcode was: 0xb0
Feb 22 08:17:03 localhost smartd[2621]: Device: /dev/hdg, 2 Currently
unreadable (pending) sectors
Feb 22 08:46:38 localhost smartd[2621]: Device: /dev/hde, 1 Currently
unreadable (pending) sectors
Feb 22 08:46:54 localhost kernel: hdf: irq timeout: status=0xd0 { Busy }
Feb 22 08:46:54 localhost kernel: ide: failed opcode was: 0xb0
Feb 22 08:46:55 localhost smartd[2621]: Device: /dev/hdg, 2 Currently
unreadable (pending) sectors
Feb 22 09:01:01 localhost mount.smbfs[2049]:
[2006^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
is it smartd?
how can I clear the 'unreadable (pending) sectors'?
I have done a mkfs on /dev/hdf1 &
I have tried running fsck on /dev/hdf1 with the -c -c options but it
finds no errors.
the partition/file system is empty of data.
anyone got any ideas what is going on?
laurence
18 years, 2 months
Re: samba shares in FC4
by Louis Garcia
> > Yes it was a typo.
> >
> > Your suggestion didn't help. I know I have the conf file right because
> > if I change the public share to something under / like /boot it works
> > fine. But because /data is a separate partition I'm having trouble.
>
> My initial thought was that it would be an SELinux issue, which could be
> fixed by doing:
>
> # chcon -R -t samba_share_t /data/public
>
> (see "man samba_selinux")
>
> but since you say it works for /boot I guess you've turned off SELinux.
I miss spoke, I do have selinux on and couldn't share boot either. Since
I turned selinux off everything is working fine.
I would like to have selinux. I did:
# chcon -R -t samba_share_t /data/public
which didn't help. The man page has it slightly different. At least I know
what the problem is.
Any suggestions?
18 years, 2 months
error when install maple 10
by Nguyen Danh Hieu
There was an error when I tried to install maple under FC4. Plz help me out
Thanks you
=============
[root@hieu hieu]# /mnt/cdrom/installMapleLinuxSU
Preparing to install...
Extracting the JRE from the installer archive...
Unpacking the JRE...
Extracting the installation resources from the installer archive...
Configuring the installer for this system's environment...
awk: cmd. line:6: warning: escape sequence `\.' treated as plain `.'
Launching installer...
Invocation of this Java Application has caused an InvocationTargetException.
This application will now exit. (LAX)
Stack Trace:
java.lang.UnsatisfiedLinkError:
/tmp/install.dir.3668/Linux/resource/jre/lib/i386/libawt.so:
/tmp/install.dir.3668/Linux/resource/jre/lib/i386/libawt.so: cannot restore
segment prot after reloc: Permission denied
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at sun.security.action.LoadLibraryAction.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.awt.NativeLibLoader.loadLibraries(Unknown Source)
at sun.awt.DebugHelper.<clinit>(Unknown Source)
at java.awt.Component.<clinit>(Unknown Source)
at com.zerog.ia.installer.Main.d(DashoA8113)
at com.zerog.ia.installer.Main.a(DashoA8113)
at com.zerog.ia.installer.Main.main(DashoA8113)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.zerog.lax.LAX.launch(DashoA8113)
at com.zerog.lax.LAX.main(DashoA8113)
This Application has Unexpectedly Quit: Invocation of this Java Application
has caused an InvocationTargetException. This application will now exit.
(LAX)
--
===================
Nguyen Danh Hieu
Physics Faculty
Moscow State University
18 years, 2 months
Unsigned rpm's
by david walcroft
How do I handle unsigned rpm's,I've got two holding up 645M of updates.
Pango and libpixman, [FC 4]
Thanks david
18 years, 2 months
RPM command not working properly
by Prasad H.L.
Hi,
I am using FC4. I downloaded the updates from
download.fedora.redhat.com and tried to run the
command "rpm -Uvh *.rpm" on the RPM files. But, it
gave a complaint that -
"error: error reading from file
cman-kernel-2.6.11.5-20050601.152643.FC4.18.i686.rpm".
I checked that file separately using the RPM command
and found that the file is OK. Then, I found that
there are two files with same name and version but
different architectures i586 and i686.
I ran the rpm command again using "rpm -Uvvh *.rpm"
and got the following output :
.
.
.
D: ==============
cman-kernel-2.6.11.5-20050601.152643.FC4.18.i586.rpm
D: Expected size: 149983 =
lead(96)+sigs(344)+pad(0)+data(149543)
D: Actual size: 149983
D: opening db environment /var/lib/rpm/Packages
joinenv
D: opening db index /var/lib/rpm/Packages
rdonly mode=0x0
D: locked db index /var/lib/rpm/Packages
D: opening db index /var/lib/rpm/Pubkeys rdonly
mode=0x0
warning:
cman-kernel-2.6.11.5-20050601.152643.FC4.18.i586.rpm:
Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
D: opening db index /var/lib/rpm/Providename
rdonly mode=0x0
D: read h# 1602 Header V3 DSA signature: NOKEY,
key ID 4f2a6fd2
D: added binary package [0]
D: ==============
cman-kernel-2.6.11.5-20050601.152643.FC4.18.i686.rpm
D: Expected size: 150181 =
lead(96)+sigs(344)+pad(0)+data(149741)
D: Actual size: 150181
D:
cman-kernel-2.6.11.5-20050601.152643.FC4.18.i686.rpm:
Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
warning: package cman-kernel =
2.6.11.5-20050601.152643.FC4.18 was already added,
skipping cman-kernel < 2.6.11.5-20050601.152643.FC4.18
error: error reading from file
cman-kernel-2.6.11.5-20050601.152643.FC4.18.i686.rpm
--
This suggests that the file is read but still it
complains.
The same thing happened with files like
hal-0.5.2-2.fc4.1.i386.rpm
hal-0.5.2-2.fc4.i386.rpm
which has different release name.
Can somebody suggest a suitable solution ?
Thanks in advance.
With regards,
Prasad H. L.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
18 years, 2 months
cannot install maple
by Nguyen Danh Hieu
program Maple10 on my machine suddenly doesn't work ( i dont understand why
) so I deciced to reinstall but the errors below are shown. Plz help me out
!
[root@hieu Setup]# ./maple.linux.v10.installer.bin
Preparing to install...
Extracting the JRE from the installer archive...
Unpacking the JRE...
Extracting the installation resources from the installer archive...
Configuring the installer for this system's environment...
awk: cmd. line:6: warning: escape sequence `\.' treated as plain `.'
Launching installer...
Invocation of this Java Application has caused an InvocationTargetException.
This application will now exi
Stack Trace:
java.lang.UnsatisfiedLinkError:
/tmp/install.dir.2538/Linux/resource/jre/lib/i386/libawt.so:
/tmp/install.ore segment prot after reloc: Permission denied
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at sun.security.action.LoadLibraryAction.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.awt.NativeLibLoader.loadLibraries(Unknown Source)
at sun.awt.DebugHelper.<clinit>(Unknown Source)
at java.awt.Component.<clinit>(Unknown Source)
at com.zerog.ia.installer.Main.d(DashoA8113)
at com.zerog.ia.installer.Main.a(DashoA8113)
at com.zerog.ia.installer.Main.main(DashoA8113)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.zerog.lax.LAX.launch(DashoA8113)
at com.zerog.lax.LAX.main(DashoA8113)
This Application has Unexpectedly Quit: Invocation of this Java Application
has caused an InvocationTar
--
===================
Nguyen Danh Hieu
Physics Faculty
Moscow State University
18 years, 2 months
re: moving to new laptop
by Eric Mesa
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
also be sure to copy your home directory and [most of] your programs
will retain the settings and custimizations you have done over time.
As long as you're copying the . files, it should work.
- --
Eric Mesa
ericsbinaryworld(a)gmail.com
http://www.ericsbinaryworld.com
Note: All emails from this address should have a GPG signature. If
you have the proper setup you can use this to confirm my identity and
that the email was not changed in transit.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
iD8DBQFEAMdSPvU+8ApmWXIRAs/0AKCXxSelj+VozM77FphOan0IEleWSACfeYEv
bXDjl8DdryjZUDLM6dCkH0E=
=2HG6
-----END PGP SIGNATURE-----
18 years, 2 months