title: Failed opening the RDB file ... Read-only file system
body: <p>I'm trying to perform a save or bgsave on my redis instance to run through the backup/restore process. I'm getting errors when I try to save however:</p>
  
  <pre><code>532:M 28 Jun 23:58:30.396 # Failed opening the RDB file backup.rdb (in server root dir /var/lib/redis) for saving: Read-only file system
  </code></pre>
  
  <p>Permissions on the <code>/var/lib/redis</code> folder:</p>
  
  <pre><code>$@/var/lib$ ls -artl | grep redis
  drwxrwxrwx  3 redis    redis    4096 Jun 28 23:58 redis
  </code></pre>
  
  <p>Permissions on the <code>/var/lib</code> folder:</p>
  
  <pre><code>$@/var$ ls -artl | grep lib
  drwxrwxrwx 31 root root  4096 Jun 28 23:44 lib
  </code></pre>
  
  <p>Permissions on the <code>/var</code> folder:</p>
  
  <pre><code>$@/$ ls -artl | grep var
  drwxrwxrwx  11 root root  4096 Jul 18  2016 var
  </code></pre>
  
  <p>Redis CLI output for <code>config get dir</code>:</p>
  
  <pre><code>1) "dir"
  2) "/var/lib/redis"
  </code></pre>
  
  <p>Redis CLI output for <code>config get dbfilename</code>:</p>
  
  <pre><code>1) "dbfilename"
  2) "backup.rdb"
  </code></pre>
  
  <p>Error from redis:</p>
  
  <pre><code>532:M 28 Jun 23:58:30.396 # Failed opening the RDB file backup.rdb (in server root dir /var/lib/redis) for saving: Read-only file system
  </code></pre>
  
  <p>Any help would be much appreciated!</p>