[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Recovering an lvm partition



On Mon, May 28, 2007 at 11:40:33AM -0500, Jacob S wrote:
> On Mon, 28 May 2007 11:08:18 -0400
> Roberto C. Sánchez <roberto@connexer.com> wrote:
> 
> > On Mon, May 28, 2007 at 10:01:32AM -0500, Jacob S wrote:
> > > 
> > > I managed to fix that part of it, eventually, using vgreduce
> > > - --removemissing vg_name. However, now lvdisplay shows that there
> > > is no logical volume on that vg. Nothing has been done to erase the
> > > filesystem and data, so I am hoping I can recover it. But before I
> > > simply do an lvcreate and try to get the same settings it had
> > > previously, does anyone know of something like vgcfgrestore that
> > > would restore the lv from the /etc/lvm/vg_name00000.log config
> > > file? 
> > > 
> > Hmm.  I've never run unto this.  Any chance you have a recent backup?
> > If not, are you able to look in the shell history and see the exact
> > sequence of commands that this unnamed person used to add the new pv?
> 
> No backups... err, oh, happy day! I just found out my backups were
> working. I thought that partition had gotten full.
> 
> No sequence of commands in the shell history, unfortunately. 
> 
> But now that I know I have pretty good backups, I will just experiment
> and see if I can get it working again. If I make any startling
> discoveries I will be sure and report them to the list. :-)


if you really want to be able to play with it and have the disk space,
dd the partitions onto other disks so you can recreate the situation
multiple times...

A

Attachment: signature.asc
Description: Digital signature


Reply to: