The storage node of mogilefs is changed from dead to alive

Source: Internet
Author: User

There is a requirement that the dead nodes of mogilefs need to be reused, so offline testing is required. If you directly use the command line:

Mogadm -- trackers = localhost: 6001 device mark mogilestorage2 2 alive

If you mark a dead node as alive, an error is returned:

Error updating device: state_too_high Status cannot go from dead to alive; must use down

So I thought of a mind to directly modify the device table in the database and change it to the alive status;

After modification, run the following command:

Mogadm -- trackers = localhost: 6001 check the status of the test is also normal,

So I saved a few images and marked the node as dead again. The problem came out, and I found that what was stored in it would not automatically

Clear.

Look back: introduction of http://code.google.com/p/mogilefs/wiki/Maintenance

I feel that I really think too much.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.