Bug 1163736
| Summary: | [USS]: Need defined rules for snapshot-directory, setting to a/b works but in linux a/b is b is subdirectory of a | |||
|---|---|---|---|---|
| Product: | [Red Hat Storage] Red Hat Gluster Storage | Reporter: | Rahul Hinduja <rhinduja> | |
| Component: | snapshot | Assignee: | Vijaikumar Mallikarjuna <vmallika> | |
| Status: | CLOSED NEXTRELEASE | QA Contact: | Rahul Hinduja <rhinduja> | |
| Severity: | high | Docs Contact: | ||
| Priority: | unspecified | |||
| Version: | rhgs-3.0 | CC: | asengupt, nsathyan, rhs-bugs, rjoseph, smohan, storage-qa-internal, surs, vmallika | |
| Target Milestone: | --- | Keywords: | Triaged, ZStream | |
| Target Release: | --- | |||
| Hardware: | x86_64 | |||
| OS: | Linux | |||
| Whiteboard: | USS | |||
| Fixed In Version: | Doc Type: | Bug Fix | ||
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1168819 1304282 (view as bug list) | Environment: | ||
| Last Closed: | 2016-02-03 09:05:55 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: | 1166590, 1168819, 1304282, 1305868 | |||
|
Description
Rahul Hinduja
2014-11-13 11:35:21 UTC
Version :glusterfs 3.6.0.34 ======== To add a few more similar scenarios to what is mentioned in the 'Description' Setting negative values for snapshot-directory is successful , but accessing from client fails: gluster v set vol2 snapshot-directory -4 volume set: success [root@snapshot13 ~]# gluster v i vol2 Volume Name: vol2 Type: Distributed-Replicate Volume ID: d4881929-339c-4493-b7b9-2ef6957ed444 Status: Started Snap Volume: no Number of Bricks: 2 x 2 = 4 Transport-type: tcp Bricks: Brick1: snapshot13.lab.eng.blr.redhat.com:/rhs/brick3/b3 Brick2: snapshot14.lab.eng.blr.redhat.com:/rhs/brick3/b3 Brick3: snapshot15.lab.eng.blr.redhat.com:/rhs/brick3/b3 Brick4: snapshot16.lab.eng.blr.redhat.com:/rhs/brick3/b3 Options Reconfigured: features.snapshot-directory: -4 features.barrier: disable features.uss: enable performance.readdir-ahead: on auto-delete: disable snap-max-soft-limit: 90 snap-max-hard-limit: 256 [root@dhcp-0-97 vol2_fuse]# cd -4 bash: cd: -4: invalid option cd: usage: cd [-L|-P] [dir] Setting .. also works but accessing from client fails as in linux it takes it one directory back [root@snapshot13 ~]# gluster v set vol2 snapshot-directory .. volume set: success You have new mail in /var/spool/mail/root [root@snapshot13 ~]# gluster v i vol2 Volume Name: vol2 Type: Distributed-Replicate Volume ID: d4881929-339c-4493-b7b9-2ef6957ed444 Status: Started Snap Volume: no Number of Bricks: 2 x 2 = 4 Transport-type: tcp Bricks: Brick1: snapshot13.lab.eng.blr.redhat.com:/rhs/brick3/b3 Brick2: snapshot14.lab.eng.blr.redhat.com:/rhs/brick3/b3 Brick3: snapshot15.lab.eng.blr.redhat.com:/rhs/brick3/b3 Brick4: snapshot16.lab.eng.blr.redhat.com:/rhs/brick3/b3 Options Reconfigured: features.snapshot-directory: .. features.barrier: disable features.uss: enable performance.readdir-ahead: on auto-delete: disable snap-max-soft-limit: 90 snap-max-hard-limit: 256 [root@dhcp-0-97 ,]# cd /mnt/vol2_fuse/ [root@dhcp-0-97 vol2_fuse]# cd .. [root@dhcp-0-97 mnt]# This issue will be fixed in 3.1. |