DataStax Support Forums » Topic: swapfile in /var/lib/cassandra directory - Not sure how it got created. Can we delete ithttp://www.datastax.com/support-forums/topic/swapfile-in-varlibcassandra-directory-not-sure-how-it-got-created-can-we-delete-it
Software, Support, and Training for Apache Cassandraen-USWed, 04 Mar 2015 00:27:36 +0000http://bbpress.org/?v=1.0.3qhttp://www.datastax.com/support-forums/search.php
Sven on "swapfile in /var/lib/cassandra directory - Not sure how it got created. Can we delete it"http://www.datastax.com/support-forums/topic/swapfile-in-varlibcassandra-directory-not-sure-how-it-got-created-can-we-delete-it#post-7774
Mon, 03 Dec 2012 08:48:50 +0000Sven7774@http://www.datastax.com/support-forums/<p>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).
</p>srk_user on "swapfile in /var/lib/cassandra directory - Not sure how it got created. Can we delete it"http://www.datastax.com/support-forums/topic/swapfile-in-varlibcassandra-directory-not-sure-how-it-got-created-can-we-delete-it#post-7759
Sat, 01 Dec 2012 07:23:04 +0000srk_user7759@http://www.datastax.com/support-forums/<p>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.<br />
[xxxxxx@xxxxxx cassandra]$ ls -tlr<br />
total 4198428<br />
drwx------ 2 root root 16384 Jun 8 14:17 lost+found<br />
drwxr-xr-x 6 casadmin intsvcs 4096 Sep 17 18:58 data<br />
-rw-r--r-- 1 root root 4294967296 Sep 20 12:06 swapfile<br />
drwxr-xr-x 2 casadmin intsvcs 4096 Dec 1 10:05 saved_caches
</p>