- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- dmesg --> how clear the messages
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2003 10:50 PM
08-21-2003 10:50 PM
dmesg --> how clear the messages
I am trying to clear my dmesg from an old D380 running 11.00
I have cleared both /var/adm/messages and msgbuf with >
I have done dmesg -c ( It only fills the msgbuf again )
# /usr/sbin/dmesg - >>/var/adm/messages
# /usr/sbin/dmesg >>/var/adm/messages
# /usr/sbin/dmesg >/var/adm/messages
I even tried
# echo "OK" > /dev/kmem
I have read ( and tried the thread copied underneath )
Nothing worked and I can't reboot this machine.
Any tips?
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x46a093e260b0d611abdb0090277a778c,00.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2003 10:53 PM
08-21-2003 10:53 PM
Re: dmesg --> how clear the messages
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2003 02:03 AM
08-22-2003 02:03 AM
Re: dmesg --> how clear the messages
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2003 02:08 AM
08-22-2003 02:08 AM
Re: dmesg --> how clear the messages
When you say "Nothing worked and I can't reboot this machine", what exactly seems to be the problem? Do you get error messages? Does the reboot hang? Does the shutdown hang? Can you be more specific?
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2003 02:57 AM
08-22-2003 02:57 AM
Re: dmesg --> how clear the messages
HP asked me to re-seat all connections. I did. But it took 5 reboots for the machine to work.
I don't wanna do that again. It has to work for just 6 more weeks, then it is going to be fased-out.
But if you check the machine with all the tools nothing is wrong.
Everything synced, see the txt attach.
So I'd like the machine to go down feeling happy. With an empty dmesg.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2003 03:30 AM
08-22-2003 03:30 AM
Re: dmesg --> how clear the messages
0x038000 --> /dev/dsk/c3t8d0
Test it with dd to see if it still has a problem:
Test the disk with dd.
# dd if=/dev/dsk/c3t8d0 of=/dev/null bs=64 count=1000
If successful, the results of this command will look similar to:
100+0 records in
100+0 records out
Look for any of the following:
* IO errors
* the number of blocks read in do not match was is read out
* the command hangs or immediately produces an error
# diskinfo /dev/rdsk/c3t8d0
Look for any of the following which indicate a HW problem:
* the command produces an error
* disk size reports zero or is incorrect
See if you have additional errors in /var/adm/syslog/syslog.log
It still looks like a HW problem so far even though they may have replaced the disk.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2003 03:40 AM
08-22-2003 03:40 AM
Re: dmesg --> how clear the messages
Once again, the contents of dmesg will not affect your ability to reboot. As Cheryl points out, you seem to still have issues with one disk. Use her "dd" suggestion to exercise that disk and see if it fails. It may well have to be replaced again.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2003 10:05 PM
08-24-2003 10:05 PM
Re: dmesg --> how clear the messages
(mowdb016)/var/adm # dd if=/dev/rdsk/c3t8d0 of=/dev/null bs=4096k &
(mowdb016)/var/adm # 2170+1 records in
2170+1 records out
# diskinfo /dev/rdsk/c3t8d0
SCSI describe of /dev/rdsk/c3t8d0:
vendor: SEAGATE
product id: ST39173WC
type: direct access
size: 8891556 Kbytes
bytes per sector: 512
Thanks 4 all your help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2003 11:03 PM
08-24-2003 11:03 PM
Re: dmesg --> how clear the messages
00,10,20,30,40,50 * * * * /usr/sbin/dmesg - >> /var/adm/messages
Be sure you use the - flag. This makes dmesg scan the buffer for new info and if none is found, nothing is reported. Actually, I prefer /var/adm/dmesg.log since it makes more sense but other Unices seem to use the 'messages' filename...must be some legacy thingy.
Bill Hassell, sysadmin