PTA: Increase size of /dev/shm

PTA: Increase size of /dev/shm

84
Created On 11/10/26 10:56 AM - Last Modified 11/10/26 15:55 PM


Objective


This article illustrates how to increase the size of /dev/shm on Linux variants to facilitate the proper installation of PTA and PTA Network Sensor

Note:
The manual PTA and manual PTA Network Sensor installation use /dev/shm as temporary storage for installation. This is not applicable when PTA and PTA Network Sensor is imported from the OVF / Hyper-V images


Environment


10.10;11.1;11;11.2;11.3;11.4;11.5;11.6;11.7;12.0;12.1

Procedure


DISCLAIMER: If the target machine is on a virtual image, it is HIGHLY RECOMMENDED to take a snapshot of the machine before using this process.

This process involves editing the /etc/fstab and running a command to remount the /dev/shm partition

1. You must be logged into the machine as root or a user with 'sudo' privileges.

2. Make a copy of the /etc/fstab file

3. Open /etc/fstab in a text editor. Look for the following line:
/dev/mapper/centos-dev_shm /dev/shm                xfs     defaults        0 0

a. In some variants, the line may not be present. If this is the case, add the following line
/dev/mapper/centos-dev_shm /dev/shm                xfs     defaults,size=3G        0 0

b. If the line is already present as above, add ',size=<size>' after 'defaults', where <size> is the desired filesystem size. A 2GB or 3GB partition is usually sufficient. The above example has a 3 GB size. The line should look like this:
/dev/mapper/centos-dev_shm /dev/shm                xfs     defaults,size=3G        0 0
4. Save the /etc/fstab file
5. Run the following command: sudo mount -o remount /dev/shm
6. Run the following command: df -h. The output, if configured correctly should look something like this:
[tsawyer@lab-ptasensor ~]$ df -h
Filesystem               Size  Used Avail Use% Mounted on
devtmpfs                 906M     0  906M   0% /dev
tmpfs                    3.0G     0  3.0G   0% /dev/shm
tmpfs                    917M  9.0M  908M   1% /run
tmpfs                    917M     0  917M   0% /sys/fs/cgroup
/dev/mapper/centos-root   41G  1.3G   40G   3% /
/dev/sda1               1014M  150M  865M  15% /boot
/dev/mapper/centos-home   20G   33M   20G   1% /home
tmpfs                    184M     0  184M   0% /run/user/0
tmpfs                    184M     0  184M   0% /run/user/1000

Note the /dev/shm partition now has 3 GB of space available.


Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000000w0qCAA&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail