[Mondo-devel] Hard links and mondoresecue

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Mondo-devel] Hard links and mondoresecue

Pollina, Robert

Running:

mondo-3.2.2-1.rhel6.i386

mindi-busybox-1.21.1-1.rhel6.i386

mindi-3.0.2-1.rhel6.i386

afio-2.5-1.rhel6.i386

 

We’ve been using mondo for some time and I’m just realizing that it does not handle hardlinks very well.  From testing the afio command (using the mondoarchive/restore commands), I have OBERSERVED that If you have two directories with the second one that essentially has hardlinks back to all the files in the first:

 

Source directory file sizes:

 

# du -sh  20151231-230001-226/backup/home/mrs/Downloads 20160131-230001-528/backup/home/mrs/Downloads

288M     20151231-230001-226/backup/home/mrs/Downloads

28K         20160131-230001-528/backup/home/mrs/Downloads

 

Backup:

Command:

afio -o  -b 131072 -M 16m -Z -P bzip2 -G 3 -T 3k /opt/NotBackedUp/RTP/test.afio.bz2 < /tmp/afio-filelist

File size:

# ls -l /opt/NotBackedUp/RTP/test.afio.bz2

-rw-r--r-- 1 root root 301203456 Dec  8 14:38 /opt/NotBackedUp/RTP/test.afio.bz2

 

Restore:

Command:

afio -i  -M 8m -b 131072 -c 8 -P bzip2 -Z /opt/NotBackedUp/RTP/test.afio.bz2

 

File Size:

# du -sh  20151231-230001-226/backup/home/mrs/Downloads 20160131-230001-528/backup/home/mrs/Downloads

288M     20151231-230001-226/backup/home/mrs/Downloads

28K         20160131-230001-528/backup/home/mrs/Downloads

 

So, the afio commands preserve hard links; however, when I use mondoresecue, both the original file and linked file are full copies:

 

Backup:

Command:

mondoarchive -Oi -I '/opt/azreserve/backintime/mrs/backintime/litho2399/mrs/1/20151231-230001-226/backup/home/mrs/Downloads

|/opt/azreserve/backintime/mrs/backintime/litho2399/mrs/1/20160131-230001-528/backup/home/mrs/Downloads'

-d /opt/NotBackedUp/RTP -s 4480m -p litho2399

 

ISO Size:

-rw-r--r-- 1 root root 729956352 Dec  9 08:14 litho2399-1.iso

 

Restore:

Command:

mondorestore -i -d /opt/NotBackedUp/RTP -p litho2399 -g -Z interactive

 

File Size:

# du -sh *

288M     20151231-230001-226

288M     20160131-230001-528

 

There appears to be two main issues:

 

1.       Although afio does handle hardlinks correctly, given that afio is called for many times, with a subset (fileset) of files, it can only deal with hardlinks within the fileset.

2.       The processing of big files is processed file-by-file and therefore does not deal with hardlinks across multiple files.

 

This is not only a restore concern (mondorestore) but also a backup concern (mondoarchive) as the backups created can be much larger than required -- this is actually how I first noticed this issue.

 

The following command can be used to identify linked files where the line as the format: <devid> <inode> <filename>:

 

find <dir> -type f -links +1 -exec stat --format='%d %i %n' {} \; | sort

 

Adjacent lines with the same “<devid> <inode>” would be common hard linked files.  One could only backup the file on the first line with the matching  “<devid> <inode>” and skip backing up the other matching lines.  After the files are restored, the files could be relinked using the 2nd-Nth  matching “<devid> <inode>” lines.

 

I know I have given a worse case example (which is actually associated with using backintime); however, there are other examples one can find in system directories.  For example, under /var on RHEL 6.x (where the first column displayed below is the number of hard links to the listed file):

 

[root@litho2399 orig]# find /var -type f -links +1 -exec stat --format='%d %i %n' {} \; | sort > /tmp/rtp

