Mongo DB Server Server Warnings

I have seen others with launch warnings, but I cannot find anything on this. A few notes that I run on Ubuntu 14.04, my version is mongo 3.0.5 (I also tried 3.0.6 with similar problems) I tried to stop / restart to no avail.

It seems to be looking for a file that does not exist, so I'm not sure if anyone knows what this file is for. Here is the log I get on startup ($ mongo)

MongoDB shell version: 3.0.5
connecting to: test
Server has startup warnings:
2015-09-04T23:25:54.707-0400 I STORAGE  [initandlisten] unable to validate readahead settings due to error: boost::filesystem::status: Permission denied: "/sys/dev/block/8:1/queue/read_ahead_kb"
2015-09-04T23:25:54.707-0400 I STORAGE  [initandlisten] for more information, see http://dochub.mongodb.org/core/readahead
2015-09-04T23:25:54.793-0400 I CONTROL  [initandlisten]
2015-09-04T23:25:54.793-0400 I CONTROL  [initandlisten] ** WARNING: Cannot detect if NUMA interleaving is enabled. Failed to probe "/sys/devices/system/node/node1": Permission denied
2015-09-04T23:25:54.793-0400 W CONTROL  [initandlisten]
2015-09-04T23:25:54.793-0400 W CONTROL  [initandlisten] Failed to probe "/sys/kernel/mm/transparent_hugepage": Permission denied
2015-09-04T23:25:54.793-0400 W CONTROL  [initandlisten]
2015-09-04T23:25:54.793-0400 W CONTROL  [initandlisten] Failed to probe "/sys/kernel/mm/transparent_hugepage": Permission denied
2015-09-04T23:25:54.793-0400 I CONTROL  [initandlisten]

I can’t find "/sys/dev/block/8:1/queue/read_ahead_kb"which one it is looking for and referring to the allowed permission, mongo was installed via root, if that matters.

Does anyone know what might cause this error? I did some installation mongoes and have not encountered this before.

+4
1

OVH/Kimsufi - .

-, ​​ubuntu, .

, , :

  • script /etc/init.d/disable-transparent-hugepage

    #!/bin/sh
    ### BEGIN INIT INFO
    # Provides:          disable-transparent-hugepages
    # Required-Start:    $local_fs
    # Required-Stop:
    # X-Start-Before:    mongod mongodb-mms-automation-agent
    # Default-Start:     2 3 4 5
    # Default-Stop:      0 1 6
    # Short-Description: Disable Linux transparent huge pages
    # Description:       Disable Linux transparent huge pages, to improve
    #                    database performance.
    ### END INIT INFO
    
    case $1 in
      start)
        if [ -d /sys/kernel/mm/transparent_hugepage ]; then
          thp_path=/sys/kernel/mm/transparent_hugepage
        elif [ -d /sys/kernel/mm/redhat_transparent_hugepage ]; then
          thp_path=/sys/kernel/mm/redhat_transparent_hugepage
        else
          return 0
        fi
    
        echo 'never' > ${thp_path}/enabled
        echo 'never' > ${thp_path}/defrag
    
        unset thp_path
        ;;
    esac
    
  • script sudo chmod 755 /etc/init.d/disable-transparent-hugepage

  • sudo update-rc.d disable-transparent-hugepage defaults

: https://docs.mongodb.org/v3.0/tutorial/transparent-huge-pages/

+9

Source: https://habr.com/ru/post/1606023/


All Articles