cancel
Showing results for 
Search instead for 
Did you mean: 

Did NB7.1 fully support IPV6?

leqiangw
Level 3

 

Dear support,

 I got one quesiton, did NB7.1 fully support IPV6? Is there any feature for IPV6 which should be turned on?

I tried IPV6 scenario. Master and client are different machine. And the environments for master and client are IPV6.  Then  backup operation failed with error "The system function gethostbyname() failed to find the client's hostname". It seems the hostname of client was not resolved. Here gethostbyname() only apply to IPV4 address. 

 

 

Regards,

Lucas

7 REPLIES 7

Yasuhisa_Ishika
Level 6
Partner Accredited Certified
This messages is detail of status code 48, and i suppose that it is just left unchanged although NetBackup start to support IPv6. Have you already checked on both host where they can resolve host name you specified as client.

leqiangw
Level 3

yes, the hostnames can be resolved as IPV6 address.

do you mean it is probably a configuration issue? I use NetBackup7.1. Is it ready for supporting IPV6? thanks,

 

 

Marianne
Moderator
Moderator
Partner    VIP    Accredited Certified

Yasuhisa_Ishika
Level 6
Partner Accredited Certified

IPv6 support of NetBackup has some limitations, like use of link-local address.
(In my test environment, server installation failed using link-local address. I will try with global address later)

Check NetBackup 7.1 Release Notes for detail.
http:/www.symantec.com/docs/DOC3643
 

leqiangw
Level 3

I use global address. From the release notes, NetBackup7.1 support IPV6 in server and client side.  I will try it again.

But it's interesting I got one error as  "The system function gethostbyname() failed to find the client's hostname". Generally gethostbyname() only support IPV4.

leqiangw
Level 3

thanks, Marianne. From the release notes, NBU7.1 should support IPV6 for my case. I will try it again.

Yasuhisa_Ishika
Level 6
Partner Accredited Certified

I have tested on RHEL 5.5 x64 in my test environment(running on VMware).

With global address

[root@nbulnx1 ~]# grep nbulnx3-v6 /etc/hosts
fd00::215:5dff:fec3:5865        nbulnx3-v6 nbulnx3-v6.
[root@nbulnx1 ~]# bpbackup -i -w -p test_files_2 -s Full -h nbulnx3-v6
[root@nbulnx1 ~]# bpdbjobs  | head -6
JobID           Type State Status        Policy Schedule     Client Dest Media Svr Active PID FATPipe
   22 Catalog Backup  Done      0 CatalogBackup     Diff nbulnx1-v6     nbulnx1-v6       7511      No
   21 Catalog Backup  Done      0 CatalogBackup     Diff nbulnx1-v6     nbulnx1-v6       7456      No
   20 Catalog Backup  Done      0 CatalogBackup     Diff nbulnx1-v6                      7425
   19 Catalog Backup  Done      0 CatalogBackup        - nbulnx1-v6     nbulnx1-v6                 No
   18         Backup  Done      0  test_files_2     Full nbulnx3-v6     nbulnx1-v6       7326      No

With link-local address

[root@nbulnx1 ~]# vi /etc/hosts
[root@nbulnx1 ~]# grep nbulnx3-v6 /etc/hosts
fe80::215:5dff:fec3:5865        nbulnx3-v6 nbulnx3-v6.
[root@nbulnx1 ~]# rm -rf /usr/openv/var/host_cache/*   <----- remove host cache
[root@nbulnx1 ~]# bpbackup -i -w -p test_files_2 -s Full -h nbulnx3-v6
EXIT STATUS 48: client hostname could not be found
[root@nbulnx1 ~]# bperror -S 48
client hostname could not be found
The system function gethostbyname() failed to find the client's host name.

Which is used, gethostbyname() or getaddrinfo()?

Unfortunately, both is linked into binaries.
To determine NetBackup uses gethostbyname() or getaddrinfo(), I traced bptestbpcd with gdb(strace is useless because these call is not system call, just API in glibc).
Although detail message of status code 48 shows "gethostbyname()", NetBackup always uses getaddrinfo().

[root@nbulnx1 ~]# /usr/openv/netbackup/bin/admincmd/bptestbpcd -host nbulnx3-v6
<16>bptestbpcd main: Function ConnectToBPCD(nbulnx3-v6) failed: 48
client hostname could not be found
 

