Linux LVM users
 help / color / mirror / Atom feed
From: Jonathan E Brassow <jbrassow@redhat.com>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] How to recover data corrupted by vgcreate
Date: Wed, 27 Jul 2005 11:33:05 -0500	[thread overview]
Message-ID: <ef523605066ee0d0a6b20345a70677dd@redhat.com> (raw)
In-Reply-To: <008001c59203$1553fc70$7e01a8c0@asuspc>

[-- Attachment #1: Type: text/plain, Size: 1194 bytes --]

I'm not familiar exactly with how the metadata gets laid on disk, but I 
would think you could just 'vgcreate vg_name /dev/hdd2' (you did this 
already) then 'lvcreate -n <lvname> -l <max size> vg_name'...  This of 
course assumes that the previous lv resided wholly on /dev/hdd2.  Then 
try mounting the new lv and see what happens.

  brassow


On Jul 26, 2005, at 11:57 AM, 張廷州 wrote:

> Hi,
>  
> I have a Linux PC with Fedora C3 installed.
> The disk was partitioned automatically when Linux was installed.
> So, LVM2 partition was created.
> The CPU is damaged today and I move the disk to another Linux PC and 
> try to read data out.
> The disk is connected to device /dev/hdd. /dev/hdd2 is the LVM2 
> partition.
> But, I do a stupid thing. I invoke vgcreate command on /dev/hdd2.
>  
>     vgcreate vg_name /dev/hdd2
>  
> The partition seems to be lost.
> How can I recover the data in /dev/hdd2?
> It's very important data to me.
> Thanks for any help.
>  
> Davis
>  _______________________________________________
> 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/

[-- Attachment #2: Type: text/enriched, Size: 1590 bytes --]

I'm not familiar exactly with how the metadata gets laid on disk, but
I would think you could just 'vgcreate vg_name /dev/hdd2' (you did
this already) then 'lvcreate -n <<lvname> -l <<max size> vg_name'... 
This of course assumes that the previous lv resided wholly on
/dev/hdd2.  Then try mounting the new lv and see what happens.


 brassow



On Jul 26, 2005, at 11:57 AM,
<fontfamily><param>Hiragino Kaku Gothic Pro</param>張廷州</fontfamily>
wrote:


<excerpt><smaller>Hi,</smaller>

<smaller> </smaller>

<smaller>I have a Linux PC with Fedora C3 installed.</smaller>

<smaller>The disk was partitioned automatically when Linux was
installed.</smaller>

<smaller>So, LVM2 partition was created.</smaller>

<smaller>The CPU is damaged today and I move the disk to another Linux
PC and try to read data out.</smaller>

<smaller>The disk is connected to device /dev/hdd. /dev/hdd2 is the
LVM2 partition.</smaller>

<smaller>But, I do a stupid thing. I invoke vgcreate command on
/dev/hdd2.</smaller>

<smaller> </smaller>

<smaller>    vgcreate vg_name /dev/hdd2</smaller>

<smaller> </smaller>

<smaller>The partition seems to be lost.</smaller>

<smaller>How can I recover the data in /dev/hdd2?</smaller>

<smaller>It's very important data to me.</smaller>

<smaller>Thanks for any help.</smaller>

<smaller> </smaller>

<smaller>Davis</smaller>

<smaller> </smaller>_______________________________________________

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/</excerpt>

  reply	other threads:[~2005-07-27 16:32 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-26 16:57 [linux-lvm] How to recover data corrupted by vgcreate 張廷州
2005-07-27 16:33 ` Jonathan E Brassow [this message]
2005-07-27 17:24   ` AJ Lewis
2005-07-28 15:00     ` Jonathan E Brassow
2005-07-28 16:41       ` AJ Lewis
  -- strict thread matches above, loose matches on Subject: below --
2005-08-01 13:25 張廷州

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ef523605066ee0d0a6b20345a70677dd@redhat.com \
    --to=jbrassow@redhat.com \
    --cc=linux-lvm@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox