Bug 1269793 - [RFE] Add support for printing content of ring-buffer
Summary: [RFE] Add support for printing content of ring-buffer
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: lvm2
Version: rawhide
Hardware: Unspecified
OS: Unspecified
low
unspecified
Target Milestone: ---
Assignee: LVM and device-mapper development team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-10-08 08:53 UTC by Zdenek Kabelac
Modified: 2020-12-02 22:18 UTC (History)
12 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-12-02 22:18:12 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Zdenek Kabelac 2015-10-08 08:53:26 UTC
Description of problem:

There is no 'easy' way to readout content of ring-buffer
e.g. when user is in dracut - there is no 'dd' command,
and retrieving content of previous metadata for being able to run 'vgcfgrestore' is getting tricky if the root volume with archive is unavailable.

So IMHO easiest would be to extent some lvm2 command to be able to dump content of present metadata in the ring-buffer into a file.

i.e.  --scanbufffer {all|#number}  to read last #number of entries and store them into a file - when a PV is given - list just metadata from this PV, otherwise scan and check all devices for metadata

Something in this direction would be quite useful.

It could be possible paired with 'vgcfgrestore --list' 
as i.e.  'vgcfgrestore --scandisk'

so it may eventually work directly without need of temporary file storage -
i.e. revert back by 'x' metadata from given time as listed....

Version-Release number of selected component (if applicable):
2.02.130

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 David Teigland 2020-12-02 22:18:23 UTC
recent pvck --dump has similar capability


Note You need to log in before you can comment on or make changes to this bug.