Fedora Linux Support Community & Resources Center
  #1  
Old 20th January 2009, 09:26 PM
ivytoba Offline
Registered User
 
Join Date: Jan 2009
Location: Washington DC. USA.
Posts: 5
Mounting an LVM hard drive.

Hello All,

I just

1) removed my 200 GB LVM formatted hard drive (with Fedora 7)
2) Installed a new 300 GB hard drive
3) Installed Fedora 10
4) Connected my "old" 200 GB LVM disc as a slave device.

How do I mount the 200 GB LVM so that I can transfer the data to my new 300 GB disc?

Apparently there is a conflict with the names. In both drives the LVM are called Volume00.

Can anybody help? I do not want to merge both drives into a larger virtual volume.

Thank you

ivytoba

********************
Here are some outputs. Notice that in both old and new discs I have a ~50GB NTFS partition with MS Windows.

# fdisk -l

Disk /dev/sda: 300.0 GB, 300090728448 bytes
240 heads, 63 sectors/track, 38764 cylinders
Units = cylinders of 15120 * 512 = 7741440 bytes
Disk identifier: 0x000d2a90

Device Boot Start End Blocks Id System
/dev/sda1 27 6806 51247350 7 HPFS/NTFS
/dev/sda2 * 6807 6832 196560 83 Linux
/dev/sda3 6833 38764 241405920 8e Linux LVM

Disk /dev/sdb: 203.9 GB, 203928109056 bytes
240 heads, 63 sectors/track, 26342 cylinders
Units = cylinders of 15120 * 512 = 7741440 bytes
Disk identifier: 0x1a731a72

Device Boot Start End Blocks Id System
/dev/sdb1 * 15 6782 51166048+ 7 HPFS/NTFS
/dev/sdb2 1 14 105808+ 83 Linux
/dev/sdb3 6783 26342 147873600 8e Linux LVM

Partition table entries are not in disk order


# mount
/dev/dm-0 on / type ext3 (rw)
/proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
/dev/sda2 on /boot type ext3 (rw)
/dev/sda1 on /media/windows type fuseblk (rw,allow_other,blksize=4096)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
gvfs-fuse-daemon on /home/nazashal/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=nazashal)
  #2  
Old 20th January 2009, 09:32 PM
brunson Offline
Registered User
 
Join Date: Jun 2005
Location: Westminster, Colorado
Posts: 2,305
Since it was formerly your primary drive, I'll assume it's VolGroup00 and LogVol00.

First you activate the volume group with 'vgchange -a y VolGroup00", this will make the logical volumes show up in /dev/mapper. You can them mount the volume with "mount /dev/mapper/VolGroup00-LogVol00 /path/to/mountpoint"

If it isn't named that way then use vgscan and lvscan to find them out.
__________________
Registered Linux User #4837
411th in line to get sued by Micro$oft
Quote:
Basically, to learn Unix you learn to understand and apply a small set of key ideas and achieve expertise by expanding both the set of ideas and your ability to apply them - Paul Murphy
  #3  
Old 20th January 2009, 09:41 PM
ivytoba Offline
Registered User
 
Join Date: Jan 2009
Location: Washington DC. USA.
Posts: 5
Hello Brunson,

Well, that's where the name conflict shows up. This is a copy-paste of the session.

$ su root
Password:

# vgchange -a y VolGroup00
2 logical volume(s) in volume group "VolGroup00" now active

# df -hk
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/dm-0 233518000 4966636 216689348 3% /
tmpfs 1037112 504 1036608 1% /dev/shm
/dev/sda2 190355 20711 159816 12% /boot
/dev/sda1 51247348 34167184 17080164 67% /media/windows

# mount /dev/mapper/VolGroup00-LogVol00 /scratch

# df -hk
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/dm-0 233518000 4966636 216689348 3% /
tmpfs 1037112 504 1036608 1% /dev/shm
/dev/sda2 190355 20711 159816 12% /boot
/dev/sda1 51247348 34167184 17080164 67% /media/windows
/dev/mapper/VolGroup00-LogVol00
233518000 4966636 216689348 3% /scratch

As you see, this just mounted a ~233 GB partition. That means that is is remounting the already active partition in the new 300 GB drive. I want to mount the old hard drive so that I can extract its data.

Should I run any command to better see my configuration? Just le me know.

Thanks

ivytoba
  #4  
Old 20th January 2009, 09:44 PM
ivytoba Offline
Registered User
 
Join Date: Jan 2009
Location: Washington DC. USA.
Posts: 5
I forgot to show this after those commands I run:

