LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Virtualization and Cloud (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/)
-   -   CentOS Wont Boot - LVM2 Filesystems messed up (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/centos-wont-boot-lvm2-filesystems-messed-up-941131/)

SaveVM 04-22-2012 11:20 AM

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?

fusion1275 04-22-2012 04:43 PM

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

SaveVM 04-22-2012 05:42 PM

Quote:

Originally Posted by fusion1275 (Post 4660146)
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?


All times are GMT -5. The time now is 05:15 PM.