Skip to Content
avatar image
Former Member

SAP HANA - SUSE Linux - Direct IO?


We're using storage replication to a DR site for our SUSE Linux servers. The data/log filesystems are running xfs. We have experienced data loss at the DR site when attempting to recover the FS's as the xfs log cleanup removes the open data/log files (things in lost & found but, it's like putting Humpty Dumpty together again).

Should we be using Direct IO for these FS's to avoid data in cache that hasn't made it to disk for replication causing the FS issues we're seeing at the DR site? Or, is there something else we need to employ to obtain recoverable data?

Add comment
10|10000 characters needed characters exceeded

  • Former Member

    We use xfs as the filesystem type on SAN LUNs at one site and the array replicates the data to SAN LUNs at another site. The problem is, the xfs filesystem at the DR site appears as crashed (makes sense since the prod site is up and running during a DR). We must use the log recovery of the xfs filesystem to clean it up and allow us to mount it. This removes the open files - our data and log files - during xfs log recovery process.

  • Get RSS Feed

2 Answers

  • May 03, 2018 at 01:16 AM

    SAP HANA uses AsyncIO and DirectIO when opening its files. It's not something you have to specifically configure.

    Maybe the corruptions you encounter are due to the numerous XFS filesystem bugs (see the corresponding SAP notes for that).

    Add comment
    10|10000 characters needed characters exceeded

    • Alright - two things:

      • the bugs/problems I referred to are bugs in the XFS file system, not in SAP HANA. That means, to fix them, a OS patch will be required.
      • I don't know whether or not your problem is related to these bugs. There's just not enough information in this question to make that decision.
        In my experience, analyzing the cause of filesystem errors can become very tedious (going to the point of literally looking into file contents to look for "suspicious" pattern) which is why I always would recommend opening a support incident for the analysis.
      • So, instead of listing some SAP notes related to XFS and HANA, I'll leave this SAP notes search with you:

      This should provide you with the SAP notes related to the topic. Hopefully, you are able to match them against the details of your filesystem errors.

  • avatar image
    Former Member
    May 02, 2018 at 09:57 PM


    Why not put data/log filesystems on a LUN created by your SAN? In this approach, you can the SAN technology to replicate data (block level) between sites and do not use XFS for this tasks.

    Add comment
    10|10000 characters needed characters exceeded