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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.