TSM en cluster
Cambios para GestionTsm –> GestionTsm-backup:
- Paramos el servidor en el GestionTsm:
/etc/init.d/tsmserv stop
- Cambio de IP’s:
Sobre el GestionTsm:
ifconfig eth0 23.23.23.x netmask 255.255.255.0 up
ifconfig bond1 10.228.140.x netmask 255.255.255.224 up
Sobre el GestionTsm-backup:
ifconfig eth0 10.228.140.x netmask 255.255.255.224 up
ifconfig eth1 23.23.23.x netmask 255.255.255.0 up
3. Montaje de fs:
Sobre el GestionTsm:
umount /vtape31
umount /vtape32
umount /vtape33
umount /vtape34
umount /vtape35
umount /vtape36
umount /vtape37
umount /vtape38
umount /vtape39
umount /vtape40
umount /vtape41
umount /vtape42
umount /tsmmirrorlog
umount /tsmlog
umount /tsmdb
umount /tsmmirrordb
Sobre el GestionTsm-backup:
lvchange -ay /dev/bdlogvg2/loglv2
lvchange -ay /dev/vtape5vg/vt40lv
lvchange -ay /dev/bdlogmirrorvg2/bdmlv2
lvchange -ay /dev/bdlogmirrorvg2/logmlv2
lvchange -ay /dev/bdlogvg2/bdlv2
lvchange -ay /dev/vtape4vg/vt31lv
lvchange -ay /dev/vtape4vg/vt32lv
lvchange -ay /dev/vtape4vg/vt33lv
lvchange -ay /dev/vtape4vg/vt34lv
lvchange -ay /dev/vtape4vg/vt35lv
lvchange -ay /dev/vtape4vg/vt36lv
lvchange -ay /dev/vtape4vg/vt37lv
lvchange -ay /dev/vtape4vg/vt38lv
lvchange -ay /dev/vtape4vg/vt39lv
lvchange -ay /dev/vtape5vg/vt41lv
lvchange -ay /dev/vtape5vg/vt42lv
mount –t ext3 /dev/vtape4vg/vt31lv /vtape31
mount –t ext3 /dev/vtape4vg/vt32lv /vtape32
mount –t ext3 /dev/vtape4vg/vt33lv /vtape33
mount –t ext3 /dev/vtape4vg/vt34lv /vtape34
mount –t ext3 /dev/vtape4vg/vt35lv /vtape35
mount –t ext3 /dev/vtape4vg/vt36lv /vtape36
mount –t ext3 /dev/vtape4vg/vt37lv /vtape37
mount –t ext3 /dev/vtape4vg/vt38lv /vtape38
mount –t ext3 /dev/vtape4vg/vt39lv /vtape39
mount -t ext3 /dev/vtape5vg/vt40lv /vtape40
mount -t ext3 /dev/vtape5vg/vt41lv /vtape41
mount -t ext3 /dev/vtape5vg/vt42lv /vtape42
mount -t ext3 /dev/bdlogmirrorvg2/bdmlv2 /tsmmirrordb
mount -t ext3 /dev/bdlogmirrorvg2/logmlv2 /tsmmirrorlog
mount -t ext3 /dev/bdlogvg2/bdlv2 /tsmdb
mount -t ext3 /dev/bdlogvg2/loglv2 /tsmlog
4. Ejecutamos autoconf sobre el GestionTsm-backup:
/opt/tivoli/tsm/devices/bin/autoconf
5. Finalmente, copiamos los archivos de configuración en el GestionTsm-backup:
Desde GestionTsm:
scp /opt/tivoli/tsm/server/bin/dsmserv.dsk 10.228.140.x:/opt/tivoli/tsm/server/bin/dsmserv.dsk
scp /opt/tivoli/tsm/server/bin/dsmserv.opt 10.228.140.x:/opt/tivoli/tsm/server/bin/dsmserv.opt
Desde GestionTsm-backup
cp /vtape32/volhist_5 /opt/tivoli/tsm/server/bin/volhist
cp /vtape32/devconfig_5 /opt/tivoli/tsm/server/bin/devconfig
6. Arrancamos el tsm en el servidor GestionTsm-backup:
/etc/init.d/tsmserv start
7. Desactivamos los fs en el GestionTsm:
lvchange -an /dev/vtape4vg/vt31lv
lvchange -an /dev/vtape4vg/vt32lv
lvchange -an /dev/vtape4vg/vt33lv
lvchange -an /dev/vtape4vg/vt34lv
lvchange -an /dev/vtape4vg/vt35lv
lvchange -an /dev/vtape4vg/vt36lv
lvchange -an /dev/vtape4vg/vt37lv
lvchange -an /dev/vtape4vg/vt38lv
lvchange -an /dev/vtape4vg/vt39lv
lvchange -an /dev/vtape5vg/vt40lv
Cambios para GestionTsm-backup –> GestionTsm:
- Paramos el servidor en el GestionTsm-backup:
/etc/init.d/tsmserv stop
- Cambio de IP’s:
Sobre el GestionTsm-backup:
ifconfig eth0 23.23.23.x netmask 255.255.255.0 up
ifconfig bond1 10.228.140.x netmask 255.255.255.224 up
Sobre el GestionTsm:
ifconfig eth0 10.228.140.x netmask 255.255.255.224 up
ifconfig eth1 23.23.23.x netmask 255.255.255.0 up
3. Montaje de fs:
Sobre el GestionTsm-backup:
umount /vtape31
umount /vtape32
umount /vtape33
umount /vtape34
umount /vtape35
umount /vtape36
umount /vtape37
umount /vtape38
umount /vtape39
umount /vtape40
umount /vtape41
umount /vtape42
umount /tsmmirrorlog
umount /tsmlog
umount /tsmdb
umount /tsmmirrordb
Sobre el GestionTsm:
lvchange -ay /dev/vtape4vg/vt31lv
lvchange -ay /dev/vtape4vg/vt32lv
lvchange -ay /dev/vtape4vg/vt33lv
lvchange -ay /dev/vtape4vg/vt34lv
lvchange -ay /dev/vtape4vg/vt35lv
lvchange -ay /dev/vtape4vg/vt36lv
lvchange -ay /dev/vtape4vg/vt37lv
lvchange -ay /dev/vtape4vg/vt38lv
lvchange -ay /dev/vtape4vg/vt39lv
lvchange -ay /dev/vtape5vg/vt40lv
lvchange -ay /dev/vtape5vg/vt41lv
lvchange -ay /dev/vtape5vg/vt42lv
mount –t ext3 /dev/vtape4vg/vt31lv /vtape31
mount –t ext3 /dev/vtape4vg/vt32lv /vtape32
mount –t ext3 /dev/vtape4vg/vt33lv /vtape33
mount –t ext3 /dev/vtape4vg/vt34lv /vtape34
mount –t ext3 /dev/vtape4vg/vt35lv /vtape35
mount –t ext3 /dev/vtape4vg/vt36lv /vtape36
mount –t ext3 /dev/vtape4vg/vt37lv /vtape37
mount –t ext3 /dev/vtape4vg/vt38lv /vtape38
mount –t ext3 /dev/vtape4vg/vt39lv /vtape39
mount -t ext3 /dev/vtape5vg/vt40lv /vtape40
mount -t ext3 /dev/vtape5vg/vt41lv /vtape41
mount -t ext3 /dev/vtape5vg/vt42lv /vtape42
mount -t ext3 /dev/bdlogmirrorvg2/bdmlv2 /tsmmirrordb
mount -t ext3 /dev/bdlogmirrorvg2/logmlv2 /tsmmirrorlog
mount -t ext3 /dev/bdlogvg2/bdlv2 /tsmdb
mount -t ext3 /dev/bdlogvg2/loglv2 /tsmlog
4. Ejecutamos autoconf sobre el GestionTsm:
/opt/tivoli/tsm/devices/bin/autoconf
5. Finalmente, copiamos los archivos de configuración en el GestionTsm:
Desde GestionTsm-backup:
scp /opt/tivoli/tsm/server/bin/dsmserv.dsk 10.228.140.5:/opt/tivoli/tsm/server/bin/dsmserv.dsk
scp /opt/tivoli/tsm/server/bin/dsmserv.opt 10.228.140.5:/opt/tivoli/tsm/server/bin/dsmserv.opt
Desde GestionTsm:
cp /vtape32/volhist_5 /opt/tivoli/tsm/server/bin/volhist
cp /vtape32/devconfig_5 /opt/tivoli/tsm/server/bin/devconfig
6. Arrancamos el tsm en el servidor GestionTsm:
/etc/init.d/tsmserv start
8. Desactivamos los fs en el GestionTsm-backup:
lvchange -an /dev/vtape4vg/vt31lv
lvchange -an /dev/vtape4vg/vt32lv
lvchange -an /dev/vtape4vg/vt33lv
lvchange -an /dev/vtape4vg/vt34lv
lvchange -an /dev/vtape4vg/vt35lv
lvchange -an /dev/vtape4vg/vt36lv
lvchange -an /dev/vtape4vg/vt37lv
lvchange -an /dev/vtape4vg/vt38lv
lvchange -an /dev/vtape4vg/vt39lv
lvchange -an /dev/vtape5vg/vt40lv
lvchange -an /dev/vtape5vg/vt41lv
lvchange -an /dev/vtape5vg/vt42lv
Restaurar una DDBB de TSM
Si al levantar el tsm falla:
/etc/init.d/tsmserv start
La forma de levantarlo para ver los log de error es
/opt/tivoli/tsm/server/bin/dsmserv
Después de ver los log si hay que restaurar la BBDD primero busco que cinta es donde esta la BBDD:
/opt/tivoli/tsm/server/bin/dsmserv restore db todate=TODAY preview=yes
Pedimos la cinta a operación y modificamos el archivo
/opt/tivoli/tsm/server/bin/devconfig
En windows es devconfig.out
Poniendo una entrada
/* LIBRARYINVENTORY SCSI SL500 A00004 1005 101*/
Donde este la cinta del backup modificando la cinta y el 1005
Y ahora restauramos la BBDD
/opt/tivoli/tsm/server/bin/dsmserv restore db todate=TODAY preview=no
Y levantamos
/etc/init.d/tsmserv start
No hay comentarios:
Publicar un comentario