[Bug 403524] [NEW] mhddhs occasionally creates duplies of files copied to virtual drive

Christopher Peplin chris.peplin at rhubarbtech.com
Thu Jul 23 14:06:34 UTC 2009


Public bug reported:

Binary package hint: mhddfs

Package: mhddfs
Architecture: amd64
Version: 0.1.18-1
Ubuntu version: Jaunty

I have been using mhddfs for the past two Ubuntu releases, and just now
I am noticing that occasionally the used disk space reported by "df" is
higher than the total disk usage calculated with "durep" or "du". After
some investigation, I found that some files were duplicated on multiple
hard drives in the virtual array.

My fstab:
mhddfs#/media/disk1,/media/disk2,/media/disk3,/media/disk4 /media/virtual fuse defaults,allow_other 0 0

When I notice the free disk space mismatch, I used a Perl script to
search for files with the same name. I would find things like this:

peplin at line:~/bin$ ls -lh /media/disk2/Pictures/Highway\ Systems\ Book/20090613-123706.dng
-rwxrwx--- 1 root plugdev 20M 2009-07-06 23:21 /media/disk2/Pictures/Highway Systems Book/20090613-123706.dng
peplin at line:~/bin$ ls -lh /media/disk3/Pictures/Highway\ Systems\ Book/20090613-123706.dng
-rwxrwx--- 1 root plugdev 20M 2009-07-07 22:41 /media/disk3/Pictures/Highway Systems Book/20090613-123706.dng
peplin at line:~/bin$ ls -lh /media/virtual/Pictures/Highway\ Systems\ Book/20090613-123706.dng
-rwxrwx--- 1 root plugdev 20M 2009-07-06 23:21 /media/virtual/Pictures/Highway Systems Book/20090613-123706.dng

Notice that there are two different copies of the file on disk2 and
disk3, and the virtual drive is masking the newer version. These files
are being copied to the /media/virtual drive via ssh and using rdiff-
backup. That shouldn't make a difference, because I believe it's just
copying to /media/virtual like normal and it has no knowledge of there
being a disk1, disk2, etc.

It looks like when the new file is copied to the drive, mhddfs
occasionally doesn't realize that this file already exists and so it
copies a new version to another drive.

** Affects: mhddfs (Ubuntu)
     Importance: Undecided
         Status: New

-- 
mhddhs occasionally creates duplies of files copied to virtual drive
https://bugs.launchpad.net/bugs/403524
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs




More information about the universe-bugs mailing list