Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Grid pre-installation check report PRVE-0426:/dev/shm less than the require

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

Operating system information:

# cat / etc/redhat-release Red Hat Enterprise Linux Server release 7.5 (Maipo)

Runcluvfy check results:

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"

Current configuration:

[root@prodb1] # df-h

Filesystem Size Used Avail Use% Mounted ondevtmpfs 975M 0975M 0% / devtmpfs 995M 0995m 0% / dev/shmtmpfs 995M 8.7m 986m 1% / runtmpfs 995M 0995m 0% / sys/fs/cgroup/dev/mapper/ol-root 22G 3.9G 19G 18% / / dev/sda1 1014M 158m 857m 16% / boottmpfs 199m 0 199m 0% / run/user/0tmpfs 199m 0 199M 0 0% / run/user/1002

The current shm size is 995m.

Check fstab

[root@prodb1 ~] # cat / etc/fstab

# / etc/fstab# Created by anaconda on Wed Jan 30 13:44:53 2019 years # 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 0UUID=266095fc-dca4-4fce-a808-a10628d642d3 / boot xfs defaults 0 0/dev/mapper/ol-swap defaults 0 0

Fstab does not have the configuration of shm, and the configuration information is written to the following file:

# ll / usr/lib/dracut/modules.d/99base/init.sh-rwxr-xr-x. 1 root root 11467 April 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

Modify 64 lines to ensure that the next restart is still valid:

Mount-t tmpfs-o mode=1777,nosuid,nodev,strictatime,size=2G tmpfs / dev/shm > / dev/null

Modify the current settings:

# fsuser-km / dev/shm#umount / dev/shm#mount-t tmpfs-o mode=1777,nosuid,nodev,strictatime,size=2G tmpfs / dev/shm

Reference: Linux OL7/RHEL7: PRVE-0421: No entry exists in / etc/fstab for mounting / dev/shm (document ID 2065603.1)

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report