vradmin addsec fails if hostname longer than 32 character

book

Article ID: 100004146

calendar_today

Updated On:

Description

Error Message

# hostname
SPRSP510B5-07.spr.spt.symantec.com

Example

1.  With fully qualified name

# vradmin -g vvrdg -sdg vvrdg addsec myrvg SPRSP510B5-07.spr.spt.symantec.com SPRSP510B5-03.spr.spt.symantec.com
Message from Primary:
VxVM vxmake ERROR V-5-1-627 Error in field local_host=SPRSP510B5-07.spr.spt.symantec.com:
        name is too long
Message from Host SPRSP510B5-03.spr.spt.symantec.com:
VxVM vxmake ERROR V-5-1-627 Error in field local_host=SPRSP510B5-03.spr.spt.symantec.com:
        name is too long

2. With non-fully qualified name

# vradmin -g vvrdg -sdg vvrdg addsec myrvg SPRSP510B5-07 sprsp510b5-03
Message from Primary:
VxVM vxmake ERROR V-5-1-327 could not get local host name, context:
        rlink  rlk_sprsp510b5-03_myrvg
        remote_host=sprsp510b5-03

3. With IP address
 
# vradmin -g vvrdg -sdg vvrdg addsec myrvg 10.168.21.116 10.168.21.114 prlink=to_dr srlink=to_prod
Message from Primary:
VxVM vxmake ERROR V-5-1-327 could not get local host name, context:
        rlink  to_dr
        remote_host=10.168.21.114
 

Resolution

Change host name to non-fully qualified name using Operating system command

# hostname
SPRSP510B5-07


Then try adding secondary host

# vradmin -g vvrdg -sdg vvrdg addsec myrvg SPRSP510B5-07 SPRSP510B5-03 prlink=to_dr srlink=to_prod

OR

# vradmin -g vvrdg -sdg vvrdg addsec myrvg 10.168.21.116 10.168.21.114 prlink=to_dr srlink=to_prod
 


Applies To

Solaris/Linux/HP-UX/AIX

SF 5.0MP3 or later

Issue/Introduction

vradmin addsec fails if hostname longer than 32 character