Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-06-2013, 11:34 AM   #1
Registered: Nov 2010
Posts: 90

Rep: Reputation: 0
HELP! Fixing logical volume problem


It appears I accidentally renamed my main logical volume and now RHEL58 machine cannot boot normally. The original logvolume names were VolGroup00 and LogVol01, LogVol02, etc. The last command I used was
vgrename -t VolGroup00 SysVolume
which should not change records but should only make and keep the change during the current session (if this is correct understanding). Then I rebooted to erase any modifications. However, this is what I got upon reboot:
 Reading all physical volumes. This may take a while...
 Found volume group "SysVolume" using metadata type lvm2
 Volume group "VolGroup00" not found
Unable to access resume device (/dev/VolGroup00/LogVol01
mount: could not find filesystem '/dev/root'
setuproot: moving /dev failed: No such file or directory
setuproot: error mounting /proc: No such file or directory
setuproot: error mounting /sys: No such file or directory
setuproot: mount failed: No such file or directory
Kernel panic - not syncing: Attempted to kill init!
I guess I need to rename SysVolume back to LogVolume00, but I do not know how from the point the the system is stuck at, or how to proceed after logging in with a rescue disc or liveDVD. Please advise...
Old 06-06-2013, 03:54 PM   #2
Registered: Sep 2010
Distribution: Fedora, Android, CentOS
Posts: 91
Blog Entries: 2

Rep: Reputation: 21
Booting to a live media and starting with a 'vgscan' to see what the volume is now called. If it just needs to be renamed "VolGroup00" that should be straight forward, you already know the command (minus the -t). You can also use your time in the live environment to back up any important data to an external device or network location just in case something goes wrong.
1 members found this post helpful.
Old 06-06-2013, 08:06 PM   #3
Registered: Nov 2010
Posts: 90

Original Poster
Rep: Reputation: 0
[SOLVED] HELP! Fixing logical volume problem

Thanks! I was able to use the rescue mode from the installation disk, which put me into a shell, where all vg-related commands could be used with prefix lvm, like "lvm vgrename" instead of just "vgrename". I had first to deactivate the entire renamed logical volume "SysVolume" by using "lvm vgchange -an SysVolume", then "lvm vgrename SysVolume VolGroup00" and activate it back "lvm vgchange -ay VolGroup00" and reboot. Wheeew!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
LVM Mount Physical Volume/Logical Volume without a working Volume Group mpivintis Linux - Newbie 10 01-11-2014 07:02 AM
[SOLVED] Problem with sudo after creating new logical volume and mount to /var swilsy Linux - Newbie 8 11-25-2012 10:15 PM
Extending logical volume LogVol01 Insufficient allocatable logical exte swap space umeshsharma Linux - Newbie 4 06-22-2009 12:26 PM
PROBLEM: Two directories suddenly point to the same logical volume George.evans Linux - Server 2 09-24-2007 12:29 PM
Problem mounting a logical volume with JFS sumta Linux - General 3 10-05-2006 11:49 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:46 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration