SUSE Support

Here When You Need Us

pvresize overwrites PV headers of some PVs with headers from other PVs

This document (000019757) is provided subject to the disclaimer at the end of this document.

Environment

SUSE Linux Enterprise Server for SAP Applications 15 SP1 
SUSE Linux Enterprise Server for SAP Applications 12 SP5
SUSE Linux Enterprise Server for SAP Applications 12 SP4

Situation

After running pvresize, the system end up with duplicate PVs. In other words, pvresize fail and the resized PV get new/random UUID.

At a later stage, running pvs will complain about duplicate PV UUID
 pvresize /dev/disk/by-id/scsi-360060e80072a660000302a6600003222
 Error writing device /dev/sdaf at 4096 length 512.
 Failed to write mda header to /dev/sdaf fd -1
 Failed to update old PV extension headers in VG vg01.
 Error writing device /dev/disk/by-id/scsi-360060e80072a660000302a6600003111 at 4096 length 512.
 Failed to write mda header to /dev/disk/by-id/scsi-360060e80072a660000302a6600003111 fd -1
 Failed to update old PV extension headers in VG vg02.
 Error writing device /dev/disk/by-id/scsi-360060e80072a660000302a6600003888 at 4096 length 512.
 Failed to write mda header to /dev/disk/by-id/scsi-360060e80072a660000302a6600003888 fd -1
 Failed to update old PV extension headers in VG vg03.

with pvresize performed above, the lvm metadata was corrupted and written to the wrong devices. 
 

Resolution

The bug was resolved with newer pvresize command.
Kindly use below or newer lvm2 package: 
  • lvm2-2.02.180-9.26.1 ( SLES 12 SP4/SP5 ) 
  • lvm2-2.02.180-12.12.1 ( SLES 15 SP1 ) 

Cause

The problem appeared in a multi-node SAP HANA cluster and is triggered by factors related to the cluster architecture mostly scsi reservations preventing write operations on all shared LUNs.

 

Disclaimer

This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:000019757
  • Creation Date: 27-Oct-2020
  • Modified Date:27-Oct-2020
    • SUSE Linux Enterprise Server for SAP Applications

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.