Backuping a node or a cluster does not want to start, finally resolved.

Germain Maurice germain.maurice at linkfluence.net
Mon May 10 06:51:57 EDT 2010


Hi everybody,

I have a two nodes cluster and i'm trying to backup it before making 
some tests.
The backup process does not want to start, here is the error i'm getting :

root at couch1:~# riak-admin backup riak at 10.0.0.40 riak /reiser/riak-backup 
node
Backing up (node 'riak at 10.0.0.40') to '/reiser/riak-backup-riak at 10.0.0.40'.
{"init terminating in 
do_boot",{{badmatch,{error,{file_error,[47,114,101,105,115,101,114,47,114,105,97,107,45,98,97,99,107,117,112,45|'riak at 10.0.0.40'],eacces}}},[{riak_kv_backup,backup,3},{erl_eval,do_apply,5},{init,start_it,1},{init,start_em,1}]}}
init terminating in do_boot ()

root at couch1:~# riak-admin backup riak at 10.0.0.40 riak /reiser/riak-backup all
Backing up (all nodes) to '/reiser/riak-backup'.
...from ['riak at 10.0.0.40','riak at 10.0.0.41']
{"init terminating in 
do_boot",{{badmatch,{error,{file_error,"/reiser/riak-backup",eacces}}},[{riak_kv_backup,backup,3},{erl_eval,do_apply,5},{init,start_it,1},{init,start_em,1}]}}
init terminating in do_boot ()

My consoles on a each don't throw any errors.

Just before sending this email, i found the solution :
-> the system user of riak process has to have permission of creating 
the backup file, /reiser/riak/backup-file in my case.
/reiser/riak contains /reiser/riak/ring /reiser/riak/innostore ...

If i want to export this backup outside of the node, i expect i have to 
use NFS mount point.
Do you agree with it ?

Thanks
--

Germain Maurice
Administrateur Système/Réseau
Tel : +33.(0)1.42.43.54.33

http://www.linkfluence.net





More information about the riak-users mailing list