GlusterFS: {path} or a prefix of it is already part
2014-11-07 10:50
302 查看
Starting with GlusterFS 3.3, one change has been the check to see if a directory (or any of it's ancestors) is already part of a volume. This is causing many support questions in #gluster.
This was implemented because if you remove a brick from a volume and continue to use the volume, you can get file into a state where re-adding a former brick can cause all sort of problems, many of which can result in
data loss.
If you're going to reuse a brick, make sure you know what you're doing.
The Solution
For the directory (or any parent directories) that was formerly part of a volume, simply:
setfattr -x trusted.glusterfs.volume-id $brick_path
setfattr -x trusted.gfid $brick_path
rm -rf $brick_path/.glusterfs
Don't worry if it says that the attribute does not exist. As long as it doesn't exist, you're in good shape.
Finally, restart glusterd to ensure it's not "remembering" the old bricks.
See the bugzilla entry for more details and see Jeff Darcy's article for more information about how GlusterFS uses extended attributes.
Starting with GlusterFS 3.3, one change has been the check to see if a directory (or any of it's ancestors) is already part of a volume. This is causing many support questions in #gluster.
This was implemented because if you remove a brick from a volume and continue to use the volume, you can get file into a state where re-adding a former brick can cause all sort of problems, many of which can result in
data loss.
If you're going to reuse a brick, make sure you know what you're doing.
The Solution
For the directory (or any parent directories) that was formerly part of a volume, simply:
setfattr -x trusted.glusterfs.volume-id $brick_path
setfattr -x trusted.gfid $brick_path
rm -rf $brick_path/.glusterfs
Don't worry if it says that the attribute does not exist. As long as it doesn't exist, you're in good shape.
Finally, restart glusterd to ensure it's not "remembering" the old bricks.
See the bugzilla entry for more details and see Jeff Darcy's article for more information about how GlusterFS uses extended attributes.
相关文章推荐
- GlusterFS创建volume失败的解决方法(* or a prefix of it is already part of a volume)
- glusterfs volume create: testvol: failed: /data/brick1 or a prefix of it is already part of a volume
- GlusterFS创建volume失败的解决方法(* or a prefix of it is already part of a volume)
- GlusterFS创建volume失败的解决方法(* or a prefix of it is already part of a volume)
- a prefix of it is already part of a volume
- sonar 检测代码时报错Module "xxx" is already part of project "xxx"
- [Drupal] How to get the real path of a node, no matter it is a path or a url alias
- Class is not a root resource. It, or one of its interfaces must be annotated with @Path:
- It is time now to proceed to the last part of the speculation
- android studio :The file is not part of the project.Please include it
- Cannot map handler 'algorithmPlatform' to URL path [/execute.do]: There is already handler of type
- Becoming an Xperf Xpert Part 3: The Case of When Auto “wait for it” Logon is Slow
- 错误: Some part of your SQL statement is nested too deeply. Rewrite the query or break it up into smaller queries.
- Please make sure the TESSDATA_PREFIX environment variable is set to the parent directory of your "te
- This manual page is part of Xcode Tools version 5.0
- 记录一下,关于错误提示:could not find a part of path “X:\”的解决办法
- 使用水晶报表11.5 问题 is already open. Do you want to close it?
- 小米手机安装出错:It is possible that this issue is resolved by uninstalling an existing version of
- This implementation is not part of the Windows Platform FIPS validated cryptographic algorithms
- 【问题记录系列】the resource is not on the build path of a java project