xfs
[Top] [All Lists]

Re: using xfsdump with 'file device'

To: ivanr@xxxxxxxxxxxxxxxxx (Ivan Rayner)
Subject: Re: using xfsdump with 'file device'
From: Christoph Lukas <christoph.lukas@xxxxxxx>
Date: Tue, 19 Jun 2001 12:18:27 +0200
Cc: linux-xfs@xxxxxxxxxxx
In-reply-to: <Pine.SGI.4.32.0106191014310.298887-100000@xxxxxxxxxxxxxxxxxxxxxx>
References: <Pine.SGI.4.32.0106191014310.298887-100000@xxxxxxxxxxxxxxxxxxxxxx>
Sender: owner-linux-xfs@xxxxxxxxxxx
Hi Ivan,

thanks for your reply !

> I would think that 'dd if=/dev/null' will give you a 0 byte file .. what
> happens with 'dd if=/dev/zero of=/mnt/testfile bs=1024 count=3145728' ?

'dd if=/dev/null of=../testfile' creates a testfile filled up with '0' bytes 
until you terminate dd.

I ran: 'dd if=/dev/zero of=/mnt/ddfile bs=1024 count=3000000' and got:

treya:~# ls -la /mnt/ddfile
-rw-r--r--    1 root     root     3072000000 Jun 18 17:45 /mnt/ddfile

which seems to indicate that >2GB support is working correctly.

> > xfsdump: dumping non-directory files
> > File size limit exceeded
>
> This message is not produced by xfsdump, but is the result of a failed
> write (errno == 25).

Who is producing this error message? A libc routine? The kernel?

> By default xfsdump is compiled with -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
> which should be enough to make it work properly.

I build the debian package running 'dpkg-buildpackage'. This creates a 
include/builddefs.in containing:

CFLAGS += $(OPTIMIZER) $(DEBUG) -funsigned-char -Wall -Wno-parentheses \
        $(LCFLAGS) $(CPPFLAGS) '-DVERSION="$(PKG_VERSION)"' \
        -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DXFS_BIG_FILES=1 \
        -DXFS_BIG_FILESYSTEMS=1

> If you still have problems, could you run xfsdump with '-v5' to get lots
> of verbose output so we can get an idea of where exactly xfsdump fails.

I did this and got the output appended. This all seems to me like the problem 
is outside xfsdump. But where??

Some additional info:
kernel 2.4.3-xfs
libc6 2.1.3 recompiled with kernel 2.4.3-xfs
the two filesystems (source and destination) both are xfs filesystems on top 
of lvms.  To exclude lvm as reason for this problem i tried the same on a 
system with xfs but without lvm which lead to the same result.

Any ideas?

Thanks in advance,
christoph

