zoukankan      html  css  js  c++  java
  • X grid安装前检查报PRVE-0426:/dev/shm less than the require

    操作系统信息:
    
    # cat /etc/redhat-release 
    Red Hat Enterprise Linux Server release 7.5 (Maipo)
    
    runcluvfy检查结果: Starting check for /dev/shm mounted as temporary file system ... ERROR: PRVE-0426 : The size of in-memory file system mounted as /dev/shm is "1000" megabytes which is less than the required size of "2048" megabytes on node "" PRVE-0426 : The size of in-memory file system mounted as /dev/shm is "995" megabytes which is less than the required size of "2048" megabytes on node "" Check for /dev/shm mounted as temporary file system failed
    当前配置: [root@prodb1 ~]# df -h Filesystem Size Used Avail Use% Mounted on devtmpfs 975M 0 975M 0% /dev tmpfs 995M 0 995M 0% /dev/shm tmpfs 995M 8.7M 986M 1% /run tmpfs 995M 0 995M 0% /sys/fs/cgroup /dev/mapper/ol-root 22G 3.9G 19G 18% / /dev/sda1 1014M 158M 857M 16% /boot tmpfs 199M 0 199M 0% /run/user/0 tmpfs 199M 0 199M 0% /run/user/1002
    当前shm大小 为995m。 检查fstab [root@prodb1 ~]# cat /etc/fstab # /etc/fstab # Created by anaconda on Wed Jan 30 13:44:53 2019 # # Accessible filesystems, by reference, are maintained under '/dev/disk' # See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info # /dev/mapper/ol-root / xfs defaults 0 0 UUID=266095fc-dca4-4fce-a808-a10628d642d3 /boot xfs defaults 0 0 /dev/mapper/ol-swap swap swap defaults 0 0

    fstab没有了shm的配置,配置信息写入了以下文件: # ll /usr/lib/dracut/modules.d/99base/init.sh -rwxr-xr-x. 1 root root 11467 4月 11 2018 /usr/lib/dracut/modules.d/99base/init.sh 62 if ! ismounted /dev/shm; then 63 mkdir -m 0755 /dev/shm 64 mount -t tmpfs -o mode=1777,nosuid,nodev,strictatime tmpfs /dev/shm >/dev/null 65 fi

    修改64行,保证下次重启依然有效: mount -t tmpfs -o mode=1777,nosuid,nodev,strictatime,size=2G tmpfs /dev/shm >/dev/null
    修改当前设置: #fsuser -km /dev/shm #umount /dev/shm #mount -t tmpfs -o mode=1777,nosuid,nodev,strictatime,size=2G tmpfs /dev/shm

    参考:Linux OL7/RHEL7: PRVE-0421 : No entry exists in /etc/fstab for mounting /dev/shm (文档 ID 2065603.1)
  • 相关阅读:
    常见图片格式PNG,JPEG,BMP,GIF区别总结
    sql在所有存储过程中查询包含某字符串的执行语句
    数字取整或保留小数四舍五入的正确写法
    SVG路径path的贝塞尔曲线指令
    查询总耗CPU最多与平均耗CPU最多的SQL语句
    MIME 参考手册
    SQL语句复制父子级表数据
    去掉数字格式结尾多余的零,补充数字格式结尾需要的零
    设置微信分享的标题 缩略图 连接 描述
    linux环境下php开启redis扩展(centos6.8)
  • 原文地址:https://www.cnblogs.com/chendian0/p/14981990.html
Copyright © 2011-2022 走看看