Chinaunix首页 | 论坛 | 博客
  • 博客访问: 171571
  • 博文数量: 29
  • 博客积分: 2110
  • 博客等级: 大尉
  • 技术积分: 325
  • 用 户 组: 普通用户
  • 注册时间: 2006-07-01 11:32
文章分类

全部博文(29)

文章存档

2012年(3)

2010年(4)

2009年(5)

2007年(16)

2006年(1)

我的朋友

分类: LINUX

2012-12-25 18:07:46

从glusterfs 3.3开始,有个变化:gluster 会一直check 目录是否已经是volume的一部分,如果你将brick从volume移除后再次使用时,会导致许多问题,甚至是数据丢失。
目的是重用原来的brick时,需要让你知道你在做什么

需要重用原来brick时,执行如下操作
setfattr -x trusted.glusterfs.volume-id $brick_path
setfattr -x trusted.gfid $brick_path
rm -rf $brick_path/.glusterfs

重启glusterd 服务即可或run script :

点击(此处)折叠或打开

  1. #! /bin/sh
  2. read -p "Enter you will reuse brick path:" brick_path
  3. setfattr -x trusted.glusterfs.volume-id $brick_path
  4. setfattr -x trusted.gfid $brick_path
  5. rm -rf $brick_path/.glusterfs
  6. service glusterd restart

阅读(2879) | 评论(0) | 转发(1) |
给主人留下些什么吧!~~