[root@litho2399 orig]# uniq -w 11 -d -c /tmp/rtp

      2 2050 17257 /var/lib/yum/yumdb/w/e40d2bcd59c08093bb45f0eda7ed2d7c1456f2d7-wxPython-2.8.12.0-1.el6-i686/from_repo_revision

      2 2050 17261 /var/lib/yum/yumdb/c/475ff8d21636d6e9cb3af91d71011c858d0c7aa8-codeblocks-contrib-12.11-1.el6-i686/from_repo_revision

      2 2050 17266 /var/lib/yum/yumdb/c/b7fa7277e6bbdfb523f0ec297a21eeb019e40bbe-codeblocks-12.11-1.el6-i686/from_repo_timestamp

      2 2050 271 /var/lib/yum/yumdb/d/8a66136827c3aa826f283e6a256b566426ced0ba-digilent.waveforms-3.3.5-1-i686/from_repo_revision

      2 2050 284 /var/lib/yum/yumdb/d/42de7c6be8c1f756777eeea8123ba5c7f8d7d5e0-digilent.adept.runtime-2.16.5-1-i686/from_repo_revision

   1344 2050 655402 /var/lib/yum/yumdb/a/03a419bfe569d6e344dd36f853c79da443db1be8-apache-tomcat-apis-0.1-1.el6-noarch/from_repo

    702 2050 655403 /var/lib/yum/yumdb/a/03e545ccb78a949dc8fcda8130bb9e2c565f2d9d-aic94xx-firmware-30-2.el6-noarch/reason

   1344 2050 655404 /var/lib/yum/yumdb/a/03a419bfe569d6e344dd36f853c79da443db1be8-apache-tomcat-apis-0.1-1.el6-noarch/releasever

   1472 2050 655405 /var/lib/yum/yumdb/a/03a419bfe569d6e344dd36f853c79da443db1be8-apache-tomcat-apis-0.1-1.el6-noarch/checksum_type

   1344 2050 655407 /var/lib/yum/yumdb/a/03a419bfe569d6e344dd36f853c79da443db1be8-apache-tomcat-apis-0.1-1.el6-noarch/from_repo_revision

   1344 2050 655408 /var/lib/yum/yumdb/a/03a419bfe569d6e344dd36f853c79da443db1be8-apache-tomcat-apis-0.1-1.el6-noarch/from_repo_timestamp

   1516 2050 655409 /var/lib/yum/yumdb/a/03a419bfe569d6e344dd36f853c79da443db1be8-apache-tomcat-apis-0.1-1.el6-noarch/installed_by

      2 2050 655414 /var/lib/yum/yumdb/l/0e64afa12db909d75113daa05d5184bbd6df720e-libgdiplus0-debuginfo-2.6.7-0-i686/checksum_type

      2 2050 658422 /var/lib/yum/yumdb/a/084996dd0259b07515e37af8f5d8b90ed1e568a5-alsa-lib-1.0.22-3.el6-i686/releasever

      2 2050 658423 /var/lib/yum/yumdb/a/084996dd0259b07515e37af8f5d8b90ed1e568a5-alsa-lib-1.0.22-3.el6-i686/command_line

      2 2050 658424 /var/lib/yum/yumdb/a/084996dd0259b07515e37af8f5d8b90ed1e568a5-alsa-lib-1.0.22-3.el6-i686/checksum_type

      7 2050 663560 /var/lib/yum/yumdb/p/b8a5f820873b99c1f1e0e586ef296e2360d2ba3e-python-rhsm-0.99.12-1.el6-noarch/from_repo

      7 2050 670757 /var/lib/yum/yumdb/p/b8a5f820873b99c1f1e0e586ef296e2360d2ba3e-python-rhsm-0.99.12-1.el6-noarch/checksum_type

     11 2050 670801 /var/lib/yum/yumdb/a/136d85e53eba5dbacc4f1050ec26af1cb1976c05-azores-stepper-10.13.0-1.el6-i686/checksum_type

      7 2050 670826 /var/lib/yum/yumdb/p/b8a5f820873b99c1f1e0e586ef296e2360d2ba3e-python-rhsm-0.99.12-1.el6-noarch/command_line

      7 2050 670829 /var/lib/yum/yumdb/p/b8a5f820873b99c1f1e0e586ef296e2360d2ba3e-python-rhsm-0.99.12-1.el6-noarch/from_repo_revision

      7 2050 670830 /var/lib/yum/yumdb/p/b8a5f820873b99c1f1e0e586ef296e2360d2ba3e-python-rhsm-0.99.12-1.el6-noarch/from_repo_timestamp

     12 2050 670832 /var/lib/yum/yumdb/a/136d85e53eba5dbacc4f1050ec26af1cb1976c05-azores-stepper-10.13.0-1.el6-i686/from_repo

      2 2050 672833 /var/lib/yum/yumdb/a/c28b3cbf37f510aa8e28d44c154507869321e3d6-alsa-lib-devel-1.0.22-3.el6-i686/from_repo_revision

     16 2050 674545 /var/lib/yum/yumdb/g/4a031365276ab79a21f25843228d37b78b2a24b5-gnome-sharp2-opt-2.24.2-14.13-i686/checksum_type

     16 2050 674582 /var/lib/yum/yumdb/g/4a031365276ab79a21f25843228d37b78b2a24b5-gnome-sharp2-opt-2.24.2-14.13-i686/reason

     16 2050 674583 /var/lib/yum/yumdb/g/4a031365276ab79a21f25843228d37b78b2a24b5-gnome-sharp2-opt-2.24.2-14.13-i686/releasever

     16 2050 674584 /var/lib/yum/yumdb/g/4a031365276ab79a21f25843228d37b78b2a24b5-gnome-sharp2-opt-2.24.2-14.13-i686/command_line

     12 2050 674586 /var/lib/yum/yumdb/g/4a031365276ab79a21f25843228d37b78b2a24b5-gnome-sharp2-opt-2.24.2-14.13-i686/from_repo_revision

     16 2050 674588 /var/lib/yum/yumdb/g/4a031365276ab79a21f25843228d37b78b2a24b5-gnome-sharp2-opt-2.24.2-14.13-i686/installed_by

      2 2050 674592 /var/lib/yum/yumdb/m/b9832f7116d13777490a161cbf53a7bdbee0d8b2-mod_mono-opt-debuginfo-2.10.2-5.3-i686/from_repo_timestamp

      2 2050 674600 /var/lib/yum/yumdb/m/4996a80c8aef80fcfa7a341fb5011e0eaec42ccf-mono-opt-debuginfo-3.2.3-3.1-i686/from_repo_timestamp

      2 2050 674604 /var/lib/yum/yumdb/g/54b1ff522253bdf560503fb67c01060eeb5cd22c-gtk-sharp2-opt-2.12.21-24.6-i686/from_repo_timestamp

      2 2050 674608 /var/lib/yum/yumdb/m/2cc8f7fd443072c6221af09d9bcf10e8581d50a0-mono-xsp-opt-debuginfo-3.2.0-4.3-i686/from_repo_timestamp

      2 2050 674615 /var/lib/yum/yumdb/g/4a031365276ab79a21f25843228d37b78b2a24b5-gnome-sharp2-opt-2.24.2-14.13-i686/from_repo_timestamp

      6 2050 674619 /var/lib/yum/yumdb/p/7e56c43f9c7f641eda990d7443b9d76c83150c6d-perl-XML-NamespaceSupport-1.10-3.el6-noarch/from_repo_revision

      3 2050 674683 /var/lib/yum/yumdb/m/32e21aae1e2eacc09a131e24022d0505399a3029-maxima-5.30.0-1-i386/checksum_type

      3 2050 674721 /var/lib/yum/yumdb/m/32e21aae1e2eacc09a131e24022d0505399a3029-maxima-5.30.0-1-i386/reason

      3 2050 674722 /var/lib/yum/yumdb/m/32e21aae1e2eacc09a131e24022d0505399a3029-maxima-5.30.0-1-i386/releasever

      3 2050 674723 /var/lib/yum/yumdb/m/32e21aae1e2eacc09a131e24022d0505399a3029-maxima-5.30.0-1-i386/command_line

      6 2050 674725 /var/lib/yum/yumdb/m/32e21aae1e2eacc09a131e24022d0505399a3029-maxima-5.30.0-1-i386/from_repo_revision

      3 2050 674726 /var/lib/yum/yumdb/m/32e21aae1e2eacc09a131e24022d0505399a3029-maxima-5.30.0-1-i386/installed_by

      2 2050 674829 /var/lib/yum/yumdb/l/0e64afa12db909d75113daa05d5184bbd6df720e-libgdiplus0-debuginfo-2.6.7-0-i686/reason

      2 2050 674830 /var/lib/yum/yumdb/l/0e64afa12db909d75113daa05d5184bbd6df720e-libgdiplus0-debuginfo-2.6.7-0-i686/releasever

      2 2050 674831 /var/lib/yum/yumdb/l/0e64afa12db909d75113daa05d5184bbd6df720e-libgdiplus0-debuginfo-2.6.7-0-i686/command_line

      2 2050 674834 /var/lib/yum/yumdb/l/0e64afa12db909d75113daa05d5184bbd6df720e-libgdiplus0-debuginfo-2.6.7-0-i686/installed_by

      3 2050 674848 /var/lib/yum/yumdb/l/0e64afa12db909d75113daa05d5184bbd6df720e-libgdiplus0-debuginfo-2.6.7-0-i686/from_repo_revision

      2 2050 674859 /var/lib/yum/yumdb/r/963fdbbd04f6f92d115457eeda885c1922cea350-rsyslog-5.8.10-10.el6_6-i686/from_repo_revision

      2 2050 674861 /var/lib/yum/yumdb/r/865d7b4cf2b4a6d5df7d85d1cd9fb17dcaf813ab-rsyslog-4.6.2-3.el6-i686/from_repo_revision

      2 2050 674908 /var/lib/yum/yumdb/r/ca156db33ce3d24a0f6ff43a018d16d21f4bf927-rsyslog-pgsql-4.6.2-3.el6-i686/from_repo_revision

      2 2050 674919 /var/lib/yum/yumdb/p/c8cf57eb1d5bb11d98418e84b7c8b81f9c53b302-postgresql92-devel-9.2.13-1PGDG.rhel6-i686/from_repo_revision

      3 2050 674943 /var/lib/yum/yumdb/a/136d85e53eba5dbacc4f1050ec26af1cb1976c05-azores-stepper-10.13.0-1.el6-i686/installed_by

      2 2050 674958 /var/lib/yum/yumdb/e/c081bf3f386d737c4e04bbef9885d1f221fa6b1f-epel-release-6-8-noarch/releasever

      2 2050 674961 /var/lib/yum/yumdb/e/c081bf3f386d737c4e04bbef9885d1f221fa6b1f-epel-release-6-8-noarch/from_repo_revision

     11 2050 674980 /var/lib/yum/yumdb/a/136d85e53eba5dbacc4f1050ec26af1cb1976c05-azores-stepper-10.13.0-1.el6-i686/command_line

     11 2050 674990 /var/lib/yum/yumdb/a/136d85e53eba5dbacc4f1050ec26af1cb1976c05-azores-stepper-10.13.0-1.el6-i686/from_repo_revision

     11 2050 674993 /var/lib/yum/yumdb/a/136d85e53eba5dbacc4f1050ec26af1cb1976c05-azores-stepper-10.13.0-1.el6-i686/from_repo_timestamp

     10 2050 675088 /var/lib/yum/yumdb/c/2ec2c1a91d71b164e123833748bbfd174490d9f5-codeblocks-contrib-devel-12.11-1.el6-i686/command_line

      2 2050 675089 /var/lib/yum/yumdb/c/2ec2c1a91d71b164e123833748bbfd174490d9f5-codeblocks-contrib-devel-12.11-1.el6-i686/from_repo_revision

     10 2050 675091 /var/lib/yum/yumdb/c/2ec2c1a91d71b164e123833748bbfd174490d9f5-codeblocks-contrib-devel-12.11-1.el6-i686/installed_by

      2 2050 675100 /var/lib/yum/yumdb/w/8fdbbb7affde7b493f47213b1f2b0439aa53b1ec-wxGTK-media-2.8.12-1.el6-i686/from_repo_revision

      2 2050 675102 /var/lib/yum/yumdb/h/2bfce3d5405e8542565926a0ea6101393ea6fc00-hpadu-9.40-12.0-i386/from_repo_revision

      2 2050 675104 /var/lib/yum/yumdb/a/084996dd0259b07515e37af8f5d8b90ed1e568a5-alsa-lib-1.0.22-3.el6-i686/changed_by

      2 2050 675209 /var/lib/yum/yumdb/V/0830b5b3ee7d1a9fbd413f82797213ab9a2244e4-VirtualBox-4.2-4.2.18_88780_el6-1-i686/from_repo_revision

      2 2050 675465 /var/lib/yum/yumdb/g/b4879bf9e9e6ddd06e82bfb8742f0a2b3fc9dd03-graphviz-2.26.0-10.el6-i686/from_repo_revision

      7 2050 675523 /var/lib/yum/yumdb/m/2ea545b7a1515f84d2d47778932edaf2bf1ac80e-mindi-busybox-1.21.1-1.rhel6-i386/checksum_type

      7 2050 675527 /var/lib/yum/yumdb/m/2ea545b7a1515f84d2d47778932edaf2bf1ac80e-mindi-busybox-1.21.1-1.rhel6-i386/from_repo

      5 2050 675528 /var/lib/yum/yumdb/p/2ea629d2b416dfff9149650d23a25c63b09e37c9-perl-MondoRescue-3.2.2-1.rhel6-noarch/reason

      7 2050 675529 /var/lib/yum/yumdb/m/2ea545b7a1515f84d2d47778932edaf2bf1ac80e-mindi-busybox-1.21.1-1.rhel6-i386/command_line

      7 2050 675531 /var/lib/yum/yumdb/m/2ea545b7a1515f84d2d47778932edaf2bf1ac80e-mindi-busybox-1.21.1-1.rhel6-i386/from_repo_revision

      7 2050 675532 /var/lib/yum/yumdb/m/2ea545b7a1515f84d2d47778932edaf2bf1ac80e-mindi-busybox-1.21.1-1.rhel6-i386/from_repo_timestamp

     22 2050 675597 /var/lib/yum/yumdb/e/9d21992ada1579835d5ebc4c5834095206cc96bb-expect-5.44.1.15-2.el6-i686/checksum_type

      8 2050 676851 /var/lib/yum/yumdb/m/2ea545b7a1515f84d2d47778932edaf2bf1ac80e-mindi-busybox-1.21.1-1.rhel6-i386/changed_by

     22 2050 676852 /var/lib/yum/yumdb/e/9d21992ada1579835d5ebc4c5834095206cc96bb-expect-5.44.1.15-2.el6-i686/reason

      5 2050 676925 /var/lib/yum/yumdb/g/58747a60b64d5918bb51cf0b08f61ea526e44697-glibc-common-2.12-1.149.el6-i686/checksum_type

     22 2050 676939 /var/lib/yum/yumdb/e/9d21992ada1579835d5ebc4c5834095206cc96bb-expect-5.44.1.15-2.el6-i686/releasever

     22 2050 676940 /var/lib/yum/yumdb/e/9d21992ada1579835d5ebc4c5834095206cc96bb-expect-5.44.1.15-2.el6-i686/command_line

      4 2050 676942 /var/lib/yum/yumdb/l/6758f02425e939788029d0a697a1369cca16ca15-libmonosgen-2_0-devel-2.10.8-0-i686/from_repo_revision

     22 2050 676943 /var/lib/yum/yumdb/e/9d21992ada1579835d5ebc4c5834095206cc96bb-expect-5.44.1.15-2.el6-i686/installed_by

      2 2050 676950 /var/lib/yum/yumdb/m/0e8652ba278ef64dbf11ba4202647613cdae652e-monodoc-core-2.10.8-0-i686/from_repo_revision

      5 2050 676955 /var/lib/yum/yumdb/l/db2bb042bf2ec81fafc41fd29f4c13aa183e3b3e-libmono-2_0-devel-2.10.8-0-i686/from_repo_revision

      2 2050 676968 /var/lib/yum/yumdb/m/1856ec125b12939dd2899349b54b33b76277af80-mono-nunit-2.10.8-0-i686/from_repo_revision

      2 2050 676969 /var/lib/yum/yumdb/m/1856ec125b12939dd2899349b54b33b76277af80-mono-nunit-2.10.8-0-i686/from_repo_timestamp

      4 2050 676978 /var/lib/yum/yumdb/m/3a8039e1e1b0945c0adedeff454cf9507b078922-mono-locale-extras-2.10.8-0-i686/from_repo_revision

      2 2050 676982 /var/lib/yum/yumdb/m/6afb06c7fb6dc51ea3d0ed89487f282dd08786ec-mono-winfxcore-2.10.8-0-i686/from_repo_revision

      2 2050 676987 /var/lib/yum/yumdb/m/7ba0c3b6b5cb82c752a05f0a3d4bf334ba78c778-mono-data-oracle-2.10.8-0-i686/from_repo_timestamp

      4 2050 677016 /var/lib/yum/yumdb/m/2391d205db343537d2a06850e370c607f8f42049-mono-data-2.10.8-0-i686/from_repo_timestamp

      2 2050 677020 /var/lib/yum/yumdb/m/2391d205db343537d2a06850e370c607f8f42049-mono-data-2.10.8-0-i686/from_repo_revision

      5 2050 677063 /var/lib/yum/yumdb/g/58747a60b64d5918bb51cf0b08f61ea526e44697-glibc-common-2.12-1.149.el6-i686/releasever

      5 2050 677064 /var/lib/yum/yumdb/g/58747a60b64d5918bb51cf0b08f61ea526e44697-glibc-common-2.12-1.149.el6-i686/command_line

      8 2050 677066 /var/lib/yum/yumdb/g/58747a60b64d5918bb51cf0b08f61ea526e44697-glibc-common-2.12-1.149.el6-i686/from_repo_revision

      5 2050 677067 /var/lib/yum/yumdb/g/58747a60b64d5918bb51cf0b08f61ea526e44697-glibc-common-2.12-1.149.el6-i686/changed_by

      2 2050 677118 /var/lib/yum/yumdb/g/96105b5c34026798c8b6b09bcc6a74367e0459c3-glibc-2.12-1.149.el6-i686/from_repo_revision

      2 2050 677144 /var/lib/yum/yumdb/a/084996dd0259b07515e37af8f5d8b90ed1e568a5-alsa-lib-1.0.22-3.el6-i686/from_repo_revision

      2 2050 677177 /var/lib/yum/yumdb/f/8639d589d7d261712f91913de0bb01ff40f50701-flash-plugin-11.2.202.356-release-i386/from_repo_revision

      2 2050 677206 /var/lib/yum/yumdb/p/450f3df42ed96b61cd4a19cd06c840193e29a004-pgdg-redhat93-9.3-1-noarch/from_repo_revision

      4 2050 677435 /var/lib/yum/yumdb/r/3b4ea305112240efff1cec380950c14c9846b157-rsyslog-pgsql-5.8.10-8.el6-i686/releasever

      5 2050 677442 /var/lib/yum/yumdb/r/3b4ea305112240efff1cec380950c14c9846b157-rsyslog-pgsql-5.8.10-8.el6-i686/changed_by

      2 2050 677614 /var/lib/yum/yumdb/w/0d307cf66c7c0222cecd2bac8614820f6b8339c5-wine-debuginfo-1.6.1-1.el6-i686/from_repo_revision

    846 2050 797947 /var/lib/yum/yumdb/a/03a419bfe569d6e344dd36f853c79da443db1be8-apache-tomcat-apis-0.1-1.el6-noarch/reason

    115 2050 799157 /var/lib/yum/yumdb/a/5b903416bffc485120788f63f394293a90b6493e-apr-1.3.9-3.el6_1.2-i686/from_repo

    152 2050 799158 /var/lib/yum/yumdb/a/136d85e53eba5dbacc4f1050ec26af1cb1976c05-azores-stepper-10.13.0-1.el6-i686/releasever

    115 2050 799159 /var/lib/yum/yumdb/a/5b903416bffc485120788f63f394293a90b6493e-apr-1.3.9-3.el6_1.2-i686/command_line

    115 2050 799161 /var/lib/yum/yumdb/a/5b903416bffc485120788f63f394293a90b6493e-apr-1.3.9-3.el6_1.2-i686/from_repo_revision

    115 2050 799162 /var/lib/yum/yumdb/a/5b903416bffc485120788f63f394293a90b6493e-apr-1.3.9-3.el6_1.2-i686/from_repo_timestamp

     28 2050 799205 /var/lib/yum/yumdb/a/136d85e53eba5dbacc4f1050ec26af1cb1976c05-azores-stepper-10.13.0-1.el6-i686/changed_by

      2 2050 799303 /var/lib/yum/yumdb/a/030f78e56969f31a52a3caea30ee0487bb68aec8-autocutsel-0.9.0-1.el6.rf-i686/from_repo_revision

      2 2050 799398 /var/lib/yum/yumdb/x/fce2a726144420b7dfd461fa152a772b618a5100-xinput_calibrator-0.7.5-3.el6-i686/from_repo_revision

      2 2050 799407 /var/lib/yum/yumdb/e/b48edccc2177d2c50de279aa3eaa88e454a58c76-elotouch-4.0.1-1.el6-i686/from_repo_revision

      2 2050 799425 /var/lib/yum/yumdb/x/ecd8cb43b935170df5e09fa17f7fcbd7e948f517-x11vnc-0.9.13-1.el6-i686/from_repo_revision

      2 2050 799774 /var/lib/yum/yumdb/g/855cb24cfe57abe69fdd78397848cbf5e1281d51-gconf-editor-2.28.0-3.el6-i686/from_repo_revision

      4 2050 801854 /var/lib/yum/yumdb/l/ae01bcacff82ee7abb6b85e90584037c62d20452-libmatchbox-devel-1.9-6.1.el6-i686/reason

      4 2050 801855 /var/lib/yum/yumdb/l/ae01bcacff82ee7abb6b85e90584037c62d20452-libmatchbox-devel-1.9-6.1.el6-i686/releasever

      4 2050 801856 /var/lib/yum/yumdb/l/ae01bcacff82ee7abb6b85e90584037c62d20452-libmatchbox-devel-1.9-6.1.el6-i686/command_line

      4 2050 801857 /var/lib/yum/yumdb/l/ae01bcacff82ee7abb6b85e90584037c62d20452-libmatchbox-devel-1.9-6.1.el6-i686/checksum_type

      6 2050 801859 /var/lib/yum/yumdb/l/ae01bcacff82ee7abb6b85e90584037c62d20452-libmatchbox-devel-1.9-6.1.el6-i686/from_repo_revision

      4 2050 801860 /var/lib/yum/yumdb/l/ae01bcacff82ee7abb6b85e90584037c62d20452-libmatchbox-devel-1.9-6.1.el6-i686/installed_by

      2 2050 801864 /var/lib/yum/yumdb/l/caee971c4eaae2bdf870dcc123bb1d50a521e679-libmatchbox-1.9-6.1.el6-i686/from_repo_revision

     11 2050 802117 /var/lib/yum/yumdb/l/59375612f7becc19fced0669c9d11d5cacad51a1-libuuid-2.17.2-12.18.el6-i686/releasever

     11 2050 802118 /var/lib/yum/yumdb/l/59375612f7becc19fced0669c9d11d5cacad51a1-libuuid-2.17.2-12.18.el6-i686/command_line

     11 2050 802119 /var/lib/yum/yumdb/l/59375612f7becc19fced0669c9d11d5cacad51a1-libuuid-2.17.2-12.18.el6-i686/checksum_type

     12 2050 802121 /var/lib/yum/yumdb/l/59375612f7becc19fced0669c9d11d5cacad51a1-libuuid-2.17.2-12.18.el6-i686/from_repo_revision

     11 2050 802122 /var/lib/yum/yumdb/l/59375612f7becc19fced0669c9d11d5cacad51a1-libuuid-2.17.2-12.18.el6-i686/changed_by

     10 2050 802129 /var/lib/yum/yumdb/o/16a3eb4b9f709be44afc6281651cece64a425b8c-openssl-1.0.1e-42.el6-i686/from_repo_revision

      2 2050 805899 /var/lib/yum/yumdb/r/eeb376f92fa5919080a0f2fec36447fdaaacb313-rpmrebuild-2.11-1-noarch/from_repo_revision

      4 2050 806426 /var/lib/yum/yumdb/r/3b4ea305112240efff1cec380950c14c9846b157-rsyslog-pgsql-5.8.10-8.el6-i686/command_line

      4 2050 806427 /var/lib/yum/yumdb/r/3b4ea305112240efff1cec380950c14c9846b157-rsyslog-pgsql-5.8.10-8.el6-i686/checksum_type

      4 2050 806429 /var/lib/yum/yumdb/r/3b4ea305112240efff1cec380950c14c9846b157-rsyslog-pgsql-5.8.10-8.el6-i686/from_repo_revision

      4 2050 806433 /var/lib/yum/yumdb/s/2f49130f2a5c38ae30811fbbf3cad61d3cdd32fb-selinux-policy-targeted-3.7.19-154.el6-noarch/from_repo_revision

      2 2050 806461 /var/lib/yum/yumdb/t/d024ed7800d06b4d49f7384e40fbd3fd4f00fa69-tg3-3.133d-1-i686/from_repo_revision

     33 2050 936200 /var/lib/yum/yumdb/l/4b67c539a75863dbbd70e463c8f49a78882e1dae-libsmbclient-3.6.9-164.el6-i686/releasever

     33 2050 936201 /var/lib/yum/yumdb/l/4b67c539a75863dbbd70e463c8f49a78882e1dae-libsmbclient-3.6.9-164.el6-i686/command_line

     33 2050 936202 /var/lib/yum/yumdb/l/4b67c539a75863dbbd70e463c8f49a78882e1dae-libsmbclient-3.6.9-164.el6-i686/checksum_type

     48 2050 939168 /var/lib/yum/yumdb/o/021df9edd3ecd9ad26d469f139ab7a06c6040502-ooobasis3.3-base-3.3.0-9567-i586/from_repo

     48 2050 939169 /var/lib/yum/yumdb/o/021df9edd3ecd9ad26d469f139ab7a06c6040502-ooobasis3.3-base-3.3.0-9567-i586/reason

     48 2050 939170 /var/lib/yum/yumdb/o/021df9edd3ecd9ad26d469f139ab7a06c6040502-ooobasis3.3-base-3.3.0-9567-i586/releasever

     48 2050 939171 /var/lib/yum/yumdb/o/021df9edd3ecd9ad26d469f139ab7a06c6040502-ooobasis3.3-base-3.3.0-9567-i586/command_line

     48 2050 939172 /var/lib/yum/yumdb/o/021df9edd3ecd9ad26d469f139ab7a06c6040502-ooobasis3.3-base-3.3.0-9567-i586/checksum_type

     48 2050 939174 /var/lib/yum/yumdb/o/021df9edd3ecd9ad26d469f139ab7a06c6040502-ooobasis3.3-base-3.3.0-9567-i586/from_repo_revision

     48 2050 939175 /var/lib/yum/yumdb/o/021df9edd3ecd9ad26d469f139ab7a06c6040502-ooobasis3.3-base-3.3.0-9567-i586/from_repo_timestamp

     48 2050 939176 /var/lib/yum/yumdb/o/021df9edd3ecd9ad26d469f139ab7a06c6040502-ooobasis3.3-base-3.3.0-9567-i586/installed_by

      2 2050 947545 /var/lib/yum/yumdb/l/7cde2ca1c2519ea3e07d36c8dd5f4a9faf7ad26b-libtdb-1.2.10-1.el6-i686/from_repo_revision

     33 2050 947555 /var/lib/yum/yumdb/l/4b67c539a75863dbbd70e463c8f49a78882e1dae-libsmbclient-3.6.9-164.el6-i686/changed_by

      2 2050 947559 /var/lib/yum/yumdb/l/dba64858a26f999e23d7310efa51c26abd65eaf3-libtevent-0.9.18-3.el6-i686/from_repo_revision

      2 2050 947563 /var/lib/yum/yumdb/s/504b1c3c0747d9b2ada85b7087427cffdfcef917-samba-winbind-3.6.9-164.el6-i686/from_repo_revision

      4 2050 947567 /var/lib/yum/yumdb/s/6427b02dc759e2a98100c604d220e814990ea851-samba-common-3.6.9-164.el6-i686/from_repo_revision

      3 2050 947577 /var/lib/yum/yumdb/w/277175f9dbbddf85b3f6b89e14e1e9331d67eba1-wine-capi-1.6.1-1.el6-i686/from_repo_timestamp

      2 2050 947581 /var/lib/yum/yumdb/w/53fd15fac28e7e967d746778905cc0f6b5146b85-wine-symbol-fonts-1.6.1-1.el6-noarch/from_repo_revision

      2 2050 947587 /var/lib/yum/yumdb/w/7684fe9f9dd3d609f7424e6136dfe67bd036054b-wine-courier-fonts-1.6.1-1.el6-noarch/from_repo_timestamp

      3 2050 947597 /var/lib/yum/yumdb/w/4c8df9cf7993a05f6792ca4d0b958cecf6bda368-wine-filesystem-1.6.1-1.el6-noarch/from_repo_timestamp

      3 2050 947606 /var/lib/yum/yumdb/w/4c8df9cf7993a05f6792ca4d0b958cecf6bda368-wine-filesystem-1.6.1-1.el6-noarch/from_repo_revision

      2 2050 947611 /var/lib/yum/yumdb/w/1af314b296dec36dff9bff6187d086dfba6d76ad-wine-pulseaudio-1.6.1-1.el6-i686/from_repo_timestamp

      2 2050 947615 /var/lib/yum/yumdb/l/4b67c539a75863dbbd70e463c8f49a78882e1dae-libsmbclient-3.6.9-164.el6-i686/from_repo_revision

      2 2050 947619 /var/lib/yum/yumdb/w/c7144eae073d13f62f61ade9b64ba29746bde102-wine-alsa-1.6.1-1.el6-i686/from_repo_timestamp

      2 2050 947623 /var/lib/yum/yumdb/l/5821c74fc48112f6ac1776576ac1aba8b117e4ba-libtalloc-2.0.7-2.el6-i686/from_repo_revision

      2 2050 947627 /var/lib/yum/yumdb/w/901b72771326da6b5185ca836f63c3c01d246f7a-wine-ms-sans-serif-fonts-1.6.1-1.el6-noarch/from_repo_revision

      2 2050 947633 /var/lib/yum/yumdb/w/b82fc99c22ef55ffb291d99b232ff7a80f8c68dc-wine-desktop-1.6.1-1.el6-i686/from_repo_timestamp

      2 2050 947637 /var/lib/yum/yumdb/s/076f80658661f0ef75aeb9b1ee4c45c4d7db17f1-samba-winbind-clients-3.6.9-164.el6-i686/from_repo_revision

      2 2050 947682 /var/lib/yum/yumdb/w/3f74ab3304c3ff743a00ddfeb94a4bce2f53eb56-wine-system-fonts-1.6.1-1.el6-noarch/from_repo_timestamp

      2 2050 947730 /var/lib/yum/yumdb/u/71fd822e504f21fb9ce7b6de4a2f0c60fa7564a1-uuid-1.6.1-10.el6-i686/from_repo_revision

 

