* [linux-lvm] Can no longer mount logical volume after a kernal panic. HELP!
@ 2009-01-15 3:55 Bob Smith
2009-01-15 5:11 ` Bob Smith
2009-01-15 10:59 ` Bryn M. Reeves
0 siblings, 2 replies; 3+ messages in thread
From: Bob Smith @ 2009-01-15 3:55 UTC (permalink / raw)
To: linux-lvm
I have been using LVM for quite a while to create a 3.64 stripe out of 4 x 1TB drives. I use this as storage for my MythTV. Tonight my system had a kernel panic, and when I rebooted I was no longer able to mount my LV, when I do I get:
----------------------------------------------------------------------------------------------------------------------------------------------
mount: wrong fs type, bad option, bad superblock on /dev/mapper/stripe-raid,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
The system was setup as one logcal volume called stripe, vgscan shows:
Reading all physical volumes. This may take a while...
Found volume group "stripe" using metadata type lvm2
----------------------------------------------------------------------------------------------------------------------------------------------
Doing an lvscan shows:
----------------------------------------------------------------------------------------------------------------------------------------------
ACTIVE '/dev/stripe/raid' [3.64 TB] inherit
----------------------------------------------------------------------------------------------------------------------------------------------
When I do an fdisk -l /dev/stripe/raid (I know these are really dumb names for the lv and vg):
----------------------------------------------------------------------------------------------------------------------------------------------
Disk /dev/mapper/stripe-raid: 4000.8 GB, 4000812367872 bytes
255 heads, 63 sectors/track, 486404 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/stripe-raid doesn't contain a valid partition table
----------------------------------------------------------------------------------------------------------------------------------------------
Which makes me really worried that something has happened to the partition table when I was forced to reboot after the kernel panic. Doing fdisk /dev/stripe/raid shows:
----------------------------------------------------------------------------------------------------------------------------------------------
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel with disk identifier 0xce9c3ab2.
Changes will remain in memory only, until you decide to write them.
After that, of course, the previous content won't be recoverable.
The number of cylinders for this disk is set to 486404.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
----------------------------------------------------------------------------------------------------------------------------------------------
I known when I was first playing with LVM I had a similar issue., and remember getting a similar error when starting fdisk like the one above. Because I was just playing with LVM and had no read data I recall just doing write in FDISK and everything went back to normal. However now that I do have a bit of data on here I am afraid to try this without running it by the list.
Can anyone recommend what I should do?
I can provide more details if necessary with regards to my LVM setup.
Thank you.
Simon
_________________________________________________________________
Keep in touch and up to date with friends and family. Make the connection now.
http://www.microsoft.com/windows/windowslive/
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: [linux-lvm] Can no longer mount logical volume after a kernal panic. HELP!
2009-01-15 3:55 [linux-lvm] Can no longer mount logical volume after a kernal panic. HELP! Bob Smith
@ 2009-01-15 5:11 ` Bob Smith
2009-01-15 10:59 ` Bryn M. Reeves
1 sibling, 0 replies; 3+ messages in thread
From: Bob Smith @ 2009-01-15 5:11 UTC (permalink / raw)
To: linux-lvm
I figured out my own problem so I am posting the 'solution' back to the list so that it might help someone else.
I noticed when booting my system was complaining about not being able to run fsck.jfs. So since I run Ubuntu Hardy I installed the jfsutils using apt-get install jfsutils. Then I rebooted again and it fsck'ed the jfs partition on my LVM VG and eveything mounted as per usual.
Whew.
Simon
----------------------------------------
> From: simon_seys@hotmail.com
> To: linux-lvm@redhat.com
> Date: Wed, 14 Jan 2009 22:55:30 -0500
> Subject: [linux-lvm] Can no longer mount logical volume after a kernal panic. HELP!
_________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [linux-lvm] Can no longer mount logical volume after a kernal panic. HELP!
2009-01-15 3:55 [linux-lvm] Can no longer mount logical volume after a kernal panic. HELP! Bob Smith
2009-01-15 5:11 ` Bob Smith
@ 2009-01-15 10:59 ` Bryn M. Reeves
1 sibling, 0 replies; 3+ messages in thread
From: Bryn M. Reeves @ 2009-01-15 10:59 UTC (permalink / raw)
To: LVM general discussion and development
Bob Smith wrote:
>
> I have been using LVM for quite a while to create a 3.64 stripe out of 4 x 1TB drives. I use this as storage for my MythTV. Tonight my system had a kernel panic, and when I rebooted I was no longer able to mount my LV, when I do I get:
>
> ----------------------------------------------------------------------------------------------------------------------------------------------
> mount: wrong fs type, bad option, bad superblock on /dev/mapper/stripe-raid,
> missing codepage or helper program, or other error
> In some cases useful info is found in syslog - try
> dmesg | tail or so
Did anything appear in dmesg? What does "file -s
/dev/mapper/stripe-raid" say?
> When I do an fdisk -l /dev/stripe/raid (I know these are really dumb names for the lv and vg):
Why are you expecting there to be a partition table on the LV? That's
something that you'd only normally do if you're using the LV as "whole
disk" storage for an entire machine (e.g. exporting it via iSCSI or
using it as storage for some kind of virtual machine).
Normally with LVM, file systems go directly onto the LV.
> Which makes me really worried that something has happened to the partition table when I was forced to reboot after the kernel panic. Doing fdisk /dev/stripe/raid shows:
See above - I wouldn't normally expect there to be a partition table
*inside* the LV.
Regards,
Bryn.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-01-15 10:59 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-15 3:55 [linux-lvm] Can no longer mount logical volume after a kernal panic. HELP! Bob Smith
2009-01-15 5:11 ` Bob Smith
2009-01-15 10:59 ` Bryn M. Reeves
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.