can't delete sendmail queue


Hi,

 

I am facing following critical issue in our hosted RHEL 4.6 ENT server.

 

I am not able to clean up the sendmail stuck queue messages (causing the error)

 

[root@sjodmrk01p mqueue]# pwd

/var/spool/mqueue

 

[root@***** mqueue]# ls -la

total 188

drwx------   2 root mail  163840 Jul 31 08:00 .

drwxr-xr-x  14 root root    4096 Jun 21  2007 ..

-rw-------   1 root smmsp      0 Jul 28 19:00               dfo6SN0G5m015921

-rw-------   1 root smmsp     43 Jul 31 08:00             dfo6VC01O6016118

-rw-------   1 root smmsp   1130 Jul 31 07:26           qfo6SN0G5m015921

-rw-------   1 root smmsp   1180 Jul 31 08:00           qfo6VC01O6016118

 

[root@******* mqueue]# rm *

rm: remove regular empty file `dfo6SN0G5m015921'? y

rm: cannot remove `dfo6SN0G5m015921': Read-only file system

rm: remove regular file `dfo6VC01O6016118'? y

rm: cannot remove `dfo6VC01O6016118': Read-only file system

rm: remove regular file `qfo6SN0G5m015921'? y

rm: cannot remove `qfo6SN0G5m015921': Read-only file system

rm: remove regular file `qfo6VC01O6016118'? y

rm: cannot remove `qfo6VC01O6016118': Read-only file system

 

[root@******* mqueue]# chmod 777 .

chmod: changing permissions of `.': Read-only file system

 

[root@******* mqueue]# chown root:root .

chown: changing ownership of `.': Read-only file system

 

Please advise?

 

Thanks,

Kumar Shukla

can't delete sendmail queue

Hi,
 
remount / partition in rw mode,
 
mount -o remount,rw /
 
and then try
 
