All of lore.kernel.org
 help / color / mirror / Atom feed
* transaction_manager::new_block() couldn't allocate new block
@ 2019-10-19  0:29 Eric Wheeler
  2019-10-19  2:47 ` Nikhil Kshirsagar
  2019-10-20 22:13 ` Eric Wheeler
  0 siblings, 2 replies; 4+ messages in thread
From: Eric Wheeler @ 2019-10-19  0:29 UTC (permalink / raw)
  To: lvm-devel

Hello all, 

We are attempting to repair a thin meta volume and get the following 
error after it runs for a while:

~]# thin_repair -V
0.8.5

~]# thin_repair -i /dev/mapper/data-data--pool_tmeta -o /dev/data/tmeta-dest 
truncating metadata device to 4161600 4k blocks
terminate called after throwing an instance of 'std::runtime_error'
  what():  transaction_manager::new_block() couldn't allocate new block
Aborted (core dumped)

How I can troubleshoot this further?

I'm happy to try patches against thin_repair if you would like.  I'm also 
trying thin_dump/thin_restore, so we will see how that goes---but I 
thought you might want to know in case there is a bug in thin_repair that 
could be fixed while I have the metadata in this state.

--
Eric Wheeler



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

* transaction_manager::new_block() couldn't allocate new block
  2019-10-19  0:29 transaction_manager::new_block() couldn't allocate new block Eric Wheeler
@ 2019-10-19  2:47 ` Nikhil Kshirsagar
  2019-10-20 22:13 ` Eric Wheeler
  1 sibling, 0 replies; 4+ messages in thread
From: Nikhil Kshirsagar @ 2019-10-19  2:47 UTC (permalink / raw)
  To: lvm-devel

I recollect running into this one a few months ago on 0.8.5 , and i think
Joe fixed this in 0.8.5-1 , please try with the latest version of the pdata
tools.

On Sat, 19 Oct, 2019, 6:08 AM Eric Wheeler, <lvm-devel@lists.ewheeler.net>
wrote:

> Hello all,
>
> We are attempting to repair a thin meta volume and get the following
> error after it runs for a while:
>
> ~]# thin_repair -V
> 0.8.5
>
> ~]# thin_repair -i /dev/mapper/data-data--pool_tmeta -o
> /dev/data/tmeta-dest
> truncating metadata device to 4161600 4k blocks
> terminate called after throwing an instance of 'std::runtime_error'
>   what():  transaction_manager::new_block() couldn't allocate new block
> Aborted (core dumped)
>
> How I can troubleshoot this further?
>
> I'm happy to try patches against thin_repair if you would like.  I'm also
> trying thin_dump/thin_restore, so we will see how that goes---but I
> thought you might want to know in case there is a bug in thin_repair that
> could be fixed while I have the metadata in this state.
>
> --
> Eric Wheeler
>
> --
> lvm-devel mailing list
> lvm-devel at redhat.com
> https://www.redhat.com/mailman/listinfo/lvm-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/lvm-devel/attachments/20191019/d7087621/attachment.htm>

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

