Video Screencast Help
Symantec to Separate Into Two Focused, Industry-Leading Technology Companies. Learn more.

ERROR V-5-1-327 (not able to establish replication between two nodes via virtual ip address at both sides)

Created: 29 Sep 2012 • Updated: 29 Sep 2012 | 5 comments
Zahid.Haseeb's picture
This issue has been solved. See solution.

Environment

SF = 6.0

rhel 6.2

vvr nodes = two

node1 configuration

eth4 = 172.16.0.1

eth6 = 10.0.0.1

eth6:1 = 10.0.0.4

one diskgroup with 2volumes, one for replication and second for srl

node2 configuration

eth4 = 172.16.0.2

eth6 = 10.0.0.2

eth6:1 = 10.0.0.5

one diskgroup with 2volumes, one for replication and second for srl

host file of node1

10.0.0.2    repnode2
10.0.0.5        repnode2
172.16.0.2    repnode2

host file of node2

10.0.0.1    repnode1
10.0.0.4    repnode1
172.16.0.1    repnode1

routing table of node1

[root@repnode1 ~]# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.0.0.5        0.0.0.0         255.255.255.255 UH    0      0        0 eth6
172.16.0.0      0.0.0.0         255.255.0.0     U     0      0        0 Auto_eth1
10.0.0.0        0.0.0.0         255.0.0.0       U     0      0        0 eth6

routing table of node2

[root@repnode2 ~]# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.0.0.4        0.0.0.0         255.255.255.255 UH    0      0        0 eth6
172.16.0.0      0.0.0.0         255.255.0.0     U     0      0        0 eth4
10.0.0.0        0.0.0.0         255.0.0.0       U     0      0        0 eth6

vxprint result below

# vxprint
Disk group: DG

TY NAME         ASSOC        KSTATE   LENGTH   PLOFFS   STATE    TUTIL0  PUTIL0
dg DG           DG           -        -        -        -        -       -

dm DG01         sdb          -        2027264  -        -        -       -
dm DG02         sdc          -        2027264  -        -        -       -

rv rvg          -            ENABLED  -        -        ACTIVE   -       -
v  vol          rvg          ENABLED  1638400  -        ACTIVE   -       -
pl vol-01       vol          ENABLED  1638400  -        ACTIVE   -       -
sd DG01-01      vol-01       ENABLED  1638400  0        -        -       -
pl vol-02       vol          ENABLED  LOGONLY  -        ACTIVE   -       -
sd DG01-02      vol-02       ENABLED  32       LOG      -        -       -
pl vol-03       vol          ENABLED  LOGONLY  -        ACTIVE   -       -
sd DG02-02      vol-03       ENABLED  32       LOG      -        -       -
v  srl          rvg          ENABLED  1638400  SRL      ACTIVE   -       -
pl srl-01       srl          ENABLED  1638400  -        ACTIVE   -       -
sd DG02-01      srl-01       ENABLED  1638400  0        -        -       -
 

problem

createpri command ran successfully

# vradmin -g DG addsec rvg 10.0.0.4 10.0.0.5

Message from Primary:
VxVM vxmake ERROR V-5-1-327 could not get local host name, context:
    rlink  rlk_10.0.0.5_rvg    
    remote_host=10.0.0.5
Message from Host 10.0.0.5:
VxVM vxmake ERROR V-5-1-327 could not get local host name, context:
    rlink  rlk_10.0.0.4_rvg    
    remote_host=10.0.0.4
 

Discussion Filed Under:

Comments 5 CommentsJump to latest comment

mikebounds's picture

You could try adding localhost name resolution to host files (i.e add .4 to node1 and .5 to node2 host file), but as you are specifying IPS in vradmin addsec I didn't think this was required.

Mike

UK Symantec Consultant in VCS, GCO, SF, VVR, VxAT on Solaris, AIX, HP-ux, Linux & Windows

If this post has answered your question then please click on "Mark as solution" link below

SOLUTION
mikebounds's picture

Another thing is that the Genmask does not look right in netstat -r output as I don't know why it is 255.255.255.255.  Did you add any routes - as replication nodes are in the same subnet, you shouldn't need to add any routes.  

Mike

UK Symantec Consultant in VCS, GCO, SF, VVR, VxAT on Solaris, AIX, HP-ux, Linux & Windows

If this post has answered your question then please click on "Mark as solution" link below

Zahid.Haseeb's picture

I add the entries under host file at both nodes

on repnode1

10.0.0.4    repnode1

on repnode2

10.0.0.5    repnode2

ran the command successful but did not get repstatus result successful. further more I restart the below services:

/etc/init.d/vras-vradmind.sh restart

 /usr/sbin/vxstart_vvr restart

[root@repnode1 ~]# vradmin -g DG repstatus rvg
Replicated Data Set: rvg
Primary:
  Host name:                  10.0.0.4
  RVG name:                   rvg
  DG name:                    DG
  RVG state:                  enabled for I/O
  Data volumes:               1
  VSets:                      0
  SRL name:                   srl
  SRL size:                   800.00 M
  Total secondaries:          1
Config Errors:
 10.0.0.5:                   Pri or Sec IP not available or vradmind not running
 

Any comment will be appreciated. Mark as Solution if your query is resolved
__________________
Thanks in Advance
Zahid Haseeb

zahidhaseeb.wordpress.com

Zahid.Haseeb's picture

Thanks Mike:

sorry entered wrong enteries. Now correct the right enteries. and now status

[root@repnode2 ~]# vradmin -g DG repstatus rvg
Replicated Data Set: rvg
Primary:
  Host name:                  10.0.0.4
  RVG name:                   rvg
  DG name:                    DG
  RVG state:                  enabled for I/O
  Data volumes:               1
  VSets:                      0
  SRL name:                   srl
  SRL size:                   800.00 M
  Total secondaries:          1
Secondary:
  Host name:                  10.0.0.5
  RVG name:                   rvg
  DG name:                    DG
  Data status:                consistent, up-to-date
  Replication status:         replicating (connected)
  Current mode:               asynchronous
  Logging to:                 SRL
  Timestamp Information:      behind by  0h 0m 0s
 

Any comment will be appreciated. Mark as Solution if your query is resolved
__________________
Thanks in Advance
Zahid Haseeb

zahidhaseeb.wordpress.com

Zahid.Haseeb's picture

Marked your post as solution. Thanks for kind support as always :)

Any comment will be appreciated. Mark as Solution if your query is resolved
__________________
Thanks in Advance
Zahid Haseeb

zahidhaseeb.wordpress.com