麒麟V10 达梦安装 OpenJDK 64-Bit Server VM warning: Insufficient space for shared memory file的解决方法
作者:
dave
1 故障现象
麒麟V10 SP2 系统上安装DM8,报如下错误:
[dave@www.cndba.cn mnt]# cat /proc/version
Linux version 4.19.90-24.4.v2101.ky10.x86_64 (KYLINSOFT@localhost.localdomain) (gcc version 7.3.0 (GCC)) #1 SMP Mon May 24 12:14:55 CST 2021
[dave@www.cndba.cn mnt]#
Available Space:38G
Please Confirm the install path(/dm/dmdbms)? (Y/y:Yes N/n:No) [Y/y]:Y
/tmp/DMInstall/install/install.sh: line 624: echo: write error: No space left on device
/tmp/DMInstall/install/install.sh: line 625: echo: write error: No space left on device
/tmp/DMInstall/install/install.sh: line 626: echo: write error: No space left on device
/tmp/DMInstall/install/install.sh: line 627: echo: write error: No space left on device
/tmp/DMInstall/install/install.sh: line 628: echo: write error: No space left on device
Pre-Installation Summary
Installation Location: /dm/dmdbms
Require Space: 1013M
Available Space: 38G
Version Information:
Expire Date:
Installation Type: Typical
Confirm to Install? (Y/y:Yes N/n:No):Y
OpenJDK 64-Bit Server VM warning: Insufficient space for shared memory file:
/tmp/hsperfdata_dmdba/31260
Try using the -Djava.io.tmpdir= option to select an alternate temp location.
OpenJDK 64-Bit Server VM warning: Insufficient space for shared memory file:
/tmp/hsperfdata_dmdba/31270
Try using the -Djava.io.tmpdir= option to select an alternate temp location.
properties文件参数个数不能为0!
End
2 解决方法
2.1 方法1
设置 DM_INSTALL_TMPDIR 变量,指定到别的路径下,注意磁盘空间要大于 2G。
export DM_INSTALL_TMPDIR=/dm/tmp
2.2 方法2
直接修改修改/tmp 大小:mount -t tmpfs -o size=3G none /tmp
[dave@www.cndba.cn software]# df -lh
Filesystem Size Used Avail Use% Mounted on
devtmpfs 456M 0 456M 0% /dev
tmpfs 482M 4.0K 482M 1% /dev/shm
tmpfs 482M 7.2M 475M 2% /run
tmpfs 482M 0 482M 0% /sys/fs/cgroup
/dev/mapper/klas_dcm2-root 47G 8.7G 39G 19% /
none 1.0G 0 1.0G 0% /tmp
/dev/sda1 1014M 211M 804M 21% /boot
tmpfs 97M 40K 97M 1% /run/user/0
/dev/loop0 723M 723M 0 100% /mnt
[dave@www.cndba.cn software]# mount -t tmpfs -o size=3G none /tmp
[dave@www.cndba.cn software]# df -lh
Filesystem Size Used Avail Use% Mounted on
devtmpfs 456M 0 456M 0% /dev
tmpfs 482M 4.0K 482M 1% /dev/shm
tmpfs 482M 7.2M 475M 2% /run
tmpfs 482M 0 482M 0% /sys/fs/cgroup
/dev/mapper/klas_dcm2-root 47G 8.7G 39G 19% /
none 3.0G 0 3.0G 0% /tmp
/dev/sda1 1014M 211M 804M 21% /boot
tmpfs 97M 40K 97M 1% /run/user/0
/dev/loop0 723M 723M 0 100% /mnt
再次运行安装正常:
[dave@www.cndba.cn mnt]$ ./DMInstall.bin -i
Please select the installer's language (E/e:English C/c:Chinese) [E/e]:
Extract install files..........
core file size (blocks, -c) unlimited
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 3644
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 4096
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 3644
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
The max number of open files is too little, suggest to set 65536 or more to number of open files.
Welcome to DM DBMS Installer
Whether to input the path of Key File? (Y/y:Yes N/n:No) [Y/y]:n
Whether to Set The TimeZone? (Y/y:Yes N/n:No) [Y/y]:
TimeZone:
[ 1]: GTM-12=West Date Line
[ 2]: GTM-11=Samoa
[ 3]: GTM-10=Hawaii
[ 4]: GTM-09=Alaska
[ 5]: GTM-08=Pacific(America and Canada)
[ 6]: GTM-07=Arizona
[ 7]: GTM-06=Central(America and Canada)
[ 8]: GTM-05=East(America and Canada)
[ 9]: GTM-04=Atlantic(America and Canada)
[10]: GTM-03=Brasilia
[11]: GTM-02=Middle Atlantic
[12]: GTM-01=Azores
[13]: GTM=Greenwich Mean Time
[14]: GTM+01=Sarajevo
[15]: GTM+02=Cairo
[16]: GTM+03=Moscow
[17]: GTM+04=AbuDhabi
[18]: GTM+05=Islamabad
[19]: GTM+06=Dakar
[20]: GTM+07=BangKok,Hanoi
[21]: GTM+08=China
[22]: GTM+09=Seoul
[23]: GTM+10=Guam
[24]: GTM+11=Solomon
[25]: GTM+12=Fiji
[26]: GTM+13=Nukualofa
[27]: GTM+14=Kiribati
Please Select the TimeZone [21]:
Installation Type:
1 Typical
2 Server
3 Client
4 Custom
Please Input the number of the Installation Type [1 Typical]:
Require Space: 1178M
Please Input the install path [/home/dmdba/dmdbms]:/dm/dmdbms
Available Space:38G
Please Confirm the install path(/dm/dmdbms)? (Y/y:Yes N/n:No) [Y/y]:Y
Pre-Installation Summary
Installation Location: /dm/dmdbms
Require Space: 1178M
Available Space: 38G
Version Information:
Expire Date:
Installation Type: Typical
Confirm to Install? (Y/y:Yes N/n:No):
Confirm to Install? (Y/y:Yes N/n:No):Y
2023-02-01 23:54:19
[INFO] Installing BASE Module...
2023-02-01 23:54:19
[INFO] Installing DM DBMS...
2023-02-01 23:54:26
[INFO] Installing SERVER Module...
2023-02-01 23:54:27
[INFO] Installing CLIENT Module...
2023-02-01 23:54:33
[INFO] Installing DRIVERS Module...
2023-02-01 23:54:37
[INFO] Installing MANUAL Module...
2023-02-01 23:54:39
[INFO] Installing SERVICE Module...
2023-02-01 23:54:40
[INFO] Move log file to log directory.
2023-02-01 23:54:41
[INFO] Installed DM DBMS completely.
Please execute the commands by root:
/dm/dmdbms/script/root/root_installer.sh
End
[dave@www.cndba.cn mnt]$
版权声明:本文为博主原创文章,未经博主允许不得转载。