From: oliver <oliver@are-b.org>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] Partition table gone? Any way to restore?
Date: Wed, 02 Mar 2005 21:09:54 +0100 [thread overview]
Message-ID: <42261D92.2050205@are-b.org> (raw)
In-Reply-To: <1109792034l.28794l.4l@tangerine>
Well that's one of the things I need to know. How do I recover the
partition. Only the first few bytes are missing from what I can tell.
'normally' an LVM disk would say that it didn't contain a valid
partition. That part is missing from the disk and needs to be recoverd.
I've read that one could try pvcreate; vgcfgrestore.
I'm firstly making a backup of the disk with dd if=/dev/hde
of=/mnt/hd/hde_raw_dump to ensure i can always 'go back' when I mess up.
gpart found my reiserfs partition (from the VG) so I suspect that all
the data is still AOK. I'm just a little 'scared' to run pvcreate;
vgcgrestore because when I want to 'list' my vgcgrestore I get the
following error:
root@enterprise:/mnt/hd# vgcfgrestore -n vg00 -l
vgcfgrestore -- INFO: using backup file "/etc/lvmconf/vg00.conf"
vgcfgrestore -- ERROR: different structure size stored in
"/etc/lvmconf/vg00.conf" than expected in file vg_cfgrestore.c [line 120]
vgcfgrestore -- ERROR "vg_cfgrestore(): read" restoring volume group "vg00"
I suppose this could be because of the missing PV and it won't work
untill I have all three PV's up again. However 'listing' should be fine?
Jean-Luc Coulon (f5ibh) wrote:
> Le 02.03.2005 20:26:22, oliver a �crit :
>
>> Thanks! However the partition is fine and fit so I should be able to
>> dd everything off of it.
>>
>> The output of gpart was the following:
>> root@enterprise:~# gpart -w hmlvm,1.5 /dev/hde
>>
>> Begin scan...
>> Possible partition(ReiserFS filesystem), size(50431mb), offset(14mb)
>>
>> * Warning: short read near sector(120103011), 64512 bytes instead of
>> 66048. Skipp
>> ing...
>> End scan.
>>
>> Checking partitions...
>> Partition(Linux ext2 filesystem): primary
>> Ok.
>>
>> Guessed primary partition table:
>> Primary partition(1)
>> type: 131(0x83)(Linux ext2 filesystem)
>> size: 50431mb #s(103284656) s(29799-103314454)
>> chs: (29/9/1)-(1023/15/63)d (29/9/1)-(102494/7/62)r
>>
>> Primary partition(2)
>> type: 000(0x00)(unused)
>> size: 0mb #s(0) s(0-0)
>> chs: (0/0/0)-(0/0/0)d (0/0/0)-(0/0/0)r
>> <snip> part 3 and 4 where 'unused'.
>>
>> Now gpart found something, however not the missing LVM PV i was
>> hoping. Or atleast, I don't think so. I will google around to see
>> how to make a 1 on 1 copy of this disk, and then try to write it.
>> I'll report back. In the mean time, keep those ideas comming : )
>>
>
> Just an idea, be careful, it is not the *truth* as I have not tested
> it yet.
>
> Here is what I *think* :
> The partition type is no matter for lvm.
> Recover the partition as you like then do a fdisk to change the
> partition type to 8E ... and see (or pray)
>
> J-L
>
> ( ... ]
>
>------------------------------------------------------------------------
>
>_______________________________________________
>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/
>
next prev parent reply other threads:[~2005-03-02 20:10 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-02 17:45 [linux-lvm] Partition table gone? Any way to restore? oliver
2005-03-02 17:48 ` Jan-Benedict Glaw
2005-03-02 17:58 ` oliver
2005-03-02 18:05 ` Jan-Benedict Glaw
2005-03-02 19:08 ` oliver
2005-03-02 19:15 ` Jan-Benedict Glaw
2005-03-02 19:17 ` Jean-Luc Coulon (f5ibh)
2005-03-02 19:26 ` oliver
2005-03-02 19:33 ` Jean-Luc Coulon (f5ibh)
2005-03-02 20:09 ` oliver [this message]
2005-03-02 20:44 ` Dan Stromberg
2005-03-03 22:28 ` oliver
2005-03-03 22:49 ` [linux-lvm] Internal Knowlegde required. Please help me recover this sucker oliver
2005-03-03 23:04 ` [linux-lvm] Internal Knowlegde required. Follow up oliver
2005-03-04 0:18 ` [linux-lvm] Help! CRC Calculation how and where? oliver
2005-03-04 0:37 ` [linux-lvm] Help! PV Size calculation etc oliver
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=42261D92.2050205@are-b.org \
--to=oliver@are-b.org \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.