| Summary: | Volume info shows the brick tried to add , even though add-brick was unsuccessful | ||
|---|---|---|---|
| Product: | [Community] GlusterFS | Reporter: | Vijaykumar <vijaykumar> |
| Component: | glusterd | Assignee: | krishnan parthasarathi <kparthas> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Raghavendra Bhat <rabhat> |
| Severity: | medium | Docs Contact: | |
| Priority: | high | ||
| Version: | pre-release | CC: | amarts, gluster-bugs, nsathyan, ujjwala, vijay |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | glusterfs-3.4.0 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-07-24 17:31:37 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | glusterfs-3.3.0qa45 | Category: | --- |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Bug Depends On: | |||
| Bug Blocks: | 817967 | ||
|
Description
Vijaykumar
2011-11-08 06:26:06 UTC
With the introduction of proper volume type changes, this is not seen anymore. gluster volume remove-brick mirror hyperspace:/mnt/sda8/last33
Removing brick(s) can result in data loss. Do you want to Continue? (y/n) y
Remove brick incorrect brick count of 1 for replica 2
root@hyperspace:/home/raghu# gluster volume remove-brick mirror hyperspace:/mnt/sda8/last33 hyperspace:/mnt/sda7/last33
Removing brick(s) can result in data loss. Do you want to Continue? (y/n) y
Remove Brick commit force successful
root@hyperspace:/home/raghu# gluster volume info mirror
Volume Name: mirror
Type: Replicate
Volume ID: 3382aaa7-37d0-4fab-bd3c-dc9a7a350acf
Status: Started
Number of Bricks: 1 x 2 = 2
Transport-type: tcp
Bricks:
Brick1: hyperspace:/mnt/sda7/export3
Brick2: hyperspace:/mnt/sda8/export3
Options Reconfigured:
features.lock-heal: on
features.quota: on
features.limit-usage: /:22GB
diagnostics.latency-measurement: on
diagnostics.count-fop-hits: on
geo-replication.indexing: on
performance.stat-prefetch: on
(reverse-i-search)`': ^C
root@hyperspace:/home/raghu# gluster volume remove-brick hyperspace:/mnt/sda8/export3
Usage: volume remove-brick <VOLNAME> [replica <COUNT>] <BRICK> ... {start|stop|status|commit|force}
root@hyperspace:/home/raghu# gluster volume remove-brick mirror hyperspace:/mnt/sda8/export3
Removing brick(s) can result in data loss. Do you want to Continue? (y/n) y
Removing bricks from replicate configuration is not allowed without reducing replica count explicitly.
root@hyperspace:/home/raghu# gluster volume add-brick mirror hyperspace:/mnt/sda7/last33/
Incorrect number of bricks supplied 1 with count 2
root@hyperspace:/home/raghu# gluster volume add-brick mirror hyperspace:/mnt/sda7/last33/ hyperspace:/mnt/sda8/last33/
/mnt/sda7/last33 or a prefix of it is already part of a volume
root@hyperspace:/home/raghu# gluster volume add-brick mirror hyperspace:/mnt/sda7/last34
Incorrect number of bricks supplied 1 with count 2
root@hyperspace:/home/raghu# gluster volume add-brick mirror hyperspace:/mnt/sda7/last34 hyperspace:/mnt/sda8/last34
Add Brick successful
gluster volume info mirror
Volume Name: mirror
Type: Distributed-Replicate
Volume ID: 3382aaa7-37d0-4fab-bd3c-dc9a7a350acf
Status: Started
Number of Bricks: 2 x 2 = 4
Transport-type: tcp
Bricks:
Brick1: hyperspace:/mnt/sda7/export3
Brick2: hyperspace:/mnt/sda8/export3
Brick3: hyperspace:/mnt/sda7/last34
Brick4: hyperspace:/mnt/sda8/last34
Options Reconfigured:
features.lock-heal: on
features.quota: on
features.limit-usage: /:22GB
diagnostics.latency-measurement: on
diagnostics.count-fop-hits: on
geo-replication.indexing: on
performance.stat-prefetch: on
root@hyperspace:/home/raghu#
Checked with glusterfs-3.3.0qa45. Now remove brick from a replicate volume is not possible without decreasing the replica count. And adding the brick will only if replica count is increased or if same number of bricks is given as the replica count.
|