<html><body><div style="color:#000; background-color:#fff; font-family:Courier New, courier, monaco, monospace, sans-serif;font-size:10pt"><div>I've created a distributed replicated volume:</div><div><br></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: Courier New,courier,monaco,monospace,sans-serif; background-color: transparent; font-style: normal;">> gluster> volume info<br>> <br>> Volume Name: Repositories<br>> Type: Distributed-Replicate<br>> Volume ID: 926262ae-2aa6-4bf7-b19e-cf674431b06c<br>> Status: Started<br>> Number of Bricks: 2 x 2 = 4<br>> Transport-type: tcp<br>> Bricks:<br>> Brick1: 192.168.1.1:/srv/sda7<br>> Brick2: 192.168.1.2:/srv/sda7<br>> Brick3: 192.168.1.1:/srv/sdb7<br>> Brick4: 192.168.1.2:/srv/sdb7<br></div><div><br></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: Courier New,courier,monaco,monospace,sans-serif; background-color:
transparent; font-style: normal;">...and begun migrating data from one brick to another as a PoC:</div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: Courier New,courier,monaco,monospace,sans-serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: Courier New,courier,monaco,monospace,sans-serif; background-color: transparent; font-style: normal;">> gluster> volume replace-brick Repositories 192.168.1.1:/srv/sda7 192.168.1.1:/srv/sda8 start<br>> replace-brick started successfully<br>> <br>> gluster> volume replace-brick Repositories 192.168.1.1:/srv/sda7 192.168.1.1:/srv/sda8 status<br>> Number of files migrated = 5147 Current file= /centos/5.8/os/x86_64/CentOS/gnome-pilot-conduits-2.0.13-7.el5.x86_64.rpm <br>> gluster> volume replace-brick Repositories 192.168.1.1:/srv/sda7
192.168.1.1:/srv/sda8 status<br>> Number of files migrated = 24631 Migration complete <br><br></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: Courier New,courier,monaco,monospace,sans-serif; background-color: transparent; font-style: normal;">After the migration is finished, though, the list of bricks is wrong:<br></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: Courier New,courier,monaco,monospace,sans-serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: Courier New,courier,monaco,monospace,sans-serif; background-color: transparent; font-style: normal;">> gluster> volume heal Repositories
info <br>> Heal operation on volume Repositories has been successful<br>> <br>> Brick 192.168.1.1:/srv/sda7<br>> Number of entries: 0<br>> <br>> Brick 192.168.1.2:/srv/sda7<br>> Number of entries: 0<br>> <br>> Brick 192.168.1.1:/srv/sdb7<br>> Number of entries: 0<br>> <br>> Brick 192.168.1.2:/srv/sdb7<br>> Number of entries: 0</div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: Courier New,courier,monaco,monospace,sans-serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family:
Courier New,courier,monaco,monospace,sans-serif; background-color: transparent; font-style: normal;">...and the XFS attributes are still intact on the old brick:</div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: Courier New,courier,monaco,monospace,sans-serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: Courier New,courier,monaco,monospace,sans-serif; background-color: transparent; font-style: normal;">> [eric@sn1 ~]$ for x in sda7 sdb7 sda8 ; do sudo getfattr -m - /srv/$x 2> /dev/null ; done<br>> # file: srv/sda7<br>> trusted.afr.Repositories-client-0<br>> trusted.afr.Repositories-client-1<br>> trusted.afr.Repositories-io-threads<br>> trusted.afr.Repositories-replace-brick<br>> trusted.gfid<br>> trusted.glusterfs.dht<br>> trusted.glusterfs.pump-path<br>> trusted.glusterfs.volume-id<br>> <br>> # file:
srv/sdb7<br>> trusted.afr.Repositories-client-2<br>> trusted.afr.Repositories-client-3<br>> trusted.gfid<br>> trusted.glusterfs.dht<br>> trusted.glusterfs.volume-id<br>> <br>> # file: srv/sda8<br>> trusted.afr.Repositories-io-threads<br>> trusted.afr.Repositories-replace-brick<br>> trusted.gfid<br>> trusted.glusterfs.volume-id<br></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: Courier New,courier,monaco,monospace,sans-serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: Courier New,courier,monaco,monospace,sans-serif; background-color: transparent; font-style: normal;">Have I missed a step? Or: Is this (i.e., clean-up) a bug or functionality that hasn't been implemented yet?</div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: Courier New,courier,monaco,monospace,sans-serif; background-color:
transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: Courier New,courier,monaco,monospace,sans-serif; background-color: transparent; font-style: normal;">Eric Pretorious</div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: Courier New,courier,monaco,monospace,sans-serif; background-color: transparent; font-style: normal;">Truckee, CA<br></div></div></body></html>