2 мар. 2010 г.

nbemmcmd. Host already exist in the EMM database

Столкнулся с проблемой. Не получается добавить SAN клиента в NetBackup.  Хостнейм не появляется в nbemmcmd -listhosts. При попытке добавить вручную - через GUI San Clients или через nbemmcmd -addhost -machinename e25k3-backup -machinetype client получалась ошибка: Host already exist in the EMM database. Вчера наткнулся на свежий документ:  http://seer.entsupport.symantec.com/docs/345664.htm .


# вижу несколько алиасов для хостнейма
[ nbserver /usr/openv/db/bin ] # nbemmcmd -machinealias -getalias -machinename e25k3-backup -machinetype client      
NBEMMCMD, Version:6.5.5                                                                                               
The following aliases were found for the alias: "e25k3-backup"                                                        
e25k2-backup                                                                                                          
e25k3-backup                                                                                                          
junior                                                                                                                
Command completed successfully.                
# в /etc/hosts такого нет                                                                      
 [ nbserver /usr/openv/db/bin ] # cat /etc/hosts   | grep e25k3-backup                                 
10.0.64.200 e25k3-backup                
 [ nbserver /usr/openv/db/bin ] # nbemmcmd -machinealias -getalias -machinename e25k3-backup -machinetype client
NBEMMCMD, Version:6.5.5                                                                                        
The following aliases were found for the alias: "e25k3-backup"                                                 
e25k2-backup                                                                                                   
e25k3-backup                                                                                                   
junior                                                                                                         
Command completed successfully.  
# удаляем все лишнее                                                                             
 [ nbserver /usr/openv/db/bin ] # nbemmcmd -machinealias -deleteallaliases -machinename e25k3-backup -machinetype client
NBEMMCMD, Version:6.5.5
Command completed successfully.
# вот и нет лишних алиасов
 [ nbserver /usr/openv/db/bin ] # nbemmcmd -machinealias -getalias -machinename e25k3-backup -machinetype client
NBEMMCMD, Version:6.5.5
The function returned the following failure status:
invalid host name (136)
Command did not complete successfully.
# в списке хостов в базе данных пусто
 [ nbserver /usr/openv/db/bin ] # nbemmcmd -listhosts
NBEMMCMD, Version:6.5.5
The following hosts were found:
server          sf440-backup
master          nbserver
client          e25k2-backup
media           junior
client          baikonur
master          delta-backup
client          t2ru-lns-05
client          RS_AIC_VP_DB_01
client          scaladb
client          t2ru-icxdb-01
Command completed successfully.
# добавляю SAN client и перезапускаю NBU на стороне клиента. Видно, что хост появился в базе данных. Все работает.
 [ nbserver /usr/openv/db/bin ] # nbemmcmd -listhosts
NBEMMCMD, Version:6.5.5
The following hosts were found:
server          sf440-backup
master          nbserver
client          e25k2-backup
media           junior
client          baikonur
master          delta-backup
client          e25k3-backup
client          t2ru-lns-05
client          RS_AIC_VP_DB_01
client          scaladb
client          t2ru-icxdb-01
Command completed successfully.
 [ nbserver /usr/openv/db/bin ] #