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
Joe Julian
2016-Oct-20 00:03 UTC
[Gluster-users] [URGENT] Add-bricks to a volume corrupted the files
On 10/19/2016 04:59 PM, Lindsay Mathieson wrote:> 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. >Heh, well then a little less scary might be: find /var/log/glusterfs -type f Then if the list looks correct you can easily find /var/log/glusterfs -type f | xargs truncate --size=0