xfs
[Top] [All Lists]

Re: xfsrestore bus error

To: linux-xfs@xxxxxxxxxxx
Subject: Re: xfsrestore bus error
From: Matthew Rose <mat@xxxxxxxxxxx>
Date: Sat, 5 Oct 2002 02:21:55 +0100
Cc: Tim Shimmin <tes@xxxxxxx>
In-reply-to: <20021004132705.C399585@boing.melbourne.sgi.com>
References: <20021003142456.GA1566@horace.rose> <20021004132705.C399585@boing.melbourne.sgi.com>
Sender: linux-xfs-bounce@xxxxxxxxxxx
User-agent: Mutt/1.4i
I created a small volume for testing and ran the simplest dump/restore
I could think of:

$ mkfs -t xfs -f /dev/homerdata/testvol
$ mount /dev/homerdata/testvol /mnt/xfstest/
$ touch /mnt/xfstest/test
$ xfsdump -J -v 5 - /mnt/xfstest 2>dumperr| xfsrestore -J -v 5 - \
  /mnt/pub/Backups/restore_test/ > restoreout
Bus error

This is the stock 2.4.18 with the xfs-1.1-2.4.18-all.patch applied.
Both the source and target are on lvm.
I'm using xfsdump-2.0.1 and xfsprogs-2.0.3.


Here is the dump output (227 lines):

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 6822
xfsdump: effective user id is 0
xfsdump: using file dump (drive_simple) strategy
xfsdump: NOTE: pipeline detected
xfsdump: version 3.0 - Running single-threaded
xfsdump: fs /mnt/xfstest uuid [58b4351b-5533-4d3d-948a-09f783d153c0]
xfsdump: creating directory /var/lib/xfsdump
xfsdump: level 0 dump of homer:/mnt/xfstest
xfsdump: dump date: Sat Oct  5 01:55:18 2002
xfsdump: session id: 48fa0dc3-f673-47f6-aab8-7f23a6e265fe
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 2 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 2 ino 128
xfsdump: inomap_state backed up 0 times
xfsdump: ino map construction complete
xfsdump: estimated dump size: 21120 bytes
xfsdump: estimated dump header size: 20544 bytes
xfsdump: estimated component sizes: global hdr: 70368744181760 bytes, inomap: 
274877906944 bytes,  dir entries: 2473901162496 bytes, file hdrs: 0 bytes, 
datasz: 578317539679928320 bytes
xfsdump: Media op: begin media file
xfsdump: drive_simple begin_write( )
xfsdump: xlate_global_hdr: pre-xlate
        gh_magic xFSdump0
        gh_version 2
        gh_checksum 0
        gh_timestamp 1033779318
        gh_ipaddr 655616
        gh_hostname homer
        gh_dumplabel 
xfsdump: xlate_global_hdr: post-xlate
        gh_magic xFSdump0
        gh_version 33554432
        gh_checksum 0
        gh_timestamp 1983422013
        gh_ipaddr 292470092988416
        gh_hostname homer
        gh_dumplabel 
xfsdump: xlate_drive_hdr: pre-xlate
        dh_drivecnt 1
        dh_driveix 0
        dh_strategyid 1
        dh_pad1 
        dh_specific 
        dh_upper 
xfsdump: xlate_drive_hdr: post-xlate
        dh_drivecnt 16777216
        dh_driveix 0
        dh_strategyid 16777216
        dh_pad1 
        dh_specific 
        dh_upper 
xfsdump: xlate_media_hdr
xfsdump: xlate_content_hdr
xfsdump: xlate_content_inode_hdr
xfsdump: xlate_startpt
xfsdump: xlate_startpt
xfsdump: do_begin_write: global_hdr
        gh_magic xFSdump0
        gh_version 33554432
        gh_checksum 880798814
        gh_timestamp 1983422013
        gh_ipaddr 292470092988416
        gh_hostname homer
        gh_dumplabel 
xfsdump: media file header checksum OK!
xfsdump: drive_simple get_write_buf( want 4096 )
xfsdump: drive_simple write( offset 0 (0x0 00) size 4096 (0x1000 010000) )
xfsdump: creating dump session media file 0 (media 0, file 0)
xfsdump: dumping ino map
xfsdump: pre - xlate_hnk
xfsdump: post - xlate_hnk
xfsdump: drive_simple get_write_buf( want 16384 )
xfsdump: drive_simple write( offset 4096 (0x1000 010000) size 16384 (0x4000 
040000) )
xfsdump: dumping directories
xfsdump: dump_dirs SGI_FS_BULKSTAT 0 buf len 4096
xfsdump: dump_dirs SGI_FS_BULKSTAT returns 2 entries
xfsdump: dumping directory ino 128
xfsdump: xlate_bstat
xfsdump: xlate_bstat: pre-xlate
        bs_ino 128
        bs_mode  40755
xfsdump: xlate_bstat: post-xlate
        bs_ino 9223372036854775808
        bs_mode  35520200000
xfsdump: xlate_filehdr: pre-xlate
        fh_offset 0
        fh_flags 0
        fh_checksum 577790335665567676
xfsdump: xlate_filehdr: post-xlate
        fh_offset 0
        fh_flags 0
        fh_checksum 578394647227793520
xfsdump: drive_simple get_write_buf( want 256 )
xfsdump: drive_simple write( offset 20480 (0x5000 050000) size 256 (0x100 0400) 
)
xfsdump: xlate_direnthdr: pre-xlate
        dh_ino 131
        dh_gen 0
        dh_sz 24
        dh_checksum 0
        dh_name test
xfsdump: xlate_direnthdr: post-xlate
        dh_ino 9439544818968559616
        dh_gen 0
        dh_sz 6144
        dh_checksum 0
        dh_name test
xfsdump: drive_simple get_write_buf( want 24 )
xfsdump: drive_simple write( offset 20736 (0x5100 050400) size 24 (0x18 030) )
xfsdump: xlate_direnthdr: pre-xlate
        dh_ino 0
        dh_gen 0
        dh_sz 24
        dh_checksum 0
        dh_name 
xfsdump: xlate_direnthdr: post-xlate
        dh_ino 0
        dh_gen 0
        dh_sz 6144
        dh_checksum 0
        dh_name 
xfsdump: drive_simple get_write_buf( want 24 )
xfsdump: drive_simple write( offset 20760 (0x5118 050430) size 24 (0x18 030) )
xfsdump: dump_dirs SGI_FS_BULKSTAT 1 buf len 4096
xfsdump: dump_dirs SGI_FS_BULKSTAT returns 0 entries
xfsdump: dumping non-directory files
xfsdump: bulkstat iteration initiated: start_ino == 131
xfsdump: calling bulkstat
xfsdump: bulkstat returns buflen 1 ino 131
xfsdump: dumping regular file ino 131 offset 0 to offset 0 (size 0)
xfsdump: setting media mark for ino 131 offset 0
xfsdump: drive_simple set_mark( )
xfsdump: re-writing media file header with first mark (in buffer)
xfsdump: dumping extent group ino 131 offset 0
xfsdump: xlate_bstat
xfsdump: xlate_bstat: pre-xlate
        bs_ino 131
        bs_mode  100644
xfsdump: xlate_bstat: post-xlate
        bs_ino 9439544818968559616
        bs_mode  24440200000
xfsdump: xlate_filehdr: pre-xlate
        fh_offset 0
        fh_flags 0
        fh_checksum 577790335665543052
xfsdump: xlate_filehdr: post-xlate
        fh_offset 0
        fh_flags 0
        fh_checksum 578394647227793520
xfsdump: drive_simple get_write_buf( want 256 )
xfsdump: drive_simple write( offset 20784 (0x5130 050460) size 256 (0x100 0400) 
)
xfsdump: dumped to end of file
xfsdump: dumping extent type = LAST offset = 0 size = 0
xfsdump: xlate_extenthdr
xfsdump: drive_simple get_write_buf( want 32 )
xfsdump: drive_simple write( offset 21040 (0x5230 051060) size 32 (0x20 040) )
xfsdump: calling bulkstat
xfsdump: bulkstat returns buflen 0
xfsdump: setting media END mark
xfsdump: drive_simple set_mark( )
xfsdump: xlate_bstat
xfsdump: xlate_bstat: pre-xlate
        bs_ino 0
        bs_mode  0
xfsdump: xlate_bstat: post-xlate
        bs_ino 0
        bs_mode  0
xfsdump: xlate_filehdr: pre-xlate
        fh_offset 0
        fh_flags 5
        fh_checksum 577790335665567964
xfsdump: xlate_filehdr: post-xlate
        fh_offset 0
        fh_flags 83886080
        fh_checksum 4614221346212151408
