Skip to contentSkip to conversation

Kernel panic - not syncing: No init found. Try passing init= option to,kernel

linux-lvm Raquel Real López 2 participants 4 messages May 19, 2008 – May 20, 2008

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 11 lines · Raquel Real L�pez

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

Quoted 4 lines

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.

Quoted 5 lines

And then:

Kernel panic - not syncing: No init found. Try passing init= option to

kernel.

Expected kernel behaviour w/o root fs.

Quoted 3 lines

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 ?

Quoted 2 lines

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.

Quoted 9 lines

Thanks in advance
I

_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

Signature · 15 lines
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
[email protected]                            PHONE +49  171 7803392
                                                  FAX   +49 2626 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
#2 lore raw

Hello!

Thank you for your reply

Heinz Mauelshagen escribi�:

Quoted 3 lines

Any indication that the disk turned bad from before ?

Reboot and then the system crashed

Quoted 12 lines

Looks like it either did and your single copy of the LVM1 metadata went south
-or-
the metadata got corrupted somehow differently.

Quoted 5 lines

And then:

Kernel panic - not syncing: No init found. Try passing init= option to

kernel.

Quoted 9 lines

Expected kernel behaviour w/o root fs.

Quoted 2 lines

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.

Quoted 8 lines
Quoted 2 lines

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

#3 lore raw
In reply to Heinz Mauelshagen

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