Bug 859406
Summary: | [RHEV-RHS] readv failures from posix-aio during rebalance | ||
---|---|---|---|
Product: | [Red Hat Storage] Red Hat Gluster Storage | Reporter: | Anush Shetty <ashetty> |
Component: | glusterd | Assignee: | Ric Wheeler <rwheeler> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | shylesh <shmohan> |
Severity: | unspecified | Docs Contact: | |
Priority: | high | ||
Version: | 2.0 | CC: | aavati, grajaiya, iheim, nsathyan, rhs-bugs, rwheeler, vbellur |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | glusterfs-3.3.0rhsvirt1-7.el6rhs | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-08-10 07:47:31 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: |
Description
Anush Shetty
2012-09-21 13:34:51 UTC
patch http://review.gluster.org/3997 fixes the initial problem of lookup getting INVAL... that makes the resolving proper. [root@rhs-arch-srv4 glusterfs]# dd if=/dev/zero of=/mnt/glusterfs/abcd oflag=direct bs=4k count=10 10+0 records in 10+0 records out 40960 bytes (41 kB) copied, 0.00637862 s, 6.4 MB/s [root@rhs-arch-srv4 glusterfs]# dd if=/dev/zero of=/mnt/glusterfs/abcd1 bs=4k count=10 10+0 records in 10+0 records out 40960 bytes (41 kB) copied, 0.00794557 s, 5.2 MB/s [root@rhs-arch-srv4 glusterfs]# dd if=/dev/zero of=/mnt/glusterfs/abcd2 bs=300 count=300 dd: writing `/mnt/glusterfs/abcd2': Invalid argument 1+0 records in 0+0 records out 0 bytes (0 B) copied, 0.00156413 s, 0.0 kB/s ====================== Noticed that if the block size is same as 512*n, then the 'linux-aio' option works. If it is not that case, we are currently facing problems, as described in the bug description. [2012-09-28 00:22:44.111100] E [posix-aio.c:236:posix_aio_writev_complete] 0-test-vol-posix: writev(async) failed fd=17,offset=0 (-22/Invalid argument) [2012-09-28 00:22:44.111156] I [server-rpc-fops.c:1421:server_writev_cbk] 0-test-vol-server: 3119: WRITEV 0 (1b66d283-3eb8-4392-b701-4b0a9e9c5fd3) ==> (Invalid argument) I am thinking, we should fall back to the regular read/write if block-size is not aligned with 512 bytes. merged upstream, will send a backport to downstream... verified on "Beta - RHS 2.0 with virt support" (RHS-2.0-20121031.0-RHS-x86_64-DVD1.iso) and build 1-8 |