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
_______________________________________________ xfs mailing list xfs@xxxxxxxxxxx http://oss.sgi.com/mailman/listinfo/xfs