* [linux-lvm] Kernel panic - not syncing: No init found. Try passing init= option to,kernel
@ 2008-05-19 8:09 Raquel Real López
2008-05-19 12:40 ` Heinz Mauelshagen
0 siblings, 1 reply; 4+ messages in thread
From: Raquel Real López @ 2008-05-19 8:09 UTC (permalink / raw)
To: linux-lvm
Hello!
I have got a RedHat 3 Update 6 system. The system has a hard disk It's
partitioned like:
/dev/sda1 /boot Linux
/dev/sda2 LVM
/dev/disk1Vol/rootvol /
/dev/disk1Vol/export /export
/dev/disk1Vol/softw /softw
The system was booted and it didn't start again.
The message was:
vgscan ERROR "vg_read_with_pv_and_lv(): current PV" can't get data of
volume group "disk1Vol" from physical volume
And then:
Kernel panic - not syncing: No init found. Try passing init= option to
kernel.
If I boot with a rescue disk and I type "lvdisplay", LV UUID is
"000000-00....".
How can I recover the system?
Thanks in advance
I
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [linux-lvm] Kernel panic - not syncing: No init found. Try passing init= option to,kernel
2008-05-19 8:09 [linux-lvm] Kernel panic - not syncing: No init found. Try passing init= option to,kernel Raquel Real López
@ 2008-05-19 12:40 ` Heinz Mauelshagen
2008-05-19 15:19 ` Raquel Real López
2008-05-20 13:07 ` Raquel Real López
0 siblings, 2 replies; 4+ messages in thread
From: Heinz Mauelshagen @ 2008-05-19 12:40 UTC (permalink / raw)
To: LVM general discussion and development
On Mon, May 19, 2008 at 10:09:51AM +0200, Raquel Real L�pez wrote:
>
> Hello!
>
> I have got a RedHat 3 Update 6 system. The system has a hard disk It's
> partitioned like:
> /dev/sda1 /boot Linux
> /dev/sda2 LVM
> /dev/disk1Vol/rootvol /
> /dev/disk1Vol/export /export
> /dev/disk1Vol/softw /softw
>
> The system was booted and it didn't start again.
> The message was:
> vgscan ERROR "vg_read_with_pv_and_lv(): current PV" can't get data of
> volume group "disk1Vol" from physical volume
Any indication that the disk turned bad from before ?
Looks like it either did and your single copy of the LVM1 metadata
went south
-or-
the metadata got corrupted somehow differently.
>
> And then:
>
> Kernel panic - not syncing: No init found. Try passing init= option to
> kernel.
Expected kernel behaviour w/o root fs.
>
> If I boot with a rescue disk and I type "lvdisplay", LV UUID is
> "000000-00....".
LVM1 didn't have UUIDs on LVs, that's why.
Can you access the VG from the rescue disk and access your data alright ?
>
> How can I recover the system?
If the disk's intact, and you better prove that by running access tests
on /dev/sda from your rescue disk, you have to restore the metadata from
backup using pvcreate+vgcfgrestore. See man vgcfgrestore for details.
>
> Thanks in advance
> I
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
--
Regards,
Heinz -- The LVM Guy --
*** Software bugs are stupid.
Nevertheless it needs not so stupid people to solve them ***
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Heinz Mauelshagen Red Hat GmbH
Consulting Development Engineer Am Sonnenhang 11
Storage Development 56242 Marienrachdorf
Germany
Mauelshagen@RedHat.com PHONE +49 171 7803392
FAX +49 2626 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [linux-lvm] Kernel panic - not syncing: No init found. Try passing init= option to,kernel
2008-05-19 12:40 ` Heinz Mauelshagen
@ 2008-05-19 15:19 ` Raquel Real López
2008-05-20 13:07 ` Raquel Real López
1 sibling, 0 replies; 4+ messages in thread
From: Raquel Real López @ 2008-05-19 15:19 UTC (permalink / raw)
To: mauelshagen, LVM general discussion and development
Hello!
Thank you for your reply
Heinz Mauelshagen escribi�:
>
> Any indication that the disk turned bad from before ?
>
Reboot and then the system crashed
> Looks like it either did and your single copy of the LVM1 metadata
> went south
> -or-
> the metadata got corrupted somehow differently.
>
>
>> And then:
>>
>> Kernel panic - not syncing: No init found. Try passing init= option to
>> kernel.
>>
>
> Expected kernel behaviour w/o root fs.
>
>
>> If I boot with a rescue disk and I type "lvdisplay", LV UUID is
>> "000000-00....".
>>
>
> LVM1 didn't have UUIDs on LVs, that's why.
> Can you access the VG from the rescue disk and access your data alright ?
>
Yes, I can access.
>> How can I recover the system?
>>
>
> If the disk's intact, and you better prove that by running access tests
> on /dev/sda from your rescue disk, you have to restore the metadata from
> backup using pvcreate+vgcfgrestore. See man vgcfgrestore for details.
>
>
If I type "pvcreate /dev/sda2", can I lose the data?
Thanks
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [linux-lvm] Kernel panic - not syncing: No init found. Try passing init= option to,kernel
2008-05-19 12:40 ` Heinz Mauelshagen
2008-05-19 15:19 ` Raquel Real López
@ 2008-05-20 13:07 ` Raquel Real López
1 sibling, 0 replies; 4+ messages in thread
From: Raquel Real López @ 2008-05-20 13:07 UTC (permalink / raw)
To: LVM general discussion and development
Hello and thank Heinz for your help!
I could restore the system.
That's what I did it:
- It was booted with a rescue disk
- It was mounted the system files.
- Then, chroot /mnt/sysimage
- vgreduce /dev/sdb1 to remove the disk from the volume group.
- Finally, shutdown -r now
But I'm not sure how remove the disk from pvscan:
pvscan -- reading all physical volumes (this may take a while...)
pvscan -- ACTIVE PV "/dev/sda2" of VG "disk1Vol" [68.13 GB / 0 free]
pvscan -- inactive PV "/dev/sdb1" is in no VG [62.43 MB]
pvscan -- total: 2 [68.20 GB] / in use: 1 [68.14 GB] / in no VG: 1
[62.43 MB]
Now it's inactive. Can I remove totally?
Thanks
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-05-20 13:08 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-19 8:09 [linux-lvm] Kernel panic - not syncing: No init found. Try passing init= option to,kernel Raquel Real López
2008-05-19 12:40 ` Heinz Mauelshagen
2008-05-19 15:19 ` Raquel Real López
2008-05-20 13:07 ` Raquel Real López
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).