Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Other Things Gentoo
  • Search

lvm pv recovery

Still need help with Gentoo, and your question doesn't fit in the above forums? Here is your last bastion of hope.
Post Reply
Advanced search
2 posts • Page 1 of 1
Author
Message
ktom
n00b
n00b
Posts: 1
Joined: Sat Jul 22, 2006 12:39 pm

lvm pv recovery

  • Quote

Post by ktom » Sat Jul 22, 2006 12:53 pm

Hi,

I have just accidentialy initialized one of my physical volumes with mkfs.ext3 command.
Did anyone had such problem. Right now I'm dding corrupted pv on a backup partition
and will by trying to recover from /etc/lvm/backup files. Any help or hints will be
appreciated.

Regards,

TK
Top
pyxel
n00b
n00b
User avatar
Posts: 44
Joined: Fri Nov 04, 2005 5:09 pm
Location: Bratislava/brussels
Contact:
Contact pyxel
Website

  • Quote

Post by pyxel » Fri Jul 28, 2006 8:01 am

Hello,
If your /etc/lvm/backup/ was created with vgcfgbackup command, you can try to do this:

First find out the old UID’s of the partitions, this is in your /etc/lvm/backup/system file, and make sure you get the UID for the physical volumes.
Where system is a name of your volume group.
You can do it with simple commad: pvcreate –restorefile /etc/lvm/backup/system
And recreate partitions, for example:

# pvcreate -u sdSD-2343-SD939-adIda2 /dev/hda6
# vcreate -u dk33kd-929293nd-adfja298a /dev/hdd1
# vgcreate -v system /dev/hda7 /dev/hdd1
# vgcfgrestore -f /etc/lvm/backup/system system


and voila ! :)
Top
Post Reply

2 posts • Page 1 of 1

Return to “Other Things Gentoo”

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