xfsdump: drive_simple get_write_buf( want 256 )
xfsdump: drive_simple write( offset 21072 (0x5250 051120) size 256 (0x100 0400) 
)
xfsdump: setting media NULL mark
xfsdump: drive_simple set_mark( )
xfsdump: ending media file
xfsdump: Media op: end media file
xfsdump: drive_simple end_write( )
xfsdump: flushing write buf addr 0x40144000 size 0x5350
xfsdump: media mark committed for ino 131 offset 0 in media file 0
xfsdump: media END mark committed in media file 0
xfsdump: media NULL mark committed in media file 0
xfsdump: media file size 21328 bytes
xfsdump: ending stream: 0 seconds elapsed
xfsdump: content.c: 2716: mlog_exit called: exit_code: SUCCESS return: OK 
(success)
xfsdump: dump size (non-dir files) : 0 bytes
xfsdump: dump complete: 0 seconds elapsed
xfsdump: main.c: 630: mlog_exit called: exit_code: SUCCESS return: OK (success)
xfsdump: Dump Status: SUCCESS




Here is the restore output (245 lines):

xfsrestore: RLIMIT_AS org cur 0x7fffffffffffffff max 0x7fffffffffffffff
xfsrestore: RLIMIT_STACK org cur 0x800000 max 0x7fffffffffffffff
xfsrestore: raising stack size soft limit from 0x800000 to 0x2000000
xfsrestore: RLIMIT_STACK new cur 0x2000000 max 0x7fffffffffffffff
xfsrestore: RLIMIT_DATA org cur 0x7fffffffffffffff max 0x7fffffffffffffff
xfsrestore: RLIMIT_FSIZE org cur 0x7fffffffffffffff max 0x7fffffffffffffff
xfsrestore: RLIMIT_FSIZE now cur 0x7fffffffffffffff max 0x7fffffffffffffff
xfsrestore: RLIMIT_CPU cur 0x7fffffffffffffff max 0x7fffffffffffffff
xfsrestore: RLIMIT_CPU now cur 0x7fffffffffffffff max 0x7fffffffffffffff
xfsrestore: INTGENMAX == 2147483647 (0x7fffffff)
xfsrestore: UINTGENMAX == 4294967295 (0xffffffff)
xfsrestore: OFF64MAX == 9223372036854775807 (0x7fffffffffffffff)
xfsrestore: OFFMAX == -1 (0x7fffffff)
xfsrestore: SIZEMAX == 4294967295 (0xffffffff)
xfsrestore: INOMAX == 4294967295 (0xffffffff)
xfsrestore: TIMEMAX == 2147483647 (0x7fffffff)
xfsrestore: SIZE64MAX == 18446744073709551615 (0xffffffffffffffff)
xfsrestore: INO64MAX == 18446744073709551615 (0xffffffffffffffff)
xfsrestore: UINT64MAX == 18446744073709551615 (0xffffffffffffffff)
xfsrestore: INT64MAX == 9223372036854775807 (0x7fffffffffffffff)
xfsrestore: UINT32MAX == 4294967295 (0xffffffff)
xfsrestore: INT32MAX == 2147483647 (0x7fffffff)
xfsrestore: INT16MAX == 32767 (0x7fff)
xfsrestore: UINT16MAX == 65535 (0xffff)
xfsrestore: getpagesize( ) returns 4096
xfsrestore: parent pid is 6823
xfsrestore: using file dump (drive_simple) strategy
xfsrestore: NOTE: pipeline detected
xfsrestore: tty fd: 3; terminal interrupt character:  (03)
xfsrestore: version 3.0 - Running single-threaded
xfsrestore: sizeof( pers_desc_t ) == 328, pgsz == 4096, perssz == 20480 

 ::::::::::: persistent inventory media file tree at initialization :::::::::::

session inventory unknown

 ...................... end persistent inventory display ......................

xfsrestore: Media_create
xfsrestore: checking and validating command line dump id/label
xfsrestore: searching media for dump
xfsrestore: Media_mfile_next: purp==0 pos==0
xfsrestore: drive_simple begin_read( )
xfsrestore: drive_simple read( want 4096 )
xfsrestore: drive_simple return_read_buf( returning 4096 )
xfsrestore: do_begin_read: global_hdr
        gh_magic xFSdump0
        gh_version 33554432
        gh_checksum 70184030
        gh_timestamp 1983422013
        gh_ipaddr 292470092988416
        gh_hostname homer
        gh_dumplabel 
xfsrestore: xlate_global_hdr: pre-xlate
        gh_magic xFSdump0
        gh_version 33554432
        gh_checksum 70184030
        gh_timestamp 1983422013
        gh_ipaddr 292470092988416
        gh_hostname homer
        gh_dumplabel 
xfsrestore: xlate_global_hdr: post-xlate
        gh_magic xFSdump0
        gh_version 2
        gh_checksum 1592536580
        gh_timestamp 1033779318
        gh_ipaddr 655616
        gh_hostname homer
        gh_dumplabel 
xfsrestore: xlate_drive_hdr: pre-xlate
        dh_drivecnt 16777216
        dh_driveix 0
        dh_strategyid 16777216
        dh_pad1 
        dh_specific 
        dh_upper 
