LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices

Reply
 
Search this Thread
Old 04-22-2012, 11:20 AM   #1
SaveVM
LQ Newbie
 
Registered: Apr 2012
Posts: 11

Rep: Reputation: Disabled
CentOS Wont Boot - LVM2 Filesystems messed up


So by accident I resized my root filesystem and volumegroup to 15GB while there was 16GB of files in it.
I booted into a sysrescuecd and I'm sure I resized /dev/vg_/lv_root up to 20GB and /dev/vg_/lv_home to 40GB.
Then I mounted /dev/vg_/lv_root to /mnt/sysimage and /dev/sda1 to /mnt/sysimage/boot.
Then chroot /mnt/sysimage

From there I tried to reboot but it wouldn't let me shut down from sysrescuecd.
I forgot the output I got from shutdown -r now but I'll most likely get it again today.

How would I get my CentOS6 installation running again on my server?
 
Old 04-22-2012, 04:43 PM   #2
fusion1275
Member
 
Registered: Jul 2007
Location: Portsmouth, Hants
Distribution: Mint 13
Posts: 265

Rep: Reputation: 35
I would prob say you have corrupted your lv. Its never a good idea to shrink a volume when there is data larger than your target size.

If you can mount the filesystem under your rescue disk then I would personally make a backup of your data and then wipe the lot and start again.

Creating an lvm table of groups and then adding the filesystems and OS is not a big job these days and can be done in a few hours. As you most prob already know.


Cheers
 
Old 04-22-2012, 05:42 PM   #3
SaveVM
LQ Newbie
 
Registered: Apr 2012
Posts: 11

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by fusion1275 View Post
I would prob say you have corrupted your lv. Its never a good idea to shrink a volume when there is data larger than your target size.

If you can mount the filesystem under your rescue disk then I would personally make a backup of your data and then wipe the lot and start again.

Creating an lvm table of groups and then adding the filesystems and OS is not a big job these days and can be done in a few hours. As you most prob already know.


Cheers
The thing is I have a drive at /dev/sdb designated with a backup of my data.
How would I go about wiping everything and starting fresh from a rescuecd without touching /dev/sdb?
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to list filesystems that are using LVM logical volumes? Centos 5.6 needsleep Linux - Newbie 2 06-23-2011 11:53 PM
Centos / Fedora won't boot: kernel panic due to LVM messed up!!! please help!!!!! smileamiledr Linux - Server 23 01-21-2010 09:53 AM
LVM2 - CentOS 4.4 - Online resizing grant-skywalker Linux - General 6 03-27-2007 10:58 PM
Messed up my fstab, now wont boot! Help, please. MillyFish Linux - Newbie 11 05-13-2004 07:37 AM


All times are GMT -5. The time now is 12:33 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration