[Gluster-users] [URGENT] Add-bricks to a volume corrupted the files

Joe Julian joe at julianfamily.org
Wed Oct 19 23:48:00 UTC 2016


On 10/19/2016 04:46 PM, Lindsay Mathieson wrote:
> On 20/10/2016 9:30 AM, Joe Julian wrote:
>>> Joe, when you say truncated, just delete the logs before the test is 
>>> started?
>>>
>>
>> That's one way of doing it, yes. :)
>
> nb: I've noticed that if you delete the logs while gluster is running 
> they won't be recreated, you have to restart the services. Is there a 
> better way of doing it?
>

Personally, with logrotate I use copytruncate. If I want to truncate the 
whole shebang manually:

     find -type f -exec truncate --size=0 {} \;

> -- 
> Lindsay Mathieson
>
>
> _______________________________________________
> Gluster-users mailing list
> Gluster-users at gluster.org
> http://www.gluster.org/mailman/listinfo/gluster-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.gluster.org/pipermail/gluster-users/attachments/20161019/45f9705b/attachment.html>


More information about the Gluster-users mailing list