Bug 1529285
| Summary: | snapshot creation not working if thin provisioned brick LV is mounted via autofs | ||
|---|---|---|---|
| Product: | [Community] GlusterFS | Reporter: | Arnd Gronenberg <arnd> |
| Component: | snapshot | Assignee: | bugs <bugs> |
| Status: | CLOSED EOL | QA Contact: | |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 3.10 | CC: | bugs |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2018-06-20 18:25:08 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: | |||
This bug reported is against a version of Gluster that is no longer maintained (or has been EOL'd). See https://www.gluster.org/release-schedule/ for the versions currently maintained. As a result this bug is being closed. If the bug persists on a maintained version of gluster or against the mainline gluster repository, request that it be reopened and the Version field be marked appropriately. |
Description of problem: Trying to create snapshot of thin provisioned gluster brick LV which is mounted via autofs does not work Version-Release number of selected component (if applicable): glusterfs 3.10 How reproducible: Happens for all thin provisioned gluster brick LVs which are mounted via autofs Steps to Reproduce: 1. Create thin pool 2. Create thin provisioned LV for brick and format it with xfs 3. Create autofs setup 3.1. /etc/auto.master: +dir:/etc/auto.master.d 3.2. /etc/auto.master.d/glusterd.autofs: /- /etc/auto.glusterd --timeout=0 3.3. /etc/auto.glusterd: /data/glusterfs/test/brick1 -fstype=xfs,defaults,rw,noatime,nodiratime,largeio,inode64,swalloc,allocsize=64M :/dev/vg00/glusterfs_test_1 4. Start autofs systemctl start autofs 5. Create gluster volume gluster volume create test transport tcp localhost:/data/glusterfs/test/brick1/brick 6. Try to create snapshot gluster snapshot create snapshot_test test no-timestamp Actual results: Error messsage: "Snapshot is supported only for thin provisioned LV. Ensure that all bricks of test are thinly provisioned LV." In log: [glusterd-snapshot.c:2004:glusterd_is_thinp_brick] 0-management: Failed to get pool name for device /etc/auto.glusterd Expected results: Snapshot successfully created Additional info: Cause is in glusterd-utils.c function glusterd_get_mnt_entry_info: getmntent_r reads through mount points, for autofs mounted fs there are two mountpoints, first with fstype autofs and second with read fstype Output of findmnt /data/glusterfs/test/brick1: TARGET SOURCE FSTYPE OPTIONS /data/glusterfs/test/brick1 /etc/auto.glusterd autofs rw,... /data/glusterfs/test/brick1 /dev/mapper/vg00-glusterfs_test_1 xfs rw,... Solution would be to check for fstype=autofs in while loop and skip to next mount entry