Bug 842373
Summary: | dd fails with "Invalid argument" error on the mount point while creating the file for first time on stripe with replicate volume | |||
---|---|---|---|---|
Product: | [Red Hat Storage] Red Hat Gluster Storage | Reporter: | Sudhir D <sdharane> | |
Component: | glusterfs | Assignee: | shishir gowda <sgowda> | |
Status: | CLOSED ERRATA | QA Contact: | senaik | |
Severity: | urgent | Docs Contact: | ||
Priority: | high | |||
Version: | 2.0 | CC: | amarts, bfoster, gluster-bugs, nsathyan, rfortier, sdharane, shmohan, vbellur | |
Target Milestone: | --- | |||
Target Release: | RHGS 2.1.0 | |||
Hardware: | x86_64 | |||
OS: | Linux | |||
Whiteboard: | ||||
Fixed In Version: | glusterfs-3.4.0qa5-1 | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | ||
Clone Of: | 842364 | |||
: | 842752 (view as bug list) | Environment: | ||
Last Closed: | 2013-09-23 22:32:51 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: | 842364 | |||
Bug Blocks: | 801887, 842752 |
Description
Sudhir D
2012-07-23 15:46:14 UTC
looks to me that the issue is due to recent merge of 'stripe-coalesce' feature. Thats the only feature which started sending back dictionary in _cbk() and check for the extended attributes. most probably the below patch should fix it. diff --git a/xlators/cluster/afr/src/afr-dir-write.c b/xlators/cluster/afr/src/afr-dir-write.c index b7e9bd8..78eaa97 100644 --- a/xlators/cluster/afr/src/afr-dir-write.c +++ b/xlators/cluster/afr/src/afr-dir-write.c @@ -98,7 +98,7 @@ afr_create_unwind (call_frame_t *frame, xlator_t *this) local->cont.create.inode, unwind_buf, &local->cont.create.preparent, &local->cont.create.postparent, - NULL); + local->xdata_rsp); } return 0; @@ -160,8 +160,10 @@ afr_create_wind_cbk (call_frame_t *frame, void *cookie, xlator_t *this, fd_ctx->opened_on[child_index] = AFR_FD_OPENED; fd_ctx->flags = local->cont.create.flags; - if (local->success_count == 0) + if (local->success_count == 0) { local->cont.create.buf = *buf; + local->xdata_rsp = dict_ref (xdata); + } if (child_index == local->read_child_index) { local->cont.create.read_child_buf = *buf; Ugh, guess I never tested AFR. Thanks Amar... your change fixes this problem. Patch posted: http://review.gluster.com/3713 CHANGE: http://review.gluster.com/3713 (afr: pass back xdata in create) merged in master by Anand Avati (avati) Verified on gluster version : glusterfs 3.4.0qa5 1) Stripe Replicate Volume : - created a stripe replicated volume and performed the following operations from the mount point : [root@unused stripe_replicate]# dd if=/dev/urandom of=file1 bs=1024count=10000 10000+0 records in 10000+0 records out 10240000 bytes (10 MB) copied, 1.81203 s, 5.7 MB/s root@unused stripe_replicate]# vi test_file [root@unused stripe_replicate]# cat test_file this is a test file [root@unused stripe_replicate]# echo "hello worl" >>test_file Performed the same operations with coalesce on and it succeeded . 2) Distribute Stripe Replicate Volume : - created a Distributed Stripe Replicate Volume and performed the following operations from the mount point : [root@unused dis_stripe_replicate]# dd if=/dev/urandom of=file1 bs=1024 count=10000 10000+0 records in 10000+0 records out 10240000 bytes (10 MB) copied, 1.84651 s, 5.5 MB/s [root@unused dis_stripe_replicate]# vi test_file2 [root@unused dis_stripe_replicate]# cat test_file2 testing bug 842364 Performed the same operation with coalesce on and it succeeded . 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/RHBA-2013-1262.html |