[root@nbulnx1 ~]# gdb
GNU gdb (GDB) Red Hat Enterprise Linux (7.0.1-23.el5)
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
(gdb) file /usr/openv/netbackup/bin/admincmd/bptestbpcd
Reading symbols from /usr/openv/netbackup/bin/admincmd/bptestbpcd...(no debugging symbols found)...done.
(gdb) break gethostbyname
Function "gethostbyname" not defined.
Make breakpoint pending on future shared library load? (y or [n]) y
Breakpoint 1 (gethostbyname) pending.
(gdb) break getaddrinfo
Function "getaddrinfo" not defined.
Make breakpoint pending on future shared library load? (y or [n]) y
Breakpoint 2 (getaddrinfo) pending.
(gdb) run -host nbulnx3-v6
 

Starting program: /usr/openv/netbackup/bin/admincmd/bptestbpcd -host nbulnx3-v6
warning: no loadable sections found in added symbol-file system-supplied DSO at 0x2aaaaaaab000

Breakpoint 2, 0x0000003985cbd8b4 in getaddrinfo () from /lib64/libc.so.6
(gdb) bt
#0  0x0000003985cbd8b4 in getaddrinfo () from /lib64/libc.so.6
#1  0x00002aaaabbd6442 in get_pbx_port_number () from /usr/openv/lib/libnbbaseST.so  <--- called to get number of "veritas_pbx" port
#2  0x00002aaaabbd3c3a in nbconf_get_bpinfo () from /usr/openv/lib/libnbbaseST.so
#3  0x00002aaaabbd6823 in nbconf_get_info () from /usr/openv/lib/libnbbaseST.so
#4  0x00002aaaabbd6b95 in nbconf_get_info_ref_count () from /usr/openv/lib/libnbbaseST.so
#5  0x00002aaaabbe154c in get_config_values () from /usr/openv/lib/libnbbaseST.so
#6  0x00002aaaabbdcaba in vnet_cached_getaddrinfo_and_update () from /usr/openv/lib/libnbbaseST.so
#7  0x00002aaaabbdc924 in vnet_cached_getaddrinfo () from /usr/openv/lib/libnbbaseST.so
#8  0x00002aaaabbdb0b9 in vnet_is_local_host () from /usr/openv/lib/libnbbaseST.so
#9  0x00002aaaab9fa65a in bp_gethostname () from /usr/openv/lib/libnbclientST.so
#10 0x0000000000402f20 in main ()
(gdb) c
Continuing.

Breakpoint 2, 0x0000003985cbd8b4 in getaddrinfo () from /lib64/libc.so.6
(gdb) bt
#0  0x0000003985cbd8b4 in getaddrinfo () from /lib64/libc.so.6
#1  0x00002aaaabbdc3ef in retry_getaddrinfo_for_real () from /usr/openv/lib/libnbbaseST.so
#2  0x00002aaaabbdc1e8 in retry_getaddrinfo () from /usr/openv/lib/libnbbaseST.so
#3  0x00002aaaabbdd7a9 in vnet_cached_getaddrinfo_and_update () from /usr/openv/lib/libnbbaseST.so
#4  0x00002aaaabbdc924 in vnet_cached_getaddrinfo () from /usr/openv/lib/libnbbaseST.so
#5  0x00002aaaabbdfbf3 in vnet_same_host_and_update () from /usr/openv/lib/libnbbaseST.so
#6  0x00002aaaabbdf4c1 in vnet_same_host () from /usr/openv/lib/libnbbaseST.so
#7  0x00002aaaabbf2b28 in hosts_equal () from /usr/openv/lib/libnbbaseST.so
#8  0x00002aaaab77556c in bpcr_get_connect_opts () from /usr/openv/lib/libVbp.so
#9  0x00002aaaaab6e502 in ConnectToBPCD () from /usr/openv/lib/libVdb.so
#10 0x0000000000403434 in main ()
(gdb) x/s $rdi
0x7fffffff8ac0:  "nbulnx3-v6"
(gdb) c
Continuing.

Breakpoint 2, 0x0000003985cbd8b4 in getaddrinfo () from /lib64/libc.so.6
(gdb) bt
#0  0x0000003985cbd8b4 in getaddrinfo () from /lib64/libc.so.6
#1  0x00002aaaabbdc3ef in retry_getaddrinfo_for_real () from /usr/openv/lib/libnbbaseST.so
#2  0x00002aaaabbdc1e8 in retry_getaddrinfo () from /usr/openv/lib/libnbbaseST.so
#3  0x00002aaaabbdd7a9 in vnet_cached_getaddrinfo_and_update () from /usr/openv/lib/libnbbaseST.so
#4  0x00002aaaabbdc924 in vnet_cached_getaddrinfo () from /usr/openv/lib/libnbbaseST.so
#5  0x00002aaaabbdfbf3 in vnet_same_host_and_update () from /usr/openv/lib/libnbbaseST.so
#6  0x00002aaaabbdf4c1 in vnet_same_host () from /usr/openv/lib/libnbbaseST.so
#7  0x00002aaaabbf2b28 in hosts_equal () from /usr/openv/lib/libnbbaseST.so
#8  0x00002aaaab77556c in bpcr_get_connect_opts () from /usr/openv/lib/libVbp.so
#9  0x00002aaaab76e371 in local_bpcr_connect () from /usr/openv/lib/libVbp.so
#10 0x00002aaaab76f348 in bpcr_connect_with_vxss () from /usr/openv/lib/libVbp.so
#11 0x00002aaaaab6e56f in ConnectToBPCD () from /usr/openv/lib/libVdb.so
#12 0x0000000000403434 in main ()
(gdb) x/s $rdi
0x7fffffff7e90:  "nbulnx3-v6"
(gdb) c
Continuing.

