Solved

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

Posted on 2011-02-16
3
2,179 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
  • 2
3 Comments
 
LVL 39

Accepted Solution

by:
noci earned 500 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 39

Expert Comment

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

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals. Note…
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 …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

760 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now