?
Solved

GRUB boot problem after LVM Redhat Disk clone (Can the LABEL be changed on lvm2 ?)

Posted on 2011-02-16
3
Medium Priority
?
2,203 Views
Last Modified: 2012-06-21
I have cloned one RedHat disk to another using "dd" but now cannot boot unless one disk or the other is physically removed. The disk uses LVM with the /boot using lvm2 format. I think the problem is that GRUB sees identical boot blocks. Is it possible to change an lvm2 format boot LABEL so that GRUB sees 2 different labels? This is easy for ext2 or ext3 using e2label but I have found no way to change an LVM, lvm2 format, label for /boot.
Thanks in advance,
M
0
Comment
Question by:mmay5
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 40

Accepted Solution

by:
noci earned 2000 total points
ID: 34924515
I doubt it is the names.
All info in a LVM container is managed through GUID's (Globaly Unique ID')
The assumption is that at least every LVM object has a unique GUID.

So if you dd copy a disk the volumes have the same GUID and there fore may be considered identical... No doubt this is a recipe for disaster waiting to happen.

The best thing is to create a new Physical volume, + Volume group and create new LV's there (of the same size).
Then you can copy from the originall LV to the new LV.
When mounting based on label then you also need unique labels on the new disks, if mounting by GUID use the new GUID's
0
 

Author Closing Comment

by:mmay5
ID: 34927089
Sounds correct. So my real issue is that I never used LVM commands like pvcreate, lvcreate and just dd cloned the disk.
Without using pvcreate, I ended up with the same GUID. Oh well, LVM is nice for some things but it makes cloning boot disks
a bit more of a headache. Thanks for your help. I accepted that answer.
0
 
LVL 40

Expert Comment

by:noci
ID: 34927835
Maybe this does help:
http://tldp.org/HOWTO/LVM-HOWTO/
0

Featured Post

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question