Linux LVM users
 help / color / mirror / Atom feed
* [linux-lvm] recovering a lvm volume group after one partition's deletion
@ 2004-12-07 18:47 Òscar Álvarez Vilaplana
  2004-12-07 19:29 ` Alasdair G Kergon
  0 siblings, 1 reply; 6+ messages in thread
From: Òscar Álvarez Vilaplana @ 2004-12-07 18:47 UTC (permalink / raw)
  To: linux-lvm

Hi,

I've just found out that the reason I couldn't get my lvm volume group
to work was because I had accidentally formatted one of the partitions
that were used in that group, instead of the partition I actually
wanted to format. (I really should have rebooted when fdisk told me
to:( )

I've been trying to recover the information that was stored on the
volume group. Since the partition was only 1.88Gb big in a volume
group of 50Gb I thought maybe all was not lost.

What I've tried is running pvcreate on the formatted partition, but
vgdisplay complains that that it can't find the partition with the
uuid of the lost partition. I then tried hexedit'ing the partition and
changing its uuid, but this didn't fool lvm either: i got the same
error.

Is there any way to bring back, not all, of course, but some of the
data in the volume group?

Thanks!!

�scar

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [linux-lvm] recovering a lvm volume group after one partition's deletion
  2004-12-07 18:47 [linux-lvm] recovering a lvm volume group after one partition's deletion Òscar Álvarez Vilaplana
@ 2004-12-07 19:29 ` Alasdair G Kergon
  2004-12-07 19:56   ` Òscar Álvarez Vilaplana
  0 siblings, 1 reply; 6+ messages in thread
From: Alasdair G Kergon @ 2004-12-07 19:29 UTC (permalink / raw)
  To: LVM general discussion and development

On Tue, Dec 07, 2004 at 07:47:57PM +0100, �scar �lvarez Vilaplana wrote:
> What I've tried is running pvcreate on the formatted partition, but
> vgdisplay complains that that it can't find the partition with the
> uuid of the lost partition. I then tried hexedit'ing the partition and
> changing its uuid, but this didn't fool lvm either: i got the same
> error.
 
man vgcfgrestore

Alasdair
-- 
agk@redhat.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [linux-lvm] recovering a lvm volume group after one partition's deletion
  2004-12-07 19:29 ` Alasdair G Kergon
@ 2004-12-07 19:56   ` Òscar Álvarez Vilaplana
  2004-12-07 19:58     ` Alasdair G Kergon
  2004-12-07 19:58     ` Òscar Álvarez Vilaplana
  0 siblings, 2 replies; 6+ messages in thread
From: Òscar Álvarez Vilaplana @ 2004-12-07 19:56 UTC (permalink / raw)
  To: LVM general discussion and development

Thanks!

I did a pvcreate --restorefile thefile --uuid theuuid mygroup and then
vgcfgrestore thefile.

Now the logical volumes appear in /dev/mygroup/, but when I try to
mount them I get the error "mount: special device /mount/mygroup/myvol
does not exist"

I googled for an answer but I couldn't find anything relevant.

Any ideas?

Thanks!

On Tue, 7 Dec 2004 19:29:07 +0000, Alasdair G Kergon <agk@redhat.com> wrote:
> On Tue, Dec 07, 2004 at 07:47:57PM +0100, �scar �lvarez Vilaplana wrote:
> > What I've tried is running pvcreate on the formatted partition, but
> > vgdisplay complains that that it can't find the partition with the
> > uuid of the lost partition. I then tried hexedit'ing the partition and
> > changing its uuid, but this didn't fool lvm either: i got the same
> > error.
>  
> man vgcfgrestore
> 
> Alasdair
> --
> agk@redhat.com
> 
> _______________________________________________
> 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/
>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [linux-lvm] recovering a lvm volume group after one partition's deletion
  2004-12-07 19:56   ` Òscar Álvarez Vilaplana