Breakpoint 2, 0x0000003985cbd8b4 in getaddrinfo () from /lib64/libc.so.6
(gdb) bt
#0  0x0000003985cbd8b4 in getaddrinfo () from /lib64/libc.so.6
#1  0x00002aaaabbdc3ef in retry_getaddrinfo_for_real () from /usr/openv/lib/libnbbaseST.so
#2  0x00002aaaabbdc1e8 in retry_getaddrinfo () from /usr/openv/lib/libnbbaseST.so
#3  0x00002aaaabbdd7a9 in vnet_cached_getaddrinfo_and_update () from /usr/openv/lib/libnbbaseST.so
#4  0x00002aaaabbdc924 in vnet_cached_getaddrinfo () from /usr/openv/lib/libnbbaseST.so
#5  0x00002aaaabbdfb40 in vnet_same_host_and_update () from /usr/openv/lib/libnbbaseST.so
#6  0x00002aaaabbdf4c1 in vnet_same_host () from /usr/openv/lib/libnbbaseST.so
#7  0x00002aaaabbe00ee in vnet_get_connect_options () from /usr/openv/lib/libnbbaseST.so
#8  0x00002aaaabbea99e in init_connect_recs () from /usr/openv/lib/libnbbaseST.so
#9  0x00002aaaabbea57d in connect_to_service () from /usr/openv/lib/libnbbaseST.so
#10 0x00002aaaabbea187 in vnet_connect_to_bpcd () from /usr/openv/lib/libnbbaseST.so
#11 0x00002aaaab76e54c in local_bpcr_connect () from /usr/openv/lib/libVbp.so
#12 0x00002aaaab76f348 in bpcr_connect_with_vxss () from /usr/openv/lib/libVbp.so
#13 0x00002aaaaab6e56f in ConnectToBPCD () from /usr/openv/lib/libVdb.so
#14 0x0000000000403434 in main ()
(gdb) x/s $rdi
0x7fffffff7c40:  "nbulnx3-v6"
(gdb) c
Continuing.

Breakpoint 2, 0x0000003985cbd8b4 in getaddrinfo () from /lib64/libc.so.6
(gdb) bt
#0  0x0000003985cbd8b4 in getaddrinfo () from /lib64/libc.so.6
#1  0x00002aaaabbdc3ef in retry_getaddrinfo_for_real () from /usr/openv/lib/libnbbaseST.so
#2  0x00002aaaabbdc1e8 in retry_getaddrinfo () from /usr/openv/lib/libnbbaseST.so
#3  0x00002aaaabbdd7a9 in vnet_cached_getaddrinfo_and_update () from /usr/openv/lib/libnbbaseST.so
#4  0x00002aaaabbdc924 in vnet_cached_getaddrinfo () from /usr/openv/lib/libnbbaseST.so
#5  0x00002aaaabbeaa57 in init_connect_recs () from /usr/openv/lib/libnbbaseST.so
#6  0x00002aaaabbea57d in connect_to_service () from /usr/openv/lib/libnbbaseST.so
#7  0x00002aaaabbea187 in vnet_connect_to_bpcd () from /usr/openv/lib/libnbbaseST.so
#8  0x00002aaaab76e54c in local_bpcr_connect () from /usr/openv/lib/libVbp.so
#9  0x00002aaaab76f348 in bpcr_connect_with_vxss () from /usr/openv/lib/libVbp.so
#10 0x00002aaaaab6e56f in ConnectToBPCD () from /usr/openv/lib/libVdb.so
#11 0x0000000000403434 in main ()
(gdb) x/s $rdi
0x7fffffff7d60:  "nbulnx3-v6"
(gdb) c
Continuing.
<16>bptestbpcd main: Function ConnectToBPCD(nbulnx3-v6) failed: 48
client hostname could not be found

Program exited with code 060.
(gdb) q
[root@nbulnx1 ~]#