<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Smemorando &#187; Backup</title>
	<atom:link href="http://www.smemorando.com/category/bk/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.smemorando.com</link>
	<description>la libertà non esiste, siamo tutti schiavi</description>
	<lastBuildDate>Wed, 11 Aug 2010 17:39:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>Installare il client TSM su Ubuntu</title>
		<link>http://www.smemorando.com/2010/03/06/installare-il-client-tsm-su-ubuntu/</link>
		<comments>http://www.smemorando.com/2010/03/06/installare-il-client-tsm-su-ubuntu/#comments</comments>
		<pubDate>Sat, 06 Mar 2010 13:37:55 +0000</pubDate>
		<dc:creator>Cristian</dc:creator>
				<category><![CDATA[Backup]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[dsm.opt]]></category>
		<category><![CDATA[dsm.sys]]></category>
		<category><![CDATA[dsmcad]]></category>
		<category><![CDATA[tsm]]></category>

		<guid isPermaLink="false">http://www.smemorando.com/?p=419</guid>
		<description><![CDATA[Come prima cosa è necessario scaricare il client TSM dall’area ftp IBM o dall’ area Passport Adwantage a voi riservata. ftp://ftp.software.ibm.com/storage/tivoli-storage-management/maintenance/client/&#8230; una volta scaricato il file .tar è necessario installare questi due pacchetti: apt-get install ksh libstdc++5 scompattare il file tar: tar xvf x.x.x.x-TIV-TSMBAC-LinuxX86.tar (le x fanno riferimento alla versione scaricata) utilizzando ALIEN una sorta [...]]]></description>
			<content:encoded><![CDATA[<p><!-- 		@page { margin: 2cm } 		P { margin-bottom: 0.21cm } -->Come prima cosa è necessario scaricare il client TSM dall’area ftp IBM o dall’ area Passport Adwantage a voi riservata.<br />
<span style="font-family: Courier New,monospace;"><span style="font-size: x-small;"><strong><br />
ftp://ftp.software.ibm.com/storage/tivoli-storage-management/maintenance/client/&#8230;</strong></span></span></p>
<p>una volta scaricato il file .tar <span style="font-family: Courier New,monospace;"><span style="font-size: x-small;">è necessario installare questi due pacchetti:</span></span></p>
<p><span style="font-family: Courier New,monospace;"><span style="font-size: x-small;"><strong>apt-get install ksh libstdc++5</strong></span></span></p>
<p>scompattare il file tar:</p>
<p><strong>tar xvf x.x.x.x-TIV-TSMBAC-LinuxX86.tar</strong><br />
<em>(le x fanno riferimento alla versione scaricata)</em></p>
<p><span style="font-family: Courier New,monospace;"><span style="font-size: x-small;">utilizzando ALIEN </span></span>una sorta di “convertitore” di pacchetti creo i miei pacchetti .deb:</p>
<p><span style="font-family: Courier New,monospace;"><span style="font-size: x-small;"><strong>alien -g TIVsm-API.i386.rpm<br />
alien -g TIVsm-BA.i386.rpm</strong></span></span></p>
<p><strong>mv TIVsm-API-x.x.x/debian TIVsm-API-x.x.x/DEBIAN<br />
mv TIVsm-BA-x.x.x/debian TIVsm-BA-x.x.x/DEBIAN</strong><br />
<em>(le x fanno riferimento alla versione scaricata)</em></p>
<p>è necessario editare i due file riducendoli come segue:</p>
<p><strong><span style="font-family: Courier New,monospace;"><span style="font-size: x-small;">vim TIVsm-API-</span></span></strong><span style="font-family: Courier New,monospace;"><span style="font-size: x-small;"><strong>x.x.x/DEBIAN/control</strong></span></span></p>
<p><span style="font-family: Courier New,monospace;"><span style="font-size: x-small;"><em>Source: tivsm-api<br />
Section: alien<br />
Priority: extra<br />
Maintainer: who are you<br />
Package: tivsm-api<br />
Architecture: amd64<br />
Depends:<br />
Description: the API IBM Tivoli Storage Manager API<br />
Version: x.x.x<br />
</em></span></span><span style="font-family: Courier New,monospace;"><span style="font-size: x-small;"><br />
<strong>vim TIVsm-BA-x.x.x/DEBIAN/control</strong></span></span></p>
<p><span style="font-family: Courier New,monospace;"><span style="font-size: x-small;"><em>Source: tivsm-ba<br />
Section: alien<br />
Priority: extra<br />
Maintainer: who are you<br />
Package: tivsm-ba<br />
Architecture: amd64<br />
Depends:<br />
Description: the Backup Archive Client IBM Tivoli Storage Manager Client<br />
Version: x.x.x<br />
</em></span></span><span style="font-family: Courier New,monospace;"><span style="font-size: x-small;"><br />
ora creo i pacchetti:</span></span></p>
<p><strong>dpkg -b TIVsm-API-x.x.x<br />
dpkg -b TIVsm-BA-x.x.x</strong></p>
<p><span style="font-family: Courier New,monospace;"><span style="font-size: x-small;">e li installo (a vostro rischio e pericolo)</span></span></p>
<p><strong>dpkg -i TIVsm-API-x.x.x.deb<br />
dpkg -i TIVsm-BA-x.x.x.deb</strong></p>
<p>edito i file di configurazione:<br />
<strong><br />
vim /opt/tivoli/tsm/client/ba/bin/dsm.opt</strong><br />
<em>ServerName <span style="text-decoration: line-through;">Nome-del-server-client</span><br />
Domain ALL-LOCAL<br />
DateFormat 3</em></p>
<p><strong>vim /opt/tivoli/tsm/client/ba/bin/dsm.sys</strong></p>
<p><em>ServerName <span style="text-decoration: line-through;">Nome-del-server</span><br />
CommMethod TCPip<br />
</em>HTTPPort 1580<em><br />
TcpPort 1500<br />
TcpServerAddress <span style="text-decoration: line-through;">ip-del-server-tivoli-tsm</span><br />
NodeName <span style="text-decoration: line-through;">Nome-del-nodo-definito-sul-server-tivoli-tsm</span><br />
PasswordAccess generate<br />
Compression On<br />
ErrorLogName /var/log/Tivoli/dsmerror.log<br />
ErrorLogRetention 15 D<br />
SchedLogName /var/log/Tivoli/dsmsched.log<br />
SchedLogRetention 15 D<br />
* InclExcl /opt/tivoli/tsm/client/ba/bin/dsm.inclexcl</em></p>
<p><span style="font-family: Courier New,monospace;"><span style="font-size: x-small;">imposto i permessi sui file principali:</span></span></p>
<p lang="en-US"><strong><span style="font-family: Courier New,monospace;"><span style="font-size: x-small;">chown root.root /opt/tivoli/tsm/client/ba/bin/dsmc<br />
chown root.root /opt/tivoli/tsm/client/ba/bin/dsm.opt<br />
chown root.root /opt/tivoli/tsm/client/ba/bin/dsm.sys</span><span style="font-size: x-small;"><br />
chmod 600 /opt/tivoli/tsm/client/ba/bin/dsm.opt</span></span><span style="font-family: Courier New,monospace;"><span style="font-size: x-small;"><br />
chmod 600 /opt/tivoli/tsm/client/ba/bin/dsm.sys<br />
chmod 700 /opt/tivoli/tsm/client/ba/bin/dsmc</span></span></strong></p>
<p><span style="font-family: Courier New,monospace;"><span style="font-size: x-small;">a questo punto possiamo provare a fare un backup:</span></span></p>
<p><span style="font-family: Courier New,monospace;"><span style="font-size: x-small;"><strong>dsmc i /<span style="text-decoration: line-through;">path-da-backuppare</span> -subdir=yes</strong></span></span></p>
<p>se ho tralasciato qualcosa potrebbero apparari uno dei seguenti errori:</p>
<p><!-- 		@page { margin: 2cm } 		P { margin-bottom: 0.21cm } -->1) <span style="text-decoration: underline;">dsmc: error while loading shared libraries: libgpfs.so: cannot open shared object file: No such file or directory</span></p>
<p>Soluzione:<br />
<strong>ldd /usr/bin/dsmc</strong></p>
<p>apparirà qualcosa di questo tipo:<br />
linux-gate.so.1 =&gt; (0xffffe000)<br />
libcrypt.so.1 =&gt; /lib32/libcrypt.so.1 (0xf7eaa000)<br />
libpthread.so.0 =&gt; /lib32/libpthread.so.0 (0xf7e92000)<br />
libdl.so.2 =&gt; /lib32/libdl.so.2 (0xf7e8d000)<br />
libgpfs.so =&gt; not found<br />
libdmapi.so =&gt; not found<br />
librt.so.1 =&gt; /lib32/librt.so.1 (0xf7e84000)<br />
libha_gs_r.so =&gt; not found<br />
libstdc++.so.5 =&gt; /usr/lib32/libstdc++.so.5 (0xf7dc9000)<br />
libm.so.6 =&gt; /lib32/libm.so.6 (0xf7da4000)<br />
libgcc_s.so.1 =&gt; /usr/lib32/libgcc_s.so.1 (0xf7d99000)<br />
libc.so.6 =&gt; /lib32/libc.so.6 (0xf7c4a000)<br />
/lib/ld-linux.so.2 (0xf7eed000)</p>
<p>lancio:<br />
<strong>echo &#8220;/opt/tivoli/tsm/client/api/bin/&#8221; &gt; /etc/ld.so.conf.d/tivoli.conf<br />
ldconfig</strong></p>
<p>2) error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory</p>
<p>Soluzione:<br />
<strong>aptitude install libstdc++5</strong></p>
<p>3) error ANS0101E:</p>
<p>Soluzione:<br />
<strong>ln -s /opt/tivoli/tsm/client/lang/en_US /opt/tivoli/tsm/client/ba/bin/en_US</strong></p>
<p>Di seguito lo script per l&#8217;avvio dello scheduler da init.d<strong>.</strong></p>
<p><strong>vim /etc/init.d/dsm</strong><em><br />
# inizio script<br />
#!/bin/bash<br />
#<br />
# dsmc       Start/Stop IBM Tivoli Storage Scheduler<br />
#<br />
# processname: dsmc<br />
# pidfile: /var/run/dsmc.pid<br />
case $1 in<br />
start)<br />
/opt/tivoli/tsm/client/ba/bin/dsmc sched -servername=</em><em><span style="text-decoration: line-through;">nome_del_nodo_definito_sul_server_tivoli_tsm</span> -schedmod=pr  &gt;/dev/null 2&gt;&amp;1 &amp;<br />
echo `pidof dsmc` &gt; /var/run/dsmc.pid<br />
exit 0<br />
;;<br />
stop)<br />
kill -9 `cat /var/run/dsmc.pid`<br />
rm -f /var/run/dsmc.pid<br />
exit 0<br />
;;<br />
restart)<br />
/etc/init.d/dsm stop<br />
sleep 5<br />
/etc/init.d/dsm start<br />
exit 0<br />
;;<br />
*)<br />
echo &#8220;Usage: $0 {start|stop|restart}&#8221;<br />
;;<br />
Esac<br />
### fine script<br />
</em></p>
<p>ora lanciando <strong>ps -ef | grep dsmc </strong>e verifico che il processo dsmc sia attivo.</p>
<p>Di seguito lo script per l&#8217;avvio della web gui da init.d.</p>
<p><strong>vim /etc/init.d/dsmcad</strong><em><br />
#</em>## inizio script<br />
#! /bin/sh<br />
#<br />
# /etc/init.d/dsmcad<br />
#<br />
### BEGIN INIT INFO<br />
# Processname: dsmcad<br />
DSMCAD_BIN=/opt/tivoli/tsm/client/ba/bin/dsmcad<br />
test -x $DSMCAD_BIN || { echo &#8220;$FDSMCAD_BIN not installed&#8221;;<br />
if [ "$1" = "stop" ]; then exit 0;<br />
else exit 5; fi; }</p>
<p>#Source function library.<br />
. /etc/rc.status</p>
<p># Reset status of this service<br />
rc_reset</p>
<p>case &#8220;$1&#8243; in<br />
start)<br />
echo -n &#8220;Starting dsmcad&#8221;<br />
startproc $DSMCAD_BIN<br />
rc_status -v<br />
;;</p>
<p>stop)<br />
echo -n &#8220;Shutting down dsmcad&#8221;<br />
killproc -TERM $DSMCAD_BIN<br />
rc_status -v<br />
;;</p>
<p>try-restart)<br />
$0 status<br />
if test $? = 0; then<br />
$0 restart<br />
else<br />
rc_reset # Not running is not a failure.<br />
fi<br />
rc_status<br />
;;</p>
<p>restart)<br />
$0 stop<br />
$0 start<br />
rc_status<br />
;;</p>
<p>force-reload)<br />
echo -n &#8220;Reload service dsmcad&#8221;<br />
$0 try-restart<br />
rc_status<br />
;;</p>
<p>reload)<br />
echo -n &#8220;Reload service dsmcad, not supported&#8221;<br />
rc_failed 3<br />
rc_status -v<br />
;;</p>
<p>status)<br />
echo -n &#8220;Checking for service dsmcad&#8221;<br />
checkproc $DSMCAD_BIN<br />
rc_status -v<br />
;;</p>
<p>*)<br />
echo &#8220;Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload}&#8221;<br />
exit 1<br />
;;<br />
esac<br />
rc_exit</p>
<p>## fine script</p>
]]></content:encoded>
			<wfw:commentRss>http://www.smemorando.com/2010/03/06/installare-il-client-tsm-su-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Script archive per TSM Client su linux</title>
		<link>http://www.smemorando.com/2010/02/26/script-per-tsm-client-su-linux/</link>
		<comments>http://www.smemorando.com/2010/02/26/script-per-tsm-client-su-linux/#comments</comments>
		<pubDate>Fri, 26 Feb 2010 16:37:24 +0000</pubDate>
		<dc:creator>Cristian</dc:creator>
				<category><![CDATA[Backup]]></category>
		<category><![CDATA[Script Bash]]></category>
		<category><![CDATA[dsmc]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://www.smemorando.com/?p=413</guid>
		<description><![CDATA[Questo script da salvare in un file con estensione .sh e rendere eseguibile permette di cancellare il file x (exp_26022010.gz) generato ogni giorno presente sul disco locale solo dopo aver accertato che l&#8217;operazione di backup del client TSM non ha restituito errori. vim mioscript.sh #inizio script #!/bin/sh rc=0 DATEOLD=`date &#8211;date yesterday &#8220;+%d-%m-%Y&#8221;` cd /opt/tivoli/tsm/client/ba/bin/dsmc arc [...]]]></description>
			<content:encoded><![CDATA[<p>Questo script da salvare in un file con estensione .sh e rendere eseguibile permette di cancellare il file x (exp_26022010.gz) generato ogni giorno presente sul disco locale solo dopo aver accertato che l&#8217;operazione di backup del client TSM non ha restituito errori.</p>
<p><strong>vim mioscript.sh</strong></p>
<p>#inizio script<br />
#!/bin/sh<br />
rc=0</p>
<p>DATEOLD=`date &#8211;date yesterday &#8220;+%d-%m-%Y&#8221;`</p>
<p>cd /opt/tivoli/tsm/client/ba/bin/dsmc arc /backup/export/* &gt; /dev/null 2&gt; 1</p>
<p>rc=$?</p>
<p>if [ $rc -eq 0 ]; then</p>
<p>rm -rf /archivio/exp_?-$DATEOLD.gz</p>
<p>fi<br />
#fine script</p>
<p>se qualcuno vuole prendere spunto da quanto scrivo lo fa a suo rischio e pericolo.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.smemorando.com/2010/02/26/script-per-tsm-client-su-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
