[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [rdiff-backup-users] Trying to backup and restore root-partition...
From: |
Oliver Kaltenecker |
Subject: |
Re: [rdiff-backup-users] Trying to backup and restore root-partition... |
Date: |
Thu, 06 Nov 2003 14:35:46 +0100 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:1.4) Gecko/20030624 |
Ben Escoto schrieb:
Hmm, can you try the restore without --exclude-other-filesystems and
with -v6 and tell me what it says before the final error? That
information will hopefully narrow it down to one file.
As you said I did the following:
# rdiff-backup --force --print-statistics --exclude-device-files
--restore-as-of now -v6 /mirror/client/wurzel client::/ >
/tmp/restore.log 2>&1
and got the following in /tmp/restore.log:
Processing changed file .
Processing changed file boot
Regular copying ('boot',) to /rdiff-backup.tmp.0
Processing changed file boot/System.map-2.4.20-4GB
Regular copying ('boot', 'System.map-2.4.20-4GB') to
/boot/rdiff-backup.tmp.1
Processing changed file boot/boot
Regular copying ('boot', 'boot') to /boot/rdiff-backup.tmp.2
Processing changed file boot/grub
Regular copying ('boot', 'grub') to /boot/rdiff-backup.tmp.3
Processing changed file boot/grub/device.map
Regular copying ('boot', 'grub', 'device.map') to
/boot/grub/rdiff-backup.tmp.4
Processing changed file boot/grub/e2fs_stage1_5
Regular copying ('boot', 'grub', 'e2fs_stage1_5') to
/boot/grub/rdiff-backup.tmp.5
Processing changed file boot/grub/fat_stage1_5
Regular copying ('boot', 'grub', 'fat_stage1_5') to
/boot/grub/rdiff-backup.tmp.6
Processing changed file boot/grub/ffs_stage1_5
Regular copying ('boot', 'grub', 'ffs_stage1_5') to
/boot/grub/rdiff-backup.tmp.7
Processing changed file boot/grub/jfs_stage1_5
Regular copying ('boot', 'grub', 'jfs_stage1_5') to
/boot/grub/rdiff-backup.tmp.8
Processing changed file boot/grub/menu.lst
Regular copying ('boot', 'grub', 'menu.lst') to
/boot/grub/rdiff-backup.tmp.9
Processing changed file boot/grub/minix_stage1_5
Regular copying ('boot', 'grub', 'minix_stage1_5') to
/boot/grub/rdiff-backup.tmp.10
Processing changed file boot/grub/nbgrub
Regular copying ('boot', 'grub', 'nbgrub') to /boot/grub/rdiff-backup.tmp.11
Processing changed file boot/grub/pxegrub
Regular copying ('boot', 'grub', 'pxegrub') to
/boot/grub/rdiff-backup.tmp.12
Processing changed file boot/grub/reiserfs_stage1_5
Regular copying ('boot', 'grub', 'reiserfs_stage1_5') to
/boot/grub/rdiff-backup.tmp.13
Processing changed file boot/grub/stage1
Regular copying ('boot', 'grub', 'stage1') to /boot/grub/rdiff-backup.tmp.14
Processing changed file boot/grub/stage2
Regular copying ('boot', 'grub', 'stage2') to /boot/grub/rdiff-backup.tmp.15
Processing changed file boot/grub/stage2.netboot
Regular copying ('boot', 'grub', 'stage2.netboot') to
/boot/grub/rdiff-backup.tmp.16
Processing changed file boot/grub/vstafs_stage1_5
Regular copying ('boot', 'grub', 'vstafs_stage1_5') to
/boot/grub/rdiff-backup.tmp.17
Processing changed file boot/grub/xfs_stage1_5
Regular copying ('boot', 'grub', 'xfs_stage1_5') to
/boot/grub/rdiff-backup.tmp.18
Processing changed file boot/initrd
Removing directory /boot/grub
Regular copying ('boot', 'initrd') to /boot/rdiff-backup.tmp.19
Processing changed file boot/initrd.shipped
Regular copying ('boot', 'initrd.shipped') to /boot/rdiff-backup.tmp.20
Processing changed file boot/lost+found
Regular copying ('boot', 'lost+found') to /boot/rdiff-backup.tmp.21
Processing changed file boot/message
Removing directory /boot/lost+found
Regular copying ('boot', 'message') to /boot/rdiff-backup.tmp.22
Processing changed file boot/vmlinux.gz
Regular copying ('boot', 'vmlinux.gz') to /boot/rdiff-backup.tmp.23
Processing changed file boot/vmlinuz
Regular copying ('boot', 'vmlinuz') to /boot/rdiff-backup.tmp.24
Processing changed file boot/vmlinuz.autoconf.h
Regular copying ('boot', 'vmlinuz.autoconf.h') to /boot/rdiff-backup.tmp.25
Processing changed file boot/vmlinuz.config
Regular copying ('boot', 'vmlinuz.config') to /boot/rdiff-backup.tmp.26
Processing changed file boot/vmlinuz.shipped
Regular copying ('boot', 'vmlinuz.shipped') to /boot/rdiff-backup.tmp.27
Processing changed file boot/vmlinuz.version.h
Regular copying ('boot', 'vmlinuz.version.h') to /boot/rdiff-backup.tmp.28
Processing changed file dev
Removing directory /boot
Sending back exception [Errno 16] Device or resource busy: '/boot' of
type exceptions.OSError:
File "/usr/lib/python2.2/site-packages/rdiff_backup/connection.py",
line 329, in answer_request
result = apply(eval(request.function_string), argument_list)
File "/usr/lib/python2.2/site-packages/rdiff_backup/restore.py", line
270, in patch
ITR(diff.index, diff)
File "/usr/lib/python2.2/site-packages/rdiff_backup/rorpiter.py",
line 275, in __call__
if self.finish_branches(index) is None:
File "/usr/lib/python2.2/site-packages/rdiff_backup/rorpiter.py",
line 227, in finish_branches
to_be_finished.end_process()
File "/usr/lib/python2.2/site-packages/rdiff_backup/restore.py", line
633, in end_process
self.base_rp.rmdir()
File "/usr/lib/python2.2/site-packages/rdiff_backup/rpath.py", line
658, in rmdir
self.conn.os.rmdir(self.path)
Using mirror root directory /mirror/client/wurzel
Executing ssh -C client rdiff-backup --server
Using mirror root directory /mirror/client/wurzel
Starting restore of /mirror/client/wurzel to / as it was as of Thu Nov
6 13:32:15 2003.
Traceback (most recent call last):
File "/usr/bin/rdiff-backup", line 24, in ?
rdiff_backup.Main.Main(sys.argv[1:])
File "/usr/lib/python2.2/site-packages/rdiff_backup/Main.py", line
250, in Main
take_action(rps)
File "/usr/lib/python2.2/site-packages/rdiff_backup/Main.py", line
224, in take_action
elif action == "restore-as-of": RestoreAsOf(rps[0], rps[1])
File "/usr/lib/python2.2/site-packages/rdiff_backup/Main.py", line
395, in RestoreAsOf
restore_common(rpin, target, time)
File "/usr/lib/python2.2/site-packages/rdiff_backup/Main.py", line
407, in restore_common
restore.Restore(mirror, inc_rpath, target, time)
File "/usr/lib/python2.2/site-packages/rdiff_backup/restore.py", line
50, in Restore
TargetS.patch(target, diff_iter)
File "/usr/lib/python2.2/site-packages/rdiff_backup/connection.py",
line 440, in __call__
return apply(self.connection.reval, (self.name,) + args)
File "/usr/lib/python2.2/site-packages/rdiff_backup/connection.py",
line 362, in reval
if isinstance(result, Exception): raise result
OSError: [Errno 16] Device or resource busy: '/boot'
Traceback (most recent call last):
File "/usr/bin/rdiff-backup", line 24, in ?
rdiff_backup.Main.Main(sys.argv[1:])
File "/usr/lib/python2.2/site-packages/rdiff_backup/Main.py", line
250, in Main
take_action(rps)
File "/usr/lib/python2.2/site-packages/rdiff_backup/Main.py", line
220, in take_action
connection.PipeConnection(sys.stdin, sys.stdout).Server()
File "/usr/lib/python2.2/site-packages/rdiff_backup/connection.py",
line 347, in Server
self.get_response(-1)
File "/usr/lib/python2.2/site-packages/rdiff_backup/connection.py",
line 309, in get_response
try: req_num, object = self._get()
File "/usr/lib/python2.2/site-packages/rdiff_backup/connection.py",
line 225, in _get
raise ConnectionReadError("Truncated header string (problem "
rdiff_backup.connection.ConnectionReadError: Truncated header string
(problem probably originated remotely)
It seems that /boot is the problem, but boot is not in
/mirror/client/wurzel as it is on a separate partition like srv. I
didn't mention that in my first posting to keep it simple and since all
other partitions mounted under / restored successfully I thought it
would be the same which one I take as example. The filesystem of the
client looks like that:
/dev/hda3 on / type ext2 (rw)
/dev/hda2 on /boot type ext2 (rw)
/dev/system/local on /local type reiserfs (rw)
/dev/system/opt on /opt type reiserfs (rw)
/dev/system/srv on /srv type reiserfs (rw)
/dev/system/tmp on /tmp type reiserfs (rw)
/dev/system/usr on /usr type reiserfs (rw)
/dev/system/var on /var type reiserfs (rw)
/dev/system/work on /work type reiserfs (rw)
All partitions except / are backup/restored as /srv and cause no trouble.
If the problem is restoring hard links, it may work if you use
--no-hard-links when restoring. But I'd still like to see the -v6
info.
The option --no-hard-links has no effect on the problem.
Oliver Kaltenecker.
- [rdiff-backup-users] Trying to backup and restore root-partition..., Oliver Kaltenecker, 2003/11/05
- Re: [rdiff-backup-users] Trying to backup and restore root-partition..., Ben Escoto, 2003/11/06
- Re: [rdiff-backup-users] Trying to backup and restore root-partition...,
Oliver Kaltenecker <=
- Re: [rdiff-backup-users] Trying to backup and restore root-partition..., Ben Escoto, 2003/11/06
- Re: [rdiff-backup-users] Trying to backup and restore root-partition..., Oliver Kaltenecker, 2003/11/10
- Re: [rdiff-backup-users] Trying to backup and restore root-partition..., Ben Escoto, 2003/11/10
- Re: [rdiff-backup-users] Trying to backup and restore root-partition..., Oliver Kaltenecker, 2003/11/11
- Re: [rdiff-backup-users] Trying to backup and restore root-partition..., Ben Escoto, 2003/11/11
- Re: [rdiff-backup-users] Trying to backup and restore root-partition..., Ben Escoto, 2003/11/23