Issue/Introduction
This article helps troubleshoot mpath device in-use errors when adding ZSphere SAN data storage.
Symptoms
- Adding SAN data storage fails with
can't open /dev/mapper/mpathm exclusivelyorMounted filesystem. - The multipath device is visible in the underlying system, but the platform cannot manage it as data storage.
Environment
- Product: ZVF
- Version: 4.x
- Component: ZSphere
- Affected object: SAN data storage
- Scenario: For storage and passthrough issues, confirm the current version, deployment type, storage type, and operation timeline.
Possible causes
- The filter rule in
lvm.conforlvmlocal.confis incorrect. - The target mpath device is used by an existing file system, LVM, or another process.
- Multipath device naming or WWID identification is abnormal.
Resolution
Perform the following checks in order, and record the affected object, occurrence time, complete error message, and current status.
- Confirm the target LUN, WWID, mpath device, and host visibility.
- Use read-only checks of
multipath,lsblk, andpvs/vgs/lvsto confirm whether the device is in use. - Verify whether the
lvm.conforlvmlocal.conffilter matches the current device. - Before changing filter rules or releasing the device, confirm that the LUN does not carry existing service data.
Remediation
- After confirming that the target LUN does not carry existing service data, a volume group, or a file system, correct the LVM filter rule or release the usage according to the current device plan.
- If device references cannot be confirmed, retain multipath and LVM information and contact ZStack official technical support to confirm the remediation path.
Verification
- The target LUN is correctly identified and is no longer occupied by an incorrect mpath or LVM reference.
- SAN data storage can be added successfully, and existing service LUNs are unaffected.
