Article ID: 125493, created on May 13, 2015, last review on May 20, 2015

  • Applies to:
  • Virtuozzo 6.0
  • Virtuozzo containers for Linux
  • Virtual Automation

Symptoms

Restore a backup via vzrestore on remote node fails with similar errors:

    # vzrestore -d 192.168.1.47 -t 2015-05-05T041419+0200@vz01.host.test -e 11724:13999
    Starting restore CT 11724:13999(2015-05-05T041419+0200@vz01.host.test) on node 192.168.1.47...
    root@192.168.1.47's password:
     password:
     You are using a deprecated utility that will be dropped in the next
    major release. Please use prlctl backup instead.

    hostname: `Host' unknown
    Created /vz/tmp/tmp0Vh0uZ
    Starting - /usr/share/vzbackup-6.0.9-26/vzrestore1 --ve-layout 04 -t 2015-05-05T041419+0200@vz01.host.test  11724:13999 .
    hostname: `Host' unknown
    Can not get host name
    Cleaning up...
    Failed to restore 192.168.1.47 CT 11724:13999 tag 2015-05-05T041419+0200@vz01.host.test.

Or

    # vzrestore -d 127.0.0.1 -e 1716
    hostname: Unknown host
    hostname: Unknown host
    Starting restore CT 1716(2014-08-05T130238-0700@vzlin05) on node 127.0.0.1...
    hostname: Unknown host
    Created /vz/tmp/tmpn18E2a
    Starting - /usr/share/vzbackup-4.7.0-3/vzrestore1 --ve-layout 04 -t 2014-08-05T130238-0700@vzlin05  1716 .
    hostname: Unknown host
    Can not get host name
    Cleaning up...
    Failed to restore 127.0.0.1 CT 1716 tag 2014-08-05T130238-0700@vzlin05.

Cause

Server hostname should be resolvable for both source and target node if you are using vzrestore.

Resolution

  1. If the hostname itself not resolvable,

     ~]# hostname
    vzlin05.test.local
    
     ~]# host vzlin05.test.local 
    Host vzlin05.test.local not found: 3(NXDOMAIN)
    

    add it to /etc/hosts:

     ~]# grep vzlin05 /etc/hosts
    192.168.187.31 vzlin05.test.local 
    
  2. If the hostname itself is resolvable, check that /etc/hosts has no incorect records in it, like:

     ~]# host vz01.host.test
    vz01.host.test has address 192.168.214.40
    
     ~]# cat /etc/hosts
    127.0.0.1   vz72.vservers.es localhost localhost4 localhost4.localdomain4
    ::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
    127.0.0.1 pvasqlserveraddress
    

Search Words

Failed to restore

Can not get host name

vzrestore

hostname: Unknown host

319940068c5fa20655215d590b7be29b 2897d76d56d2010f4e3a28f864d69223 d02f9caf3e11b191a38179103495106f e8e50b42231236b82df27684e7ec0beb c62e8726973f80975db0531f1ed5c6a2 0dd5b9380c7d4884d77587f3eb0fa8ef

Email subscription for changes to this article
Save as PDF