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
From: The Netherlands
Registered: 2008-03-13
Posts: 113
Website

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?


My ailment? Lackatesla!
Tesla fails smog test..no gas!
Favorite song...Tesla On My Mind....

Online

Board footer

Powered by FluxBB