|
From: Delian K. <kr...@kr...> - 2004-02-05 15:43:31
|
On Thursday 05 February 2004 12:48, Stelian Pop wrote:
> You have to restore the level 0 dump every time too. Remember, level 1
> dumps contain the differences between the 0-level dump and the 1-level
> dump, so you will have to do something like:
> =09dump 0uf /tmp/0-level.dump /fs
> =09dump 1uf /tmp/1-level.dump /fs
> =09=09...
> =09=09=09cd /mynewfs
> =09=09=09restore rf /tmp/0-level.dump
> =09=09=09restore rf /tmp/1-level.dump
> =09=09...
> =09dump 1uf /tmp/1-level.dump /fs
> =09=09...
> =09=09=09cd /mynewfs
> =09=09=09rm -rf *
> =09=09=09restore rf /tmp/0-level.dump
> =09=09=09restore rf /tmp/1-level.dump
> =09=09...
> =09etc...
>
I don't want to restore level 0 dump each time. It will be terribly
slow. I prefer dumping from levels 0-9 in this case. This way I'll=20
dump/restore level 0 only once on every 10 backups.
What does the restoresymtable contain. Isn't it the info for inodes
which have already been restored ? I've tried restoring only level one
dumps, one after another and it seemed to work just fine.
> Hmmm, strange.
>
> dump version ? kernel version ?
>
dump-0.4b27-3 - from rh7.3
kernel 2.4.24 with patches from sistina, needed for snapshotting ext3
> Try separating the two steps in order to see who exactly is failing
> (dump or restore):
> =09dump -0uf - /dev/vg1/snaphome > /dev/null
> first, then:
> =09dump -0uf - /dev/vg1/snaphome |restore -rufdv -
> (note the addition of (d)ebug and (v)erbose flag).
>
I'll do that. First I would like to upgrade dump/e2fsprogs to the latest
versions. I've succeeded with e2fsprogs{,-devel} 1.34. However dump-0.4b3=
5 gives
me a compilation error:
make[1]: Entering directory `/usr/src/redhat/BUILD/dump-0.4b35/dump'
i386-redhat-linux-gcc -c -D_BSD_SOURCE -D_USE_BSD_SIGNAL -O2 -march=3Di3=
86 -mcpu=3Di686 -pipe -I.. -I../compat/include -I../dump -DRDUMP -DRRES=
TORE -DLINUX_FORK_BUG -DHAVE_LZO -D_PATH_DUMPDATES=3D\"/etc/dumpdates\" -=
D_DUMP_VERSION=3D\"0.4b35\" main.c -o main.o
In file included from /usr/include/linux/types.h:5,
from /usr/include/linux/fs.h:13,
from main.c:69:
/usr/include/asm/types.h:11: warning: redefinition of `__s8'
/usr/include/ext2fs/ext2_types.h:11: warning: `__s8' previously declared =
here
/usr/include/asm/types.h:12: warning: redefinition of `__u8'
/usr/include/ext2fs/ext2_types.h:10: warning: `__u8' previously declared =
here
/usr/include/asm/types.h:14: warning: redefinition of `__s16'
/usr/include/ext2fs/ext2_types.h:37: warning: `__s16' previously declared=
here
/usr/include/asm/types.h:15: warning: redefinition of `__u16'
/usr/include/ext2fs/ext2_types.h:38: warning: `__u16' previously declared=
here
/usr/include/asm/types.h:17: warning: redefinition of `__s32'
/usr/include/ext2fs/ext2_types.h:45: warning: `__s32' previously declared=
here
/usr/include/asm/types.h:18: warning: redefinition of `__u32'
/usr/include/ext2fs/ext2_types.h:46: warning: `__u32' previously declared=
here
/usr/include/asm/types.h:21: warning: redefinition of `__s64'
/usr/include/ext2fs/ext2_types.h:23: warning: `__s64' previously declared=
here
/usr/include/asm/types.h:22: warning: redefinition of `__u64'
/usr/include/ext2fs/ext2_types.h:27: warning: `__u64' previously declared=
here
main.c: In function `do_exclude_ino':
main.c:1285: parse error before `unsigned'
main.c:1286: `j' undeclared (first use in this function)
main.c:1286: (Each undeclared identifier is reported only once
main.c:1286: for each function it appears in.)
make[1]: *** [main.o] Error 1
make[1]: Leaving directory `/usr/src/redhat/BUILD/dump-0.4b35/dump'
make: *** [all] Error 1
I've looked at the source of main.c and I'm seeing variable definitions
in the middle of a function, which I think is not an ANSI C (main.c not
main.cpp) ..
The build system is rh7.3. I'm using the dump.spec from the src.rpm
from http://dump.sourceforge.net/
Thanks,
Delian Krustev
|