LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 02-25-2006, 06:19 AM   #1
kpachopoulos
Member
 
Registered: Feb 2004
Location: Athens, Greece
Distribution: Gentoo,FreeBSD, Debian
Posts: 704

Rep: Reputation: 30
reuse lvm partitions after format


Hi,
I had created some lvm partitions in hdb. Now i have formatted hda and of course all the confs and entries in /dev have disappeared- the whole OS installation is included here, hdb is just an extra storage. With "lvdisplay", i
can see these:
Code:
vakhos:~/xen-3.0.1-install# lvdisplay
  Incorrect metadata area header checksum
  Incorrect metadata area header checksum
  --- Logical volume ---
  LV Name                /dev/dias/root
  VG Name                dias
  LV UUID                VdwyU0-Ju1Q-IZo2-PdEV-5iqK-xrwC-zsSbKx
  LV Write Access        read/write
  LV Status              NOT available
  LV Size                5.37 GB
  Current LE             1375
  Segments               2
  Allocation             inherit
  Read ahead sectors     0

  --- Logical volume ---
  LV Name                /dev/dias/swap
  VG Name                dias
  LV UUID                MGpZz8-h0i8-cCXm-yBBW-X370-3roA-UeD46a
  LV Write Access        read/write
  LV Status              NOT available
  LV Size                512.00 MB
  Current LE             128
  Segments               1
  Allocation             inherit
  Read ahead sectors     0

  --- Logical volume ---
  LV Name                /dev/poseidon/root
  VG Name                poseidon
  LV UUID                FM4b2A-m6XS-wdbk-352d-6J6m-OmZc-EBVTXI
  LV Write Access        read/write
  LV Status              NOT available
  LV Size                5.86 GB
  Current LE             1500
  Segments               2
  Allocation             inherit
  Read ahead sectors     0

  --- Logical volume ---
  LV Name                /dev/poseidon/swap
  VG Name                poseidon
  LV UUID                yAmubo-b2ns-7nzN-q1sn-f5xR-FaHv-lC53pE
  LV Write Access        read/write
  LV Status              NOT available
  LV Size                512.00 MB
  Current LE             128
  Segments               2
  Allocation             inherit
  Read ahead sectors     0
Can i restore the "lvm system"? Of course /dev doesn't contain any volume group entries and trying to recreate the volume group entries with vgcreate returns an error.
Code:
vakhos:~/xen-3.0.1-install# vgcreate poseidon /dev/hdb5 /dev/hdb6
  Incorrect metadata area header checksum
  Incorrect metadata area header checksum
  A volume group called 'poseidon' already exists.
Thanks

Last edited by kpachopoulos; 02-25-2006 at 06:21 AM.
 
Old 02-25-2006, 09:26 AM   #2
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD
Posts: 2,020

Rep: Reputation: 309Reputation: 309Reputation: 309Reputation: 309
Try this:
Code:
# vgscan
# vgchange -a y
Hopefully after this, vgdisplay will show you your volumes and you'll see volume group entries under /dev
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Partitions under LVM Volume Group won't mount after install jimisola Mandriva 4 11-16-2005 04:17 PM
what partitions(mount points) can you reuse in a multiple boot linux system? scottk88 Linux - General 5 08-01-2005 11:49 AM
Convert LVM volumes to primary partitions? MHouse Linux - Software 0 02-03-2005 10:34 PM
Partitions and LVM in a new computer Borelian Linux - General 1 10-31-2003 11:30 AM
RH9 lvm and fdisk forgetting about hdb partitions davel75 Linux - Software 0 10-27-2003 09:59 AM


All times are GMT -5. The time now is 11:51 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration