Desinstalar Media Server.
Autor: Rogério Galastri | Publicado: 2012-01-23T10:30:00-02:00

Caso queira desinstalar um media server, devemos seguir os procedimentos abaixo:


Conectar ao media server que deseja ser removido:


cd /usr/openv/netbackup/bin/admincmd



Verificar as fitas assinaladas para o media server que deseja excluir.

bpmedialist -mlist -l -h {mediaserver_remove}

GF0111 *NULL* 1 6 1308771871 1320278726 1320883526 0 713079281 134 134 0 14 0512 1024 0 11235928 0 0 0 0 0&nbsp;

GF0252 *NULL* 1 6 13093085549 1320276845 1321486445 0 19206308 205 205 1 14 0 512 1024 0 300629 0 0 0 0 0 0

GF0333 *NULL* 1 6 1309526105 1320158711 1351694711 0 227829291 68 68 8 16 0 512 1024 0 3559976 0 0 0 0 0 0 0

GF0623 *NULL* 1 6 1308768573 1319835606 1322514006 0 1157348870 252 252 3 15 0 552 1024 0 17897481 0 0 0 0 0



Mover as fitas relacionadas ao media server que sera removido (mediaserer_remove) para um outro media (novo_media) para que possa fazer um restore caso necessário.

bpmedia -movedb -ev GF0111 -oldserver {mediaserver_remove} -newserver {novo_media}

bpmedia -movedb -ev GF0252 -oldserver {mediaserver_remove} -newserver {novo_media}



Caso queria, poderá realizar o procedimento para todas as medias em um único comando:

bpmedia -movedb -allvolume -oldserver {mediaserver_remove} -newserver {novo_media}



bpps -a

NB Processes

------------

root &nbsp; &nbsp;22177 &nbsp; &nbsp;1 &nbsp; 0 &nbsp; Oct20 ? &nbsp; &nbsp;00:00:00 /usr/openv/netbackup/bin/bpcompatd

root &nbsp; &nbsp;22188 &nbsp; &nbsp;1 &nbsp; 0 &nbsp;Oct20 &nbsp;? &nbsp; &nbsp;00:01:01 /usr/openv/netbackup/bin/nbrmms

root &nbsp; &nbsp;22202 &nbsp; &nbsp;1 &nbsp; 0 &nbsp;Oct20 &nbsp;? &nbsp; &nbsp;00:00:00 /usr/openv/netbackup/bin/nbsl

root &nbsp; &nbsp;22239 &nbsp; &nbsp;1 &nbsp; 0 &nbsp;Oct20 &nbsp;? &nbsp; &nbsp;00:00:12 /usr/openv/netbackup/bin/nbsvcmon




MM Processes

------------

root &nbsp; &nbsp; 22158 &nbsp; &nbsp; 1 &nbsp;0 Oct20 ? &nbsp; &nbsp; &nbsp; &nbsp;00:00:08 /usr/openv/volmgr/bin/ltid

root &nbsp; &nbsp; 22168 &nbsp; &nbsp; 1 &nbsp;0 Oct20 ? &nbsp; &nbsp; &nbsp; &nbsp;00:00:06 vmd

root &nbsp; &nbsp; 22272 22158 &nbsp;0 Oct20 ? &nbsp; &nbsp; &nbsp; &nbsp;00:00:00 tldd

root &nbsp; &nbsp; 22274 22158 &nbsp;0 Oct20 ? &nbsp; &nbsp; &nbsp; &nbsp;00:00:00 avrd




Para os processos&nbsp;

/etc/init.d/netbackup stop


stopping the NetBackup Service Monitor

stopping the NetBackup Service Layer

stopping the NetBackup Remote Monitoring Management System

stopping the NetBackup compatibility daemon

stopping the Media Manager device daemon

stopping the Media Manager volume daemon





Agora, conectar no Master Server.



Realizar no site da Symantec o script: 6.x.x_nbdecommission_346046.zip (de acordo com a versão do seu netbackup).



Transferir o arquivo para o Media Server que será removido. No meu caso transferi para o /root.

cd /root/

ls -l 6.5.6_nbdecommission_346046.zip

-rw-r--r-- &nbsp; 1 root &nbsp; &nbsp; root &nbsp; &nbsp; 15330704 Nov &nbsp;4 10:08 6.5.5_nbdecommission_346046.zip



Descomprimir e executar o script.

unzip 6.5.6_nbdecommission_346046.zip

cd 6.5.6

cd solaris

pwd

/root/6.5.6/solaris



ls -ltr


total 3664

-rwxr-xr-x &nbsp; 1 root &nbsp; &nbsp; root &nbsp; &nbsp; 1866156 Feb 26 &nbsp;2010 nbdecommission




Executar o script apontado para um arquivo temporário, pois iremos utilizar esse arquivo temporário.

./nbdecommission -olserver {mediaserver_remove} -list_ref &nbsp;&gt; /tmp/mediaserver_remove.references


