Bug 764915 (GLUSTER-3183)
Summary: | When creating volumes brick paths are not handled properly. | ||
---|---|---|---|
Product: | [Community] GlusterFS | Reporter: | Sachidananda Urs <sac> |
Component: | cli | Assignee: | Sachidananda Urs <sac> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | mainline | CC: | gluster-bugs, rabhat |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | Type: | --- | |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | master | Category: | --- |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Sachidananda Urs
2011-07-16 16:48:48 UTC
Same as the case with replace-brick, remove-brick, log-filename, log-locate, top. Replace brick: root@odin:~# gluster volume info bar Volume Name: bar Type: Distribute Status: Created Number of Bricks: 2 Transport-type: tcp Bricks: Brick1: odin:/tmp/exports/bar-a Brick2: odin:/tmp/exports/bar-b root@odin:~# gluster volume start bar Starting volume bar has been successful root@odin:~# gluster volume replace-brick bar odin://tmp//exports//bar-b odin:/tmp//exports//bar-rep start brick: odin://tmp//exports//bar-b does not exist in volume: bar root@odin:~# root@odin:~# gluster volume replace-brick bar odin:/tmp/exports/bar-b odin:/tmp//exports//bar-rep start replace-brick started successfully root@odin:~# gluster volume replace-brick bar odin:/tmp/exports/bar-b odin:/tmp//exports//bar-rep commit replace-brick commit successful root@odin:~# gluster volume info bar Volume Name: bar Type: Distribute Status: Started Number of Bricks: 2 Transport-type: tcp Bricks: Brick1: odin:/tmp/exports/bar-a Brick2: odin:/tmp//exports//bar-rep root@odin:~# PATCH: http://patches.gluster.com/patch/7958 in master (Canonicalize path names while creating volumes.) Sac sent a patch to fix it. Need to add test cases for testing it. PATCH: http://patches.gluster.com/patch/7959 in master (Strip extra `/' from filenames.) CHANGE: http://review.gluster.com/124 (Use cli_canonicalize_path instead, to remove trailing/duplicate slashes.) merged in master by Anand Avati (avati) Checked with glusterfs-3.3 qa releases. Its detecting duplicate entries. gluster volume create new hyperspace:/tmp/1 hyperspace:/tmp//////1 Found duplicate exports hyperspace:/tmp/1 Usage: volume create <NEW-VOLNAME> [stripe <COUNT>] [replica <COUNT>] [transport <tcp|rdma|tcp,rdma>] <NEW-BRICK> ... root@hyperspace:/home/raghu# ls /tmp/ d49b05d8102906fba502e89e84ae32ad.socket logs.tgz orbit-raghu pulse-2L9K88eMlGn7 pulse-vVuBdxd2plCp virtual-raghu.NAU091 keyring-HYkTZv orbit-gdm plugtmp pulse-PKdhtXMmr18n ssh-bJCGoGHW2119 root@hyperspace:/home/raghu# mkdir /tmp/1 root@hyperspace:/home/raghu# mkdir /tmp////1 mkdir: cannot create directory `/tmp////1': File exists root@hyperspace:/home/raghu# cd /tmp/ root@hyperspace:/tmp# ls 1 keyring-HYkTZv orbit-gdm plugtmp pulse-PKdhtXMmr18n ssh-bJCGoGHW2119 d49b05d8102906fba502e89e84ae32ad.socket logs.tgz orbit-raghu pulse-2L9K88eMlGn7 pulse-vVuBdxd2plCp virtual-raghu.NAU091 root@hyperspace:/tmp# ln -s 2 1 root@hyperspace:/tmp# root@hyperspace:/tmp# ls 1 keyring-HYkTZv orbit-gdm plugtmp pulse-PKdhtXMmr18n ssh-bJCGoGHW2119 d49b05d8102906fba502e89e84ae32ad.socket logs.tgz orbit-raghu pulse-2L9K88eMlGn7 pulse-vVuBdxd2plCp virtual-raghu.NAU091 root@hyperspace:/tmp# ln -s 1 2 root@hyperspace:/tmp# root@hyperspace:/tmp# ls 1 d49b05d8102906fba502e89e84ae32ad.socket logs.tgz orbit-raghu pulse-2L9K88eMlGn7 pulse-vVuBdxd2plCp virtual-raghu.NAU091 2 keyring-HYkTZv orbit-gdm plugtmp pulse-PKdhtXMmr18n ssh-bJCGoGHW2119 root@hyperspace:/tmp# stat 2 File: `2' -> `1' Size: 1 Blocks: 0 IO Block: 4096 symbolic link Device: 803h/2051d Inode: 678840 Links: 1 Access: (0777/lrwxrwxrwx) Uid: ( 0/ root) Gid: ( 0/ root) Access: 2011-08-25 14:05:31.000000000 +0530 Modify: 2011-08-25 14:05:31.000000000 +0530 Change: 2011-08-25 14:05:31.000000000 +0530 root@hyperspace:/tmp# cd root@hyperspace:~# gluster volume create new hyperspace:/tmp/1 hyperspace:/tmp/2 Found duplicate exports hyperspace:/tmp/1 Usage: volume create <NEW-VOLNAME> [stripe <COUNT>] [replica <COUNT>] [transport <tcp|rdma|tcp,rdma>] <NEW-BRICK> ... root@hyperspace:~# |