| 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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
04-22-2012, 11:20 AM
|
#1
|
|
LQ Newbie
Registered: Apr 2012
Posts: 11
Rep: 
|
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?
|
|
|
|
04-22-2012, 04:43 PM
|
#2
|
|
Member
Registered: Jul 2007
Location: Portsmouth, Hants
Distribution: Mint 13
Posts: 261
Rep:
|
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
|
|
|
|
04-22-2012, 05:42 PM
|
#3
|
|
LQ Newbie
Registered: Apr 2012
Posts: 11
Original Poster
Rep: 
|
Quote:
Originally Posted by fusion1275
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?
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 09:40 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|