Bug 1004363

Summary: kernel untar on nfs mount failed with "Input/output error" when a brick goes offline and comes back online.
Product: Red Hat Gluster Storage Reporter: spandura
Component: replicateAssignee: Ravishankar N <ravishankar>
Status: CLOSED EOL QA Contact: storage-qa-internal <storage-qa-internal>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 2.1CC: pkarampu, ravishankar, rhs-bugs, rmekala, storage-qa-internal, vagarwal, vbellur
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-12-03 17:23:26 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:

Description spandura 2013-09-04 13:33:51 UTC
Description of problem:
========================
untar of linux kernel from nfs mount failed on a replicate volume ( 1 x 2 ) with "Input/output error" when one of the brick goes offline and comes back online. 

Version-Release number of selected component (if applicable):
===========================================================
glusterfs 3.4.0.30rhs built on Aug 30 2013 08:15:37

How reproducible:
=================
Tried twice. Could observe it only once. 

Steps to Reproduce:
=====================
1.Create a replicate volume ( 1 x 2 ). Start the volume

2.Create nfs mount. 

3.From mount point execute: 

a. "wget -c http://www.kernel.org/pub/linux/kernel/v3.0/linux-3.6-rc4.tar.gz"

b. "mkdir linux_kernel ; tar -zxvf linux-3.6-rc4.tar.gz -C linux_kernel ;"

4. While untar is in progress , bring down one of the brick (kill -KILL <brick_pid>)

5. while untar is in progress, bring back the brick (service glusterd restart). restarted glusterd on both the nodes. 

Actual results:
=================
linux-3.6-rc4/drivers/scsi/aic7xxx/aic7xxx_proc.c
linux-3.6-rc4/drivers/scsi/aic7xxx/aic7xxx_reg.h_shipped
linux-3.6-rc4/drivers/scsi/aic7xxx/aic7xxx_reg_print.c_shipped
linux-3.6-rc4/drivers/scsi/aic7xxx/aic7xxx_seq.h_shipped
tar: linux-3.6-rc4/drivers/scsi/aic7xxx/aic7xxx_seq.h_shipped: Cannot change mode to rw-rw-r--: Input/output error
linux-3.6-rc4/drivers/scsi/aic7xxx/aicasm/
tar: linux-3.6-rc4/drivers/scsi/aic7xxx/aicasm: Cannot mkdir: Input/output error
linux-3.6-rc4/drivers/scsi/aic7xxx/aicasm/Makefile
tar: linux-3.6-rc4/drivers/scsi/aic7xxx/aicasm/Makefile: Cannot open: Input/output error
linux-3.6-rc4/drivers/scsi/aic7xxx/aicasm/aicasm.c
tar: linux-3.6-rc4/drivers/scsi/aic7xxx/aicasm/aicasm.c: Cannot open: Input/output error


Expected results:
=================
untar shouldn't fail


Additional info:
==================

root@hicks [Sep-04-2013-11:39:03] >gluster v info
 
Volume Name: vol_dis_1_rep_2
Type: Replicate
Volume ID: 8fd6bcd1-c3ee-472f-b4ca-10681876ab4a
Status: Started
Number of Bricks: 1 x 2 = 2
Transport-type: tcp
Bricks:
Brick1: hicks.lab.eng.blr.redhat.com:/rhs/bricks/vol_dis_1_rep_2_b0
Brick2: king.lab.eng.blr.redhat.com:/rhs/bricks/vol_dis_1_rep_2_b1
Options Reconfigured:
cluster.self-heal-daemon: on
performance.open-behind: off

Comment 2 spandura 2013-09-04 14:03:07 UTC
Able to recreate the issue once again.

Comment 5 RajeshReddy 2015-11-23 10:29:07 UTC
Tested with 3.1.2 (afrv2.0) and not able to reproduce the reported problem and as per the Dev this is fixed as part of v2 implementation so marking this bug as verified

Comment 6 Vivek Agarwal 2015-12-03 17:23:26 UTC
Thank you for submitting this issue for consideration in Red Hat Gluster Storage. The release for which you requested us to review, is now End of Life. Please See https://access.redhat.com/support/policy/updates/rhs/

If you can reproduce this bug against a currently maintained version of Red Hat Gluster Storage, please feel free to file a new report against the current release.