Has this been reported before?  Is this a known issue?  I did use Google; however, there really was not much around this issue.

 

Thanks,

 

Robert

 

-- 

Robert Pollina

Software Engineer

Rudolph Technologies, Inc.

16 Jonspin Rd. 
Wilmington MA 01887

 

978.253.6239


------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/xeonphi
_______________________________________________
Mondo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mondo-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Mondo-devel] Hard links and mondoresecue

Bruno Cornec-4
Hello Robert,

Pollina, Robert said on Fri, Dec 09, 2016 at 02:20:15PM +0000:
>We’ve been using mondo for some time and I’m just realizing that it does not handle hardlinks very well.  From testing the afio command (using the mondoarchive/restore commands), I have OBERSERVED that If you have two directories with the second one that essentially has hardlinks back to all the files in the first:
>So, the afio commands preserve hard links; however, when I use mondoresecue, both the original file and linked file are full copies:
>There appears to be two main issues:
>
>1.       Although afio does handle hardlinks correctly, given that afio is called for many times, with a subset (fileset) of files, it can only deal with hardlinks within the fileset.
>2.       The processing of big files is processed file-by-file and therefore does not deal with hardlinks across multiple files.
>
>This is not only a restore concern (mondorestore) but also a backup concern (mondoarchive) as the backups created can be much larger than required -- this is actually how I first noticed this issue.

I agree with your analysis :-(

>Has this been reported before?  Is this a known issue?  I did use Google; however, there really was not much around this issue.

It's now reported as http://trac.mondorescue.org/ticket/807
I' ve no idea yet on how I'll fix that one however. It would require changing the way mondoarchive performs the analysis and store more information than now to handle tat case correctly, especially providing what is needed at restore time to recreate the hard links the correct way. Pretty tough one to solve :-(

Bruno.
--
Open Source Profession, WW Linux Community Lead     http://www.hpintelco.net
HPE EMEA EG FLOSS Technology Strategist http://www.hpe.com/engage/opensource
FLOSS projects:    http://mondorescue.org         http://project-builder.org
Musique ancienne?   http://www.musique-ancienne.org  http://www.medieval.org

------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/intel
_______________________________________________
Mondo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mondo-devel
Loading...