Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | Membase | Membase Server 1.6.x

When I restore the backup copy,Some errors occured!

6 replies [Last post]
  • Login or register to post comments
Tue, 05/10/2011 - 03:19
haoguoliang
Offline
Joined: 04/28/2011
Groups: None

My cluster has two nodes A、B
1、set some data into cluster
2、/opt/membase/bin/ep_engine/management/mbbackup /var/opt/membase/1.6.5/data/ns_1/default /var/backup/20110510/
3、echo 'flush_all' | nc 10.1.1.22 11211
4、/opt/membase/bin/ep_engine/management/mbrestore -a /var/opt/membase/1.6.5/data/ns_1/default /var/backup/20110510/default-*.mb

Some error occured:
The backup files need to be upgraded to version 2.
Either use dbupgrade or contact support.

What should I do?

Top
  • Login or register to post comments
Tue, 05/10/2011 - 16:50
perry
Offline
Joined: 10/11/2010
Groups:

That's not how you use mbrestore, please look at the documentation available here: http://techzone.couchbase.com/wiki/display/membase/Membase+Server+versio...

If you want to use the backup files, you can just put them in the data directory and restart the service.

mbrestore will read the k/v pairs from the database and load them back into a cluster (you need to give it the IP address and port). You're also running into a known bug: http://techzone.couchbase.com/issues/browse/MB-3360

Perry

__________________

Forum support is great for free but sometimes you need a guaranteed response time and dedicated resources for your questions or issues.
Consider purchasing enterprise-level support from Couchbase: http://www.couchbase.com/products-and-services/overview
Call or email "sales -at- couchbase-dot- com" today!

Top
  • Login or register to post comments
Tue, 05/10/2011 - 18:43
haoguoliang
Offline
Joined: 04/28/2011
Groups: None

Get one server for example,in my data directory,Files below:

[root@mem-01 management]# ll /var/opt/membase/1.6.5/data/ns_1/
total 1607136
-rw-r--r-- 1 membase membase 46080 May 11 01:41 default
-rw-r--r-- 1 membase membase 409443328 May 10 12:12 default-0.mb
-rw-r--r-- 1 membase membase 32768 May 10 12:11 default-0.mb-shm
-rw-r--r-- 1 membase membase 1233528 May 10 12:12 default-0.mb-wal
-rw-r--r-- 1 membase membase 409423872 May 10 12:12 default-1.mb
-rw-r--r-- 1 membase membase 32768 May 10 12:11 default-1.mb-shm
-rw-r--r-- 1 membase membase 1224096 May 10 12:12 default-1.mb-wal
-rw-r--r-- 1 membase membase 409439232 May 10 12:12 default-2.mb
-rw-r--r-- 1 membase membase 32768 May 10 12:11 default-2.mb-shm
-rw-r--r-- 1 membase membase 1231432 May 10 12:12 default-2.mb-wal
-rw-r--r-- 1 membase membase 409417728 May 10 12:12 default-3.mb
-rw-r--r-- 1 membase membase 32768 May 10 12:11 default-3.mb-shm
-rw-r--r-- 1 membase membase 1362432 May 10 12:12 default-3.mb-wal
-rw-r--r-- 1 membase membase 32768 May 11 03:32 default-shm
-rw-r--r-- 1 membase membase 1053272 May 11 03:32 default-wal
-rw-r--r-- 1 membase membase 23 May 10 11:50 isasl.pw
-rw-r--r-- 1 membase membase 326 May 10 11:50 ns_log

When I do backup,Only 5 files backuped:

sudo -u membase /opt/membase/bin/ep_engine/management/mbbackup /var/opt/membase/1.6.5/data/ns_1/default /var/backup/20110510/

[root@mem-01 management]# ll /var/backup/20110510/
total 1601224
-rw-r--r-- 1 membase membase 46080 May 10 10:35 default
-rw-r--r-- 1 membase membase 409982976 May 10 10:35 default-0.mb
-rw-r--r-- 1 membase membase 408996864 May 10 10:35 default-1.mb
-rw-r--r-- 1 membase membase 410011648 May 10 10:36 default-2.mb
-rw-r--r-- 1 membase membase 408984576 May 10 10:36 default-3.mb

After that,

1、do 'flush_all'

2、stop the server

3、copy the files in /var/backup/20110510/ to /var/opt/membase/1.6.5/data/ns_1/

4、start the server

5、do 1-4 steps on another server

Unfortunately,It does not work!!

Should I backup all the files(include default-0.mb-shm、default-0.mb-wal etc)?

What do the files suffixed by mb-wal、mb-shm mean?

Wait for your Reply! Thank you!

Top
  • Login or register to post comments
Tue, 05/10/2011 - 20:53
haoguoliang
Offline
Joined: 04/28/2011
Groups: None

Sorry,perry,I leave the config file not backuped!After I restored the config file,It works!

Another question:

Can node A restore from node B's backup?

Top
  • Login or register to post comments
Wed, 05/11/2011 - 16:05
perry
Offline
Joined: 10/11/2010
Groups:

Glad you got it working!

The current version does not allow node A to restore from node B's backup...the config is specifically tied to the database files and includes the IP address of the node.

We are working on a feature to be able to restore any data files into any node. Keep in mind that you will still need to restore ALL the files, but it won't matter which nodes you put them on.

__________________

Forum support is great for free but sometimes you need a guaranteed response time and dedicated resources for your questions or issues.
Consider purchasing enterprise-level support from Couchbase: http://www.couchbase.com/products-and-services/overview
Call or email "sales -at- couchbase-dot- com" today!

Top
  • Login or register to post comments
Wed, 05/11/2011 - 22:02
haoguoliang
Offline
Joined: 04/28/2011
Groups: None

Thank you very much for your reply.

/opt/membase/1.6.5/bin/cli/membase server-list -c 10.1.1.160:8091

Some error occured:

ERROR: command: server-list: 10.1.1.160:8091, 'otpNode'

Top
  • Login or register to post comments
Wed, 05/18/2011 - 11:03
perry
Offline
Joined: 10/11/2010
Groups:

You need to supply a username and password, the error message is incorrect and I will file a bug.

__________________

Forum support is great for free but sometimes you need a guaranteed response time and dedicated resources for your questions or issues.
Consider purchasing enterprise-level support from Couchbase: http://www.couchbase.com/products-and-services/overview
Call or email "sales -at- couchbase-dot- com" today!

Top
  • Login or register to post comments
  • Login or register to post comments
  • Login
  • Register

Company

  • About Us
  • Leadership
  • Customers
  • Partners
  • Contact Us

Product

  • Couchbase Server
  • Couchbase SDKs
  • Use Cases
  • Documentation
  • Forums

Open Source

  • Couchbase Project
  • Couchbase vs. CouchDB

Commercial

  • Subscriptions & Support
  • Training & Services

News

  • Blog
  • Newsletter
  • Press Releases
  • Buzz

Follow Us

    
  • Customer Login
  • Terms of Service
  • Privacy Policy
  • Trademark Policy
  • Site Map

© 2013 COUCHBASE All rights reserved.

Sign in to Couchbase Community

close
  • Create new account
  • Request new password
You are logging into the Forums, Wiki and Issue Tracker