[Gluster-devel] Implementation of new command to get start and end time of afr crawl

2013-01-10 Thread Venkatesh Somyajulu
Description of problem:

In a replicate volume , When there are files to be self-healed and  an offline 
brick comes online,  the glustershd.log file doesn't report any log messages on 
start of crawl and  end of crawl.

Currently Available options for checking files to be self-healed:-

1. Number of files that has to be self-healed can be obtained from the gluster 
cli command : "gluster volume heal  info"

2. Number of files that got self-healed (Only 1023 entries reported)can be 
obtained from the gluster cli command : "gluster volume heal
info healed"

3. To check pending self-heals other option is to keep monitoring 
".glusterfs/indices/xattrop" directory of the source brick.
   file. It would be helpful if number of files that got self-healed (only the 
count) is also reported in the glustershd.log file.


New Implementation:
---
A new glusterd command is proposed which will give the last 50 crawls 
information.

Below I am describing the initial design plan and need suggestions for the same.

---


Command Name:

gluster volume crawlinfo 

Output [Example is for a replicate volume of replica count 2. Bricks are on two 
different Machines]

Volume Name: Volname
Volume ID:   66cf8864-af11-4b69-9a6a-267011e7f879
Number of Bricks: 1x2 = 2

Crawl info for Brick Number: 1
Brick Info: 192.168.122.1:/volume/brick1

Crawl Number: 1
Start of crawl:  
End of crawl:
Number of entires to be healed:   //Here Number of entries are count of 
entries in the xattrop file.


Crawl Number: 2
Start of crawl: 
End of crawl:   
Number of entries to be healed: 


Crawl info for Brick Number: 2
Brick Info: 192.168.122.2:/volume/brick2

Crawl Number: 1
Start of crawl:  
End of crawl:
Number of entires to be healed:   


Crawl Number: 2
Start of crawl: 
End of crawl:   
Number of entries to be healed: 




If in case crawl is still going on for a brick:
---
Crawl info for brick Number: 1
Brick Info: 192.168.122.1:/volume/brick1

Start of crawl:  
End of crawl:Crawl is still in progress
Number of entries to be healed: 




So for every brick last 50 crawl information will be stored. And command will 
display those last 50 entries for every brick.


Regards,
Venkatesh Somyajulu

___
Gluster-devel mailing list
Gluster-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/gluster-devel


Re: [Gluster-devel] Implementation of new command to get start and end time of afr crawl

2013-01-11 Thread Joe Julian
Yes please! Also some indication of the status of a "heal ... full" 
would be helpful. I hate not knowing, if it's finished or not.


On 01/10/2013 10:48 PM, Venkatesh Somyajulu wrote:

Description of problem:

In a replicate volume , When there are files to be self-healed and  an offline 
brick comes online,  the glustershd.log file doesn't report any log messages on 
start of crawl and  end of crawl.

Currently Available options for checking files to be self-healed:-

1. Number of files that has to be self-healed can be obtained from the gluster cli command : 
"gluster volume heal  info"

2. Number of files that got self-healed (Only 1023 entries reported)can be obtained from the 
gluster cli command : "gluster volume healinfo healed"

3. To check pending self-heals other option is to keep monitoring 
".glusterfs/indices/xattrop" directory of the source brick.
file. It would be helpful if number of files that got self-healed (only the 
count) is also reported in the glustershd.log file.


New Implementation:
---
A new glusterd command is proposed which will give the last 50 crawls 
information.

Below I am describing the initial design plan and need suggestions for the same.

---


Command Name:

gluster volume crawlinfo 

Output [Example is for a replicate volume of replica count 2. Bricks are on two 
different Machines]

Volume Name: Volname
Volume ID:   66cf8864-af11-4b69-9a6a-267011e7f879
Number of Bricks: 1x2 = 2

Crawl info for Brick Number: 1
Brick Info: 192.168.122.1:/volume/brick1

Crawl Number: 1
Start of crawl:  
End of crawl:
Number of entires to be healed:   //Here Number of entries are count of 
entries in the xattrop file.


Crawl Number: 2
Start of crawl: 
End of crawl:   
Number of entries to be healed: 


Crawl info for Brick Number: 2
Brick Info: 192.168.122.2:/volume/brick2

Crawl Number: 1
Start of crawl:  
End of crawl:
Number of entires to be healed: 


Crawl Number: 2
Start of crawl: 
End of crawl:   
Number of entries to be healed: 


 


If in case crawl is still going on for a brick:
---
Crawl info for brick Number: 1
Brick Info: 192.168.122.1:/volume/brick1

Start of crawl:  
End of crawl:Crawl is still in progress
Number of entries to be healed: 




So for every brick last 50 crawl information will be stored. And command will 
display those last 50 entries for every brick.


Regards,
Venkatesh Somyajulu

___
Gluster-devel mailing list
Gluster-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/gluster-devel



___
Gluster-devel mailing list
Gluster-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/gluster-devel


Re: [Gluster-devel] Implementation of new command to get start and end time of afr crawl

2013-01-11 Thread Alex Attarian
I second this! Please make this happen.


On Fri, Jan 11, 2013 at 12:59 AM, Joe Julian  wrote:

> Yes please! Also some indication of the status of a "heal ... full" would
> be helpful. I hate not knowing, if it's finished or not.
>
>
> On 01/10/2013 10:48 PM, Venkatesh Somyajulu wrote:
>
>> Description of problem:
>> 
>> In a replicate volume , When there are files to be self-healed and  an
>> offline brick comes online,  the glustershd.log file doesn't report any log
>> messages on start of crawl and  end of crawl.
>>
>> Currently Available options for checking files to be self-healed:-
>> --**--**
>> 1. Number of files that has to be self-healed can be obtained from the
>> gluster cli command : "gluster volume heal  info"
>>
>> 2. Number of files that got self-healed (Only 1023 entries reported)can
>> be obtained from the gluster cli command : "gluster volume heal
>>info healed"
>>
>> 3. To check pending self-heals other option is to keep monitoring
>> ".glusterfs/indices/xattrop" directory of the source brick.
>> file. It would be helpful if number of files that got self-healed
>> (only the count) is also reported in the glustershd.log file.
>>
>>
>> New Implementation:
>> ---
>> A new glusterd command is proposed which will give the last 50 crawls
>> information.
>>
>> Below I am describing the initial design plan and need suggestions for
>> the same.
>>
>> --**--**
>> --**-
>>
>>
>> Command Name:
>> --**--
>> gluster volume crawlinfo 
>>
>> Output [Example is for a replicate volume of replica count 2. Bricks are
>> on two different Machines]
>> 
>> Volume Name: Volname
>> Volume ID:   66cf8864-af11-4b69-9a6a-**267011e7f879
>> Number of Bricks: 1x2 = 2
>>
>> Crawl info for Brick Number: 1
>> Brick Info: 192.168.122.1:/volume/brick1
>>
>> Crawl Number: 1
>> Start of crawl:  
>> End of crawl:
>> Number of entires to be healed:   //Here Number of entries are
>> count of entries in the xattrop file.
>>
>>
>> Crawl Number: 2
>> Start of crawl: 
>> End of crawl:   
>> Number of entries to be healed: 
>>
>>
>> Crawl info for Brick Number: 2
>> Brick Info: 192.168.122.2:/volume/brick2
>>
>> Crawl Number: 1
>> Start of crawl:  
>> End of crawl:
>> Number of entires to be healed: 
>>
>>
>> Crawl Number: 2
>> Start of crawl: 
>> End of crawl:   
>> Number of entries to be healed: 
>>
>>
>>
>> If in case crawl is still going on for a brick:
>> --**-
>> Crawl info for brick Number: 1
>> Brick Info: 192.168.122.1:/volume/brick1
>>
>> Start of crawl:  
>> End of crawl:Crawl is still in progress
>> Number of entries to be healed: 
>>
>>
>>
>>
>> So for every brick last 50 crawl information will be stored. And command
>> will display those last 50 entries for every brick.
>>
>>
>> Regards,
>> Venkatesh Somyajulu
>>
>> __**_
>> Gluster-devel mailing list
>> Gluster-devel@nongnu.org
>> https://lists.nongnu.org/**mailman/listinfo/gluster-devel
>>
>
>
> __**_
> Gluster-devel mailing list
> Gluster-devel@nongnu.org
> https://lists.nongnu.org/**mailman/listinfo/gluster-devel
>
___
Gluster-devel mailing list
Gluster-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/gluster-devel


Re: [Gluster-devel] Implementation of new command to get start and end time of afr crawl

2013-01-11 Thread Niels de Vos
On Fri, Jan 11, 2013 at 01:48:57AM -0500, Venkatesh Somyajulu wrote:
...
> If in case crawl is still going on for a brick:
> ---
> Crawl info for brick Number: 1
> Brick Info: 192.168.122.1:/volume/brick1
> 
> Start of crawl:  
> End of crawl:Crawl is still in progress
> Number of entries to be healed: 

Can you include how many entries have been healed already? It would be 
helpful to see some progress indicator.

Thanks,
Niels

___
Gluster-devel mailing list
Gluster-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/gluster-devel