xfsdump: RLIMIT_AS org cur 0x7fffffffffffffff max 0x7fffffffffffffff
xfsdump: RLIMIT_STACK org cur 0x800000 max 0x7fffffffffffffff
xfsdump: raising stack size soft limit from 0x800000 to 0x2000000
xfsdump: RLIMIT_STACK new cur 0x2000000 max 0x7fffffffffffffff
xfsdump: RLIMIT_DATA org cur 0x7fffffffffffffff max 0x7fffffffffffffff
xfsdump: RLIMIT_FSIZE org cur 0x7fffffffffffffff max 0x7fffffffffffffff
xfsdump: RLIMIT_FSIZE now cur 0x7fffffffffffffff max 0x7fffffffffffffff
xfsdump: RLIMIT_CPU cur 0x7fffffffffffffff max 0x7fffffffffffffff
xfsdump: RLIMIT_CPU now cur 0x7fffffffffffffff max 0x7fffffffffffffff
xfsdump: INTGENMAX == 2147483647 (0x7fffffff)
xfsdump: UINTGENMAX == 4294967295 (0xffffffff)
xfsdump: OFF64MAX == 9223372036854775807 (0x7fffffffffffffff)
xfsdump: OFFMAX == -1 (0x7fffffff)
xfsdump: SIZEMAX == 4294967295 (0xffffffff)
xfsdump: INOMAX == 4294967295 (0xffffffff)
xfsdump: TIMEMAX == 2147483647 (0x7fffffff)
xfsdump: SIZE64MAX == 18446744073709551615 (0xffffffffffffffff)
xfsdump: INO64MAX == 18446744073709551615 (0xffffffffffffffff)
xfsdump: UINT64MAX == 18446744073709551615 (0xffffffffffffffff)
xfsdump: INT64MAX == 9223372036854775807 (0x7fffffffffffffff)
xfsdump: UINT32MAX == 4294967295 (0xffffffff)
xfsdump: INT32MAX == 2147483647 (0x7fffffff)
xfsdump: INT16MAX == 32767 (0x7fff)
xfsdump: UINT16MAX == 65535 (0xffff)
xfsdump: getpagesize( ) returns 4096
xfsdump: parent pid is 15620
xfsdump: effective user id is 0
xfsdump: stack pid 15620: sz 0x2000000 min 0xbdfffba3 max 0xbffffba3
xfsdump: instantiating drive_simple
xfsdump: version 3.0 - Running single-threaded
xfsdump: WARNING: no session label specified
xfsdump: fs /var/lib/zope/var uuid [83d2253a-ef1a-44d7-bfe3-c3e1184b3904]
xfsdump: creating directory /var/xfsdump
xfsdump: resume range stream 0 ino 0:0 to end
xfsdump: WARNING: most recent level 0 dump was interrupted, but not resuming 
that dump since resume (-R) option not specified
xfsdump: level 0 dump of treya:/var/lib/zope/var
xfsdump: dump date: Tue Jun 19 11:13:36 2001
xfsdump: session id: 7ef2e95e-186d-4389-bf55-b2fbc620eb4f
xfsdump: session label: ""
xfsdump: ino map phase 1: skipping (no subtrees specified)
xfsdump: ino map phase 2: constructing initial dump list
xfsdump: bulkstat iteration initiated: start_ino == 0
xfsdump: calling bulkstat
xfsdump: bulkstat returns buflen 900 ino 128
xfsdump: calling bulkstat
xfsdump: bulkstat returns buflen 0
xfsdump: ino map phase 3: skipping (no pruning necessary)
xfsdump: ino map phase 4: skipping (size estimated in phase 2)
xfsdump: ino map phase 5: skipping (only one dump stream)
xfsdump: bulkstat iteration initiated: start_ino == 0
xfsdump: calling bulkstat
xfsdump: bulkstat returns buflen 900 ino 128
xfsdump: inomap_state backed up 0 times
xfsdump: ino map construction complete
xfsdump: estimated dump size: 45360801024 bytes
xfsdump: Media op: begin media file
xfsdump: drive_simple begin_read( )
xfsdump: drive_simple read( want 4096 )
xfsdump: WARNING: no media label specified
xfsdump: drive_simple begin_write( )
[...]
xfsdump: flushing write buf addr 0x400f7000 size 0x40000
xfsdump: drive_simple get_write_buf( want 14286848 )
xfsdump: read ino 8388778 offset 220587008 sz 262144 actual 262144
xfsdump: drive_simple write( offset 2145648640 (0x7fe40000 017771000000) size 
262144 (0x40000 01000000) )
xfsdump: flushing write buf addr 0x400f7000 size 0x40000
xfsdump: drive_simple get_write_buf( want 14024704 )
xfsdump: read ino 8388778 offset 220849152 sz 262144 actual 262144
xfsdump: drive_simple write( offset 2145910784 (0x7fe80000 017772000000) size 
262144 (0x40000 01000000) )
xfsdump: flushing write buf addr 0x400f7000 size 0x40000
xfsdump: drive_simple get_write_buf( want 13762560 )
xfsdump: read ino 8388778 offset 221111296 sz 262144 actual 262144
xfsdump: drive_simple write( offset 2146172928 (0x7fec0000 017773000000) size 
262144 (0x40000 01000000) )
xfsdump: flushing write buf addr 0x400f7000 size 0x40000
xfsdump: drive_simple get_write_buf( want 13500416 )
xfsdump: read ino 8388778 offset 221373440 sz 262144 actual 262144
xfsdump: drive_simple write( offset 2146435072 (0x7ff00000 017774000000) size 
262144 (0x40000 01000000) )
xfsdump: flushing write buf addr 0x400f7000 size 0x40000
xfsdump: drive_simple get_write_buf( want 13238272 )
xfsdump: read ino 8388778 offset 221635584 sz 262144 actual 262144
xfsdump: drive_simple write( offset 2146697216 (0x7ff40000 017775000000) size 
262144 (0x40000 01000000) )
xfsdump: flushing write buf addr 0x400f7000 size 0x40000
xfsdump: drive_simple get_write_buf( want 12976128 )
xfsdump: read ino 8388778 offset 221897728 sz 262144 actual 262144
xfsdump: drive_simple write( offset 2146959360 (0x7ff80000 017776000000) size 
262144 (0x40000 01000000) )
xfsdump: flushing write buf addr 0x400f7000 size 0x40000
xfsdump: drive_simple get_write_buf( want 12713984 )
xfsdump: read ino 8388778 offset 222159872 sz 262144 actual 262144
xfsdump: drive_simple write( offset 2147221504 (0x7ffc0000 017777000000) size 
262144 (0x40000 01000000) )
xfsdump: flushing write buf addr 0x400f7000 size 0x40000

<Prev in Thread] Current Thread [Next in Thread>