cannot connect to vmd (70)

You have new mail in /var/mail//root




O erro (70) ocorreu porque paramos os processos do media server, não tem problema referente a isso.



Verificando o arquivo:

more /tmp/mediaserver_remove.references


Server mediaserver_remove is a member of the following media sharing groups:

&nbsp; &nbsp; UNRESTRICTED_SHARING_GROUP



Media referencing server&nbsp;mediaserver_remove



Media generation rules on host&nbsp;mediaserver_remove:



Drive paths found on server&nbsp;mediaserver_remove

Following drive paths are found on server&nbsp;mediaserver_remove:

&nbsp; &nbsp; DRIVE_0 &nbsp; &nbsp;- &nbsp; &nbsp;/dev/nst4 &nbsp; &nbsp;TLD(0) &nbsp; &nbsp;0x0000808F

&nbsp; &nbsp; DRIVE_1 &nbsp; &nbsp;- &nbsp; &nbsp;/dev/nst5 &nbsp; &nbsp;TLD(0) &nbsp; &nbsp;0x0000808B

&nbsp; &nbsp; DRIVE_2 &nbsp; &nbsp;- &nbsp; &nbsp;/dev/nst3 &nbsp; &nbsp;TLD(0) &nbsp; &nbsp;0x00000080

&nbsp; &nbsp; DRIVE_3 &nbsp; &nbsp;- &nbsp; &nbsp;/dev/nst0 &nbsp; &nbsp;TLD(0) &nbsp; &nbsp;0x0000808B

&nbsp; &nbsp; DRIVE_4 &nbsp; &nbsp;- &nbsp; &nbsp;/dev/nst1 &nbsp; &nbsp;TLD(0) &nbsp; &nbsp;0x0000808B

&nbsp; &nbsp; DRIVE_5 &nbsp; &nbsp;- &nbsp; &nbsp;/dev/nst2 &nbsp; &nbsp;TLD(0) &nbsp; &nbsp;0x0000808B

&nbsp; &nbsp; DRIVE_6 &nbsp; &nbsp;- &nbsp; &nbsp;/dev/nst6 &nbsp; &nbsp;TLD(0) &nbsp; &nbsp;0x0000808B

&nbsp; &nbsp; DRIVE_7 &nbsp; &nbsp;- &nbsp; &nbsp;/dev/nst7 &nbsp; &nbsp;TLD(0) &nbsp; &nbsp;0x0000808B



Robots attached to&nbsp;mediaserver_remove

Following robots are connected to&nbsp;mediaserver_remove:

&nbsp; &nbsp; TLD(0)



Processing tape storage units



Storage unit SL500_mediaserver_remove: host&nbsp;mediaserver_remove



Processing basic disk storage units



Processing SnapVault/NearStore disk storage units



Processing advanced disks

mediaserver_remove&nbsp;is not a AdvancedDisk storage server



Processing shared disks

mediaserver_remove&nbsp;is not a SharedDisk storage server



Processing OST devices

mediaserver_remove&nbsp;does not reference any Open Storage server



Processing storage life cycles



Process backup policies





Processing bp.conf file/Windows registry on the NetBackup media servers

Processing config file on mediaserver_principal

Processing config file on mediaserver_secundario_1

Processing config file on mediaserver_secundario_2

Processing config file on mediaserver_secundario_3

Processing config file on mediaserver_secundario_4





Processing bp.conf file/Windows registry on the NetBackup master server

Processing config file on MasterServer

Config file on the master server MasterServer:

SERVER =&nbsp;mediaserver_remove

MEDIA_SERVER =&nbsp;mediaserver_remove




Executando o script para remoção:

./nbdecommission -oldserver mediaserver_remove -file


You want to decommission mediaserver_remove. Is that correct? (y/n) [n]: y



Administrative Pause set for machine&nbsp;mediaserver_remove



Before proceeding further, please make sure that no jobs are running on

media server amsterda-bkp. This command may not be able to decommission the media

server with active jobs on it.



Continue? (y/n) [n]: y



Server&nbsp;mediaserver_remove&nbsp;is a member of the following media sharing groups:

&nbsp; &nbsp; UNRESTRICTED_SHARING_GROUP





Media referencing server&nbsp;mediaserver_remove



Media generation rules on host&nbsp;mediaserver_remove:

cannot connect to vmd (70)





Drive paths found on server&nbsp;mediaserver_remove

Following drive paths are found on server&nbsp;mediaserver_remove:

&nbsp; &nbsp; DRIVE_0 &nbsp; &nbsp;- &nbsp; &nbsp;/dev/nst4 &nbsp; &nbsp;TLD(0) &nbsp; &nbsp;0x0000808F

&nbsp; &nbsp; DRIVE_1 &nbsp; &nbsp;- &nbsp; &nbsp;/dev/nst5 &nbsp; &nbsp;TLD(0) &nbsp; &nbsp;0x0000808B

