The error "ETXTBSY" and message "Text file busy" is returned from "chown" when trying to change ownership for a file on GFS2 filesystem that is running

Solution In Progress - Updated -

Issue

  • The error ETXTBSY and message Text file busy is returned from chown when trying to change ownership for a file on GFS2 filesystem that is running.
# cp `which top` /gfs2
# /gfs2/top -b > /dev/null 2>&1 &
# chown luci /gfs2/top
chown: changing ownership of `/gfs2/top': Text file busy

5959  newfstatat(AT_FDCWD, "top", {st_mode=S_IFREG|0755, st_size=68392, ...}, AT_SYMLINK_NOFOLLOW) = 0
5959  fchownat(AT_FDCWD, "top", 500, 4294967295, 0) = -1 ETXTBSY (Text file busy)

Environment

  • Red Hat Enterprise Linux Server 5 (with the High Availability and Resilient Storage Add Ons)
  • Red Hat Enterprise Linux Server 6 (with the High Availability and Resilient Storage Add Ons)
  • A Global Filesystem 2(GFS2)
  • kernel-2.6.32-504+

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.