View previous topic :: View next topic |
Author |
Message |
SOFTSKY n00b
Joined: 12 Feb 2008 Posts: 5
|
Posted: Tue Feb 12, 2008 2:58 pm Post subject: How to combine 2 filesystems |
|
|
Hi guys.
Well, I'm playing with diskless stations and would ask this question. Is that possible to combine (or merge) 2 filesystems? Let say I have:
hda1:
Code: | /
-/dir0
-/dir1
-/dir2
-/dir3 |
hdb1:
Code: | /
-/dir1
-/dir2
-/dir3
-/dir4 |
As you see these 2 drives has some directories (dir1, dir2, dir3) which has same names. Only names, not the content. So, is that possible to mount them somehow to SAME directory, so I just have
Code: | /
-/dir0
-/dir1
-/dir2
-/dir3
-/dir4
|
but the content of dir1, dir2 and dir3 is combined using content of these directories on both hda1 and hdb1 partitions? There could be a problem, if let say hda1:/dir1 and hdb1:/dir1 has 2 files with same name, content one of them should be used (lets say that depends on hda1 and hdb1 mount order).
I'm wondered does LVM2 could do this sort of things? |
|
Back to top |
|
|
i92guboj Bodhisattva
Joined: 30 Nov 2004 Posts: 10315 Location: Córdoba (Spain)
|
Posted: Tue Feb 12, 2008 3:11 pm Post subject: |
|
|
You might want to take a look at unionfs |
|
Back to top |
|
|
SOFTSKY n00b
Joined: 12 Feb 2008 Posts: 5
|
Posted: Tue Feb 12, 2008 4:21 pm Post subject: |
|
|
i92guboj wrote: | You might want to take a look at unionfs |
Yeah, that was helpful. Playing with it at the moment. Seems that's exactly what I needed. Thanks. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|