* transaction_manager::new_block() couldn't allocate new block
  2019-10-19  0:29 transaction_manager::new_block() couldn't allocate new block Eric Wheeler
  2019-10-19  2:47 ` Nikhil Kshirsagar
@ 2019-10-20 22:13 ` Eric Wheeler
  2019-10-21 20:38   ` Eric Wheeler
  1 sibling, 1 reply; 4+ messages in thread
From: Eric Wheeler @ 2019-10-20 22:13 UTC (permalink / raw)
  To: lvm-devel

On Sat, 19 Oct 2019, Eric Wheeler wrote:

> Hello all, 
> 
> We are attempting to repair a thin meta volume and get the following 
> error after it runs for a while:
> 
> ~]# thin_repair -V
> 0.8.5
> 
> ~]# thin_repair -i /dev/mapper/data-data--pool_tmeta -o /dev/data/tmeta-dest 
> truncating metadata device to 4161600 4k blocks
> terminate called after throwing an instance of 'std::runtime_error'
>   what():  transaction_manager::new_block() couldn't allocate new block
> Aborted (core dumped)
> 
> How I can troubleshoot this further?
> 
> I'm happy to try patches against thin_repair if you would like.  I'm also 
> trying thin_dump/thin_restore, so we will see how that goes

Same problem with thin_dump/restore:

~]# thin_dump --repair /dev/mapper/data-data--pool_tmeta -o /mnt/tmp/tmeta.xml
~]# thin_restore -i /mnt/tmp/tmeta.xml -o /dev/data/tmeta-dest
truncating metadata device to 4161600 4k blocks
Restoring: [====>                                             ] | 11%
transaction_manager::new_block() couldn't allocate new block

I added a print of dev_id in xml_format.cc:parse_device() so maybe I can 
skip the "bad" device, but I'm not really sure what the problem is so that 
might not help.

Suggestions and patches welcome.  I'll post the meta XML when its done 
bzipping (109GB) if that is helpful.

--
Eric Wheeler




> ---but I 
> thought you might want to know in case there is a bug in thin_repair that 
> could be fixed while I have the metadata in this state.
> 
> --
> Eric Wheeler
> 
> --
> lvm-devel mailing list
> lvm-devel at redhat.com
> https://www.redhat.com/mailman/listinfo/lvm-devel
> 



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

* transaction_manager::new_block() couldn't allocate new block
  2019-10-20 22:13 ` Eric Wheeler
@ 2019-10-21 20:38   ` Eric Wheeler
  0 siblings, 0 replies; 4+ messages in thread
From: Eric Wheeler @ 2019-10-21 20:38 UTC (permalink / raw)
  To: lvm-devel

On Sun, 20 Oct 2019, Eric Wheeler wrote:
> On Sat, 19 Oct 2019, Eric Wheeler wrote:
> 
> > Hello all, 
> > 
> > We are attempting to repair a thin meta volume and get the following 
> > error after it runs for a while:
> > 
> > ~]# thin_repair -V
> > 0.8.5
> > 
> > ~]# thin_repair -i /dev/mapper/data-data--pool_tmeta -o /dev/data/tmeta-dest 
> > truncating metadata device to 4161600 4k blocks
> > terminate called after throwing an instance of 'std::runtime_error'
> >   what():  transaction_manager::new_block() couldn't allocate new block
> > Aborted (core dumped)
> > 
> > How I can troubleshoot this further?
> > 
> > I'm happy to try patches against thin_repair if you would like.  I'm also 
> > trying thin_dump/thin_restore, so we will see how that goes
> 
> Same problem with thin_dump/restore:
> 
> ~]# thin_dump --repair /dev/mapper/data-data--pool_tmeta -o /mnt/tmp/tmeta.xml
> ~]# thin_restore -i /mnt/tmp/tmeta.xml -o /dev/data/tmeta-dest
> truncating metadata device to 4161600 4k blocks
> Restoring: [====>                                             ] | 11%
> transaction_manager::new_block() couldn't allocate new block
> 
> I added a print of dev_id in xml_format.cc:parse_device() so maybe I can 
> skip the "bad" device, but I'm not really sure what the problem is so that 
> might not help.
> 
> Suggestions and patches welcome.  I'll post the meta XML when its done 
> bzipping (109GB) if that is helpful.

bz# 1763895

Here is the meta XML: 
  https://www.duetsolution.com/static/tmeta.xml.bz2

If someone can reproduce this and propose a fix or patch I would greatly 
appreciate it!

--
Eric Wheeler


> 
> --
> Eric Wheeler
> 
> 
> 
> 
> > ---but I 
> > thought you might want to know in case there is a bug in thin_repair that 
> > could be fixed while I have the metadata in this state.
> > 
> > --
> > Eric Wheeler
> > 
> > --
> > lvm-devel mailing list
> > lvm-devel at redhat.com
> > https://www.redhat.com/mailman/listinfo/lvm-devel
> > 
> 
> --
> lvm-devel mailing list
> lvm-devel at redhat.com
> https://www.redhat.com/mailman/listinfo/lvm-devel
> 
> 



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

end of thread, other threads:[~2019-10-21 20:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-19  0:29 transaction_manager::new_block() couldn't allocate new block Eric Wheeler
2019-10-19  2:47 ` Nikhil Kshirsagar
2019-10-20 22:13 ` Eric Wheeler
2019-10-21 20:38   ` Eric Wheeler

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.