bugGluster - Bugs: bug #22187, truncate and ftruncate in unify

 
 

bug #22187: truncate and ftruncate in unify

Submitted by:  LI Daobing <lidaobing>
Submitted on:  Thu 31 Jan 2008 01:33:40 AM UTC  
 
Category: GlusterFSSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Improper behaviour
Status: FixedPrivacy: Public
Assigned to: Amar Tumballi <amarts>Originator Name: 
Open/Closed: ClosedRelease: 
Operating System: NoneReproducibility: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 31 Jan 2008 06:14:41 PM UTC, comment #1:

Fixed with the way mentioned in 1. (don't send truncate to NS).

code committed in 'glusterfs--mainline--2.5--patch-645'

Amar Tumballi <amarts>
Project MemberIn charge of this item.
Thu 31 Jan 2008 01:33:40 AM UTC, original submission:

Hello,

currently the truncate and ftruncate op in unify is also sent to ns node. it cause the files in the namespace maybe have a non-zero size, but does not occupy space in the disk in default (a file with hole).

consider a unify's ns node is on an afr. when the afr's self heal triggered(for example, one disk is fail and replace with a new disk), it will copy the hole-file to the dirty node. after copy, the file in the recovered node will occupy disk space. This will cause the disk with namespace out of space(BOOM!)

workaround:
1. don't send truncate and ftruncate to the ns node
or
2. when send truncate and ftruncate to the ns node, set the offset to 0

We also need a script to reset all the files in the current namespace to zero-byte.

Thanks,

LI Daobing

LI Daobing <lidaobing>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by amarts (Posted a comment)
  • -unavailable- added by lidaobing (Voted in favor of this item)
  • -unavailable- added by lidaobing (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 31 Jan 2008 06:14:41 PM UTCamartsStatusNone=>Fixed
      Assigned toNone=>amarts
      Open/ClosedOpen=>Closed
    Thu 31 Jan 2008 01:36:00 AM UTClidaobingCarbon-Copy-=>Added lidaobing

    Back to the top


    Powered by Savane 3.1-cleanup1