<div dir="ltr"><br>kernel 3.17.0 (same command in kernel 3.16.x work fine)<br>xfsdump 3.1.4<br>xfsprogs 3.2.1<br><br>test case:<br>1. create a new filesystem in LVM<br><br>lvcreate -L 5G -n test vg<br>mkfs.xfs -f /dev/vg/test<br>mount /dev/vg/test /mnt/x<br><br>2. extract linux-3.17.tar.xz to the new filesystem<br><br>cd /mnt/x<br>tar Jxvf /usr/src/linux-3.17.tar.xz<br><br>3. backup the filesystem<br><br>xfsdump -l 0 -o -p 300 -J -F -M test -L test - /mnt/x | /bin/gzip -qv > /vol/test.xfsdump.gz<br><br>4. test the dump file, it show a lots of NOTE, and it said restore status is SUCCESS.<br><br>cat /vol/test.xfsdump.gz | gzip -dqv | xfsrestore -p 300 -J -t - | grep "^/sbin/xfsrestore:"<br>/sbin/xfsrestore: using file dump (drive_simple) strategy<br>/sbin/xfsrestore: version 3.1.4 (dump format 3.0)<br>/sbin/xfsrestore: searching media for dump<br>/sbin/xfsrestore: examining media file 0<br>/sbin/xfsrestore: dump description:<br>/sbin/xfsrestore: hostname: <a href="http://mail.teatime.com.tw">mail.teatime.com.tw</a><br>/sbin/xfsrestore: mount point: /mnt/x<br>/sbin/xfsrestore: volume: /dev/mapper/vg-test<br>/sbin/xfsrestore: session time: Wed Oct 29 11:45:54 2014<br>/sbin/xfsrestore: level: 0<br>/sbin/xfsrestore: session label: "test"<br>/sbin/xfsrestore: media label: "test"<br>/sbin/xfsrestore: file system id: d757277d-5167-4cdb-975d-c64b2f94a47e<br>/sbin/xfsrestore: session id: 6f114712-6fb6-4f35-a2f3-30ca1a0af5bb<br>/sbin/xfsrestore: media id: 2eb2ff54-1838-47b2-a8d5-5f520deaf5f5<br>/sbin/xfsrestore: searching media for directory dump<br>/sbin/xfsrestore: reading directories<br>/sbin/xfsrestore: 2035 directories and 33045 entries processed<br>/sbin/xfsrestore: directory post-processing<br>/sbin/xfsrestore: reading non-directory files<br>/sbin/xfsrestore: NOTE: ino 144 salvaging file, placing in orphanage/143.0/Makefile<br>/sbin/xfsrestore: NOTE: ino 145 salvaging file, placing in orphanage/143.0/bayer.png.b64<br>/sbin/xfsrestore: NOTE: ino 146 salvaging file, placing in orphanage/143.0/constraints.png.b64<br>/sbin/xfsrestore: NOTE: ino 147 salvaging file, placing in orphanage/143.0/crop.gif.b64<br>/sbin/xfsrestore: NOTE: ino 148 salvaging file, placing in orphanage/143.0/dvbstb.png.b64<br>/sbin/xfsrestore: NOTE: ino 149 salvaging file, placing in orphanage/143.0/fieldseq_bt.gif.b64<br>/sbin/xfsrestore: NOTE: ino 150 salvaging file, placing in orphanage/143.0/fieldseq_tb.gif.b64<br>.... skip it....<br>/sbin/xfsrestore: NOTE: ino 50363235 gen 1622742662 not referenced: placing in orphanage<br>/sbin/xfsrestore: table of contents display complete: 3 seconds elapsed<br>/sbin/xfsrestore: Restore Status: SUCCESS<br><br>5. restore it, show a lots of NOTE, and resotre status is SUCCESS, but... compare them, it's different.<br><br>cat test.xfsdump.gz | gzip -dqv | xfsrestore -p 300 -J - /vol/x/<br>/sbin/xfsrestore: using file dump (drive_simple) strategy<br>/sbin/xfsrestore: version 3.1.4 (dump format 3.0)<br>/sbin/xfsrestore: searching media for dump<br>/sbin/xfsrestore: examining media file 0<br>/sbin/xfsrestore: dump description:<br>/sbin/xfsrestore: hostname: <a href="http://mail.teatime.com.tw">mail.teatime.com.tw</a><br>/sbin/xfsrestore: mount point: /mnt/x<br>/sbin/xfsrestore: volume: /dev/mapper/vg-test<br>/sbin/xfsrestore: session time: Wed Oct 29 11:45:54 2014<br>/sbin/xfsrestore: level: 0<br>/sbin/xfsrestore: session label: "test"<br>/sbin/xfsrestore: media label: "test"<br>/sbin/xfsrestore: file system id: d757277d-5167-4cdb-975d-c64b2f94a47e<br>/sbin/xfsrestore: session id: 6f114712-6fb6-4f35-a2f3-30ca1a0af5bb<br>/sbin/xfsrestore: media id: 2eb2ff54-1838-47b2-a8d5-5f520deaf5f5<br>/sbin/xfsrestore: searching media for directory dump<br>/sbin/xfsrestore: reading directories<br>/sbin/xfsrestore: 2035 directories and 33045 entries processed<br>/sbin/xfsrestore: directory post-processing<br>/sbin/xfsrestore: restoring non-directory files<br>/sbin/xfsrestore: NOTE: ino 144 salvaging file, placing in orphanage/143.0/Makefile<br>/sbin/xfsrestore: NOTE: ino 145 salvaging file, placing in orphanage/143.0/bayer.png.b64<br>/sbin/xfsrestore: NOTE: ino 146 salvaging file, placing in orphanage/143.0/constraints.png.b64<br>.... skip it....<br>/sbin/xfsrestore: NOTE: ino 50363235 gen 1622742662 not referenced: placing in orphanage<br>/sbin/xfsrestore: WARNING: unable to rmdir /vol/x//orphanage: Directory not empty<br>/sbin/xfsrestore: restore complete: 3 seconds elapsed<br>/sbin/xfsrestore: Restore Status: SUCCESS<br><br clear="all"><br>-- <br><div class="gmail_signature"><br>Tommy Wu</div>
</div>