Don's Pages and my Music

Saturday, July 10, 2010

LVM Crashed after fsck on root partition - FedoraForum.org

Here's some helpful info from Posts on the Fedora Forum. They are talking about Fedora 11. But they also mention ext4 and ext3 file systems. Be careful though. Don't do anything like running "fsck" on a Mounted Files System like this guy did did!:O I wouldn't run any of the commands they mention unless I understood what was going to happen either...

LVM Crashed after fsck on root partition

Hi, I am new in this forum but please help me,
I got 2 HDDs, I had created LVM by two of them. When I was trying to install quota it was saying it is better if you run fsck first message. When I tried to run fsck. It warned me that I could lose some of my data. So it happened. Actually it is worse:

I can't boot my Fedora 11. When I try to run installer in rescue mode, it says no Linux partition find.
When I try to install (just to see partitions) it shows LVM volumes of hdds are ok but the partition which is / (root)partition seems in unknown format.

How can I save my datas? Or can i restore my partitions, LVM?

Skipping down...
SlowJet Offline
Registered User
Join Date: Jan 2005
Posts: 4,781
linuxfedorafirefox

lvm lvchange -a y
# this only activates the LV's on all VG, and your LVM should already be know so it is not necessary.
#fsck.ext4 or fsck.ext3 or e2fsck
# e2fsckwill determine the type.
e2fsck /dev/VolGroup00/LogVol00
e2fsck /dev/mapper/VolGroup00-LogVol00
fsck.ext4 /dev/VolGroup00/LogVol00
fsck.ext4 /dev/mapper/VolGroup00-LogVol00

# mount after fsck is done.
# use mapper
mount /dev/mapper/VolGroup00-LogVol00 /mnt/somemountpoint
# does not work use /dev path
mount /dev/VolGroup00/LogVol00 -t ext4 /mnt/somemountpoint

SJ

Skipping down...
buraksimsek Offline
Registered User
Join Date: Nov 2009
Posts: 10
linuxfedorafirefox

thank you it worked. "e2fsck -y /dev/VolumeGroup/LogicalVolume" is running now

---------- Post added at 02:07 PM CST ---------- Previous post was at 01:34 PM CST ----------

I run e2fsck and it went in an infinite loop, there are many numbers pozitives and negatives. Is this normal? What should I do? I tried fsck.ext3 and fsck.ext4 as well.

---------- Post added at 02:43 PM CST ---------- Previous post was at 02:07 PM CST ----------

After the meaningless numbers, it has ended and said fixed.
The size of the lost+found folder is 43GB, far enough for me. It rescued my critical files, thanks everyone (especially SlowJet) who helped me on this.

Go there and Read all Posts to see Exactly what they did to save his Data...
http://fedoraforum.org/forum/showthread.php?t=234871

Don

Force fsck on reboot - Explains how to run fsck (forcefsck) using /forcefsck file or shutdown command itself under Linux and UNIX
Bookmarks
fedora 12 ext4 e2fsck /dev/sdb2 Device or resource busy while trying to open /dev/sdb2 Filesystem mounted or opened exclusively by another program? - Google Search
fedora 12 ext4 e2fsck Device or resource busy while trying to open /dev/sdb2 Filesystem mounted or opened exclusively by another program? - Google Search
Force fsck on next boot on Red Hat Enterprise Linux | Server Buddies
touch /forcefsck - Google Search
Backup/Recovery - Checking the Root Filesystem without Rebooting
touch /force e2fsck - Google Search
fedora 12 e2fsck Device or resource busy while trying to open /dev/sdb2 Filesystem mounted or opened exclusively by another program? - Google Search
fsck lvm ext4 - Google Search
DonsDeals: LVM Crashed after fsck on root partition - FedoraForum.org
Linux Tips: force fsck run during the next reboot - MDLog:/sysadmin
LVM Crashed after fsck on root partition - FedoraForum.org
DonsDeals: Linux Force fsck on the Next Reboot or Boot Sequence
force fsck - Google Custom Search
DonsDeals: Force fsck on next boot on Red Hat Enterprise Linux | Server Buddies
DonsDeals: Linux Tips: force fsck run during the next reboot | MDLog:/sysadmin
DonsDeals: Runing fsck at boot time

No comments:

Post a Comment