Bug 766530

Summary: pathinfo extended attribute shows latests set block size for all the files
Product: [Community] GlusterFS Reporter: shylesh <shmohan>
Component: stripeAssignee: Venky Shankar <vshankar>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: mainlineCC: gluster-bugs
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: glusterfs-3.4.0 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 815025 (view as bug list) Environment:
Last Closed: 2013-07-24 17:52:40 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: 3.3 master Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 811632, 815025, 817967    

Description shylesh 2011-12-12 09:43:18 UTC
Description of problem:
Pathinfo extended attribute shows latest set block size for the files created with different block size

Version-Release number of selected component (if applicable):
3.3.0qa15

How reproducible:
Always

Steps to Reproduce:
1.Create a stripe volume and mount it 

2.Create some file on mount points , now these files have block size 128KB

3.Change the block size for the volume through volume set, say 1MB

4. Now create some files on the mount point, these files should have block size as 1MB

5. Now execute the command " getfattr -m . -n trusted.glusterfs.pathinfo * "

Actual results:
For all the files block size shown as 1MB

Expected results:
Block size should be same as the size with which the file was created

Additional info:

Comment 1 shylesh 2011-12-12 09:58:20 UTC
Actually it's showing 64MB no matter whatever the blocksize is

Comment 2 Anand Avati 2012-01-03 17:15:37 UTC
CHANGE: http://review.gluster.com/2545 (cluster/stripe: Fix block size reported in pathinfo xattr) merged in master by Vijay Bellur (vijay)

Comment 3 Anand Avati 2012-01-04 07:10:59 UTC
CHANGE: http://review.gluster.com/2549 (cluster/stripe: Fix block size reported in pathinfo xattr) merged in release-3.2 by Vijay Bellur (vijay)

Comment 4 shylesh 2012-01-16 12:48:28 UTC
Now another issue is while verifying this bug

1. Created a stripe volume , touched some files , block size was default
2. changed the block size using volume set to 2MB, whatever the files created after this and previously created files has proper block sizes.
3. Now i changed the stripe size to 8MB, files created after this still shows 2MB as block size

so reopening the bug

Comment 5 Venky Shankar 2012-01-16 15:54:16 UTC
(In reply to comment #4)
> Now another issue is while verifying this bug
> 
> 1. Created a stripe volume , touched some files , block size was default
> 2. changed the block size using volume set to 2MB, whatever the files created
> after this and previously created files has proper block sizes.
> 3. Now i changed the stripe size to 8MB, files created after this still shows
> 2MB as block size

If this is on 3.2, this is known problem as the update is not handled in the reconfigure part. I'll get look that up. It should be fine in master, can you please check that.

Also, for now you remount the volume and then check the block sizes for freshly created files.

> 
> so reopening the bug

Comment 6 Venky Shankar 2012-01-17 05:37:54 UTC
Sorry, my bad. The fix in the reconfigure part is still not in master yet.

Comment 7 shylesh 2012-04-20 09:59:42 UTC
Verified on 3.3 master working fine.