@ 2004-12-07 19:58     ` Alasdair G Kergon
  2004-12-07 20:16       ` Òscar Álvarez Vilaplana
  2004-12-07 19:58     ` Òscar Álvarez Vilaplana
  1 sibling, 1 reply; 6+ messages in thread
From: Alasdair G Kergon @ 2004-12-07 19:58 UTC (permalink / raw)
  To: LVM general discussion and development

On Tue, Dec 07, 2004 at 08:56:14PM +0100, �scar �lvarez Vilaplana wrote:
> Now the logical volumes appear in /dev/mygroup/, but when I try to
> mount them I get the error "mount: special device /mount/mygroup/myvol
> does not exist"

vgmknodes

lvchange -ay
 
Alasdair
-- 
agk@redhat.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [linux-lvm] recovering a lvm volume group after one partition's deletion
  2004-12-07 19:56   ` Òscar Álvarez Vilaplana
  2004-12-07 19:58     ` Alasdair G Kergon
@ 2004-12-07 19:58     ` Òscar Álvarez Vilaplana
  1 sibling, 0 replies; 6+ messages in thread
From: Òscar Álvarez Vilaplana @ 2004-12-07 19:58 UTC (permalink / raw)
  To: LVM general discussion and development

I've just noticed that the files in /dev/mygroup/volumeN are actually
symlinks to /dev/mapper/mygroup-volumeN, which doesn't exist.

Any ideas on how to proceed?

Thanks!


On Tue, 7 Dec 2004 20:56:14 +0100, �scar �lvarez Vilaplana
<grimborg@gmail.com> wrote:
> Thanks!
> 
> I did a pvcreate --restorefile thefile --uuid theuuid mygroup and then
> vgcfgrestore thefile.
> 
> Now the logical volumes appear in /dev/mygroup/, but when I try to
> mount them I get the error "mount: special device /mount/mygroup/myvol
> does not exist"
> 
> I googled for an answer but I couldn't find anything relevant.
> 
> Any ideas?
> 
> Thanks!
> 
> 
> 
> On Tue, 7 Dec 2004 19:29:07 +0000, Alasdair G Kergon <agk@redhat.com> wrote:
> > On Tue, Dec 07, 2004 at 07:47:57PM +0100, �scar �lvarez Vilaplana wrote:
> > > What I've tried is running pvcreate on the formatted partition, but
> > > vgdisplay complains that that it can't find the partition with the
> > > uuid of the lost partition. I then tried hexedit'ing the partition and
> > > changing its uuid, but this didn't fool lvm either: i got the same
> > > error.
> >
> > man vgcfgrestore
> >
> > Alasdair
> > --
> > agk@redhat.com
> >
> > _______________________________________________
> > 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/
> >
>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [linux-lvm] recovering a lvm volume group after one partition's deletion
  2004-12-07 19:58     ` Alasdair G Kergon
@ 2004-12-07 20:16       ` Òscar Álvarez Vilaplana
  0 siblings, 0 replies; 6+ messages in thread
From: Òscar Álvarez Vilaplana @ 2004-12-07 20:16 UTC (permalink / raw)
  To: LVM general discussion and development

Thanks a million!! It's working now. 


On Tue, 7 Dec 2004 19:58:18 +0000, Alasdair G Kergon <agk@redhat.com> wrote:
> On Tue, Dec 07, 2004 at 08:56:14PM +0100, �scar �lvarez Vilaplana wrote:
> > Now the logical volumes appear in /dev/mygroup/, but when I try to
> > mount them I get the error "mount: special device /mount/mygroup/myvol
> > does not exist"
> 
> vgmknodes
> 
> lvchange -ay
> 
> 
> 
> Alasdair
> --
> agk@redhat.com
> 
> _______________________________________________
> 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/
>

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-12-07 20:16 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-07 18:47 [linux-lvm] recovering a lvm volume group after one partition's deletion Òscar Álvarez Vilaplana
2004-12-07 19:29 ` Alasdair G Kergon
2004-12-07 19:56   ` Òscar Álvarez Vilaplana
2004-12-07 19:58     ` Alasdair G Kergon
2004-12-07 20:16       ` Òscar Álvarez Vilaplana
2004-12-07 19:58     ` Òscar Álvarez Vilaplana

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox