Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

LVM error after ungraceful shutdown

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
3 posts • Page 1 of 1
Author
Message
sstian
n00b
n00b
Posts: 1
Joined: Fri Jun 22, 2007 12:09 pm

LVM error after ungraceful shutdown

  • Quote

Post by sstian » Fri Jun 22, 2007 12:33 pm

I have a server running Red Hat with RAID 1.
I expect that there was an ungraceful shutdown.
After reboot I encountered this error:

Couldn't find all physical volumes for volume group VolGroup00.
Found duplicate PC C4HNBTIv0vw8MZntIPAeqG6OIKXwGeY1: using /dev/sda2 not /dev/sdb2
Found duplicate PC C4HNBTIv0vw8MZntIPAeqG6OIKXwGeY1: using /dev/sdb2 not /dev/sda2
Found duplicate PC C4HNBTIv0vw8MZntIPAeqG6OIKXwGeY1: using /dev/sda2 not /dev/sdb2
Found duplicate PC C4HNBTIv0vw8MZntIPAeqG6OIKXwGeY1: using /dev/sdb2 not /dev/sda2
Couldn't find device with uuid '2yeVOC-OQr2-PHOW-Xbg0-L3IQ-nt8x-qGeNpf'.
Couldn't find all physical volumes for volume group VolGroup00.
Found duplicate PC C4HNBTIv0vw8MZntIPAeqG6OIKXwGeY1: using /dev/sda2 not /dev/sdb2
Found duplicate PC C4HNBTIv0vw8MZntIPAeqG6OIKXwGeY1: using /dev/sdb2 not /dev/sda2
Couldn't find device with uuid '2yeVOC-OQr2-PHOW-Xbg0-L3IQ-nt8x-qGeNpf'.
Couldn't find all physical volumes for volume group VolGroup00.
Unable to find volume group "VolGroup00"
ERROR: /bin/lvm exited abnormally (pid 264)
mount: error 6 mounting ext3
mount: error 2 mounting none
switchroot: mount failed: 22
umount /initrd/dev failed: 2
Kernel panic - not syncing: Attempted to kill init!

Any ideas on how I can solve this?
Top
warrawarra
Tux's lil' helper
Tux's lil' helper
Posts: 84
Joined: Wed May 30, 2007 7:24 am

Re: LVM error after ungraceful shutdown

  • Quote

Post by warrawarra » Fri Jun 22, 2007 6:09 pm

** and opinion correct or otherwise might help you figure out what is going on.

I have a server running Red Hat with RAID 1.
I expect that there was an ungraceful shutdown.
After reboot I encountered this error:

Couldn't find all physical volumes for volume group VolGroup00.
** Missing a drive ?? 1 dead which one is dead ?? or just bad cable connecting drives ??

Found duplicate PC C4HNBTIv0vw8MZntIPAeqG6OIKXwGeY1: using /dev/sda2 not /dev/sdb2
Found duplicate PC C4HNBTIv0vw8MZntIPAeqG6OIKXwGeY1: using /dev/sdb2 not /dev/sda2
Found duplicate PC C4HNBTIv0vw8MZntIPAeqG6OIKXwGeY1: using /dev/sda2 not /dev/sdb2
Found duplicate PC C4HNBTIv0vw8MZntIPAeqG6OIKXwGeY1: using /dev/sdb2 not /dev/sda2
** Bug before shutdown ? drive already dying ?? or controller problems ??

Couldn't find device with uuid '2yeVOC-OQr2-PHOW-Xbg0-L3IQ-nt8x-qGeNpf'.
Couldn't find all physical volumes for volume group VolGroup00.
** Missing drive ??

Found duplicate PC C4HNBTIv0vw8MZntIPAeqG6OIKXwGeY1: using /dev/sda2 not /dev/sdb2
Found duplicate PC C4HNBTIv0vw8MZntIPAeqG6OIKXwGeY1: using /dev/sdb2 not /dev/sda2
** Ignoring missing drive and continueing to fix ??

Couldn't find device with uuid '2yeVOC-OQr2-PHOW-Xbg0-L3IQ-nt8x-qGeNpf'.
Couldn't find all physical volumes for volume group VolGroup00.
Unable to find volume group "VolGroup00"
ERROR: /bin/lvm exited abnormally (pid 264)
mount: error 6 mounting ext3
mount: error 2 mounting none
** Must be main installed drive / root hd that died or is missing ?? ext3 could be /boot and "none" should be listed in fstab or be on main hd ??

switchroot: mount failed: 22
umount /initrd/dev failed: 2
Kernel panic - not syncing: Attempted to kill init!

Any ideas on how I can solve this?

****************
Looks like a bad hd or bad cable connecting hd and making hd look bad ? Even before crash.
linuxtracker.org has a rescue cd for linux or using "UBCD" you can run diagnostics / repairs on the bad drive / cable / controller to supposed bad drive.

Most live dvd/cd's should work to boot from and then do maintance provided it has your drivers etc on it see below for 5th hd / usb hd.

Once you have this fixed or replaced you can get the raid back up.

Suggestions LVM might be good if stable but once it goes unhappy all hell brakes loose so rather next time use ext3 , ext4 if you can as they can take a lot more beating before all goes bad. And is easier to fix in my opinion. I hate LVM, had too many problems in the past with it.

Having say 4 hd's or even 5 then have raid as:
2+2 or 2+2+1 ,
2+2 = mirror 2 hd's in raid to another 2 hd's in raid or with 5 = same as before but 5th drive is actual backup same as a usb backup.
It is always good to have RAID hd's ( +1 emergency fully working OS backup hd maybe non raid connections sata / ata / ide / usb ) however you end up configuring the raid.
Then you don't need any repair cd's .

Also for backup have a usb hd and clone the info you want safe every ?? days to it and disconnect it for days like this, raid is very good and fast but usb / backup disconnected or on seperate non raid is still much safer. Boot using backup and fix / repair unhappy raid next time.

Hope this helps.
Top
eccerr0r
Watchman
Watchman
Posts: 10239
Joined: Thu Jul 01, 2004 6:51 pm
Location: almost Mile High in the USA
Contact:
Contact eccerr0r
Website

  • Quote

Post by eccerr0r » Sat Jun 23, 2007 1:05 am

that's really weird, normally running LVM on top of SW RAID so LVM should be dealing with only /dev/mdX ? Is Red Hat trying to LVM the underlying disks (bad bad bad).

Theoretically if it's RAID1 you should be able to access the disks.

What's /proc/mdstat say? Any bad disks?
Intel Core i7 2700K/Radeon Firepro W2100/24GB DDR3/800GB SSD
What am I supposed watching?
Top
Post Reply

3 posts • Page 1 of 1

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic