On Tue, Jun 25, 2019 at 9:40 AM <mblack0@yandex.ru> wrote:
That's interesting.

Where can i find meta for block storage?

In block storage metadata is kept in the "metadata" logical volume.

To find metadata for particular volume, you need to to look at the logical volume tags:

lvs -o tags vg-name/lv-name
Which will output tags like MD_42

The metadata for this volume is at slot number 42.

To find the metadata, you need to calculate the offset in the metadata logical volume.

On storage domain V4 format, the offset is:

offset=$((42 * 512))

On storage domain V5 format, the offset is:

offset=$((1048576 + 42 * 8192))

You can read the metadata like this:

dd if=/dev/vg-name/metadata bs=512 count=1 skip=$offset conv=skip_bytes iflag=direct

If you need help you can copy the metadata logical volume and share it here:

dd if=/dev/vg-name/metadata bs=1M count=17 iflag=direct of=metadata-$(date +%Y-%m-%d-%H-%M)
xz metadata-*

Nir

On NFS storage these files are located next to the disk image.
_______________________________________________
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-leave@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/
List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/KX2MVSAKJOPAVTKQXOR76QSIISTMCJQE/