Increase tmpfs filesystem space on linux
run time increase using below command:-
mount -t tmpfs tmpfs -o size=3g /dev/shm
[root@rac1 ctssd]# cat /etc/fstab
#
# /etc/fstab
# Created by anaconda on Tue Nov 27 15:48:22 2018
#
# 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/vg_rac1-lv_root / ext4 defaults 1 1
UUID=1b52ef29-f02f-48e3-9908-6ed29c02ce5a /boot ext4 defaults 1 2
/dev/mapper/vg_rac1-lv_home /home ext4 defaults 1 2
/dev/mapper/vg_rac1-lv_swap swap swap defaults 0 0
tmpfs /dev/shm tmpfs defaults,size=3G 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
[root@rac1 ctssd]#
Need reboot
[root@rac1 ctssd]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_rac1-lv_root 50G 34G 14G 71% /
tmpfs 3.0G 1.1G 2.0G 37% /dev/shm
/dev/sda1 477M 56M 397M 13% /boot
/dev/mapper/vg_rac1-lv_home 26G 47M 24G 1% /home
[root@rac1 ctssd]#
[root@rac1 ctssd]#
run time increase using below command:-
mount -t tmpfs tmpfs -o size=3g /dev/shm
[root@rac1 ctssd]# cat /etc/fstab
#
# /etc/fstab
# Created by anaconda on Tue Nov 27 15:48:22 2018
#
# 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/vg_rac1-lv_root / ext4 defaults 1 1
UUID=1b52ef29-f02f-48e3-9908-6ed29c02ce5a /boot ext4 defaults 1 2
/dev/mapper/vg_rac1-lv_home /home ext4 defaults 1 2
/dev/mapper/vg_rac1-lv_swap swap swap defaults 0 0
tmpfs /dev/shm tmpfs defaults,size=3G 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
[root@rac1 ctssd]#
Need reboot
[root@rac1 ctssd]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_rac1-lv_root 50G 34G 14G 71% /
tmpfs 3.0G 1.1G 2.0G 37% /dev/shm
/dev/sda1 477M 56M 397M 13% /boot
/dev/mapper/vg_rac1-lv_home 26G 47M 24G 1% /home
[root@rac1 ctssd]#
[root@rac1 ctssd]#
No comments:
Post a Comment