LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 02-28-2013, 12:19 PM   #1
prathamesh7478
LQ Newbie
 
Registered: Feb 2013
Location: Pune
Distribution: Unix,Solaris,Ubuntu.
Posts: 25

Rep: Reputation: Disabled
File /var/adm/messages cannot be read.


Hello Guys,

I am getting following messages from one of our Production Servers


Unusual System Events
=-=-=-=-=-=-=-=-=-=-=
File /var/adm/messages cannot be read.


Can you Help on this,that why i am getting this messages.
 
Old 02-28-2013, 02:31 PM   #2
lrtward
Member
 
Registered: Feb 2011
Distribution: CentOS, Ubuntu
Posts: 97

Rep: Reputation: 9
Can you cat /var/adm/messages?
What are the ownership/permissions on /var/adm/messages?
Where are you seeing "File /var/adm/messages cannot be read."?

Last edited by lrtward; 02-28-2013 at 02:31 PM. Reason: typo
 
Old 02-28-2013, 02:32 PM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,112
Blog Entries: 54

Rep: Reputation: 2784Reputation: 2784Reputation: 2784Reputation: 2784Reputation: 2784Reputation: 2784Reputation: 2784Reputation: 2784Reputation: 2784Reputation: 2784Reputation: 2784
Quote:
Originally Posted by prathamesh7478 View Post
File /var/adm/messages cannot be read.
It could be checking the wrong location (like /var/log/ instead) or the logging / monitoring application hasn't got appropriate access rights, or the file was deleted, or an attempt was made to rotate the log but logrotate couldn't create the file anew because the file system was full already (as in your http://www.linuxquestions.org/questi...ce-4175452117/).


Quote:
Originally Posted by prathamesh7478 View Post
why i am getting this messages.
Your first thread was about copying huge files (let me guess: to /var), your second one was about /var being full so now the reason "why" isn't interesting but why you haven't gone over there yet to fix things good. If you're an admin you should know what to do (else ask an admin) or else spill some serious information like what services the machine runs, what files are open in /var, where there's enough free space to move files to, current space usage in /var, stuff like that.
 
Old 02-28-2013, 02:34 PM   #4
lrtward
Member
 
Registered: Feb 2011
Distribution: CentOS, Ubuntu
Posts: 97

Rep: Reputation: 9
Thumbs up

Quote:
Originally Posted by unSpawn View Post
Your first thread was about copying huge files (let me guess: to /var), your second one was about /var being full ...
Ooohhh, good observation!
 
Old 02-28-2013, 03:06 PM   #5
prathamesh7478
LQ Newbie
 
Registered: Feb 2013
Location: Pune
Distribution: Unix,Solaris,Ubuntu.
Posts: 25

Original Poster
Rep: Reputation: Disabled
thanks irtward,

i canot cat the file it has a message.z exstention,and
i am getting this error through our mail from that particular server.
 
Old 02-28-2013, 03:43 PM   #6
Habitual
Senior Member
 
Registered: Jan 2011
Distribution: Undecided
Posts: 3,146
Blog Entries: 4

Rep: Reputation: 760Reputation: 760Reputation: 760Reputation: 760Reputation: 760Reputation: 760Reputation: 760
Is /var a separate partition mount?
Code:
df -hT /var
You said "Production Servers" were having this issue...
all at the same time? or at once? That is curious.

Please let us know.

JJ
 
Old 02-28-2013, 05:11 PM   #7
prathamesh7478
LQ Newbie
 
Registered: Feb 2013
Location: Pune
Distribution: Unix,Solaris,Ubuntu.
Posts: 25

Original Poster
Rep: Reputation: Disabled
No its a particular production server
/dev/md/dsk/d1 2.0G 1.6G 389M 81% /var
Mounted on var directory.
 
Old 02-28-2013, 07:12 PM   #8
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,261

Rep: Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028
Code:
cd /var/adm
ls -lt messages*
This will show owners/perms and existing messages files.

Your messages.z can be read with zcat, unless its actually messages.Z, in which case use the uncompress cmd.
I'm guessing this is Solaris.

The error msg implies the old messages files has been rotated and the new one one not created or its been deleted or it cannot be created due to a full partition.
Can you run both du and df on that partition and post the results.
It may be a deleted file that is still being held open by a process.
Also run df -i to show the inodes usage.

PS if this has indeed already been solved, please post the soln, otherwise ask the Mods to undo the 'SOLVED' flag.
 
2 members found this post helpful.
Old 03-01-2013, 07:38 AM   #9
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,488

Rep: Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956
Moderator note: thread marked as unsolved, until the OP posts a solution (as requested). @prathamesh7478: as mentioned this thread is strictly related to the other one you started. Please, drive the discussion in only one place (here) to avoid confusion and to add information that can be useful to solve your issue(s). Thank you in advance.
 
Old 03-01-2013, 09:11 AM   #10
linosaurusroot
Member
 
Registered: Oct 2012
Distribution: OpenSuSE,RHEL,Fedora,OpenBSD
Posts: 759
Blog Entries: 2

Rep: Reputation: 196Reputation: 196
/var/adm/ is normal on Solaris but /var/log/ is normal on Linux. Is this message coming from software developed for Solaris?
 
Old 03-01-2013, 12:51 PM   #11
prathamesh7478
LQ Newbie
 
Registered: Feb 2013
Location: Pune
Distribution: Unix,Solaris,Ubuntu.
Posts: 25

Original Poster
Rep: Reputation: Disabled
Hello Guys,thanks for your inputs.

The issue is resolved when we found out the messages file was compress
by some one so its extension had change messages.z.So the process using it could not find it.I just created a normal file messages and the issue was solved the alerts stopped automatically.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
/var/adm/messages vs /var/log/messages gomes1333 Linux - General 1 04-06-2010 04:08 AM
Not updating /var/adm/messages rajaniyer123 Solaris / OpenSolaris 3 10-15-2008 01:56 PM
Not receiving messages in /var/adm/messages oskeewow Solaris / OpenSolaris 2 06-07-2008 12:21 PM
log file not updating - /var/adm/messages vm_devadas Linux - General 5 12-21-2006 10:58 PM
Messages file in /var/adm rust8y Solaris / OpenSolaris 4 10-26-2006 01:46 AM


All times are GMT -5. The time now is 02:22 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration