Joe Julian
2016-Oct-19 23:48 UTC
[Gluster-users] [URGENT] Add-bricks to a volume corrupted the files
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>
Lindsay Mathieson
2016-Oct-19 23:59 UTC
[Gluster-users] [URGENT] Add-bricks to a volume corrupted the files
On 20/10/2016 9:48 AM, Joe Julian wrote:> Personally, with logrotate I use copytruncate. If I want to truncate > the whole shebang manually: > > find -type f -exec truncate --size=0 {} \;Eeep! that looks scary, I just see me running that from root at 3am. -- Lindsay Mathieson