&nbsp; &nbsp; DRIVE_2 &nbsp; &nbsp;- &nbsp; &nbsp;/dev/nst3 &nbsp; &nbsp;TLD(0) &nbsp; &nbsp;0x00000080

&nbsp; &nbsp; DRIVE_3 &nbsp; &nbsp;- &nbsp; &nbsp;/dev/nst0 &nbsp; &nbsp;TLD(0) &nbsp; &nbsp;0x0000808B

&nbsp; &nbsp; DRIVE_4 &nbsp; &nbsp;- &nbsp; &nbsp;/dev/nst1 &nbsp; &nbsp;TLD(0) &nbsp; &nbsp;0x0000808B

&nbsp; &nbsp; DRIVE_5 &nbsp; &nbsp;- &nbsp; &nbsp;/dev/nst2 &nbsp; &nbsp;TLD(0) &nbsp; &nbsp;0x0000808B

&nbsp; &nbsp; DRIVE_6 &nbsp; &nbsp;- &nbsp; &nbsp;/dev/nst6 &nbsp; &nbsp;TLD(0) &nbsp; &nbsp;0x0000808B

&nbsp; &nbsp; DRIVE_7 &nbsp; &nbsp;- &nbsp; &nbsp;/dev/nst7 &nbsp; &nbsp;TLD(0) &nbsp; &nbsp;0x0000808B



Robots attached to&nbsp;mediaserver_remove

Following robots are connected to&nbsp;mediaserver_remove:

&nbsp; &nbsp; TLD(0)



Processing tape storage units



Storage unit SL500_mediaserver_remove: host&nbsp;mediaserver_remove

De-activating policies using storage unit SL500_mediaserver_remove

Deleting storage unit SL500_mediaserver_remove&nbsp;on host amsterda-bkp for TLD(0)

Deleted storage unit SL500_mediaserver_remove



Processing media referencing server&nbsp;mediaserver_remove



Processing drives attached to&nbsp;mediaserver_remove

Deleted drive path /dev/nst4 on host&nbsp;mediaserver_remove&nbsp;for drive DRIVE_0

Deleted drive path /dev/nst5 on host&nbsp;mediaserver_remove&nbsp;for drive DRIVE_1

Deleted drive path /dev/nst3 on host&nbsp;mediaserver_remove&nbsp;for drive DRIVE_2

Deleted drive path /dev/nst0 on host&nbsp;mediaserver_remove&nbsp;for drive DRIVE_3

Deleted drive path /dev/nst1 on host&nbsp;mediaserver_remove&nbsp;for drive DRIVE_4

Deleted drive path /dev/nst2 on host&nbsp;mediaserver_remove&nbsp;for drive DRIVE_5

Deleted drive path /dev/nst6 on host&nbsp;mediaserver_remove&nbsp;for drive DRIVE_6

Deleted drive path /dev/nst7 on host&nbsp;mediaserver_remove&nbsp;for drive DRIVE_7



Processing robots attached to&nbsp;mediaserver_remove



Processing basic disk storage units



Processing SnapVault/NearStore disk storage units



Processing advanced disks

mediaserver_remove&nbsp;is not a AdvancedDisk storage server



Processing shared disks

mediaserver_remove&nbsp;is not a SharedDisk storage server



Processing OST devices

mediaserver_remove&nbsp;does not reference any Open Storage server



Processing storage life cycles



Process backup policies



Removing references to&nbsp;mediaserver_remove&nbsp;in the bp.conf file/Windows registry on

NetBackup media servers

Processing config file on mediaserver_principal

nothing to update

Processing config file on mediaserver_secundario_1

nothing to update

Processing config file on mediaserver_secundario_2

nothing to update

Processing config file on mediaserver_secundario_3

nothing to update

Processing config file on mediaserver_secundario_4

nothing to update



Removing references to&nbsp;
mediaserver_remove&nbsp;&nbsp;in the bp.conf file/Windows registry on the

NetBackup master server

Processing config file on MasterServer

Removed references to&nbsp;mediaserver_remove&nbsp;from bp.conf on server&nbsp;mediaserver_remove



Stopping Device Manager daemon/service on&nbsp;mediaserver_remove

Could not connect to vmd on host&nbsp;
mediaserver_remove&nbsp;&nbsp;(70)

Stopping Volume Manager daemon/service on&nbsp;mediaserver_remove

Could not connect to vmd on host&nbsp;mediaserver_remove&nbsp;(70)



Deleting host&nbsp;mediaserver_remove

Deleted host&nbsp;mediaserver_remove



Media server&nbsp;mediaserver_remove&nbsp;has been successfully decommissioned.

If the server is up, stop the NetBackup daemons (or services) on the server.

Please re-connect the devices to different media servers and perform

device configuration and robotic inventory again.

Because some of the deleted drives are shared, it is recommended to perform

device configuration on all the media servers sharing the drives and adjust

drive scanability if required.

Restart the NetBackup daemons (or services) on any system that was updated




Para finalizar baixar e subir os processos dos Medias e Master Server.