multipath/lvm system drops into Emergency mode
This document (7023336) is provided subject to the disclaimer at the end of this document.
Environment
SUSE Linux Enterprise Server 12 Service Pack 3 (SLES 12 SP3)
SUSE Linux Enterprise Server for SAP Applications Service Pack 3
Situation
Even though multipath is enabled and set up correctly
Error messages about “duplicate PV” are logged by LVM.
Sometimes, the system boots into Emergency mode on (re)boot.
# pvs
Found duplicate PV Ed9ecmOvaE2LrL3rQLC8ducCJmjQsfqn: using /dev/sdc2 not /dev/sda2
Using duplicate PV /dev/sdc2 without holders, replacing /dev/sda2
Found duplicate PV Ed9ecmOvaE2LrL3rQLC8ducCJmjQsfqn: using /dev/sdc2 not /dev/sda2
Using duplicate PV /dev/sdc2 without holders, ignoring /dev/sda2
PV VG Fmt Attr PSize PFree
/dev/sdc2 system lvm2 a-- 99.99g 4.00m
WARNING: duplicate PV OFysu7oHJ4x0vnwwDjYCzC2qnyPitcwc is being used from both devices
/dev/sdaz2 and /dev/sdz2 Found duplicate PV Ed9ecmOvaE2LrL3rQLC8ducCJmjQsfqn: using /dev/sdc2 not /dev/sda2
kernel: device-mapper: table: 254:28: multipath: error getting device
- it occurs with LVM over multipath
- Emergency mode occurs after switching root
- most multipath devices are correctly set up, just a few are not; typically these devices correspond to PVs that provide storage for the root file system
- messages like the ones listed above are logged
Resolution
# lsinitrd /boot/initrd| grep multipathd.service
lrwxrwxrwx 1 root root 21 Jun 20 12:05 usr/lib/systemd/system/sysinit.target.wants/multipathd.service -> ../multipathd.service
Cause
Additional Information
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:7023336
- Creation Date: 06-Sep-2018
- Modified Date:03-Mar-2020
-
- SUSE Linux Enterprise Server
- SUSE Linux Enterprise Server for SAP Applications
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com