08-17-2013 02:29 AM
My clien hostname is localhost.localdomain,when i install the nbu client,i enter the client name is clienta,do i must need to add the clienta hostname resolution to the /etc/hosts?I tried to only add the master server hostname resolution,don't add the clienta hostname resolution,and tried to run the backup jobs,it runs successfull.
my client /etc/hosts
127.0.0.1 localhost.localdomain localhost
10.0.0.3 nbumaster01
my nbumaster /etc/hosts
10.0.0.3 nbumaster01
10.0.0.22 clienta
Solved! Go to Solution.
08-17-2013 05:50 AM
[root@localhost /]# /usr/openv/netbackup/bin/bpclntcmd -self
yp_get_default_domain failed: (12) Local domain name not set
NIS does not seem to be running: (1) Request arguments bad
gethostname() returned: localhost.localdomain
host localhost.localdomain: localhost.localdomain at 127.0.0.1
aliases: localhost.localdomain 127.0.0.1
getfqdn(localhost.localdomain) returned: localhost.localdomain
it is resolving the loopback IP address... with this case...
you can trigger the backups and restore form Mastere server fine.
any client iniciated jobs would not work... backups/restores etc..
08-17-2013 02:45 AM
if you are not using the DNS, yes. host name resolution is required in all Master , media and clients
along with the host names the entires in the SERVER bp.conf (for unix) registory key ( in Windows) is also important to have the successfull backup and restore.
08-17-2013 04:51 AM
But i have not add the host name resolution to the client,and the backup job run also successfully.Why?
08-17-2013 04:59 AM
bpcltncmd -hn <hostname>
bpclntcmd -ip <IP addresss>
if they resolve the names and IP , that indicates indicates host and IP address resolution is fine and backup will get successfull.
08-17-2013 05:11 AM
So may i think that add the CLIENT_NAME resolution to the /etc/hosts is not necessary,only add the maser resolution to the client /etc/hosts is necessary.
08-17-2013 05:43 AM
This is my config:
[root@nbumaster01 ~]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
10.0.0.3 nbumaster01
10.0.0.20 clienta
[root@nbumaster01 ~]# /usr/openv/netbackup/bin/admincmd/bptestbpcd -host clienta -verbose
1 1 1
10.0.0.3:51365 -> 10.0.0.20:1556
10.0.0.3:58599 -> 10.0.0.20:1556
PEER_NAME = nbumaster01
HOST_NAME = localhost.localdomain
CLIENT_NAME = clienta
VERSION = 0x07500000
PLATFORM = linuxR_x86_2.6.18
PATCH_VERSION = 7.5.0.2
SERVER_PATCH_VERSION = -1.-1.-1.-1
MASTER_SERVER = nbumaster01
EMM_SERVER = nbumaster01
NB_MACHINE_TYPE = MASTER_SERVER
[root@localhost /]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
10.0.0.3 nbumaster01
[root@localhost /]# /usr/openv/netbackup/bin/bpclntcmd -hn nbumaster01
host nbumaster01: nbumaster01 at 10.0.0.3
aliases: nbumaster01 10.0.0.3
[root@localhost /]# /usr/openv/netbackup/bin/bpclntcmd -self
yp_get_default_domain failed: (12) Local domain name not set
NIS does not seem to be running: (1) Request arguments bad
gethostname() returned: localhost.localdomain
host localhost.localdomain: localhost.localdomain at 127.0.0.1
aliases: localhost.localdomain 127.0.0.1
getfqdn(localhost.localdomain) returned: localhost.localdomain
08-17-2013 05:50 AM
[root@localhost /]# /usr/openv/netbackup/bin/bpclntcmd -self
yp_get_default_domain failed: (12) Local domain name not set
NIS does not seem to be running: (1) Request arguments bad
gethostname() returned: localhost.localdomain
host localhost.localdomain: localhost.localdomain at 127.0.0.1
aliases: localhost.localdomain 127.0.0.1
getfqdn(localhost.localdomain) returned: localhost.localdomain
it is resolving the loopback IP address... with this case...
you can trigger the backups and restore form Mastere server fine.
any client iniciated jobs would not work... backups/restores etc..
08-17-2013 07:08 AM
But i tried successfull.
[root@localhost bpbkar]# /usr/openv/netbackup/bin/bpbackup -p file_backup -s full -L /tmp/backup.log -S nbumaster01 -f /tmp/filelist
[root@localhost bpbkar]# cat log.081713
21:00:29.011 [20035] <4> bpbkar main: real locales <LC_CTYPE=en_US.UTF-8;LC_NUMERIC=en_US.UTF-8;LC_TIME=en_US.UTF-8;LC_COLLATE=en_US.UTF-8;LC_MONETARY=C;LC_MESSAGES=en_US.UTF-8;LC_PAPER=C;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=C;LC_IDENTIFICATION=C>
21:00:29.011 [20035] <4> bpbkar main: standardized locales - mnt_lc_messages <en_US.UTF-8> mnt_lc_ctype <en_US.UTF-8> mnt_lc_time <en_US.UTF-8> mnt_lc_collate <en_US.UTF-8> mnt_lc_numeric <en_US.UTF-8>
21:00:29.014 [20035] <2> logparams: bpbkar -r 1209600 -ru root -dt 0 -to 0 -bpstart_time 1376722658 -clnt clienta -class file_backup -sched full -st UBAK -bpstart_to 3600 -bpend_to 3600 -read_to 3600 -L /tmp/backup.log -blks_per_buffer 512 -use_otm -fso -U -IEL -b clienta_1376722358 -kl 28 -use_ofb
21:00:29.014 [20035] <2> bpbkar main: hole_granularity = 256.
21:00:29.015 [20035] <4> bpbkar: INF - setenv KEYWORD=NONE
21:00:29.015 [20035] <4> bpbkar: INF - setenv STREAM_PID=20035
21:00:29.015 [20035] <4> bpbkar: INF - setenv STREAM_NUMBER=0
21:00:29.015 [20035] <4> bpbkar: INF - setenv STREAM_COUNT=0
21:00:29.015 [20035] <4> bpbkar: INF - setenv STREAMS=0
21:00:29.015 [20035] <4> bpbkar: INF - setenv BPSTART_TIMEOUT=3600
21:00:29.015 [20035] <4> bpbkar: INF - setenv BPEND_TIMEOUT=3600
21:00:29.015 [20035] <4> bpbkar: INF - setenv RESTARTED=0
21:00:29.015 [20035] <4> bpbkar: INF - setenv BACKUPID=clienta_1376722358
21:00:29.015 [20035] <4> bpbkar: INF - setenv UNIXBACKUPTIME=1376722358
21:00:29.015 [20035] <4> bpbkar: INF - setenv BACKUPTIME=Sat Aug 17 14:52:38 2013
21:00:29.015 [20035] <4> bpbkar: INF - BACKUP START 20035
21:00:29.015 [20035] <4> bpbkar: INF - Estimate:-1 -1
21:00:29.019 [20035] <2> bpbkar add_to_filelist: starting sizeof(filelistrec) <128>
21:00:29.019 [20035] <4> bpbkar: start to backup filelist /etc/hosts ,nb_fscp_enabled is 0
21:00:29.026 [20035] <4> bpbkar: INF - Processing /etc/hosts
21:00:29.033 [20035] <2> fscp_is_tracked: disabled tla_init
21:00:29.037 [20035] <4> bpbkar: end backup for filelist /etc/hosts
21:00:29.042 [20035] <4> bpbkar: INF - Client completed sending data for backup
21:00:29.044 [20035] <4> bpbkar: INF - bpbkar exit normal
21:00:29.044 [20035] <4> bpbkar: INF - EXIT STATUS 0: the requested operation was successfully completed
21:00:29.044 [20035] <4> bpbkar: INF - setenv FINISHED=1
[root@localhost bpbkar]# cat /tmp/backup.log
Backup started 08/17/2013 21:00:21
21:00:25 Initiating backup
21:00:28 INF - Starting bpbrm
21:00:29 INF - Processing /etc/hosts
21:00:29 /
21:00:29 /etc/
21:00:29 /etc/hosts
21:00:29 /VRTS_IMAGE_SIZE_RECORD
21:00:29 INF - Client completed sending data for backup
21:00:30 INF - Beginning backup on server nbumaster01 of client clienta
21:00:32 INF - Server status = 0
21:00:32 INF - Backup by root on client clienta using policy file_backup, sched full:the requested operation was successfully completed
[root@localhost bpbkar]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
10.0.0.3 nbumaster01
08-17-2013 07:50 AM
great... so you have answer to your initial question... :)
08-17-2013 09:33 AM
When i change the client_name .....
But i have not add the host name resolution to the client,and the backup job run also successfully.Why?
You have changed client name, not master server or media server name, right?
So, master can connect to new client hostname, client can resolve master server IP address to a valid SERVER name.
Life is good - nothing else needed for successful backup.
Please mark Nagalla's post as Solution.
08-17-2013 06:25 PM