Commit b329036a authored by Vitaly Lipatov's avatar Vitaly Lipatov

gfs: improved

parent 103db632
......@@ -15,7 +15,7 @@ fatal()
get_bricks()
{
gluster volume info $GVOLUME | grep Brick"[0-9]" | sed -e "s|Brick[0-9]: ||g"
gluster volume info $GVOLUME | grep Brick"[0-9]" | sed -e "s|Brick[0-9]: ||g" | sed -e "s|.(.*||g" | grep -v "arbiter"
}
set_host_path()
......@@ -229,7 +229,7 @@ get_gfid()
[ -n "$host" ] || return
#trusted.gfid=0x9dd12f564daa42ff94e103a4b0fb0899
# /var/local/eterglust/pub/.glusterfs/9d/d1/9dd12f56-4daa-42ff-94e1-03a4b0fb0899
gfid=$(sshopbrick "getfattr -h -d -m . -e hex" "$file" | grep ^trusted.gfid | sed -e "s|trusted.gfid=0x||g")
gfid=$(sshopbrick "getfattr -h -d -m . -e hex" "$file" | grep ^trusted.gfid=0x | sed -e "s|trusted.gfid=0x||g")
# if file exists, really
if [ -n "$gfid" ] ; then
python -c "import uuid; x=uuid.UUID(hex='$gfid'); print x;"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment