The hidepid option in RHEL has the value 0 by default. This implies that all data is visible to every user. The directory entries in /proc will remain visible but inaccessible when set to 1.To keep the data hidden from /proc, set the value to 2. Run the following command to instantly apply the changes. …
Why Ansible Engine / Tower job fail with ‘Server not found in Kerberos database’ Error ?
My playbook job fails with the error “Server not found in Kerberos database” when executed against a Windows server with Kerberos authentication. TASK [Ping host] ****************************************************************************************************************************************************************************************** fatal: [host01.mydomain.com]: UNREACHABLE! => {"changed": false, "msg": "kerberos: authGSSClientStep() failed: (('Unspecified GSS failure. Minor code may provide more information', 851968), ('Server not found in Kerberos database', -1765328377))", "unreachable": true} …
How to test playbook on Ansible Tower nodes from the command line
Login to the Ansible Tower node and change to awx user. # sudo su -awx If you use a custom virtual environment in Ansible Tower, source it as follows. source /var/lib/awx/venv/ansible/bin/activate For Ansible or your custom virtual environment, export the Python path used during Ansible Tower task executions. On the CentOS 7 Server, run as …
PostgreSQL versions supported by Ansible Tower and Ansible Automation Platform?
On docs.ansible.com, you can find the prerequisites for each Red Hat Ansible Tower and Red Hat Ansible Automation Platform version. Specific Red Hat Ansible Tower and Red Hat Ansible Automation Platform version requirements can be viewed by adjusting the versions in the documents section at the top left of the URL above. Ansible Tower/Controller Version …
How to install and use Ansible collections from Ansible Galaxy having no internet access?
Download the relevant collections’ tarballs from Automation Hub or Ansible Galaxy on a system connected to the internet. You must now do the following actions on each of the Tower nodes: Make a directory for collections, like /opt/collections/ # mkdir /opt/collections/ Change the file’s permissions and group ownership for the sei user as follows. # …
How to upgrade or update Ansible without upgrading Ansible Tower?
Users can upgrade the Ansible version without also upgrading Ansible Tower. Ansible should function well with Tower after being updated to the desired version using package manager (not pip), yum, or apt. When executed from the source, the most recent stable Ansible version is the only version Ansible Tower supports. Ansible cannot be installed using …
How to deactivate Ansible Tower/Automation Platform license/subscription?
You can initiate DELETE /api/v2/config/ API to deactivate Ansible tower or automation platform subscription. The command to deactivate is given below. $ curl -X DELETE https://<MY_ANSIBLE_TOWER_URL>/api/v2/config/ -u admin -kEnter host password for user 'admin': <password for admin user>
Failed to create notification semaphore: Invalid argument – LVM error
lvcreate gives the following error about semaphore. lvcreate -n test_lv10 -L 1G test_vg_3 Found duplicate PV XfbmuZ2c2MPAb8r0TDIBNrcyUx0yMZpu: using /dev/emcpowerh not /dev/sdb Failed to create notification semaphore: Invalid argument Unable to resume test_vg_3-test_lv10 (253:3) Failed to activate new LV. Failed to create notification semaphore: Invalid argument Unable to deactivate test_vg_3-test_lv10 (253:3) Unable to deactivate failed new …
How to create LVM snapshot for system maintenance?
This article shows step-by-step instructions for getting a CentOS system ready and making LVM snapshots for system maintenance or software upgrades. LVM snapshots are meant to be used as a restoration point if anything goes wrong during the upgrade process. The suggestion is to run this procedure in a test environment first. Also, one of …
How to shrink an LVM Logical Volume
Since shrinking is not supported on these file systems, you cannot reduce the size of a logical volume that houses a GFS2 or XFS file system. The lvreduce command typically warns about potential data loss and requests confirmation. In some circumstances, such as when the logical volume is inactive, or the —resizefs option is not …
How to convert a standard partitioned system to LVM?
When you add a new device to the server, you need to partition it up. You only need two of them. This will make a 1GB device for /boot and use the rest for LVM. # fdisk /dev/<new_dev> Command: n Primary?: p Number: 1 Start: <enter> End: 1G Command: n Primary?: p Number: 2 Start: …
How to delete a non-root LVM volume?
If the non-root LVM volume, Volume Group, and Physical Volume used for the LV is no longer needed on the system, they can be deleted using the steps below. If the LVM volume has any critical data, make sure to make a copy of that data before moving on to the following steps. Replace /dev/sdc1 …
How to create LVM in CentOS, AlmaLinux, and RockyLinux?
An LVM is a tool for managing logical volumes. It can assign disks, stripes, mirrors, and change the size of logical volumes. With LVM, a hard drive or set of hard drives is assigned to one or more physical volumes. LVM physical volumes can be put on other block devices, which could include two or …
How to manually destroy an LVM volume in a Linux server?
Use the ‘dd’ command to delete the first few sectors of the physical volume, especially the first four. This will eliminate the disk’s lvm labels, which are used to figure out that the disk is a lvm disk. # dd if=/dev/zero of=/dev/sd<X><Y> bs=512 count=10 Please remember that this would make the partition useless, so a …
Reduce the size of a non-root LVM and allocate that space to the root LVM?
Using the command df <MOUNTPOINT>, find the path to the LVM logical volume device node file (LV_PATH) for the specific filesystem mount point, for instance. df /home Unmount the filesystem (necessitates stopping all access to the filesystem, e.g., for /home, all users will need to log out) Fsck the filesystem Shrink the filesystem Shrink the …