Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Redis is dumping snapshots to device that is rapidly running out of space.

I've tried mounting a larger device to the snapshot directory, but Redis continues to dump snapshots to the smaller device.

Is there any way to force redis to use the new directory without restarting the service?

share|improve this question
    
The Shutdown command I believe is the only way. –  Belmin Fernandez Sep 27 '11 at 23:06

1 Answer 1

up vote 2 down vote accepted

There are some configuration parameters that can be changed on the fly using the CONFIG SET command. From version 2.2, you can change the working directory at runtime with:

redis-cli> config get dir
redis-cli> config set /path/to/new/dir
share|improve this answer
    
Thank you! Worked perfectly. –  ABentSpoon Sep 28 '11 at 0:26

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.