LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-01-2010, 11:59 PM   #1
mplike
Member
 
Registered: Jul 2007
Posts: 59

Rep: Reputation: 16
Post mount multiple lvm to single mount point


mount multiple lvm to single mount point
example: I 've two devices /dev/VolGroup00/disk1 /dev/VGDB/disk2.
Both to be mounted to /media/disk.
mount /dev/VolGroup00/disk1 /media/disk
mount /dev/VGDB/disk2 /media/disk
 
Old 03-02-2010, 04:56 AM   #2
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 250Reputation: 250Reputation: 250
You can create a symbolic link for 1, but not two at once.
Are the volume groups already mounted ? If so use their mounted names below rather than my suggested path.

edit /etc/fstab to add the volumes to mountpoints
ie.
Create /media/disk and /media/disk2 if not already there.
mount /dev/VolGroup00/disk1 on /media/disk
mount /dev/VGDB/disk2 on /media/disk2
Then after a reboot or using the mount command for both :

Create a directory /media/disk/vol2 and link the other volume to that :
ln -s /media/disk2 /media/disk/vol2

You can't have two links to the same directory because one will hide the other.
Same with mounting volumes.

Last edited by smoker; 03-02-2010 at 05:06 AM.
 
Old 03-02-2010, 05:06 AM   #3
mplike
Member
 
Registered: Jul 2007
Posts: 59

Original Poster
Rep: Reputation: 16
????? Clueless ??
Could you throw more light on this! Not very clear.
 
Old 03-02-2010, 05:43 AM   #4
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 250Reputation: 250Reputation: 250
Are the volumes already mounted ?
Are they in /etc/fstab ?
If not they should be.

Then sym-link one mount point to a directory inside the other mount point.
 
  


Reply


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
Load source from multiple sources to a single mount point using FUSE apurushotham Programming 4 11-17-2009 05:08 PM
Using ext4 with lvm and making multiple drives have /home mount point cjae Ubuntu 2 07-24-2009 03:06 PM
Multiple mount --bind's to 1 mount point ? Etraman Slackware 6 12-23-2004 08:18 PM
LVM - displaying mount point pfunk Linux - Software 0 07-10-2003 12:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration