gluster-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gluster-devel] dht diir self-heal/fix-layout fixes


From: Amar Tumballi
Subject: Re: [Gluster-devel] dht diir self-heal/fix-layout fixes
Date: Mon, 08 Oct 2012 15:40:06 +0530
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120911 Thunderbird/15.0.1

On 10/05/2012 09:36 AM, Shishir Gowda wrote:
Hi All,

Few enhancements/fixes for dht's directory self-heal and fix-layout.

Problem:

1.When a dht's subvolume is down, with self-heal/fix-layout directories might 
get new layouts.
   Since the subvolume is down, a create will succeed on the newer hashed 
subvol.
   If a file already exists in the downed subvol, then we end up with duplicate 
entries.

2. When a subvolume run's out of space, dht_layout_anomalies currently treats 
it as downed brick.


Proposed solution:

1. Make sure dht_layout_anomalies handles both ENOTCONN and ENOSPC separately.
2. In self-heal/fix-layout treat ENOTCONN as fatal error, and fail the new 
layout ops.
3. In case of ENOSPC error
    a. If fix-layout: fix the layout
    b. If self-heal of dir: Create dir if required (and ignore failures if 
any), and write the layout.

The tracking bug for this fix is: 860663

Comments welcome.

Looks good for me.

Avati/Jeff, any thoughts?

Regards,
Amar



reply via email to

[Prev in Thread] Current Thread [Next in Thread]