xfsrestore: xlate_drive_hdr: post-xlate
        dh_drivecnt 1
        dh_driveix 0
        dh_strategyid 1
        dh_pad1 
        dh_specific 
        dh_upper 
xfsrestore: xlate_media_hdr
xfsrestore: xlate_content_hdr
xfsrestore: xlate_content_inode_hdr
xfsrestore: xlate_startpt
xfsrestore: xlate_startpt
xfsrestore: examining media file 0
xfsrestore: file 0 in object 0 of stream 0
xfsrestore: file 0 in stream, file 0 of dump 0 on object
xfsrestore: dump found: checking
xfsrestore: dump description: 
xfsrestore: hostname: homer
xfsrestore: mount point: /mnt/xfstest
xfsrestore: volume: /dev/homerdata/testvol
xfsrestore: session time: Sat Oct  5 01:55:18 2002
xfsrestore: level: 0
xfsrestore: session label: ""
xfsrestore: media label: ""
xfsrestore: file system id: 58b4351b-5533-4d3d-948a-09f783d153c0
xfsrestore: session id: 48fa0dc3-f673-47f6-aab8-7f23a6e265fe
xfsrestore: media id: 964f0fbb-9781-4dfb-83d6-1a083924d05e

 :::::::::: persistent inventory media file tree after pi_insertfile ::::::::::

session inventory display

media stream 0:

    media object 0:

    label is blank
    id: 964f0fbb-9781-4dfb-83d6-1a083924d05e
    index within object of first media file: 0
    index within stream of first media file: 0

        media file 0 (0):
        first extent contained: ino 131 off 0
        next extent to restore: ino 131 off 0
        rollback mark 0

        may be additional unidentified media files

    may be additional unidentified media objects


 ...................... end persistent inventory display ......................


 :::::::::: persistent inventory media file tree after pi_seestrmend ::::::::::

session inventory display

media stream 0:

    media object 0:

    label is blank
    id: 964f0fbb-9781-4dfb-83d6-1a083924d05e
    index within object of first media file: 0
    index within stream of first media file: 0

        media file 0 (0):
        first extent contained: ino 131 off 0
        next extent to restore: ino 131 off 0
        rollback mark 0

        may be additional unidentified media files

 ...................... end persistent inventory display ......................


 :::::::: persistent inventory media file tree after pi_seeobjstrmend :::::::::

session inventory display

media stream 0:

    media object 0:

    label is blank
    id: 964f0fbb-9781-4dfb-83d6-1a083924d05e
    index within object of first media file: 0
    index within stream of first media file: 0

        media file 0 (0):
        first extent contained: ino 131 off 0
        next extent to restore: ino 131 off 0
        rollback mark 0

 ...................... end persistent inventory display ......................

xfsrestore: searching media for directory dump
xfsrestore: Media_mfile_next: purp==1 pos==1
xfsrestore: dump session label: ""
xfsrestore: dump session id: 48fa0dc3-f673-47f6-aab8-7f23a6e265fe
xfsrestore: stream 0, object 0, file 0

 :::::::::: persistent inventory media file tree after pi_insertfile ::::::::::

session inventory display

media stream 0:

    media object 0:

    label is blank
    id: 964f0fbb-9781-4dfb-83d6-1a083924d05e
    index within object of first media file: 0
    index within stream of first media file: 0

        media file 0 (0):
        first extent contained: ino 131 off 0
        next extent to restore: ino 131 off 0
        rollback mark 0

 ...................... end persistent inventory display ......................


 :::::::::: persistent inventory media file tree after pi_seestrmend ::::::::::

session inventory display

media stream 0:

    media object 0:

    label is blank
    id: 964f0fbb-9781-4dfb-83d6-1a083924d05e
    index within object of first media file: 0
    index within stream of first media file: 0

        media file 0 (0):
        first extent contained: ino 131 off 0
        next extent to restore: ino 131 off 0
        rollback mark 0

 ...................... end persistent inventory display ......................


 :::::::: persistent inventory media file tree after pi_seeobjstrmend :::::::::

session inventory display

media stream 0:

    media object 0:

    label is blank
    id: 964f0fbb-9781-4dfb-83d6-1a083924d05e
    index within object of first media file: 0
    index within stream of first media file: 0

        media file 0 (0):
        first extent contained: ino 131 off 0
        next extent to restore: ino 131 off 0
        rollback mark 0

 ...................... end persistent inventory display ......................

xfsrestore: initializing directory attributes registry
xfsrestore: content_stream_restore: dircnt 1
xfsrestore: initializing directory entry name registry
xfsrestore: initializing directory hierarchy image


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