LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 06-06-2013, 12:34 PM   #1
yaximik
Member
 
Registered: Nov 2010
Posts: 87

Rep: Reputation: 0
HELP! Fixing logical volume problem


Hi,

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
Code:
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:
Code:
 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, 04:54 PM   #2
spazticclown
Member
 
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, 09:06 PM   #3
yaximik
Member
 
Registered: Nov 2010
Posts: 87

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!
 
  


Reply


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


All times are GMT -5. The time now is 01:10 AM.

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