I see a swapfile in /var/lib/cassandra folder. Not sure how it got created. But as it has taken lot of space, I would like to delete it. So wanted to check if somebody has seen this before and can we just delete this file.
[xxxxxx@xxxxxx cassandra]$ ls -tlr
total 4198428
drwx------ 2 root root 16384 Jun 8 14:17 lost+found
drwxr-xr-x 6 casadmin intsvcs 4096 Sep 17 18:58 data
-rw-r--r-- 1 root root 4294967296 Sep 20 12:06 swapfile
drwxr-xr-x 2 casadmin intsvcs 4096 Dec 1 10:05 saved_caches
swapfile in /var/lib/cassandra directory - Not sure how it got created. Can we delete it
(2 posts) (2 voices)-
Posted 5 months ago #
-
That is independent of Cassandra and more a Linux system administration issue. Cassandra is not creating that kind of file, this would seem like a linux swap file. Before removing it I would suggest you check that it is not being actually used in your system (check fstab). From the cassandra side I see no issue with removing the file (maybe just rename it first to see if there are other unexpected side effects).
Posted 5 months ago #
Reply
You must log in to post.
