Discussion:
Merge a folder split over two drives into one...
John Hendrikx
2016-07-22 12:50:32 UTC
Permalink
Hi list,

I'm testing AUFS to merge two read/write drives into one, but I'm
encountering some unexpected results.

I have the following folders:

/mnt/b1/backup/Library/Stuff/A
/mnt/b1/backup/Library/Stuff/B
/mnt/b2/backup/Library/Stuff/C
/mnt/b2/backup/Library/Stuff/D

The "Library/Stuff" directory is so big that it will not fit on a single
drive, so I split this over 2 drives by moving half its folders onto one
drive and half on the other.

When I mount aufs on /mnt/vb1 with br=/mnt/b1=rw,/mnt/b2=rw and do:

ls /mnt/vb1/backup/Library/Stuff

It only returns folders A and B... but not C and D.

What am I doing wrong or is this a use-case that is simply not supported?

--John
s***@users.sourceforge.net
2016-07-22 12:59:06 UTC
Permalink
Hello John,
Between two branches, :(colon) should be specified instead of comma(,) .

You can confirm the current branch list via /sys/fs/aufs/si_*/brN.


J. R. Okajima
John Hendrikx
2016-07-24 07:37:57 UTC
Permalink
Sorry about the wrong syntax, I copied it from memory.

I found the real problem, there was an opaque marker file inside one of
the top branch's folders. Not sure how it got there, but after removing
it everything is working as expected.

Thanks!
Post by s***@users.sourceforge.net
Hello John,
Between two branches, :(colon) should be specified instead of comma(,) .
You can confirm the current branch list via /sys/fs/aufs/si_*/brN.
J. R. Okajima
Loading...