LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 11-21-2013, 05:17 PM   #1
brownwrap
Member
 
Registered: Jan 2010
Posts: 121

Rep: Reputation: 16
How to mount a disk that had logical volumes in another machine?


Below find a typical fstab we have for our machines. This was the boot disk, but has since been moved to another machine. The disk has not been touched, so everything should still be there. My question is how do I mount it to see the original home directories that were is /users?

Code:
/dev/mapper/VolGroup00-LogVol01 /                       ext4    defaults        1 1
UUID=c31bdeb3-582f-4899-8dd1-646902cbbd29 /boot                   ext4    defaults        1 2
/dev/mapper/VolGroup00-LogVol02 /opt                    ext4    defaults        1 2
/dev/mapper/VolGroup00-LogVol03 /tmp                    ext4    defaults        1 2
/dev/mapper/VolGroup00-LogVol04 /users                  ext4    defaults        1 2
/dev/mapper/VolGroup00-LogVol05 /var                    ext4    defaults        1 2
/dev/mapper/VolGroup00-LogVol06 /var/log                ext4    defaults        1 2
/dev/mapper/VolGroup00-LogVol07 /var/log/audit          ext4    defaults        1 2
 
Old 11-21-2013, 05:57 PM   #2
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,779

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
If both machines were using volume group name "VolGroup00", then you will need to rename one of the volume groups so that they will not conflict. See the manpage for the vgrename command. If you want to rename the VG on the moved disk using a system that has its own "VolGroup00", then you will need to use UUID to identify the one you want to change. You can use the blkid command to find the UUIDs of physical volumes on the system.

For the future, it would be wise to have unique volume group names on all your machines. That will avoid this problem.

Last edited by rknichols; 11-21-2013 at 05:59 PM.
 
1 members found this post helpful.
Old 11-21-2013, 06:25 PM   #3
brownwrap
Member
 
Registered: Jan 2010
Posts: 121

Original Poster
Rep: Reputation: 16
Thank you

That appears to work great. I don't have access to the actuall machine at the moment, but tried it on a system I do have access to and mounted the partitions using the uuid. Thanks again.
 
  


Reply



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
Persistent mount of a Logical Volume on a iscsi disk hup Red Hat 2 12-19-2012 03:46 PM
[SOLVED] Destory or remove Logical Volumes and disk. busi386 Linux - Server 5 11-12-2012 12:09 PM
RHEL 5 mounting multiple logical volumes to the same mount point? sencha Linux - Enterprise 2 09-23-2010 10:54 AM
Shrinking the disk partition with Logical Volumes on it problem vofka Linux - General 0 06-17-2009 08:43 AM
I did not know about logical volumes gezi Linux - Newbie 5 04-27-2005 09:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 08:10 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
Open Source Consulting | Domain Registration