CRESCO BACKUP
TSM BACKUP
AFS BACKUP
TSM BACKUP COMPONENTI DEL SISTEMA
SOFTWARE
HARDWARE
TSM (Tivoli Storage Manager)
Tape dispatcher
cresco-bck3
efda-bkcp
IBM TS3584 (Tape Library)
TSM BACKUP
IBM TS3584
4 drivers LTO4
SERVER
SAN
cresco-bck3
TSM server
TSM client
efda-bkcp
Tape dispatcher
GPFS
FILESYSTEM
LAN
CLIENT
cresco-gpf1
cresco-gpf2
cresco-gpf3
cresco-bck3
cresco-inst0
cresco-cellhd
pollux
CRESCO schema SAN
TAPE LIBRARY
IP 172.17.1.165
CRESCO-BCK1
CRESCO-BCK1
CRESCO-BCK2
CRESCO-BCK3
EFDA-BKUP
1
2
FABRIC SWITCH
CISCO MDS 9124
24 PORTE
IP 172.17.1.167
3
4
5
6
7
8
11 12 13 14 15
9
DISCHI IBM DS3400
9
8
7
6
5
4
3
2
1
FABRIC SWITCH
CISCO MDS 9124
24 PORTE
IP 172.17.1.166
DISCHI IBM DS4200
IP DS4200
172.17.1.191
172.17.1.192
CRESCO-AFS2
CRESCO-AFS1
IP DS3400
172.17.1.193
172.17.1.194
Installazione del TSM client
[root@gridsrv1 bin]# rpm -qa |grep TIV
TIVsm-API-5.5.1-0.i586
TIVsm-BA-5.5.1-0.i586
TIVsm-API64-5.5.1-0.i586
ftp://index.storsys.ibm.com/tivoli-storage-management/maintenance/client/
/opt/tivoli/tsm/client/ba/bin/dsm.sys
[root@gridsrv1 bin]# more dsm.sys
SErvername cresco-bck3.portici.enea.it
COMMMethod
TCPip
TCPPort
1500
PASSWORDAccess generate
TCPServeraddress cresco-bck3.portici.enea.it
schedlogname
/var/log/tsm/dsmsched.log
errorlogname
/var/log/tsm/dsmerror.log
errorlogretention 180
schedlogretention 180
Nodename
gridsrv1
* inclexcl
/opt/tivoli/tsm/client/ba/bin/dsmfile.def
/opt/tivoli/tsm/client/ba/bin/dsm.opt
[root@gridsrv1 bin]# more dsm.opt
Servername cresco-bck3.portici.enea.it
Backup Client
[root@cresco-bck3 ~]# dsmj
[root@cresco-bck3 ~]# ps auxw|grep dsmc
root
29901 0.0 0.1 28960 5060 pts/0
Sl 10:39 0:00 /usr/bin/dsmc sched
Politiche di backup
Frequency = 0
Versions Data Exists = 3
Versions Data Deleted = 1
Retain Extra Versions = 180
Retain Only Version = 1825
Copy Serialization =
Copy Mode = modified
backup solo se modificato dall’ultimo backup
Copie di backup
Copie di backup se il file viene cancellato
Durata in giorni della copia extra
Durata in giorni di una solo copia
Shared Static Il file non deve essere in uso durante il backup
Il file è salvato solo se è stato modificato
AFS BACKUP
AFS BACKUP COMPONENTI DEL SISTEMA
SOFTWARE
HARDWARE
AFS backup
Perl scripts
Tape dispatcher
cresco-bck3
efda-bkcp
IBM TS3584 (Tape Library)
AFS BACKUP
IBM TS3584
4 drivers LTO4
SAN
LAN
efda-bkcp
Tape dispatcher
cresco-bck3
AFS client
cresco-afs1
cresco-afs2
AFS
storage
kratos
AFS BACKUP
/afs/enea.it/fra/user/dangelo> /usr/afsws/etc/backup help
/usr/afsws/etc/backup: Commands are:
adddump
add dump schedule
addhost
add host to config
addvolentry add a new volume entry
addvolset
create a new volume set
apropos
search by help text
dbverify
check ubik database integrity
deldump
delete dump schedule
deletedump
delete dumps from the database
delhost
delete host to config
delvolentry delete a volume set sub-entry
delvolset
delete a volume set
diskrestore restore partition
dump
start dump
dumpinfo
provide information about a dump in the database
help
get help on commands
interactive enter interactive mode
jobs
list running jobs
kill
kill running job
labeltape
label a tape
listdumps
list dump schedules
listhosts
list config hosts
listvolsets list volume sets
quit
leave the program
readlabel
read the label on tape
restoredb
restore backup database
savedb
save backup database
scantape
dump information recovery from tape
setexp
set/clear dump expiration dates
status
get tape coordinator status
volinfo
query the backup database
volrestore
restore volume
volsetrestore restore a set of volumes
Gerarchie di backup
/sunday1
/monday
/tuesday
/wednesday
/thursday
/friday
/sunday1
/monday
/tuesday
/wednesday
/thursday
/friday
/sunday_bin
/monday
/wednesday
/friday
backup listdumps
/0y expires in 15d
/1y expires in 1d
/2y expires in 1d
/3y expires in 1d
/4y expires in 1d
/5y expires in 1d
/6y expires in 1d
/7y expires in 1d
/8y expires in 1d
/9y expires in 1d
/29y expires in 1d
/30y expires in 1d
/31y expires in 1d
/0x expires in 15d
/1x expires in 1d
/2x expires in 1d
/3x expires in 1d
/4x expires in 1d
/5x expires in 1d
/6x expires in 1d
/7x expires in 1d
/8x expires in 1d
/9x expires in 1d
/29x expires in 1d
/30x expires in 1d
/31x expires in 1d
backup listvolsets
/afs/enea.it/fra/user/dangelo> /usr/afsws/etc/backup listvolsets
Volume set portici31:
Entry 1: server cresco-afs1.portici.enea.it, partition .*, volumes: .*\.backup
Entry 2: server cresco-afs2.portici.enea.it, partition .*, volumes: .*\.backup
Entry 3: server kratos.portici.enea.it, partition .*, volumes: .*\.backup
Volume set portici32:
Entry 1: server cresco-afs1.portici.enea.it, partition .*, volumes: .*\.backup
Entry 2: server cresco-afs2.portici.enea.it, partition .*, volumes: .*\.backup
Entry 3: server kratos.portici.enea.it, partition .*, volumes: .*\.backup
AFS BACKUP
[email protected]:/afsbkup>crontab -l
00 01 * * * /afsbkup/cronpag.sh
[email protected]:/afsbkup>more /afsbkup/cronpag.sh
#!/usr/afsws/bin/pagsh
checklock() {
if [ -e /afsbkup/logs/lock.$1 ]; then
echo "locked"
else
echo "ok"
fi
}
mkdir -p /usr/afs/backup/Archive
day=`date +"%a"`
" = "31" ]; then
./dobackupsys enea.it portici31
fi mkdir -p /usr/afs/backup/Archive/$day
rc=`mv /usr/afs/backup/T* /usr/afs/backup/Archive/$day > /dev/null 2>&1`
cd /afsbkup
./auth
/usr/afsws/bin/tokens
for stream in 31 32
do
status=`checklock $stream`
if [ "$status" = "ok" ]; then
# EFDA
if [ "$stream
./dumpall enea.it portici$stream $stream
fi
done
backup dumpinfo
/afs/enea.it/fra/user/dangelo> /usr/afsws/etc/backup dumpinfo -ndumps 1000
dumpid parentid
lv created
nt nvols dump name
1249599764
0
0 08/07/2009 01:02 1 451 portici31.0y (1249599764)
1249629686
0
0 08/07/2009 09:21 1 451 portici32.0y (1249629686)
1249686182 1249599764 1 08/08/2009 01:03 1
14 portici31.1y (1249599764)
1249687151 1249629686 1 08/08/2009 01:19 1
14 portici32.1y (1249629686)
1249772580 1249686182 2 08/09/2009 01:03 1
11 portici31.2y (1249599764)
1249773343 1249687151 2 08/09/2009 01:15 1
11 portici32.2y (1249629686)
1249858968 1249772580 3 08/10/2009 01:02 1
9 portici31.3y (1249599764)
1249859439 1249773343 3 08/10/2009 01:10 1
9 portici32.3y (1249629686)
1249964536 1249858968 4 08/11/2009 06:22 1
9 portici31.4y (1249599764)
1249965048 1249859439 4 08/11/2009 06:30 1
9 portici32.4y (1249629686)
1250031716 1249964536 5 08/12/2009 01:01 1
8 portici31.5y (1249599764)
1250032238 1249965048 5 08/12/2009 01:10 1
8 portici32.5y (1249629686)
1251121787 1250031716 6 08/24/2009 15:49 1
11 portici31.6y (1249599764)
1251122504 1250032238 6 08/24/2009 16:01 1
11 portici32.6y (1249629686)
1251154945 1251121787 7 08/25/2009 01:02 1
9 portici31.7y (1249599764)
1251155924 1251122504 7 08/25/2009 01:18 1
9 portici32.7y (1249629686)
1251241343 1251154945 8 08/26/2009 01:02 1
11 portici31.8y (1249599764)
1251242113 1251155924 8 08/26/2009 01:15 1
11 portici32.8y (1249629686)
1251328258 1251241343 9 08/27/2009 01:10 1
12 portici31.9y (1249599764)
1251329281 1251242113 9 08/27/2009 01:28 1
12 portici32.9y (1249629686)
1251414152 1251328258 10 08/28/2009 01:02 1
10 portici31.10y (1249599764)
1251415238 1251329281 10 08/28/2009 01:20 1
10 portici32.10y (1249629686)
1251500557 1251414152 11 08/29/2009 01:02 1
13 portici31.11y (1249599764)
1251501292 1251415238 11 08/29/2009 01:14 1
13 portici32.11y (1249629686)
1251586919 1251500557 12 08/30/2009 01:01 1
5 portici31.12y (1249599764)
1251587456 1251501292 12 08/30/2009 01:10 1
5 portici32.12y (1249629686)
1251673317 1251586919 13 08/31/2009 01:01 1
7 portici31.13y (1249599764)
1251673792 1251587456 13 08/31/2009 01:09 1
7 portici32.13y (1249629686)
1251759761
0
0 09/01/2009 01:02 1 453 portici31.0x (1251759761)
1251789998
0
0 09/01/2009 09:26 1 453 portici32.0x (1251789998)
1251846182 1251759761 1 09/02/2009 01:03 1
17 portici31.1x (1251759761)
1251847201 1251789998 1 09/02/2009 01:20 1
17 portici32.1x (1251789998)
backup dumpinfo
afs/enea.it/fra/user/dangelo> /usr/afsws/etc/backup dumpinfo -id 1253575177
Dump: id 1253575177, level 20, volumes 25, created: Tue Sep 22 01:19:37 2009
Tape: name A00095 (1251789998)
nVolumes 25, created 09/22/2009 01:21, expires 09/23/2009 01:21
Pos
Clone time
Nbytes
854 09/22/2009 01:01 18200805
Volume
user.skeej.backup
855 09/22/2009 01:01 3284869148 user.procacci.backup
856 09/22/2009 01:01
24655
user.pardi.backup
857 09/22/2009 01:01
789728
user.gianese.backup
858 09/22/2009 01:00
141418
por.p.webtv.html.backup
859 09/22/2009 01:00 23582447
user.pollini.backup
860 09/22/2009 01:00 258679165
user.guarnier.backup
861 09/22/2009 01:00 98305393
user.funel.backup
862 09/22/2009 01:00 126500907
user.ambrosin.backup
863 09/22/2009 01:00 14253605
user.marchei.backup
864 09/22/2009 01:00 59098780
user.ciavarel.backup
865 09/22/2009 01:00 75382392
user.raia.backup
866 09/22/2009 01:00 10811834
user.aprea.backup
867 09/22/2009 01:00 16880146
user.ferrara.backup
868 09/22/2009 01:00
user.giammatt.backup
487614
869 09/22/2009 01:00
2668
870 09/22/2009 01:00
2470380
por.p.g3droma.reborn4.backup
por.arcproj.backup
871 09/22/2009 01:00
329521
user.cgargiul.backup
872 09/22/2009 01:00
1602190
873 09/22/2009 01:00
2500
user.fiannone.backup
por.p.dysco.backup
874 09/22/2009 01:00 980207997
user.minotti.backup
875 09/22/2009 01:00 54861621
por.p.siap.backup
876 09/22/2009 01:00 199216330
user.bongini.backup
877 09/22/2009 01:00
user.vangone.backup
1310692
878 09/22/2009 01:00 765079790 por.remote.grena.backup
AFS RESTORE
AFS backup vlrestore
[email protected]:/afsbkup/volrestore enea.it 31 kratos a user.scope.backup
[email protected]:/afsbkup/volrestore enea.it 31 kratos a user.scope.backup -date "07/10/2009" -extension ".dangelo"
AFS backup diskrestore
[email protected]:/afsbkup/partitionrestore enea.it 31 kratos /vicepa
[email protected]:/afsbkup/partitionrestore enea.it 31 kratos a –newserver “cresco-afs1” –newpartition “ /vicepb”
Logs server cresco-bck3
TSM BACKUP
TAPE MANAGER
AFS BACKUP
/tsmbuffer/Log/dsmc.log
/system/TSM/tsmutil/tsm.tapeaccess/log/tapemanager.log
/afsbkup/logs
Scarica

cresco backup