You are not logged in.

#1 2008-04-17 10:45:12

ekerazha
Member
Registered: 2007-02-27
Posts: 290

UnionFS and pre-populated filesystems

Hi,
is it possible to "merge" using UnionFS two filesystems that already contains files and directories (without losing them)?

Is it possible to read files and directories written to UnionFS on every single filesystem if they are "unmerged"?

Thank you.

Offline

#2 2008-04-17 12:59:23

GGLucas
Member
Registered: 2008-03-13
Posts: 113

Re: UnionFS and pre-populated filesystems

It is, although I use AUFS, but they're pretty much the same thing, you'll have to pick one of them to have priority, though (newly created files go on it)
Just mount them, and then put a line for the union in fstab, this is mine, for AUFS:

aufs /data aufs dirs=/mnt/data-2:/mnt/data-1,auto,defaults,exec,noatime 0 0

This mounts /mnt/data-1 and /mnt/data-2 in union on /data, with /mnt/data-2 being the fs with priority.

Last edited by GGLucas (2008-04-17 13:00:17)

Offline

#3 2008-04-17 13:36:02

lilsirecho
Veteran
Registered: 2003-10-24
Posts: 5,000

Re: UnionFS and pre-populated filesystems

What file size limits apply to this setup?


Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit!     X-ray confirms Iam spineless!

Offline

Board footer

Powered by FluxBB