How to fix file system errors with Trident or Kubernetes SAN PVs
Applies to
- Kubernetes iSCSI PV
- Trident ontap-san PVs
Issue
When an ONTAP volume containing a LUN fills up fully, and writes fail, the PV will be mounted readonly by the Kubernetes node's operating system.
If that happens, there may be file system corruption on the partition's XFS or ext4 file system, causing the error:
Also, attempting to repair the device after remounting r/w on the worker node, fails (for example):
sh-5.1# xfs_repair /dev/mapper/3600a09803831366437244e4f316e5443
xfs_repair: cannot open /dev/mapper/3600a09803831366437244e4f316e5443: Device or resource busy
