Free Up Space On Your Jira Installation

On a Redhat or CentOS installation, JIRA’s home directory location is most likely /var/atlassian/application-data/jira

Within JIRA’s home directory, there are other sub-directories that store log files and backup data that can be cleaned up from time to time.

JIRA will place its automated backup archives into the export directory.

JIRA will place its logs into the log directory.

When trying to add an attachment to a ticket today, I received a message that there was no space available.

I logged into the Jira VM and looked at disk utilization. This Jira installation was installed on a 50GB HDD. 100% was in use.

After reviewing the results disk utilization, I found that 17GB was in /var/atlassian/application-data/jira/export.

Backups existed as far back as February.

I used the following command to delete groups of files:
rm *Feb*.zip -I
rm *Mar*.zip -I
and so on….

Once deleting all backups up to August, plenty of space became available and all was good again.


How To View Log File In Linux

Log files play a vital role in troubleshooting. Knowing where they’re stored and how to read them is pertinent information. I came from a Windows background. Microsoft made it pretty easy. Linux uses a different set of rules.

Login as root user using SSH

Navigate to /var/logs directory
# cd /var/logs

To list files use the following command
# ls

To view a common log file called /var/log/messages use any one of the following command:

# less /var/log/messages
# more -f /var/log/messages
# cat /var/log/messages
# tail -f /var/log/messages
# grep -i error /var/log/messages

You don’t have to use all of those commands. I do recommend trying them all, however, just to see the different types of output available.

Using chattr CMD To Protect Documents

The form of the chattr command is:

chattr [-RVf] [-+=AacDdijsSu] [-v version] files…
-R is to recurse all subdirectories
+i is to set the immutable bit to prevent even root from erasing or changing the contents of a file.
-i is to unset the immutable bit
The form of the chflags command is:

chflags [-R [-H | -L | -P] flags file …
-H If the -R option is specified, symbolic links on the command line are followed. (Symbolic links encountered in the tree traversal are not followed.)
-L If the -R option is specified, all symbolic links are followed.
-P If the -R option is specified, no symbolic links are followed. This is the default.
-R Change the file flags for the file hierarchies rooted in the files instead of just the files themselves.
Attributes (chattr)[edit]
Some attributes include:

append only (a)
don’t update atime (A)
compressed (c)
no Copy-on-write (C) [2]
no dump (d)
synchronous directory updates (D)
immutable (i)
data journaling (j)
secure deletion (s)
synchronous updates (S)
no tail-merging (t)
top of directory hierarchy (T)
undeletable (u)

I’m using it to keep the /etc/resolv.conf file from changing after a restart
chattr +i /etc/resolv.conf

To enable changes, run
chattr -i /etc/resolv.conf

How To Ping Device Using Port Number from Linux

I used nmap and it works like a charm

yum install nmap

[root@apache02 ~]# nmap -p 80


Starting Nmap 5.51 ( ) at 2014-06-11 20:48 BST
Nmap scan report for (
Host is up (0.22s latency).
80/tcp filtered http

Nmap done: 1 IP address (1 host up) scanned in 2.59 seconds