mhddhs occasionally creates duplies of files copied to virtual drive
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mhddfs (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
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#
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@line:~/bin$ ls -lh /media/
-rwxrwx--- 1 root plugdev 20M 2009-07-06 23:21 /media/
peplin@line:~/bin$ ls -lh /media/
-rwxrwx--- 1 root plugdev 20M 2009-07-07 22:41 /media/
peplin@line:~/bin$ ls -lh /media/
-rwxrwx--- 1 root plugdev 20M 2009-07-06 23:21 /media/
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.
Might be the same thing as this bug in Debian:
http:// bugs.debian. org/580785