Show Table of Contents
2.10.4. Recreating /etc/passwd Entries
For node host recovery, you can recreate the
/etc/passwd entries for all gears if this backup file was lost.
Note
If you are using OpenShift Enterprise 2.1.6 or later, you can instead run the
oo-admin-regenerate-gear-metadata tool on a node host to replace and recover the failed gear data, including /etc/passwd entries.
Procedure 2.8. To Recreate /etc/passwd Entries:
- Get a list of UUIDs from the directories in
/var/lib/openshift. - For each UUID, ensure the UNIX UID and GID values correspond to the group ID of the
/var/lib/openshift/UUIDdirectory. See the fourth value in the output from the following command:#
ls -d -n /var/lib/openshift/UUID - Create the corresponding entries in
/etc/passwd, using another node's/etc/passwdfile for reference.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.