【IT168 资讯】林子大了,什么鸟都有;江湖时间长了,什么事情都会遇见;不管愿意也好,不愿意也好,很多事情总是那么没有任何征兆没有任何理由地出现;就像美好的爱情的出现也仿佛一个交通追尾的发生一样。
有天,用户跟我说,他们的tsm无法工作,仔细一查居然是日志卷慢了,也难怪,用户的备份全是海量的小文件,自然需要消耗日志的空间,我们可以用下面的方式去不用启动tsm server,就可以发布命令来达到一些目的。
1、看下目前的logvollume的情况
C:\Program Files\Tivoli\TSM\server>dsmserv display logvolumes
2、C:\Program Files\Tivoli\TSM\console>dsmfmt -log d:\log.dsm 100
TIVOLI STORAGE MANAGER by Tivoli
Tivoli Storage Manager (C)
Copyright IBM Corporation 1990, 2007.
All rights reserved.
U.S. Government Users Restricted Rights - Use, duplication
or disclosure restricted by GSA ADP Schedule Contract with IBM Corporation.
Licensed Materials - Property of IBM.
IBM Product ID 5608-ISM, 5608-ISX
Allocated space for d:\log.dsm: 105906176 bytes.
物理上面为log增加一个log卷
3、C:\Program Files\Tivoli\TSM\server>dsmserv extend log d:\log.dsm 90
ANR0900I Processing options file c:\program files\tivoli\tsm\server1\dsm
pt.
ANR7800I DSMSERV generated at 13:34:05 on Mar 26 2008.
Tivoli Storage Manager for Windows
Version 5, Release 4, Level 3.0
Licensed Materials - Property of IBM
(C) Copyright IBM Corporation 1990, 2007.
All rights reserved.
U.S. Government Users Restricted Rights - Use, duplication or disclosure
restricted by GSA ADP Schedule Contract with IBM Corporation.
ANR4726I The ICC support module has been loaded.
ANR0200I Recovery log assigned capacity is 8 megabytes.
ANR0201I Database assigned capacity is 12 megabytes.
ANR0306I Recovery log volume mount in progress.
ANR0984I Process 1 for EXTEND LOG started in the BACKGROUND at 16:25:35.
ANR0307I Recovery log extend in progress; 4 megabytes of 92 formatted.
ANR0307I Recovery log extend in progress; 8 megabytes of 92 formatted.
ANR0307I Recovery log extend in progress; 12 megabytes of 92 formatted.
ANR0307I Recovery log extend in progress; 16 megabytes of 92 formatted.
ANR0307I Recovery log extend in progress; 20 megabytes of 92 formatted.
ANR0307I Recovery log extend in progress; 24 megabytes of 92 formatted.
ANR0307I Recovery log extend in progress; 28 megabytes of 92 formatted.
ANR0307I Recovery log extend in progress; 32 megabytes of 92 formatted.
ANR0307I Recovery log extend in progress; 36 megabytes of 92 formatted.
ANR0307I Recovery log extend in progress; 40 megabytes of 92 formatted.
ANR0307I Recovery log extend in progress; 44 megabytes of 92 formatted.
ANR0307I Recovery log extend in progress; 48 megabytes of 92 formatted.
ANR0307I Recovery log extend in progress; 52 megabytes of 92 formatted.
ANR0307I Recovery log extend in progress; 56 megabytes of 92 formatted.
ANR0307I Recovery log extend in progress; 60 megabytes of 92 formatted.
ANR0307I Recovery log extend in progress; 64 megabytes of 92 formatted.
ANR0307I Recovery log extend in progress; 68 megabytes of 92 formatted.
ANR0307I Recovery log extend in progress; 72 megabytes of 92 formatted.
ANR0307I Recovery log extend in progress; 76 megabytes of 92 formatted.
ANR0307I Recovery log extend in progress; 80 megabytes of 92 formatted.
ANR0307I Recovery log extend in progress; 84 megabytes of 92 formatted.
ANR0307I Recovery log extend in progress; 88 megabytes of 92 formatted.
ANR0307I Recovery log extend in progress; 92 megabytes of 92 formatted.
ANR2268I Recovery log assigned capacity has been extended.
ANR0988I Process 1 for EXTEND LOG running in the BACKGROUND processed
96,468,992 bytes with a completion state of SUCCESS at 16:25:38.
ANR7835I The server thread 1 (tid 2028) terminated in response to server shutdown.
ANR7835I The server thread 4 (tid 2740) terminated in response to server shutdown.
ANR7835I The server thread 5 (tid 4052) terminated in response to server shutdown.
ANR0991I Server shutdown complete.
这是在逻辑上面将log vollume给扩充了,这样,才是空间才是真正的扩充了。
这样就可以了
4、现在可以再看下目前的logvollume的情况
C:\Program Files\Tivoli\TSM\server>dsmserv display logvolumes
这样我们就可以看见,日志满的问题解决了,tsm server进程也可以正常启动了。
同时我们也可以看见,tsm里面就是有个小的数据库,而且因此,tsm的日志模式也可以设置为归档和循环。Tsm里面的数据卷就相当于oracle的数据文件相当于db2里面的表空间,tsmserver的各种配置和参数的表就在其中。
数据库的应用简直无处不在!网游,Qq,Websphere,Ldap,monitor,等等。真是有屎的地方就有屎壳郎,有数据的地方就有数据库,当然特别的应用和特别的特点可能会催生不同偏向的数据库,据说现在taobao就在动手自己的数据库,盛大也要开始搞特别适合自己的数据库的产品,我是说数据库软件。什么云计算就是天上的白云,也像恋人的谎言,美丽看不到现实。
软件都很简单,见怪不怪了。怪的就是没有什么征兆地出现各种奇异的问题。不可捉摸和不可掌握本身就是大多数人的特别是管理人员的心头大患,希望软件质量更好,希望大家本领更强。
作者简介:陈亚平
作者自述:精通 db2,websphere,tsm,informix,mq,cics,oracle,portal,同时兼任这些软件的讲师,经常往返于国内大中城市解决软件技术难题,喜欢写字,爱好旅行和爬山,厌烦物质和一切不科学不环保的事情,最喜欢听nirvana,崔健的歌曲,博客www.ituren.org.cn。
可以通过 sqyzbj@163.com 与他联系
原文链接:http://www.ituren.org.cn/html/jishusuibi/200906/03-174.html