xfs
[Top] [All Lists]

xfsrestore report SUCCESS but not restore all files in kernel 3.17

To: xfs <xfs@xxxxxxxxxxx>
Subject: xfsrestore report SUCCESS but not restore all files in kernel 3.17
From: Tommy Wu <wu.tommy@xxxxxxxxx>
Date: Wed, 29 Oct 2014 12:06:10 +0800
Delivered-to: xfs@xxxxxxxxxxx
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=01gjs5Empvf0CRxoPsSnnZJcqj+9pglQ87aVDbbyzA0=; b=v6g2R6rNY9FpVivRf3hfAz+tzNrMNtgWMuL5GUQC8ZOm9gVnnOsH3b1PLb1fNiVPep Ssxg7dH1rg8ofrDw8kKHJyhTBod/pIxXNPtpIRwDUtzKiZCKHUyjoLyZSZ1B0MxQxFFL VVg/GACif/CLM2O+V9P1Dz0XAhvaFlnx4w/mTgfB+2QsJmlqELdyMrveV6dfLArMUasP gqTf8h5/aXN/yCVDIqyzQeVVjhUBbLB7JP3r7r+ritkfhR/2zvAAZCQnuNtZrWhb/0vz vNKw7qtpMgqZlPiuCyFaisJi2ql+HG0GK0YJyR8Otz6pbUbC9vz2ugrtsyGDvUqnGYGX N2jQ==

kernel 3.17.0 (same command in kernel 3.16.x work fine)
xfsdump 3.1.4
xfsprogs 3.2.1

test case:
1. create a new filesystem in LVM

lvcreate -L 5G -n test vg
mkfs.xfs -f /dev/vg/test
mount /dev/vg/test /mnt/x

2. extract linux-3.17.tar.xz to the new filesystem

cd /mnt/x
tar Jxvf /usr/src/linux-3.17.tar.xz

3. backup the filesystem

xfsdump -l 0 -o -p 300 -J -F -M test -L test - /mnt/x | /bin/gzip -qv > /vol/test.xfsdump.gz

4. test the dump file, it show a lots of NOTE, and it said restore status is SUCCESS.

cat /vol/test.xfsdump.gz | gzip -dqv | xfsrestore -p 300 -J -t - | grep "^/sbin/xfsrestore:"
/sbin/xfsrestore: using file dump (drive_simple) strategy
/sbin/xfsrestore: version 3.1.4 (dump format 3.0)
/sbin/xfsrestore: searching media for dump
/sbin/xfsrestore: examining media file 0
/sbin/xfsrestore: dump description:
/sbin/xfsrestore: hostname: mail.teatime.com.tw
/sbin/xfsrestore: mount point: /mnt/x
/sbin/xfsrestore: volume: /dev/mapper/vg-test
/sbin/xfsrestore: session time: Wed Oct 29 11:45:54 2014
/sbin/xfsrestore: level: 0
/sbin/xfsrestore: session label: "test"
/sbin/xfsrestore: media label: "test"
/sbin/xfsrestore: file system id: d757277d-5167-4cdb-975d-c64b2f94a47e
/sbin/xfsrestore: session id: 6f114712-6fb6-4f35-a2f3-30ca1a0af5bb
/sbin/xfsrestore: media id: 2eb2ff54-1838-47b2-a8d5-5f520deaf5f5
/sbin/xfsrestore: searching media for directory dump
/sbin/xfsrestore: reading directories
/sbin/xfsrestore: 2035 directories and 33045 entries processed
/sbin/xfsrestore: directory post-processing
/sbin/xfsrestore: reading non-directory files
/sbin/xfsrestore: NOTE: ino 144 salvaging file, placing in orphanage/143.0/Makefile
/sbin/xfsrestore: NOTE: ino 145 salvaging file, placing in orphanage/143.0/bayer.png.b64
/sbin/xfsrestore: NOTE: ino 146 salvaging file, placing in orphanage/143.0/constraints.png.b64
/sbin/xfsrestore: NOTE: ino 147 salvaging file, placing in orphanage/143.0/crop.gif.b64
/sbin/xfsrestore: NOTE: ino 148 salvaging file, placing in orphanage/143.0/dvbstb.png.b64
/sbin/xfsrestore: NOTE: ino 149 salvaging file, placing in orphanage/143.0/fieldseq_bt.gif.b64
/sbin/xfsrestore: NOTE: ino 150 salvaging file, placing in orphanage/143.0/fieldseq_tb.gif.b64
.... skip it....
/sbin/xfsrestore: NOTE: ino 50363235 gen 1622742662 not referenced: placing in orphanage
/sbin/xfsrestore: table of contents display complete: 3 seconds elapsed
/sbin/xfsrestore: Restore Status: SUCCESS

5. restore it, show a lots of NOTE, and resotre status is SUCCESS, but... compare them, it's different.

cat test.xfsdump.gz | gzip -dqv | xfsrestore -p 300 -J - /vol/x/
/sbin/xfsrestore: using file dump (drive_simple) strategy
/sbin/xfsrestore: version 3.1.4 (dump format 3.0)
/sbin/xfsrestore: searching media for dump
/sbin/xfsrestore: examining media file 0
/sbin/xfsrestore: dump description:
/sbin/xfsrestore: hostname: mail.teatime.com.tw
/sbin/xfsrestore: mount point: /mnt/x
/sbin/xfsrestore: volume: /dev/mapper/vg-test
/sbin/xfsrestore: session time: Wed Oct 29 11:45:54 2014
/sbin/xfsrestore: level: 0
/sbin/xfsrestore: session label: "test"
/sbin/xfsrestore: media label: "test"
/sbin/xfsrestore: file system id: d757277d-5167-4cdb-975d-c64b2f94a47e
/sbin/xfsrestore: session id: 6f114712-6fb6-4f35-a2f3-30ca1a0af5bb
/sbin/xfsrestore: media id: 2eb2ff54-1838-47b2-a8d5-5f520deaf5f5
/sbin/xfsrestore: searching media for directory dump
/sbin/xfsrestore: reading directories
/sbin/xfsrestore: 2035 directories and 33045 entries processed
/sbin/xfsrestore: directory post-processing
/sbin/xfsrestore: restoring non-directory files
/sbin/xfsrestore: NOTE: ino 144 salvaging file, placing in orphanage/143.0/Makefile
/sbin/xfsrestore: NOTE: ino 145 salvaging file, placing in orphanage/143.0/bayer.png.b64
/sbin/xfsrestore: NOTE: ino 146 salvaging file, placing in orphanage/143.0/constraints.png.b64
.... skip it....
/sbin/xfsrestore: NOTE: ino 50363235 gen 1622742662 not referenced: placing in orphanage
/sbin/xfsrestore: WARNING: unable to rmdir /vol/x//orphanage: Directory not empty
/sbin/xfsrestore: restore complete: 3 seconds elapsed
/sbin/xfsrestore: Restore Status: SUCCESS


--

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