# vgscan
Reading all physical volumes. This may take a while...
Found volume group "VolGroup00" using metadata type lvm2
Found volume group "VolGroup00" using metadata type lvm2

# lvscan
ACTIVE '/dev/VolGroup00/LogVol00' [139.97 GB] inherit
ACTIVE '/dev/VolGroup00/LogVol01' [1.00 GB] inherit

Thanks again,

ivytoba
  #5  
Old 20th January 2009, 09:48 PM
brunson Offline
Registered User
 
Join Date: Jun 2005
Location: Westminster, Colorado
Posts: 2,305
The easiest solution to your problem may be to put the old drive into the computer, boot off it, then rename the volume group. I'm not sure how to differentiate between two different volume groups that are named the same when renaming, I'd be afraid of renaming the wrong one.
__________________
Registered Linux User #4837
411th in line to get sued by Micro$oft
Quote:
Basically, to learn Unix you learn to understand and apply a small set of key ideas and achieve expertise by expanding both the set of ideas and your ability to apply them - Paul Murphy
  #6  
Old 20th January 2009, 09:51 PM
ivytoba Offline
Registered User
 
Join Date: Jan 2009
Location: Washington DC. USA.
Posts: 5
Sound reasonable to me. What program would you use to change the volume name?

I thought that system-config-lvm would do it but I do not find a "change vlume name" thing.

ivytoba
  #7  
Old 20th January 2009, 09:55 PM
brunson Offline
Registered User
 
Join Date: Jun 2005
Location: Westminster, Colorado
Posts: 2,305
Maybe "vgrename"? You think? :-)
__________________
Registered Linux User #4837
411th in line to get sued by Micro$oft
Quote:
Basically, to learn Unix you learn to understand and apply a small set of key ideas and achieve expertise by expanding both the set of ideas and your ability to apply them - Paul Murphy
  #8  
Old 20th January 2009, 09:57 PM
ivytoba Offline
Registered User
 
Join Date: Jan 2009
Location: Washington DC. USA.
Posts: 5
I'll give it a shot.

Back to the screw driver now...

ivytoba
  #9  
Old 20th January 2009, 10:04 PM
leigh123linux's Avatar
leigh123linux Offline
Retired Administrator
 
Join Date: Oct 2006
Posts: 21,509
You need to use the vg uuid number to rename .

http://forums.fedoraforum.org/showthread.php?t=210977
__________________
My Hardware
- CPU: AMD Phenom II X6 Hex Core 1055T 95W Edition @3.5Ghz
- Motherboard: Gigabyte GA-880GM-UD2H
- Cooler: Corsair H50 CPU Cooler
- RAM: Corsair Dominator 8GB (4x2GB) DDR3 1600MHz
- Graphics: Gigabyte GeForce GTS 450 OC 1024MB GDDR5
  #10  
Old 14th November 2012, 07:28 AM
kramx7 Offline
Registered User
 
Join Date: Nov 2012
Location: Philippines
Posts: 1
macosfirefox
Re: Mounting an LVM hard drive.

Hey guys, i want to ask for help in mounting logical volume. I followed the instructions above and from others sites. But my problem is on missing volume groups. when I run pvscan,pvs, pvdisplay, the VG field is empty. When I run lvscan and vgscan, No volume groups found message would be return. Hope you will help me. I have been researching this for two days now. Thanks.
  #11  
Old 14th November 2012, 10:53 PM
Gareth Jones Offline
Official Gnome 3 Sales Rep. (and Adminstrator)
 
Join Date: Jul 2011
Location: Leamington Spa, UK
Age: 30
Posts: 1,847
linuxfirefox
Re: Mounting an LVM hard drive.

Welcome to the forum kramx7. This is a very old thread, and generally here we don't like necro-posting. I'm going to close this.

If you still need help, please start a new thread. In your post, please include more useful information for us to help you. A start might be to post the actual output of "fdisk -l", "pvscan", "vgscan" and "lvscan" as you see it on screen. If you can't boot the system to capture that output, try using a live CD so you can load a browser and terminal at the same time.
Closed Thread

Tags
drive, hard, lvm, mounting

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mounting my second hard drive. mabool Hardware & Laptops 16 3rd September 2008 05:35 PM
Mounting 2nd Hard Drive in F8 BillO Hardware & Laptops 0 15th November 2007 12:29 PM
Mounting Windows hard drive mrothlein Hardware & Laptops 1 26th October 2006 05:53 PM
mounting a second LVM hard drive LarryJ Hardware & Laptops 4 11th June 2006 04:43 PM
mounting a hard drive RaZoR Hardware & Laptops 6 25th May 2005 01:35 AM


Current GMT-time: 04:42 (Wednesday, 19-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat