Logs under /var/stm/logs/os in HPUX
Ever wondered why /var/stm/logs/os
is taking up huge space in /var
mount point of HPUX? In this post, we will see details about logs under this directory and how to handle them.
Most of the time you get /var
getting full alerts from your monitoring system or you observe /var
is filling up. This is normal behavior since most of the logs reside in /var
and if some logs are growing fast they cause /var
filling up fast. As a first troubleshooting step, you need to check huge size files and directories in /var
.
(资料图片)
Many times you see one of the culprit is /var/stm/logs/os
directory. If you see inside this directory you will see something like below :
# ls -lrt /var/stm/logs/os total 6986016 -rw-r--r-- 1 root root 512656 Apr 10 2008 log1.raw -rw-r--r-- 1 root root 512656 Apr 10 2008 log2.raw -rw-r--r-- 1 root root 512656 Apr 10 2008 log3.raw -rw-r--r-- 1 root root 512656 Apr 11 2008 log4.raw -rw-r--r-- 1 root root 512656 Apr 11 2008 log5.raw -rw-r--r-- 1 root root 512656 Apr 11 2008 log6.raw -rw-r--r-- 1 root root 512656 Apr 11 2008 log7.raw ----- ouput clipped ----- |
There are lots of raw log files taking up huge space collectively.
What are these logs under/var/stm/logs/os :Your next question will be what are these files? what is the purpose of these files on the server?
These are raw files that are being logged and used by STM i.e. support tool manager. Those are logs collected by STM which has information about your hardware issues. By the above output, you can see those are rotated when one log file crosses a certain file size. While rotating they are sequentially numbered. This numbering makes it easy when it comes to managing those logs.
How to read these logs :You can read these logs using log viewer by STM. Goto CSTM console
using command cstm
–
# /usr/sbin/cstm Running Command File (https: //z5 . /usr/sbin/stm/ui/config/ .stmrc). -- Information -- Support Tools Manager Version A.59.05 Product Number B4708AA (C) Copyright Hewlett Packard Co. 1995-2007 All Rights Reserved Use of this program is subject to the licensing restrictions described in "Help-->On Version" . HP shall not be liable for any damages resulting from misuse or unauthorized use of this program. cstm> |
Then run ru
and select logtool
utility.
cstm>ru -- Run Utility -- Select Utility 1 MOutil 2 logtool Enter selection or cancel to quit : 2 -- Logtool Utility -- To View a Summary of Events in a Raw Log 1. Select a raw (unformatted) log file . (File Menu -> "Select Raw" ) The current log file ends in ".cur" , e.g. "log1.raw.cur" . You do not have to switch logs. 2. View the summary of the selected log file . (View Menu -> "Raw Summary" ) To Format a Raw Log 1. Set the format filter for the types of entries you want to see. (Filters Menu -> "Format" ). To see all entries, skip this step. 2. Format the raw log file . (File Menu -> "Format Raw" ) 3. Display the formatted file . (View Menu -> "Formatted Log" ) 4. To further narrow the entries displayed, set a display filter. (Filters Menu -> "Display" -> "Formatted" ) For more information, use the on-line help (Help Menu -> "General help" ). Logtool Utility> |
With give information on console you can view, format raw log files.
Should I purge or zip/var/stm/logs/os logs ?Now you know what are these files and you observe there are too many of them which are too old to keep. In such a scenario, you have got two options:
Zip them: For few months old files. Maybe 1-2 months old. How to zip files.Purge them: For very old logs like 6 or more months old.Make a note that those logs are read by STM as well so if you purge or zip them, STM won’t be able to use them.
So be sure you check logs using logtool
utility explained above and decide to purge, zip, or keep it. Normally, if you are not facing any hardware issues with the server currently then you should zip/purge according to the time frame I suggested above.
# ls -lrt /var/stm/logs/os total 2463008 -rw-r--r-- 1 root root 65910 Apr 10 2008 log1.raw.gz -rw-r--r-- 1 root root 57168 Apr 10 2008 log2.raw.gz -rw-r--r-- 1 root root 53727 Apr 10 2008 log3.raw.gz -rw-r--r-- 1 root root 40526 Apr 11 2008 log4.raw.gz -rw-r--r-- 1 root root 39541 Apr 11 2008 log5.raw.gz -rw-r--r-- 1 root root 37050 Apr 11 2008 log6.raw.gz -rw-r--r-- 1 root root 37624 Apr 11 2008 log7.raw.gz |
Match above output with previous and see how file size decreased after zipping which in turns saved my /var
space.
Zipping of purging these logs will greatly free up space under /var
mount point. This is one of the directories which we normally miss or ignore while cleaning up the mount point.
Alternatively, you can even configure logrotate utility which will take care of this zipping and purging of files automatically without human intervention.
标签:
为您推荐
广告
- Logs under /var/stm/logs/os in HPUX
- 【天天热闻】少儿保险住院医疗怎么报销?报销需要哪些材料?
- 窑街煤电集团有限公司金河煤矿 2023年6月设备采购 中标候选人公示
- 环球最资讯丨贸发会议报告:2022年全球外国直接投资下降12%
- 16GB+512GB骁龙8Gen2跌1200_重点聚焦
- 7月6日国内现货铅市场价格上涨
- 港股午评:恒指跌3.08%下挫近600点,银行股普遍下跌,招商银行跌近4%_环球今日报
- 酒店概念股_龙头股一览_酒店上市公司排行榜(7/6)
- 空气净化器有用吗甲醛能够去除吗(空气净化器有用吗)_信息
- 环球速读:湖南省溆浦县人民法院违规冻结微信支付功能
- 翌 翌日的意思是什么意思_世界视讯
- 每日视讯:北京金控集团董事长范文仲:数据资产属性尚未完全体现 要加快数据登记交易制度体系建设
- 【世界时快讯】海立新能源丨确认申报2023金辑奖·中国汽车新供应链百强
- 人民网评:全力防汛救灾,将各类损失降到最低
- 一夜10大转会动态:大巴黎最后通牒姆巴佩,本菲卡官宣迪马利亚
- 头条焦点:觅心猎手韦鲁斯(觅心猎手韦鲁斯值得入)
- 通讯!盐碱地里的“软黄金”
- 每日热议!弟弟包文婧组团带娃去迪士尼,爱马身材高大,包贝尔一脸厚脸皮引发争议
- cdr怎么调出cmyk(cdr如何调出色板)_焦点快看
- 第二届山东网络视听大会在临沂举办
- 1世界聚焦:机构:谨慎看待纸浆盘面价格提升
- 2KMST 2023/7/6 测试服157版-韩国夏季大改NEW_AGE第二段(2):六转第二测(提前佔位-焦点播报
- 3国泰集团:上半年净利预增10%-30%
- 4党建引领促发展 长宁区金融服务业党建联盟成立 要闻速递
- 5世界最新:一商城突发刑案!警方最新通报
- 67月5日汽车一体化压铸板块跌幅达2%
- 7外企加码布局武汉 上半年外商投资跑出加速度
- 8【全球聚看点】太原警方通报一商场命案:嫌疑人因感情纠纷杀害一女子后自杀
- 9世界资讯:为什么瑞星防火墙老是弹出来(为什么瑞星删不掉)
- 10推出全新咨询部门!德勤进军太空了
- 1搞事情?6月券商扎堆调研医疗行业;单日再获3.4亿元增仓,医疗ETF(512170)规模、份额齐创新高!|环球实时
- 2快消息!四川工商业用户节约用电也能赚大钱!
- 3四川终止防汛四级应急响应 环球速讯
- 4国际原子能机构评估报告不能成为福岛核污染水排海“通行证”
- 5杭州临平上线农污“红色指导员” :农村生活污水这样治|全球热文
- 6环球看点!一汽-大众探岳怎么样及沃尔沃S90多少钱
- 7全球微速讯:顶级34岁生日礼物推荐大揭秘
- 8小米手机的系统固件可以删除吗|当前快看
- 9东方甄选要单飞?出圈一年多之后,东方甄选首次启动自有APP直播-世界报资讯
- 10唏嘘!外媒爆料两届羽毛球世锦赛男单冠军将提前退役,年仅28岁
广告
- 通鼎互联:目前不涉及CPO(共封装光学)产品的生产与销售|每日热议
- 新疆乌鲁木齐达坂城区实现全“绿电”供应 焦点信息
- 《南国都市报-南国习作》为海南昌茂花园学校24名学生发放稿费
- 通鼎互联(002491.SZ):暂不涉及光模块产品的生产-天天最资讯
- “以全世界人民生命为赌注” 韩国大规模集会对日本核污染水排海计划表愤怒-天天微资讯
- 【全球速看料】迈克尔里德能打1号位么(迈克尔 里德)
- 【世界时快讯】电子行业资金流入榜:联创电子等14股净流入资金超亿元
- 倍轻松接待中金国际等多家机构调研
- 卡扎菲之子已绝食数月,抗议对他未经审判的监禁,目前情况危急
- 午后A股回落三大指数再度翻绿,北向资金净卖出超30亿元_全球最资讯
- 视焦点讯!中国汽车工程学会汽车供应链创新分会筹备会议召开
- 《莱莎的炼金工房》动画OP|ED公开 可爱莱莎可爱肉腿|天天看点
- 望金陵行阙(对于望金陵行阙简单介绍)
- 焦点速讯:巧诈不如拙诚译文_巧诈不如拙诚翻译
- 鲁能海蓝园筑Pk中天海景房价哪个能上涨?海南海口哪个区域买房子便宜?
- 世界新动态:高盛料人行加大调控 防人民币单边贬值
- 我国首个220千伏柔性低频输电工程投运 为亚运会核心区域提供30万千瓦电力增强保障 世界热文
- 国华网安7月4日盘中涨幅达5%-快看
- 今天熊猫界三大“顶流”集体过生日!萌兰“一字马”印章来了_世界观焦点
- 热文:被炒至1999元一桶,山姆泡面桶爆火的背后更值得关注