xattab--- via FreeIPA-users wrote:
> 
> Hi. I have tried to restore freeipa. But all time have an error ERROR
> 
> Command ''tar' '--xattrs' '--selinux' '-xzf'
> '/var/lib/ipa/backup/ipa-full-2017-09-14-12-23-44/ipa-full.tar' '.''
> returned non-zero exit status 2
> 
> My actions :
> 
> 1. run ipa-backup
> 
> 2 Copy backup to another server
> 
> 3. Install freeipa  as yum install freeipa-*
> 
> 4 then  ipa-restore  backup dir
> 
> 
> My environment :
> 
> Fedora 21
> 
> freeipa 4.1.4
> 
> In log i sow message like "Cannot write: No space left on device"  but i
> have enough space
> 
> All untar backup near 20 GB  on device near 100 GB
> 
> Can you help me ) ?

/tmp is used as a staging area and that is the FS that probably doesn't
have enough space. You can try setting the environment variable TMPDIR
to point to a filesystem with adequate space before calling ipa-restore.
 That might work, I just haven't tested it.

I'm assuming you know that Fedora 21 is no longer supported.

rob

> 
> Log   iparestore.log
> 
> 2017-09-15T13:04:02Z DEBUG Logging to /var/log/iparestore.log
> 2017-09-15T13:04:02Z DEBUG ipa-restore was invoked with arguments
> ['/var/lib/ipa/backup/ipa-full-2017-09-14-12-23-44/'] and options:
> {'log_file': None, 'data_only': False, 'verbose': False, 'gpg_keyring':
> None, 'quiet': False, 'instance': None, 'no_logs': False, 'online':
> False, 'password': None, 'unattended': False, 'backend': None}
> 2017-09-15T13:04:02Z DEBUG IPA version 4.1.4-1.fc21
> 2017-09-15T13:04:02Z INFO Preparing restore from
> /var/lib/ipa/backup/ipa-full-2017-09-14-12-23-44/ on ldap.sf
> 2017-09-15T13:04:02Z INFO Performing FULL restore from FULL backup
> 2017-09-15T13:04:02Z DEBUG group dirsrv exists
> 2017-09-15T13:04:02Z DEBUG user dirsrv exists
> 2017-09-15T13:04:02Z DEBUG Starting external process
> 2017-09-15T13:04:02Z DEBUG args='tar' '--xattrs' '--selinux' '-xzf'
> '/var/lib/ipa/backup/ipa-full-2017-09-14-12-23-44/ipa-full.tar' '.'
> 2017-09-15T13:04:51Z DEBUG Process finished, return code=2
> 2017-09-15T13:04:51Z DEBUG stdout=
> 2017-09-15T13:04:51Z DEBUG stderr=tar: ./SF/changelog/id2entry.db: Wrote
> only 7168 of 10240 bytes
> tar: ./SF/changelog/targetuniqueid.db: Cannot write: No space left on device
> tar: ./SF/changelog/member.db: Cannot write: No space left on device
> tar: ./SF/changelog/numsubordinates.db: Cannot write: No space left on
> device
> tar: ./SF/changelog/uniquemember.db: Cannot write: No space left on device
> tar: ./SF/changelog/aci.db: Cannot write: No space left on device
> tar: ./SF/changelog/objectclass.db: Cannot write: No space left on device
> tar: ./SF/changelog/DBVERSION: Cannot write: No space left on device
> tar: ./SF/changelog/parentid.db: Cannot write: No space left on device
> tar: ./SF/changelog/cn.db: Cannot write: No space left on device
> tar: ./SF/changelog/nsuniqueid.db: Cannot write: No space left on device
> tar: ./SF/changelog/ancestorid.db: Cannot write: No space left on device
> tar: ./SF/changelog/seeAlso.db: Cannot write: No space left on device
> tar: ./SF/changelog/entryrdn.db: Cannot write: No space left on device
> tar: ./SF/changelog/changenumber.db: Cannot write: No space left on device
> tar: ./SF/changelog/entryusn.db: Cannot write: No space left on device
> tar: ./SF/dse_index.ldif: Cannot write: No space left on device
> tar: ./SF/log.0000095525: Cannot write: No space left on device
> tar: ./SF/userRoot/sourcehost.db: Cannot write: No space left on device
> tar: ./SF/userRoot/krbPrincipalName.db: Cannot write: No space left on
> device
> tar: ./SF/userRoot/ipakrbprincipalalias.db: Cannot write: No space left
> on device
> tar: ./SF/userRoot/macAddress.db: Cannot write: No space left on device
> tar: ./SF/userRoot/id2entry.db: Cannot write: No space left on device
> tar: ./SF/userRoot/memberOf.db: Cannot write: No space left on device
> tar: ./SF/userRoot/member.db: Cannot write: No space left on device
> tar: ./SF/userRoot/mail.db: Cannot write: No space left on device
> tar: ./SF/userRoot/memberHost.db: Cannot write: No space left on device
> tar: ./SF/userRoot/numsubordinates.db: Cannot write: No space left on device
> tar: ./SF/userRoot/uniquemember.db: Cannot write: No space left on device
> tar: ./SF/userRoot/managedby.db: Cannot write: No space left on device
> tar: ./SF/userRoot/ipasudorunas.db: Cannot write: No space left on device
> tar: ./SF/userRoot/givenName.db: Cannot write: No space left on device
> tar: ./SF/userRoot/uidnumber.db: Cannot write: No space left on device
> tar: ./SF/userRoot/uid.db: Cannot write: No space left on device
> tar: ./SF/userRoot/automountkey.db: Cannot write: No space left on device
> tar: ./SF/userRoot/aci.db: Cannot write: No space left on device
> tar: ./SF/userRoot/owner.db: Cannot write: No space left on device
> tar: ./SF/userRoot/ipaassignedidview.db: Cannot write: No space left on
> device
> tar: ./SF/userRoot/manager.db: Cannot write: No space left on device
> tar: ./SF/userRoot/displayname.db: Cannot write: No space left on device
> tar: ./SF/userRoot/fqdn.db: Cannot write: No space left on device
> tar: ./SF/userRoot/objectclass.db: Cannot write: No space left on device
> tar: ./SF/userRoot/telephoneNumber.db: Cannot write: No space left on device
> tar: ./SF/userRoot/DBVERSION: Cannot write: No space left on device
> tar: ./SF/userRoot/title.db: Cannot write: No space left on device
> tar: ./SF/userRoot/memberallowcmd.db: Cannot write: No space left on device
> tar: ./SF/userRoot/parentid.db: Cannot write: No space left on device
> tar: ./SF/userRoot/cn.db: Cannot write: No space left on device
> tar: ./SF/userRoot/nscpEntryDN.db: Cannot write: No space left on device
> tar: ./SF/userRoot/ipauniqueid.db: Cannot write: No space left on device
> tar: ./SF/userRoot/memberdenycmd.db: Cannot write: No space left on device
> tar: ./SF/userRoot/ipasudorunasgroup.db: Cannot write: No space left on
> device
> tar: ./SF/userRoot/ipatokenradiusconfiglink.db: Cannot write: No space
> left on device
> tar: ./SF/userRoot/memberUser.db: Cannot write: No space left on device
> tar: ./SF/userRoot/nsuniqueid.db: Cannot write: No space left on device
> tar: ./SF/userRoot/sn.db: Cannot write: No space left on device
> tar: ./SF/userRoot/memberservice.db: Cannot write: No space left on device
> tar: ./SF/userRoot/ancestorid.db: Cannot write: No space left on device
> tar: ./SF/userRoot/seeAlso.db: Cannot write: No space left on device
> tar: ./SF/userRoot/entryrdn.db: Cannot write: No space left on device
> tar: ./SF/userRoot/secretary.db: Cannot write: No space left on device
> tar: ./SF/userRoot/memberuid.db: Cannot write: No space left on device
> tar: ./SF/userRoot/ou.db: Cannot write: No space left on device
> tar: ./SF/userRoot/entryusn.db: Cannot write: No space left on device
> tar: ./SF/userRoot/gidnumber.db: Cannot write: No space left on device
> tar: ./SF/ipaca/vlv#allvalidcertsnotafterpkitomcatindex.db: Cannot
> write: No space left on device
> tar: ./SF/ipaca/id2entry.db: Cannot write: No space left on device
> tar: ./SF/ipaca/member.db: Cannot write: No space left on device
> tar: ./SF/ipaca/vlv#allvalidorrevokedcertspkitomcatindex.db: Cannot
> write: No space left on device
> tar: ./SF/ipaca/revokedOn.db: Cannot write: No space left on device
> tar: ./SF/ipaca/mail.db: Cannot write: No space left on device
> tar: ./SF/ipaca/notbefore.db: Cannot write: No space left on device
> tar: ./SF/ipaca/numsubordinates.db: Cannot write: No space left on device
> tar: ./SF/ipaca/duration.db: Cannot write: No space left on device
> tar: ./SF/ipaca/uniquemember.db: Cannot write: No space left on device
> tar: ./SF/ipaca/vlv#allexpiredcertspkitomcatindex.db: Cannot write: No
> space left on device
> tar: ./SF/ipaca/publicKeyData.db: Cannot write: No space left on device
> tar: ./SF/ipaca/vlv#capendingpkitomcatindex.db: Cannot write: No space
> left on device
> tar: ./SF/ipaca/dateOfCreate.db: Cannot write: No space left on device
> tar: ./SF/ipaca/vlv#allinvalidcertspkitomcatindex.db: Cannot write: No
> space left on device
> tar: ./SF/ipaca/metaInfo.db: Cannot write: No space left on device
> tar: ./SF/ipaca/vlv#allvalidcertspkitomcatindex.db: Cannot write: No
> space left on device
> tar: ./SF/ipaca/extension.db: Cannot write: No space left on device
> tar: ./SF/ipaca/vlv#cacompleterenewalpkitomcatindex.db: Cannot write: No
> space left on device
> tar: ./SF/ipaca/vlv#capendingenrollmentpkitomcatindex.db: Cannot write:
> No space left on device
> tar: ./SF/ipaca/uid.db: Cannot write: No space left on device
> tar: ./SF/ipaca/subjectname.db: Cannot write: No space left on device
> tar: ./SF/ipaca/aci.db: Cannot write: No space left on device
> tar: ./SF/ipaca/vlv#caenrollmentpkitomcatindex.db: Cannot write: No
> space left on device
> tar: ./SF/ipaca/owner.db: Cannot write: No space left on device
> tar: ./SF/ipaca/vlv#allrevokedcertspkitomcatindex.db: Cannot write: No
> space left on device
> tar: ./SF/ipaca/vlv#allrevokedcertsnotafterpkitomcatindex.db: Cannot
> write: No space left on device
> tar: ./SF/ipaca/vlv#cacompleteenrollmentpkitomcatindex.db: Cannot write:
> No space left on device
> tar: ./SF/ipaca/objectclass.db: Cannot write: No space left on device
> tar: ./SF/ipaca/serialno.db: Cannot write: No space left on device
> tar: ./SF/ipaca/vlv#carenewalpkitomcatindex.db: Cannot write: No space
> left on device
> tar: ./SF/ipaca/revInfo.db: Cannot write: No space left on device
> tar: ./SF/ipaca/DBVERSION: Cannot write: No space left on device
> tar: ./SF/ipaca/revokedby.db: Cannot write: No space left on device
> tar: ./SF/ipaca/parentid.db: Cannot write: No space left on device
> tar: ./SF/ipaca/vlv#allcertspkitomcatindex.db: Cannot write: No space
> left on device
> tar: ./SF/ipaca/vlv#cacompletepkitomcatindex.db: Cannot write: No space
> left on device
> tar: ./SF/ipaca/vlv#capendingrenewalpkitomcatindex.db: Cannot write: No
> space left on device
> tar: ./SF/ipaca/cn.db: Cannot write: No space left on device
> tar: ./SF/ipaca/certstatus.db: Cannot write: No space left on device
> tar: ./SF/ipaca/issuedby.db: Cannot write: No space left on device
> tar: ./SF/ipaca/requeststate.db: Cannot write: No space left on device
> tar: ./SF/ipaca/nsuniqueid.db: Cannot write: No space left on device
> tar: ./SF/ipaca/vlv#allinvalidcertsnotbeforepkitomcatindex.db: Cannot
> write: No space left on device
> tar: ./SF/ipaca/sn.db: Cannot write: No space left on device
> tar: ./SF/ipaca/vlv#allrevokedorrevokedexpiredcertspkitomcatindex.db:
> Cannot write: No space left on device
> tar: ./SF/ipaca/requesttype.db: Cannot write: No space left on device
> tar: ./SF/ipaca/ancestorid.db: Cannot write: No space left on device
> tar: ./SF/ipaca/vlv#allrevokedexpiredcertspkitomcatindex.db: Cannot
> write: No space left on device
> tar: ./SF/ipaca/vlv#cacompleterevocationpkitomcatindex.db: Cannot write:
> No space left on device
> tar: ./SF/ipaca/seeAlso.db: Cannot write: No space left on device
> tar: ./SF/ipaca/vlv#carevocationpkitomcatindex.db: Cannot write: No
> space left on device
> tar: ./SF/ipaca/entryrdn.db: Cannot write: No space left on device
> tar: ./SF/ipaca/notafter.db: Cannot write: No space left on device
> tar: ./SF/ipaca/description.db: Cannot write: No space left on device
> tar: ./SF/ipaca/vlv#caallpkitomcatindex.db: Cannot write: No space left
> on device
> tar: ./SF/ipaca/requestid.db: Cannot write: No space left on device
> tar: ./SF/ipaca/entryusn.db: Cannot write: No space left on device
> tar: ./SF/ipaca/vlv#allnonrevokedcertspkitomcatindex.db: Cannot write:
> No space left on device
> tar: ./SF-userRoot.ldif: Cannot write: No space left on device
> tar: ./SF-ipaca.ldif: Cannot write: No space left on device
> tar: Exiting with failure status due to previous errors
> 
> 2017-09-15T13:04:51Z DEBUG   File
> "/usr/lib/python2.7/site-packages/ipapython/admintool.py", line 171, in
> execute
>     return_value = self.run()
>   File
> "/usr/lib/python2.7/site-packages/ipaserver/install/ipa_restore.py",
> line 305, in run
>     self.extract_backup(options.gpg_keyring)
>   File
> "/usr/lib/python2.7/site-packages/ipaserver/install/ipa_restore.py",
> line 712, in extract_backup
>     run(args)
>   File "/usr/lib/python2.7/site-packages/ipapython/ipautil.py", line
> 356, in run
>     raise CalledProcessError(p.returncode, arg_string, stdout)
> 
> 2017-09-15T13:04:51Z DEBUG The ipa-restore command failed, exception:
> CalledProcessError: Command ''tar' '--xattrs' '--selinux' '-xzf'
> '/var/lib/ipa/backup/ipa-full-2017-09-14-12-23-44/ipa-full.tar' '.''
> returned non-zero exit status 2
> 2017-09-15T13:04:51Z ERROR Command ''tar' '--xattrs' '--selinux' '-xzf'
> '/var/lib/ipa/backup/ipa-full-2017-09-14-12-23-44/ipa-full.tar' '.''
> returned non-zero exit status 2
> 
> _______________________________________________
> FreeIPA-users mailing list -- freeipa-users@lists.fedorahosted.org
> To unsubscribe send an email to freeipa-users-le...@lists.fedorahosted.org
> 
_______________________________________________
FreeIPA-users mailing list -- freeipa-users@lists.fedorahosted.org
To unsubscribe send an email to freeipa-users-le...@lists.fedorahosted.org

Reply via email to