Fedora Linux Support Community & Resources Center

Sections ›› Home | Forums | Guidelines | Forum Help | Fedora FAQ | Fedora News 

Go Back   FedoraForum.org > Fedora Support > General Support

General Support Fedora general support. Ask questions here that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 2009-02-26, 06:34 AM CST
stovesy Offline
Registered User
 
Join Date: Nov 2006
Posts: 3
Moving LVM disks from one machine to another.

I have hardware problems on one particular sever, causing it to crash after a few minutes, so I need to move the physical hard discs to another PC.

I have 2 drives, both using LVM
The LVM partitions are in good condition and work on the poorly machine until is crashes.

The problem is, that when I move these disks to another PC:
GRUB starts as normal
The system starts to boot
The Red Hat Nash line appears

But the LVM volume (System) is not found during the initial scan.

If I boot from a live CD, I can mount all my LVM volumes.

Any suggestions would be most welcome.
Thanks
Reply With Quote
  #2  
Old 2009-02-26, 07:10 AM CST
SlowJet Offline
Registered User
 
Join Date: Jan 2005
Posts: 4,465
The default LVM install is only unique within the computer it was installed on unless you changed the VolGroup00 name to a more global name.

If the second PC has a system already then there will be a VG name conflict.

Start up in the LiveCD, vgrename the fromcompters LVM VolGroup00 name to something else like VolGroupF10-Feb2009.


If this is not the case then supply more info and check the log files for messages in linux rescue mode.

SJ
__________________
Do the Math
Reply With Quote
  #3  
Old 2009-02-26, 07:23 AM CST
stovesy Offline
Registered User
 
Join Date: Nov 2006
Posts: 3
Yeh, sorry.

Didn't make it clear that one HD has my system on it.

I'm not trying to import it into another installation, just moving 2 HD's from one case to another.

I would have thought that I could just place the HD into the new case, and boot into it...
Doesn't seem to be the case.

I wonder if maybe moving drive assignment has LVM confused (Maybe the System volume was on hda and is now on sda or something else ??)

Cheers.
Reply With Quote
  #4  
Old 2009-02-26, 07:36 AM CST
SlowJet Offline
Registered User
 
Join Date: Jan 2005
Posts: 4,465
No, it mounts by /dev/VG/LV name
The controller type would need to be compatible with the drive types. ide or SATA or SATA-IO
(BIOS setting for controllers the same.)
The /boot would need to be the same /dev/sda1
(Maybe a grub initrd problem.)
But you need the facts within the logs and/or error messages.

# cat /etc/fstab

#
# /etc/fstab
# Created by anaconda on Sat Nov 29 20:54:50 2008
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or vol_id(8) for more info
#
/dev/VolGroup71/LogVol71root / ext4 defaults 1 1
/dev/VolGroup72/LogVol72home /home ext4 defaults 1 2
UUID=142713a4-97d7-4fc5-aa82-f29b0c514eaf /boot ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
/dev/VolGroup72/LogVol72swap swap swap defaults 0 0
/dev/VolGroup71/LogVol71swap swap swap defaults 0 0
__________________
Do the Math
Reply With Quote
  #5  
Old 2009-02-26, 07:46 AM CST
stovesy Offline
Registered User
 
Join Date: Nov 2006
Posts: 3
Thanks for you help.

I think I'm getting way out of my depth on this one though.
I now nothing of how /boot or initrd work, so I'm going to try another way.

Install a fresh to a new HD, and them copy stuff over.

Thanks again.
Reply With Quote
  #6  
Old 2009-02-26, 08:07 AM CST
SlowJet Offline
Registered User
 
Join Date: Jan 2005
Posts: 4,465
Yep, Fedora is a 4D learning curve, fought with denial, and overcome by acceptance, consistant effort, and practice, practice, practice.

cd /
ls
cat file
cd ../

cd /
ls
cat file | more
cd ../

...


SJ
__________________
Do the Math
Reply With Quote
  #7  
Old 2009-02-26, 08:18 AM CST
Chilly Willy's Avatar
Chilly Willy Online
Registered User
 
Join Date: Jul 2008
Posts: 379
Seems to me that if you can mount ALL with a live CD then it should be easy to tie them all together or at least use the live CD to copy. As to how to go about the tie, I've only done it once & THAT was with help. So I don't think I would be of any use to you on that. And there again, I COULD be totally off the wall on this, as well.
__________________
Chilly Willy, Tux's little cousin...
Reply With Quote
  #8  
Old 2009-02-26, 08:50 AM CST
SlowJet Offline
Registered User
 
Join Date: Jan 2005
Posts: 4,465
They (being the fromcomputer VolGroup00 disks) is going to be untieable to a new default install on the newcomputer with VolGroup00.

If he used custom partitioning and creates a nice layout for his needs, then the from disks can be added,
vgchaange -a
lvs
mkdir /mnt/oldslash
mount /dev/mapperVolGroup00-LogVol00 /mnt/oldslash

So yes you off the wall but as this is the main LVM problem that occurs for newbies and there is no easy work around,
the question will be asked again and again.

SJ
__________________
Do the Math
Reply With Quote
  #9  
Old 2009-02-26, 09:11 AM CST
Chilly Willy's Avatar
Chilly Willy Online
Registered User
 
Join Date: Jul 2008
Posts: 379
Well that is why I ask such questions when I read something like this. How else is someone to learn.( although I really didn't pose it as a question - I WAS questioning if it could be as I was thinking) BUT I still am a bit confused as it still seems that the two volumes could be renamed & made as one. What am I not seeing here? (& as I've already admitted, I know very little about LVM's) BTW: it now appears that what I did wasn't the same? (referring to expanding my LVM onto a bigger HD - posted on here) I ended up with 2 volumes & had to rename the one to "tie" it in.

And my apologizes to the OP if I'm "hijacking" your thread. But I hope this will make us BOTH better understand.
__________________
Chilly Willy, Tux's little cousin...

Last edited by Chilly Willy; 2009-02-26 at 09:55 AM CST.
Reply With Quote
Reply

Tags
disks, lvm, machine, moving

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
moving a kernel to another machine daniel_I_l General Support 3 2008-10-04 09:04 PM CDT
Moving from one machine to another PFJ gmane.linux.redhat.fedora.general 3 2006-07-17 09:10 PM CDT
help-moving disks to (sligtly) different hardware guidobras Hardware 1 2006-06-14 08:50 AM CDT
Migrating (moving) users from one fedora machine to another fedora machine zanzan General Support 3 2006-03-08 04:19 AM CST
Moving raid to different machine Ashley M. Kirchner gmane.linux.redhat.fedora.general 6 2005-07-25 02:27 PM CDT

Automatic Translations (Powered by Powered by Google):
Afrikaans Albanian Arabic Belarusian Bulgarian Catalan Chinese Croatian Czech Danish Dutch English Estonian Filipino Finnish French Galician German Greek Hebrew Hindi Hungarian Icelandic Indonesian Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Taiwanese Thai Turkish Ukrainian Vietnamese Yiddish

All times are GMT -7. The time now is 10:26 AM CST.

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 | Founding Members
Designed By Ewdison Then | Powered by vBulletin ©2000-2009, Jelsoft Enterprises Ltd.
FedoraForum is Powered by Open Source Projects and Products
Translations by vBET Translator 2.3.8