LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 11-01-2009, 12:54 AM   #1
parikpol
LQ Newbie
 
Registered: Nov 2009
Posts: 4

Rep: Reputation: 0
File system on top of replicated/mirrored volume


Is there any way we can mount a file system on top of a mirrored/replicated volume? I am ok with having a read only filesystem on top of the mirrored volume, as long as the filesystem reacts to changes to the data in volume on top of which it is mounted.
 
Old 11-03-2009, 04:10 AM   #2
Guttorm
Senior Member
 
Registered: Dec 2003
Location: Trondheim, Norway
Distribution: Debian and Ubuntu
Posts: 1,115

Rep: Reputation: 218Reputation: 218Reputation: 218
Hi

I'm not sure if I understand the question, but it sounds like a mount with the --bind option. You can mount using for example:

mount --bind /path/to/the/mounted/volume /path/to/a/new/directory

If you want it to be read-only, you can add "-o ro" to the mount command.

See "man mount" for some more information.
 
Old 11-03-2009, 05:07 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,093

Rep: Reputation: 978Reputation: 978Reputation: 978Reputation: 978Reputation: 978Reputation: 978Reputation: 978Reputation: 978
Doesn't make any sense - the filesystem is the data to all intents.
The application talks to the filesystem - the VFS layer hides all the details; what happens below that is irrelevant (but useful). Could be RAID, could be mirrored - might be striped LVM on (hardware or software) RAID on a mirrored set. Yes, I know you wouldn't do that - but you could.
 
Old 02-04-2010, 08:55 AM   #4
jerrybear
LQ Newbie
 
Registered: Feb 2010
Location: Fremont California, USA
Posts: 6

Rep: Reputation: 0
Quote:
Originally Posted by parikpol View Post
Is there any way we can mount a file system on top of a mirrored/replicated volume? I am ok with having a read only filesystem on top of the mirrored volume, as long as the filesystem reacts to changes to the data in volume on top of which it is mounted.
If the mirrored/replicated volume is on a separate system and the volume
is receiving updates from the volume on another system, then you do not
want to mount a file system on the mirrored/replicated volume.
The reason is that the replication is done on the block level, the file
system on the top has no knowledge of what the replicated volume will
contains after mounting as it continues to be replicated and updated
by another volume. The following FAQ page about DRBD is an example,
"Can I mount the secondary at least readonly?"


http://linux-ha.org/DRBD/FAQ#head-2c...95390c742ebd86

This problems exists on every block level replication products like
disk replication(DRBD), storage replication, volume replication
implemented on either software or hardware.

You can mount the mirrored/replicated volume safely only after the
replication is stopped due to remote system's failure or being shutdown.
The system may have to run the fsck first to make sure that the
replicated volume is in consistent state.


Jerrybear
 
  


Reply

Tags
availability, cluster, filesystems, loadbalancing, replication


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Choosing the right Linux File System Layout using a Top-Bottom Process LXer Syndicated Linux News 0 08-01-2009 10:10 PM
In rhel 5, is it possible to make a volume group on a mirrored disk? lou248 Linux - Newbie 10 03-31-2009 02:21 AM
Having an issue in regards mounting a file system to a logical volume in RHEL5 crathm Linux - Newbie 6 01-28-2009 04:51 PM
Ubuntu volume control sliders will only sit at top or bottom, but no adjustment b/w. lumix Linux - Hardware 1 12-13-2008 09:15 AM
please help converting a running system to mirrored raid array farkus888 Linux - Server 1 02-01-2008 05:18 PM


All times are GMT -5. The time now is 02:52 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration