How to use flock on a GFS2 filesystem for multiple writes to single file?

Updated -

Introduction

This articles describes how to use flock for the use case of multiple cluster nodes writing to the same file on a GFS2 filesystem at the same time. This article focuses on using flock for files that are written to a GFS2 filesystem.

What is flock?

The binary flock is a util...

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content