Bug 1054705
Summary: | [SNAPSHOT]: snap creation fails when used the same name for different volumes | |||
---|---|---|---|---|
Product: | [Red Hat Storage] Red Hat Gluster Storage | Reporter: | Rahul Hinduja <rhinduja> | |
Component: | snapshot | Assignee: | Vijaikumar Mallikarjuna <vmallika> | |
Status: | CLOSED ERRATA | QA Contact: | Rahul Hinduja <rhinduja> | |
Severity: | urgent | Docs Contact: | ||
Priority: | urgent | |||
Version: | rhgs-3.0 | CC: | nlevinki, nsathyan, rhs-bugs, rjoseph, sdharane, senaik, smohan, spandit, ssamanta, storage-qa-internal | |
Target Milestone: | --- | |||
Target Release: | RHGS 3.0.0 | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | SNAPSHOT | |||
Fixed In Version: | glusterfs-3.6.0-3.0.el6rhs | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1091934 (view as bug list) | Environment: | ||
Last Closed: | 2014-09-22 19:31:50 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | ||||
Bug Blocks: | 1091926, 1091934 |
Description
Rahul Hinduja
2014-01-17 10:14:19 UTC
Snap creation with same snap name fails when we have bricks of those volumes in same Volume Group, because in LVM snapshot name is unique in a Volume Group. This issue is being fixed as we are going with snap UUID. Most probably this fix will be given in next build. A new mechanism where internally snaps are managed using uuids (i.e snapnames and snap volumes for glusterd will be uuids instead of user given name) is being submitted for review. http://review.gluster.org/6709 The Issue will not be fixed even with the UUID as we increase the number of bricks in a volume from same node. We will still be facing the issue of snap creation with Same UUID for LV's belonging to same VG. I think for now we can document this as known issue. We use volume UUID for creating all brick lvms. So with this we cannot have more than one brick from the same lvm volume groups added to the same gluster volume. Linux LVM will not allow to create duplicate LVM names within the volume group. This issue is fixed as part of patch: http://review.gluster.org/#/c/7400/ Patch posted to upstream master branch: http://review.gluster.org/#/c/7461/ Marking snapshot BZs to RHS 3.0. Patch #7461 has multiple fixes. Posted a separate patch to address this issue: http://review.gluster.org/#/c/7581 Setting flags required to add BZs to RHS 3.0 Errata Version : glusterfs-3.6.0.4-1.el6rhs.x86_64 ======= Created a volume with bricks from same volume Group, snap creation on the volume is successful. gluster v info vol0 Volume Name: vol0 Type: Distributed-Replicate Volume ID: ba377b38-b3b9-426b-b6e9-6aa39fe2a9b2 Status: Started Snap Volume: no Number of Bricks: 2 x 2 = 4 Transport-type: tcp Bricks: Brick1: 10.70.44.54:/brick1/b1 Brick2: 10.70.44.55:/brick1/b1 Brick3: 10.70.44.54:/brick2/b2 Brick4: 10.70.44.55:/brick2/b2 Options Reconfigured: features.barrier: disable nfs.drc: off df Filesystem 1K-blocks Used Available Use% Mounted on /dev/mapper/vg_snapshot01-lv_root 45937052 2196784 41406780 6% / tmpfs 4095740 0 4095740 0% /dev/shm /dev/vda1 495844 34609 435635 8% /boot /dev/mapper/VolGroup0-thin_vol0 104806400 33328 104773072 1% /brick0 /dev/mapper/VolGroup0-thin_vol1 104806400 33584 104772816 1% /brick1 /dev/mapper/VolGroup0-thin_vol2 104806400 33616 104772784 1% /brick2 /dev/mapper/VolGroup0-thin_vol3 104806400 33328 104773072 1% /brick3 /dev/mapper/VolGroup1-thin_vol4 104806400 33328 104773072 1% /brick4 /dev/mapper/VolGroup1-thin_vol5 104806400 33328 104773072 1% /brick5 /dev/mapper/VolGroup1-thin_vol6 104806400 33328 104773072 1% /brick6 /dev/mapper/VolGroup1-thin_vol7 104806400 33328 104773072 1% /brick7 /dev/mapper/VolGroup0-eb845753921b4b4497d2da4ffa7c7978_0 104806400 33584 104772816 1% /var/run/gluster/snaps/eb845753921b4b4497d2da4ffa7c7978/brick1 /dev/mapper/VolGroup0-eb845753921b4b4497d2da4ffa7c7978_1 104806400 33616 104772784 1% /var/run/gluster/snaps/eb845753921b4b4497d2da4ffa7c7978/brick3 Marking the bug as 'Verfied' Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHEA-2014-1278.html |