【问题标题】:Error : increase sysctl fs.aio-max-nr while configuring SQL Server in Ubuntu错误:在 Ubuntu 中配置 SQL Server 时增加 sysctl fs.aio-max-nr
【发布时间】:2022-12-22 06:26:42
【问题描述】:

我已经在 Ubuntu 20.04.5 中成功安装了 SQL Server。但是在配置 SQL Server 运行命令 /opt/mssql/bin/mssql-conf setup 并回答所有问题时,我收到以下错误

    The following diagnostic information is available:

         Reason: 0x00000003
         Status: 0x0000000b
        Message: Unable to create a new asynchronous I/O context. Please increase sysctl fs.aio-max-nr
          Stack:
                 IP               Function
                 ---------------- --------------------------------------
                 0000555a422995b2 <unknown>
                 0000555a42298fd0 <unknown>
                 0000555a422032af <unknown>
                 0000555a422b1d11 <unknown>
                 0000555a422b1af8 <unknown>
                 0000555a42253096 <unknown>
                 0000555a4225386e <unknown>
                 0000555a422bf0ca <unknown>
                 0000555a421fa8ad <unknown>
                 00007f7ed3521083 __libc_start_main+0xf3
                 0000555a421fa77e <unknown>
        Process: 13543 - sqlservr
         Thread: 13543
    Instance Id: e13b426f-6907-4503-b340-4d6575d62a76
       Crash Id: 48813d78-4d11-482e-8318-bbd3b504e5ab
    Build stamp: d81e9b6de06534e649bd57dd609aa3050f5e380f361b7f8a80a80eeb71e7422c
Distribution: Ubuntu 20.04.5 LTS
     Processors: 2
   Total Memory: 270359584768 bytes
      Timestamp: Tue Dec  6 03:58:53 2022
     Last errno: 11
Last errno text: Resource temporarily unavailable
Capturing a dump of 13543
sqlservr: utils.cpp:561: uintptr_t GetEndOfLibOSVmRange(): Assertion `GetGlobals()->GetStatics()->IsLibOSVmmRangeEndValid()' failed.

任何帮助将不胜感激

【问题讨论】:

  • 那么如果你运行sysctl fs.aio-max-nr,当前结果是什么?
  • @AlwaysLearning。它是 fs.aio-max-nr = 65536
  • 除了在Big Data Clusters 的上下文中,Microsoft 没有太多关于设置它的建议。您可以尝试增加它,但不要高到 1048576,除非您有一个庞大的 I/O 子系统。
  • 我无法更改此值 fs.aio-max-nr,我尝试在文件中修改 /etc/sysctl.conf 但 sysctl fs.aio-max-nr 继续显示 fs.aio-max-nr = 65536。任何想法
  • 通常你会sudo sysctl fs.aio-max-nr=someNewNumber,它可能还需要重新启动才能生效。

标签: sql-server ubuntu-20.04


【解决方案1】:

我正在寻找关于相同问题/输出的答案。在 Windows 的 Linux 子系统上使用 ubuntu 20.04。

【讨论】:

    猜你喜欢
    • 2017-04-05
    • 2021-02-04
    • 2015-09-03
    • 2016-02-13
    • 1970-01-01
    • 1970-01-01
    • 2013-07-28
    • 2017-08-06
    • 2015-06-13
    相关资源
    最近更新 更多