Comments (11)
I will investigate how to rename LeoManager nodes and then share the procedure.
from leofs.
Looking at the following this figure, it is set to "N = 3". However, the result of whereis is "N = 1".
Oh sorry. That screenshot was taken in the production cluster, while as the result of the whereis
- in the test environment during the second attempt to go through all the steps to rename the managers.
Sorry to confuse you and thank you for your consideration
from leofs.
@yosukehara, hello.
Sorry... Have you any news/progress about rename managers procedure?
from leofs.
Sorry... Have you any news/progress about rename managers procedure?
I started investigating this issue on last Friday. I'm still investigating it.
from leofs.
I would like to share the procedure as bellow. I share important things which is to back up all mnesia files of LeoManager nodes so that they can be restored.
[Procedure]
- Stop all nodes
- Stop LeoManager Master node
- Stop LeoManager Slave node
- Stop LeoGateway node(s)
- Stop LeoStorage node(s)
- Move LeoManager's mnesia files (Not COPY)
- Make a directory to store the current mnsia files (Both Master and Slave)
- Move
work/mnesia/127.0.0.1/*
topath/to/mnedia-archive-dir
(Both Master and Slave)
- Modify the configuration
- LeoManager:
- LeoStorage:
- LeoGateway:
- Start all nodes
- Start LeoManager Master node
- Start LeoManager Slave node
- Start LeoStorage node(s)
- Start LeoGateway node(s)
- Execute
leofs-adm status
command to confirm the state (attached
) of the storage nodes - Execute
leofs-adm start
command- Confirm the state of the storage nodes -
running
- Confirm the state of the gateway nodes -
running
- Confirm
Manager RING hash
- Confirm the state of the storage nodes -
from leofs.
Hello, @yosukehara
First of all, thank you for your help!
I tried to perform all the manipulations you described (in the order you specified), but after starting the cluster, information about the buckets was lost...
(There is an assumption that information about users, rights, etc. has also become unavailable ... I did not check, since the lack of buckets is definitely a reason for a rollback)
Please tell me if it is possible to rename managers while preserving all cluster data?
from leofs.
I forgot to share about recreating users, endpoints and buckets.
- How to create an endpoint:
- command:
leofs-adm add-endpoint <endpoint>
- reference: leofs/documentation/s3-api-related-operation/endpoint
- command:
- How to create a user:
- command:
leofs-adm create-user <user-id> <password>
- reference: leofs/documentation/s3-api-related-operation/user
- command:
- How to create a bucket:
- command:
leofs-adm add-bucket <bucket-name> <access-key-id>
- reference: leofs/documentation/s3-api-related-operation/bucket
- command:
- How to update ACL of a bucker:
- command:
leofs-adm update-acl <bucket> <access-key-id> <canned-ACL>
- reference: leofs/documentation/s3-api-related-operation/bucket-acl
- command:
And then you may be able to finally access buckets and objects.
from leofs.
Hello @yosukehara
Sorry for the long feedback…
After testing the steps to recreate users, buckets and endpoints, I can confirm that the bucket's data is available again.
But there is one note: instead of creating users, I used the import-user
command with the old access-key-id
s and secret-access-key
s:
leofs-adm delete-user _test_leofs
leofs-adm import-user <user1> <access-key-id1> <secret-access-key1>
leofs-adm import-user <user2> <access-key-id2> <secret-access-key2>
leofs-adm update-user-role <user1> 9
leofs-adm update-user-role <user2> 9
leofs-adm add-bucket <bucket1> <access-key-id1>
leofs-adm add-bucket <bucket2> <access-key-id2>
leofs-adm update-acl <bucket2> <access-key-id2> public-read
leofs-adm add-endpoint s3.example.net
Thank you very much for your help!
Kind regards.
Igor.
from leofs.
Thank you for sharing. Let me know results of leofs-adm whereis <file-path>
.
- reference: Index of leofs-adm Command Lines
from leofs.
leofs-adm whereis bucket1/materialicons/
-------+-----------------------+--------------------------------------+------------+--------------+----------------+----------------+----------------+----------------------------
del? | node | ring address | size | checksum | has children | total chunks | clock | when
-------+-----------------------+--------------------------------------+------------+--------------+----------------+----------------+----------------+----------------------------
| [email protected] | 19fb02e2870952f21ea4cbd75ca7c1dc | 0B | d41d8cd98f | false | 0 | 5b9a63d8ed7e6 | 2021-01-24 16:28:52 +0200
leofs-adm whereis bucket1/materialicons/icon.css
-------+-----------------------+--------------------------------------+------------+--------------+----------------+----------------+----------------+----------------------------
del? | node | ring address | size | checksum | has children | total chunks | clock | when
-------+-----------------------+--------------------------------------+------------+--------------+----------------+----------------+----------------+----------------------------
| [email protected] | 570ae1b9220891ad6ada0467602e6c4 | 571B | 483145ffe2 | false | 0 | 5b9a63dabf375 | 2021-01-24 16:28:53 +0200
Can you tell me please why has children
for bucket1/materialicons/
is false
?
from leofs.
Thank you for your reply. It seems to be an error in the configuration of LeoManager(Master). Looking at the following this figure, it is set to "N = 3". However, the result of whereis
is "N = 1".
I recommend that you try to start again with #1204 (comment) and #1204 (comment).
from leofs.
Related Issues (20)
- Initiate multipart upload key contain "&" response with malformed xml HOT 1
- Storage compaction fails with garbage_too_long HOT 1
- When executing data-compaction after changing the size of a large object with the same name, the size of the object is incorrect HOT 6
- range requests in leo_gateway access log
- rebalance while compaction is in work on all nodes HOT 3
- work of auto compaction after rebalance HOT 3
- INCONSISTENT HASH | manager node and other nodes. HOT 13
- [ERROR] Mnesia is not available HOT 6
- Project is alive? HOT 13
- Object size not reducing after delete files from bucket HOT 3
- Can`t Run LeoGateway on node with leo_manager, Leo_storage - Node is already running
- what to do if the nodes run out of disk space?
- rebalance failed after detach cmd HOT 1
- LeoFS gateway timeout with poor network performance HOT 3
- mdc_replication.max_targets for 3-way replication HOT 1
- [mdcr] connect second cluster to the existing one (with data) HOT 1
- Pictures are changing too quickly on the main website HOT 1
- The latest news on the website are from 2019
- Trying to get in touch regarding a security issue
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from leofs.