rm -rf /var/spool/mqueue/*
 
Thanks
Deepak

 
On Mon, Aug 2, 2010 at 1:18 PM, Kumar Shukla <kshukla@imany.com> wrote:

Hi,

 

I am facing following critical issue in our hosted RHEL 4.6 ENT server.

 

I am not able to clean up the sendmail stuck queue messages (causing the error)

 

[root@sjodmrk01p mqueue]# pwd

/var/spool/mqueue

 

[root@***** mqueue]# ls -la

total 188

drwx------   2 root mail  163840 Jul 31 08:00 .

drwxr-xr-x  14 root root    4096 Jun 21  2007 ..

-rw-------   1 root smmsp      0 Jul 28 19:00               dfo6SN0G5m015921

-rw-------   1 root smmsp     43 Jul 31 08:00             dfo6VC01O6016118

-rw-------   1 root smmsp   1130 Jul 31 07:26           qfo6SN0G5m015921

-rw-------   1 root smmsp   1180 Jul 31 08:00           qfo6VC01O6016118

 

[root@******* mqueue]# rm *

rm: remove regular empty file `dfo6SN0G5m015921'? y

rm: cannot remove `dfo6SN0G5m015921': Read-only file system

rm: remove regular file `dfo6VC01O6016118'? y

rm: cannot remove `dfo6VC01O6016118': Read-only file system

rm: remove regular file `qfo6SN0G5m015921'? y

rm: cannot remove `qfo6SN0G5m015921': Read-only file system

rm: remove regular file `qfo6VC01O6016118'? y

rm: cannot remove `qfo6VC01O6016118': Read-only file system

 

[root@******* mqueue]# chmod 777 .

chmod: changing permissions of `.': Read-only file system

 

[root@******* mqueue]# chown root:root .

chown: changing ownership of `.': Read-only file system

 

Please advise?

 

Thanks,

Kumar Shukla

--

can't delete sendmail queue

hi Kumar

there all lot of way to remove queue log..

1) sendmail -v -q in root prompt.
it will clear all pending mails. you can also confirm by running mailq command

If you are interested in deleting particular domain or user or recepitience mail, use this command

2) sendmail -qS -v test.com it will delete all mail from *@test.com

3) sendmail -qR -v hotmail.com it will delete all mail from recepient of hotmail

either

4) you follow your same step but before that please stop demon of sendmail.

let us know update........

Regards

Milap Amin

###############################################################################

On Mon, 02 Aug 2010 13:18:22 +0530 wrote
>Hi,I am facing following critical issue in our hosted RHEL 4.6 ENT server.I am not able to clean up the sendmail stuck queue messages (causing the error)[root@sjodmrk01p mqueue]# pwd/var/spool/mqueue[root@***** mqueue]# ls -latotal 188drwx------ 2 root mail 163840 Jul 31 08:00 .drwxr-xr-x 14 root root 4096 Jun 21 2007 ..-rw------- 1 root smmsp 0 Jul 28 19:00 dfo6SN0G5m015921-rw------- 1 root smmsp 43 Jul 31 08:00 dfo6VC01O6016118-rw------- 1 root smmsp 1130 Jul 31 07:26 qfo6SN0G5m015921-rw------- 1 root smmsp 1180 Jul 31 08:00 qfo6VC01O6016118[root@******* mqueue]# rm *rm: remove regular empty file `dfo6SN0G5m015921'? yrm: cannot remove `dfo6SN0G5m015921': Read-only file systemrm: remove regular file `dfo6VC01O6016118'? yrm: cannot remove `dfo6VC01O6016118': Read-only file systemrm: remove regular file `qfo6SN0G5m015921'? yrm: cannot remove `qfo6SN0G5m015921': Read-only file systemrm: remove regular file `qfo6VC01O6016118'? yrm: cannot remove `qfo6VC01O6016118': Read-only file system[root@******* mqueue]# chmod 777 .chmod: changing permissions of `.': Read-only file system[root@******* mqueue]# chown root:root .chown: changing ownership of `.': Read-only file systemPlease advise?Thanks,Kumar Shukla

--
>

>

>

>

>



Regards,

Milap Amin

http://milapamin.wordpress.com/

RE: can't delete sendmail queue


Milap,

 

I ran all but giving same error. This is production server so I can’t remount partition. Even I can’t stop the sendmail service.

 

Please help because this is a production server hosted in SunGard datacenter. 

 

root@sjodmrk01p ~]# service sendmail stop

rm: cannot remove `/var/run/sm-client.pid': Read-only file systemD]

rm: cannot remove `/var/run/sendmail.pid': Read-only file system  ]

rm: cannot remove `/var/lock/subsys/sendmail': Read-only file system

 

[root@sjodmrk01p ~]# sendmail -qS -v imany.com

Running /var/spool/mqueue/o6VC01O6016118 (sequence 1 of 2)

readqf: no control file ./qfo6VC01O6016118: Read-only file system

 

Running /var/spool/mqueue/o6SN0G5m015921 (sequence 2 of 2)

readqf: no control file ./qfo6SN0G5m015921: Read-only file system

 

 

 

Thanks & regards,

 

Kumar

 

From: vglug@googlegroups.com [mailto:vglug@googlegroups.com] On Behalf Of milap
Sent: Monday, August 02, 2010 2:37 PM
To: vglug@googlegroups.com
Subject: Re: [VGLUG] can't delete sendmail queue

 

hi Kumar

there all lot of way to remove queue log..

1) sendmail -v -q in root prompt.
it will clear all pending mails. you can also confirm by running mailq command

If you are interested in deleting particular domain or user or recepitience mail, use this command

2) sendmail -qS -v test.com it will delete all mail from *@test.com

3) sendmail -qR -v hotmail.com it will delete all mail from recepient of hotmail

either

4) you follow your same step but before that please stop demon of sendmail.

let us know update........

Regards

Milap Amin

###############################################################################

On Mon, 02 Aug 2010 13:18:22 +0530 wrote
>Hi,I am facing following critical issue in our hosted RHEL 4.6 ENT server.I am not able to clean up the sendmail stuck queue messages (causing the error)[root@sjodmrk01p mqueue]# pwd/var/spool/mqueue[root@***** mqueue]# ls -latotal 188drwx------ 2 root mail 163840 Jul 31 08:00 .drwxr-xr-x 14 root root 4096 Jun 21 2007 ..-rw------- 1 root smmsp 0 Jul 28 19:00 dfo6SN0G5m015921-rw------- 1 root smmsp 43 Jul 31 08:00 dfo6VC01O6016118-rw------- 1 root smmsp 1130 Jul 31 07:26 qfo6SN0G5m015921-rw------- 1 root smmsp 1180 Jul 31 08:00 qfo6VC01O6016118[root@******* mqueue]# rm *rm: remove regular empty file `dfo6SN0G5m015921'? yrm: cannot remove `dfo6SN0G5m015921': Read-only file systemrm: remove regular file `dfo6VC01O6016118'? yrm: cannot remove `dfo6VC01O6016118': Read-only file systemrm: remove regular file `qfo6SN0G5m015921'? yrm: cannot remove `qfo6SN0G5m015921': Read-only file systemrm: remove regular file `qfo6VC01O6016118'? yrm: cannot remove `qfo6VC01O6016118': Read-only file system[root@******* mqueue]# chmod 777 .chmod: changing permissions of `.': Read-only file system[root@******* mqueue]# chown root:root .chown: changing ownership of `.': Read-only file systemPlease advise?Thanks,Kumar Shukla



--
>

>

>

>

>



Regards,

Milap Amin

http://milapamin.wordpress.com/

--




RE: can't delete sendmail queue

hi Kumar

well you have to once stop service that is good way to proceed in same
and as per as your below mail if i understood right than you also getting error while you stop sendmail service....
please let me emend if i am wrong...

try to kill sendmail process

ps -ef | grep sendmail

than kill all process which running with sendmail

like kill -9 pidno.

than try to remove log from same process..
than
service sendmail start

pls let me know update..

Regards
Milap Amin

####################################################################

On Mon, 02 Aug 2010 16:35:01 +0530 wrote
>Milap,I ran all but giving same error. This is production server so I canâ??t remount partition. Even I canâ??t stop the sendmail service. Please help because this is a production server hosted in SunGard datacenter. root@sjodmrk01p ~]# service sendmail stoprm: cannot remove `/var/run/sm-client.pid': Read-only file systemD]rm: cannot remove `/var/run/sendmail.pid': Read-only file system ]rm: cannot remove `/var/lock/subsys/sendmail': Read-only file system[root@sjodmrk01p ~]# sendmail -qS -v imany.comRunning /var/spool/mqueue/o6VC01O6016118 (sequence 1 of 2)readqf: no control file ./qfo6VC01O6016118: Read-only file systemRunning /var/spool/mqueue/o6SN0G5m015921 (sequence 2 of 2)readqf: no control file ./qfo6SN0G5m015921: Read-only file systemThanks & regards,KumarFrom: vglug@googlegroups.com [mailto:vglug@googlegroups.com] On Behalf Of milap
Sent: Monday, August 02, 2010 2:37 PM
To: vglug@googlegroups.com
Subject: Re: [VGLUG] can't delete sendmail queuehi Kumar

there all lot of way to remove queue log..

1) sendmail -v -q in root prompt.
it will clear all pending mails. you can also confirm by running mailq command

If you are interested in deleting particular domain or user or recepitience mail, use this command

2) sendmail -qS -v test.com it will delete all mail from *@test.com

3) sendmail -qR -v hotmail.com it will delete all mail from recepient of hotmail

either

4) you follow your same step but before that please stop demon of sendmail.

let us know update........

Regards

Milap Amin

###############################################################################

On Mon, 02 Aug 2010 13:18:22 +0530 wrote
>Hi,I am facing following critical issue in our hosted RHEL 4.6 ENT server.I am not able to clean up the sendmail stuck queue messages (causing the error)[root@sjodmrk01p mqueue]# pwd/var/spool/mqueue[root@***** mqueue]# ls -latotal 188drwx------ 2 root mail 163840 Jul 31 08:00 .drwxr-xr-x 14 root root 4096 Jun 21 2007 ..-rw------- 1 root smmsp 0 Jul 28 19:00 dfo6SN0G5m015921-rw------- 1 root smmsp 43 Jul 31 08:00 dfo6VC01O6016118-rw------- 1 root smmsp 1130 Jul 31 07:26 qfo6SN0G5m015921-rw------- 1 root smmsp 1180 Jul 31 08:00 qfo6VC01O6016118[root@******* mqueue]# rm *rm: remove regular empty file `dfo6SN0G5m015921'? yrm: cannot remove `dfo6SN0G5m015921': Read-only file systemrm: remove regular file `dfo6VC01O6016118'? yrm: cannot remove `dfo6VC01O6016118': Read-only file systemrm: remove regular file `qfo6SN0G5m015921'? yrm: cannot remove `qfo6SN0G5m015921': Read-only file systemrm: remove regular file `qfo6VC01O6016118'? yrm: cannot remove `qfo6VC01O6016118': Read-only file system[root@******* mqueue]# chmod 777 .chmod: changing permissions of `.': Read-only file system[root@******* mqueue]# chown root:root .chown: changing ownership of `.': Read-only file systemPlease advise?Thanks,Kumar Shukla

--
>

>

>

>

>

Regards,

Milap Amin

http://milapamin.wordpress.com/--

--
>

>

>

>

>


Regards,

Milap Amin

http://milapamin.wordpress.com/

RE: RE: can't delete sendmail queue


Looks like some problem with HDD.

 

var/log/messsge and dmesg for any error

lost page write due to I/O error on sda3

SCSI error : <0 0 0 0> return code = 0x20008

end_request: I/O error, dev sda, sector 25978016

Buffer I/O error on device sda3, logical block 628657

lost page write due to I/O error on sda3

SCSI error : <0 0 0 0> return code = 0x20008

end_request: I/O error, dev sda, sector 25976992

SCSI error : <0 0 0 0> return code = 0x20008

end_request: I/O error, dev sda, sector 25975968

SCSI error : <0 0 0 0> return code = 0x20008

end_request: I/O error, dev sda, sector 25974944

SCSI error : <0 0 0 0> return code = 0x20008

end_request: I/O error, dev sda, sector 25973920

SCSI error : <0 0 0 0> return code = 0x20008

end_request: I/O error, dev sda, sector 25972896

SCSI error : <0 0 0 0> return code = 0x20008

end_request: I/O error, dev sda, sector

skumar: end_request: I/O error, dev sda, sector 25962648

EXT3-fs error (device sda5) in start_transaction: Journal has aborted

EXT3-fs error (device sda5) in start_transaction: Journal has aborted

EXT3-fs error (device sda5) in start_transaction: Journal has aborted

[root@sjodmrk01p ~]#

 

Thanks & regards,

 

Kumar

 

From: vglug@googlegroups.com [mailto:vglug@googlegroups.com] On Behalf Of milap
Sent: Monday, August 02, 2010 5:33 PM
To: vglug@googlegroups.com
Subject: Re: RE: [VGLUG] can't delete sendmail queue

 

hi Kumar

well you have to once stop service that is good way to proceed in same
and as per as your below mail if i understood right than you also getting error while you stop sendmail service....
please let me emend if i am wrong...

try to kill sendmail process

ps -ef | grep sendmail

than kill all process which running with sendmail

like kill -9 pidno.

than try to remove log from same process..
than
service sendmail start

pls let me know update..

Regards
Milap Amin

####################################################################

On Mon, 02 Aug 2010 16:35:01 +0530 wrote
>Milap,I ran all but giving same error. This is production server so I canâ??t remount partition. Even I canâ??t stop the sendmail service. Please help because this is a production server hosted in SunGard datacenter. root@sjodmrk01p ~]# service sendmail stoprm: cannot remove `/var/run/sm-client.pid': Read-only file systemD]rm: cannot remove `/var/run/sendmail.pid': Read-only file system ]rm: cannot remove `/var/lock/subsys/sendmail': Read-only file system[root@sjodmrk01p ~]# sendmail -qS -v imany.comRunning /var/spool/mqueue/o6VC01O6016118 (sequence 1 of 2)readqf: no control file ./qfo6VC01O6016118: Read-only file systemRunning /var/spool/mqueue/o6SN0G5m015921 (sequence 2 of 2)readqf: no control file ./qfo6SN0G5m015921: Read-only file systemThanks & regards,KumarFrom: vglug@googlegroups.com [mailto:vglug@googlegroups.com] On Behalf Of milap
Sent: Monday, August 02, 2010 2:37 PM
To: vglug@googlegroups.com
Subject: Re: [VGLUG] can't delete sendmail queuehi Kumar

there all lot of way to remove queue log..

1) sendmail -v -q in root prompt.
it will clear all pending mails. you can also confirm by running mailq command

If you are interested in deleting particular domain or user or recepitience mail, use this command

2) sendmail -qS -v test.com it will delete all mail from *@test.com

3) sendmail -qR -v hotmail.com it will delete all mail from recepient of hotmail

either

4) you follow your same step but before that please stop demon of sendmail.

let us know update........

Regards

Milap Amin

###############################################################################

On Mon, 02 Aug 2010 13:18:22 +0530 wrote
>Hi,I am facing following critical issue in our hosted RHEL 4.6 ENT server.I am not able to clean up the sendmail stuck queue messages (causing the error)[root@sjodmrk01p mqueue]# pwd/var/spool/mqueue[root@***** mqueue]# ls -latotal 188drwx------ 2 root mail 163840 Jul 31 08:00 .drwxr-xr-x 14 root root 4096 Jun 21 2007 ..-rw------- 1 root smmsp 0 Jul 28 19:00 dfo6SN0G5m015921-rw------- 1 root smmsp 43 Jul 31 08:00 dfo6VC01O6016118-rw------- 1 root smmsp 1130 Jul 31 07:26 qfo6SN0G5m015921-rw------- 1 root smmsp 1180 Jul 31 08:00 qfo6VC01O6016118[root@******* mqueue]# rm *rm: remove regular empty file `dfo6SN0G5m015921'? yrm: cannot remove `dfo6SN0G5m015921': Read-only file systemrm: remove regular file `dfo6VC01O6016118'? yrm: cannot remove `dfo6VC01O6016118': Read-only file systemrm: remove regular file `qfo6SN0G5m015921'? yrm: cannot remove `qfo6SN0G5m015921': Read-only file systemrm: remove regular file `qfo6VC01O6016118'? yrm: cannot remove `qfo6VC01O6016118': Read-only file system[root@******* mqueue]# chmod 777 .chmod: changing permissions of `.': Read-only file system[root@******* mqueue]# chown root:root .chown: changing ownership of `.': Read-only file systemPlease advise?Thanks,Kumar Shukla



--
>

>

>

>

>



Regards,

Milap Amin

http://milapamin.wordpress.com/--








--
>

>

>

>

>


Regards,

Milap Amin

http://milapamin.wordpress.com/

--




RE: RE: can't delete sendmail queue

hi kumar

yes i agree, it's look like HDD error.

try to use fack without any option

like fsck.ext3 /dev/?

i hope it will help you out...
let me update same

Regards
Milap Amin.

#######################################################

On Mon, 02 Aug 2010 18:11:09 +0530 wrote
>Looks like some problem with HDD.var/log/messsge and dmesg for any errorlost page write due to I/O error on sda3SCSI error : <0 0 0 0> return code = 0x20008end_request: I/O error, dev sda, sector 25978016Buffer I/O error on device sda3, logical block 628657lost page write due to I/O error on sda3SCSI error : <0 0 0 0> return code = 0x20008end_request: I/O error, dev sda, sector 25976992SCSI error : <0 0 0 0> return code = 0x20008end_request: I/O error, dev sda, sector 25975968SCSI error : <0 0 0 0> return code = 0x20008end_request: I/O error, dev sda, sector 25974944SCSI error : <0 0 0 0> return code = 0x20008end_request: I/O error, dev sda, sector 25973920SCSI error : <0 0 0 0> return code = 0x20008end_request: I/O error, dev sda, sector 25972896SCSI error : <0 0 0 0> return code = 0x20008end_request: I/O error, dev sda, sectorskumar: end_request: I/O error, dev sda, sector 25962648EXT3-fs error (device sda5) in start_transaction: Journal has abortedEXT3-fs error (device sda5) in start_transaction: Journal has abortedEXT3-fs error (device sda5) in start_transaction: Journal has aborted[root@sjodmrk01p ~]#Thanks & regards,KumarFrom: vglug@googlegroups.com [mailto:vglug@googlegroups.com] On Behalf Of milap
Sent: Monday, August 02, 2010 5:33 PM
To: vglug@googlegroups.com
Subject: Re: RE: [VGLUG] can't delete sendmail queuehi Kumar

well you have to once stop service that is good way to proceed in same
and as per as your below mail if i understood right than you also getting error while you stop sendmail service....
please let me emend if i am wrong...

try to kill sendmail process

ps -ef | grep sendmail

than kill all process which running with sendmail

like kill -9 pidno.

than try to remove log from same process..
than
service sendmail start

pls let me know update..

Regards
Milap Amin

####################################################################

On Mon, 02 Aug 2010 16:35:01 +0530 wrote
>Milap,I ran all but giving same error. This is production server so I canâ??t remount partition. Even I canâ??t stop the sendmail service. Please help because this is a production server hosted in SunGard datacenter. root@sjodmrk01p ~]# service sendmail stoprm: cannot remove `/var/run/sm-client.pid': Read-only file systemD]rm: cannot remove `/var/run/sendmail.pid': Read-only file system ]rm: cannot remove `/var/lock/subsys/sendmail': Read-only file system[root@sjodmrk01p ~]# sendmail -qS -v imany.comRunning /var/spool/mqueue/o6VC01O6016118 (sequence 1 of 2)readqf: no control file ./qfo6VC01O6016118: Read-only file systemRunning /var/spool/mqueue/o6SN0G5m015921 (sequence 2 of 2)readqf: no control file ./qfo6SN0G5m015921: Read-only file systemThanks & regards,KumarFrom: vglug@googlegroups.com [mailto:vglug@googlegroups.com] On Behalf Of milap
Sent: Monday, August 02, 2010 2:37 PM
To: vglug@googlegroups.com
Subject: Re: [VGLUG] can't delete sendmail queuehi Kumar

there all lot of way to remove queue log..

1) sendmail -v -q in root prompt.
it will clear all pending mails. you can also confirm by running mailq command

If you are interested in deleting particular domain or user or recepitience mail, use this command

2) sendmail -qS -v test.com it will delete all mail from *@test.com

3) sendmail -qR -v hotmail.com it will delete all mail from recepient of hotmail

either

4) you follow your same step but before that please stop demon of sendmail.

let us know update........

Regards

Milap Amin

###############################################################################

On Mon, 02 Aug 2010 13:18:22 +0530 wrote
>Hi,I am facing following critical issue in our hosted RHEL 4.6 ENT server.I am not able to clean up the sendmail stuck queue messages (causing the error)[root@sjodmrk01p mqueue]# pwd/var/spool/mqueue[root@***** mqueue]# ls -latotal 188drwx------ 2 root mail 163840 Jul 31 08:00 .drwxr-xr-x 14 root root 4096 Jun 21 2007 ..-rw------- 1 root smmsp 0 Jul 28 19:00 dfo6SN0G5m015921-rw------- 1 root smmsp 43 Jul 31 08:00 dfo6VC01O6016118-rw------- 1 root smmsp 1130 Jul 31 07:26 qfo6SN0G5m015921-rw------- 1 root smmsp 1180 Jul 31 08:00 qfo6VC01O6016118[root@******* mqueue]# rm *rm: remove regular empty file `dfo6SN0G5m015921'? yrm: cannot remove `dfo6SN0G5m015921': Read-only file systemrm: remove regular file `dfo6VC01O6016118'? yrm: cannot remove `dfo6VC01O6016118': Read-only file systemrm: remove regular file `qfo6SN0G5m015921'? yrm: cannot remove `qfo6SN0G5m015921': Read-only file systemrm: remove regular file `qfo6VC01O6016118'? yrm: cannot remove `qfo6VC01O6016118': Read-only file system[root@******* mqueue]# chmod 777 .chmod: changing permissions of `.': Read-only file system[root@******* mqueue]# chown root:root .chown: changing ownership of `.': Read-only file systemPlease advise?Thanks,Kumar Shukla

--
>

>

>

>

>

Regards,

Milap Amin

http://milapamin.wordpress.com/--

--
>

>

>

>

>

Regards,

Milap Amin

http://milapamin.wordpress.com/--

--
>

>

>

>

>



Regards,

Milap Amin

http://milapamin.wordpress.com/

RE: RE: RE: can't delete sendmail queue


Milap / Tejas,

 

I encountered same issue on this server in last week with vsftpd service and it resolved after rebooting the server. We didn’t realize what went wrong with that so we continued it and today it started with sendmail.

 

Since this is customer’s live server and we need to take downtime for the same.

 

How can I conclude this problem? Which log can give me exact error except /var/log/messages and dmesg? I want to give justification to customer before giving any solution.

 

Look forward your answer..

 

 

Thanks & regards,

 

Kumar

 

From: vglug@googlegroups.com [mailto:vglug@googlegroups.com] On Behalf Of milap
Sent: Monday, August 02, 2010 8:10 PM
To: vglug@googlegroups.com
Subject: Re: RE: RE: [VGLUG] can't delete sendmail queue

 

hi kumar

yes i agree, it's look like HDD error.

try to use fack without any option

like fsck.ext3 /dev/?

i hope it will help you out...
let me update same

Regards
Milap Amin.


#######################################################

On Mon, 02 Aug 2010 18:11:09 +0530 wrote
>Looks like some problem with HDD.var/log/messsge and dmesg for any errorlost page write due to I/O error on sda3SCSI error : return code = 0x20008end_request: I/O error, dev sda, sector 25978016Buffer I/O error on device sda3, logical block 628657lost page write due to I/O error on sda3SCSI error : return code = 0x20008end_request: I/O error, dev sda, sector 25976992SCSI error : return code = 0x20008end_request: I/O error, dev sda, sector 25975968SCSI error : return code = 0x20008end_request: I/O error, dev sda, sector 25974944SCSI error : return code = 0x20008end_request: I/O error, dev sda, sector 25973920SCSI error : return code = 0x20008end_request: I/O error, dev sda, sector 25972896SCSI error : return code = 0x20008end_request: I/O error, dev sda, sectorskumar: end_request: I/O error, dev sda, sector 25962648EXT3-fs error (device sda5) in start_transaction: Journal has abortedEXT3-fs error (device sda5) in start_transaction: Journal has abortedEXT3-fs error (device sda5) in start_transaction: Journal has aborted[root@sjodmrk01p ~]#Thanks & regards,KumarFrom: vglug@googlegroups.com [mailto:vglug@googlegroups.com] On Behalf Of milap
Sent: Monday, August 02, 2010 5:33 PM
To: vglug@googlegroups.com
Subject: Re: RE: [VGLUG] can't delete sendmail queuehi Kumar

well you have to once stop service that is good way to proceed in same
and as per as your below mail if i understood right than you also getting error while you stop sendmail service....
please let me emend if i am wrong...

try to kill sendmail process

ps -ef | grep sendmail

than kill all process which running with sendmail

like kill -9 pidno.

than try to remove log from same process..
than
service sendmail start

pls let me know update..

Regards
Milap Amin

####################################################################

On Mon, 02 Aug 2010 16:35:01 +0530 wrote
>Milap,I ran all but giving same error. This is production server so I canâ??t remount partition. Even I canâ??t stop the sendmail service. Please help because this is a production server hosted in SunGard datacenter. root@sjodmrk01p ~]# service sendmail stoprm: cannot remove `/var/run/sm-client.pid': Read-only file systemD]rm: cannot remove `/var/run/sendmail.pid': Read-only file system ]rm: cannot remove `/var/lock/subsys/sendmail': Read-only file system[root@sjodmrk01p ~]# sendmail -qS -v imany.comRunning /var/spool/mqueue/o6VC01O6016118 (sequence 1 of 2)readqf: no control file ./qfo6VC01O6016118: Read-only file systemRunning /var/spool/mqueue/o6SN0G5m015921 (sequence 2 of 2)readqf: no control file ./qfo6SN0G5m015921: Read-only file systemThanks & regards,KumarFrom: vglug@googlegroups.com [mailto:vglug@googlegroups.com] On Behalf Of milap
Sent: Monday, August 02, 2010 2:37 PM
To: vglug@googlegroups.com
Subject: Re: [VGLUG] can't delete sendmail queuehi Kumar

there all lot of way to remove queue log..

1) sendmail -v -q in root prompt.
it will clear all pending mails. you can also confirm by running mailq command

If you are interested in deleting particular domain or user or recepitience mail, use this command

2) sendmail -qS -v test.com it will delete all mail from *@test.com

3) sendmail -qR -v hotmail.com it will delete all mail from recepient of hotmail

either

4) you follow your same step but before that please stop demon of sendmail.

let us know update........

Regards

Milap Amin

###############################################################################

On Mon, 02 Aug 2010 13:18:22 +0530 wrote
>Hi,I am facing following critical issue in our hosted RHEL 4.6 ENT server.I am not able to clean up the sendmail stuck queue messages (causing the error)[root@sjodmrk01p mqueue]# pwd/var/spool/mqueue[root@***** mqueue]# ls -latotal 188drwx------ 2 root mail 163840 Jul 31 08:00 .drwxr-xr-x 14 root root 4096 Jun 21 2007 ..-rw------- 1 root smmsp 0 Jul 28 19:00 dfo6SN0G5m015921-rw------- 1 root smmsp 43 Jul 31 08:00 dfo6VC01O6016118-rw------- 1 root smmsp 1130 Jul 31 07:26 qfo6SN0G5m015921-rw------- 1 root smmsp 1180 Jul 31 08:00 qfo6VC01O6016118[root@******* mqueue]# rm *rm: remove regular empty file `dfo6SN0G5m015921'? yrm: cannot remove `dfo6SN0G5m015921': Read-only file systemrm: remove regular file `dfo6VC01O6016118'? yrm: cannot remove `dfo6VC01O6016118': Read-only file systemrm: remove regular file `qfo6SN0G5m015921'? yrm: cannot remove `qfo6SN0G5m015921': Read-only file systemrm: remove regular file `qfo6VC01O6016118'? yrm: cannot remove `qfo6VC01O6016118': Read-only file system[root@******* mqueue]# chmod 777 .chmod: changing permissions of `.': Read-only file system[root@******* mqueue]# chown root:root .chown: changing ownership of `.': Read-only file systemPlease advise?Thanks,Kumar Shukla



--
>

>

>

>

>



Regards,

Milap Amin

http://milapamin.wordpress.com/--








--
>

>

>

>

>


Regards,

Milap Amin

http://milapamin.wordpress.com/--








--
>

>

>

>

>



Regards,

Milap Amin

http://milapamin.wordpress.com/

--




RE: RE: can't delete sendmail queue

Hi Kumar,


On Mon, Aug 2, 2010 at 9:37 PM, Kumar Shukla <kshukla@imany.com> wrote:

Milap / Tejas,

There are few possibilities.
1. The Data Cable problem
2. Power cable problem
3. Power supply problem
4. Hard Disk problem itself.

I would suggest do not use the same hard disk change the disk or at least check it properly so it should not happened again.

 

I encountered same issue on this server in last week with vsftpd service and it resolved after rebooting the server. We didn’t realize what went wrong with that so we continued it and today it started with sendmail.

 

 

Thanks & regards,

 

Kumar


Mostly in your case it seems to be temporary power supply problem.


Check the output of UPS.

--
--
Nilesh Vaghela
ElectroMech
Redhat Channel Partner and Training Partner
404, Maulik arcade, Above Karnavati Pagarakha Bazar,
Nr. Mansi cross Road,
Satellite Rd, Ahmedabad

25, The Emperor, Fatehgunj, Baroda.
www.electromech.info

RE: RE: can't delete sendmail queue

Hi Shukla,
 
As every one said it is the hard disk problem..
 
Even i have come across the same issues.. Is your server being hosted in any of the ESX box.. and is the space for the OS is coming from any of the storage LUN or VOLUME if thats the case then the problem is due to the storage box.Even i followed the same step are you mentioned that is the REBOOT of the server. It solved the problem.
 
In my case there was an issue with the filer LUN that was mapped to the VM.
 
I feel there is no problem with the daemon as some said.. It would be really great if the issue is troubleshooted without restarting the server , If resolved please provide us the steps so it will be useful..
 
Regards
Armiar

On Tue, Aug 3, 2010 at 12:03 AM, ElectroMech <electromech@electromech.info> wrote:

Hi Kumar,

On Mon, Aug 2, 2010 at 9:37 PM, Kumar Shukla <kshukla@imany.com> wrote:

Milap / Tejas,

There are few possibilities.
1. The Data Cable problem
2. Power cable problem
3. Power supply problem
4. Hard Disk problem itself.

I would suggest do not use the same hard disk change the disk or at least check it properly so it should not happened again.

 

I encountered same issue on this server in last week with vsftpd service and it resolved after rebooting the server. We didn’t realize what went wrong with that so we continued it and today it started with sendmail.

 

 

Thanks & regards,

 

Kumar


Mostly in your case it seems to be temporary power supply problem.

Check the output of UPS.


--
--
Nilesh Vaghela
ElectroMech
Redhat Channel Partner and Training Partner
404, Maulik arcade, Above Karnavati Pagarakha Bazar,
Nr. Mansi cross Road,
Satellite Rd, Ahmedabad

25, The Emperor, Fatehgunj, Baroda.
www.electromech.info



--





RE: can't delete sendmail queue

Hello,


On Mon, Aug 2, 2010 at 6:11 PM, Kumar Shukla <kshukla@imany.com> wrote:

Looks like some problem with HDD.

 

var/log/messsge and dmesg for any error

lost page write due to I/O error on sda3

SCSI error : <0 0 0 0> return code = 0x20008

end_request: I/O error, dev sda, sector 25978016

Buffer I/O error on device sda3, logical block 628657

lost page write due to I/O error on sda3

SCSI error : <0 0 0 0> return code = 0x20008

end_request: I/O error, dev sda, sector 25976992

SCSI error : <0 0 0 0> return code = 0x20008

end_request: I/O error, dev sda, sector 25975968

SCSI error : <0 0 0 0> return code = 0x20008

end_request: I/O error, dev sda, sector 25974944

SCSI error : <0 0 0 0> return code = 0x20008

end_request: I/O error, dev sda, sector 25973920

SCSI error : <0 0 0 0> return code = 0x20008

end_request: I/O error, dev sda, sector 25972896

SCSI error : <0 0 0 0> return code = 0x20008

end_request: I/O error, dev sda, sector

skumar: end_request: I/O error, dev sda, sector 25962648

EXT3-fs error (device sda5) in start_transaction: Journal has aborted

EXT3-fs error (device sda5) in start_transaction: Journal has aborted

EXT3-fs error (device sda5) in start_transaction: Journal has aborted

[root@sjodmrk01p ~]#


Yes, You are right. It looks like HDD issue.

Can you execute some other command like su - , ls , ls -l, tail -f /var/log/secure ?

Or you can do 1 thing but it's risky. If server or pc is not critical then you can restart it once and you can repair your file system using fsck but remember it's risky again. May this solve your problem. But it can also destroy your system so be careful while doing this.
 

 

Thanks & regards,

 

Kumar

 

From: vglug@googlegroups.com [mailto:vglug@googlegroups.com] On Behalf Of milap

Sent: Monday, August 02, 2010 5:33 PM
To: vglug@googlegroups.com
Subject: Re: RE: [VGLUG] can't delete sendmail queue

 

hi Kumar

well you have to once stop service that is good way to proceed in same
and as per as your below mail if i understood right than you also getting error while you stop sendmail service....

please let me emend if i am wrong...

try to kill sendmail process

ps -ef | grep sendmail

than kill all process which running with sendmail

like kill -9 pidno.

than try to remove log from same process..

than
service sendmail start

pls let me know update..

Regards
Milap Amin

####################################################################

On Mon, 02 Aug 2010 16:35:01 +0530 wrote

>Milap,I ran all but giving same error. This is production server so I canâ??t remount partition. Even I canâ??t stop the sendmail service. Please help because this is a production server hosted in SunGard datacenter. root@sjodmrk01p ~]# service sendmail stoprm: cannot remove `/var/run/sm-client.pid': Read-only file systemD]rm: cannot remove `/var/run/sendmail.pid': Read-only file system ]rm: cannot remove `/var/lock/subsys/sendmail': Read-only file system[root@sjodmrk01p ~]# sendmail -qS -v imany.comRunning /var/spool/mqueue/o6VC01O6016118 (sequence 1 of 2)readqf: no control file ./qfo6VC01O6016118: Read-only file systemRunning /var/spool/mqueue/o6SN0G5m015921 (sequence 2 of 2)readqf: no control file ./qfo6SN0G5m015921: Read-only file systemThanks & regards,KumarFrom: vglug@googlegroups.com [mailto:vglug@googlegroups.com] On Behalf Of milap

Sent: Monday, August 02, 2010 2:37 PM
To: vglug@googlegroups.com
Subject: Re: [VGLUG] can't delete sendmail queuehi Kumar

there all lot of way to remove queue log..


1) sendmail -v -q in root prompt.
it will clear all pending mails. you can also confirm by running mailq command

If you are interested in deleting particular domain or user or recepitience mail, use this command


2) sendmail -qS -v test.com it will delete all mail from *@test.com

3) sendmail -qR -v hotmail.com it will delete all mail from recepient of hotmail


either

4) you follow your same step but before that please stop demon of sendmail.

let us know update........

Regards

Milap Amin

###############################################################################


On Mon, 02 Aug 2010 13:18:22 +0530 wrote
>Hi,I am facing following critical issue in our hosted RHEL 4.6 ENT server.I am not able to clean up the sendmail stuck queue messages (causing the error)[root@sjodmrk01p mqueue]# pwd/var/spool/mqueue[root@***** mqueue]# ls -latotal 188drwx------ 2 root mail 163840 Jul 31 08:00 .drwxr-xr-x 14 root root 4096 Jun 21 2007 ..-rw------- 1 root smmsp 0 Jul 28 19:00 dfo6SN0G5m015921-rw------- 1 root smmsp 43 Jul 31 08:00 dfo6VC01O6016118-rw------- 1 root smmsp 1130 Jul 31 07:26 qfo6SN0G5m015921-rw------- 1 root smmsp 1180 Jul 31 08:00 qfo6VC01O6016118[root@******* mqueue]# rm *rm: remove regular empty file `dfo6SN0G5m015921'? yrm: cannot remove `dfo6SN0G5m015921': Read-only file systemrm: remove regular file `dfo6VC01O6016118'? yrm: cannot remove `dfo6VC01O6016118': Read-only file systemrm: remove regular file `qfo6SN0G5m015921'? yrm: cannot remove `qfo6SN0G5m015921': Read-only file systemrm: remove regular file `qfo6VC01O6016118'? yrm: cannot remove `qfo6VC01O6016118': Read-only file system[root@******* mqueue]# chmod 777 .chmod: changing permissions of `.': Read-only file system[root@******* mqueue]# chown root:root .chown: changing ownership of `.': Read-only file systemPlease advise?Thanks,Kumar Shukla




--
>

>

>

>

>



Regards,

Milap Amin

http://milapamin.wordpress.com/--









--
>

>

>

>

>


Regards,

Milap Amin

http://milapamin.wordpress.com/

--







--
Thanks & Regards,

Tejas Barot
Linux Administrator,
Red Hat Certified Engineer,
Linux Blog:- http://blog.ask4itsolutions.com
Open Source :- http://opensource.ask4itsolutions.com


Registered Linux User :- http://counter.li.org/cgi-bin/runscript/display-person.cgi?user=507586

"Those who says Linux is not User Friendly that means,

They don't want to be a Expert USER or,
They don't want to get Friendly with Expert FRIEND - Tejas Barot"