LVM - How to Activate or Deactivate a Volume Group

Well, I hardly need to activate or deactivate LVM volume groups. But when I do, I also hardly remember the command required to do that. So hopefully, I can refer to this post should I need to perform one of these tasks in the future. Since a volume group is activated by default when it is created, let’s start with a command to deactivate it. # vgchange -a n example_volume_group Like wise, to activate a volume group, use the following command: ...

February 3, 2022 · 1 min · 114 words · kenno

FreeIPA reset failed locked out admin account

This is a short note on how to unlock admin account for FreeIPA. # kinit admin kinit: Client’s credentials have been revoked while getting initial credentials When too many incorrect password attempts are made, the admin account is locked out. To unlock it, perform the following on the FreeIPA server: # ldapmodify -x -D "cn=directory manager" -W Enter LDAP Password: dn: uid=admin,cn=users,cn=accounts,dc=example,dc=com changetype: modify delete: krbLoginFailedCount To process the modification enter Control-D. If it’s successful you’ll receive a this message: ...

February 3, 2022 · 1 min · 94 words · kenno

Freeipa Unable to Communicate With Cms 403

A new post, a new problem, and a solution. Earlier today I worked on a task involving SSSD, System Security Services Daemon, a system service to access remote directories and authentication mechanisms. It got both excited and a little worried at the same times, since it’s been a long while since I had do anything with SSSD. Fast forward to the evening, I realized I had a FreeIPA server set up a long time ago right after passing the Red Hat Certified Specialist in Identity Management exam (EX362). Note this FreeIPA server was actually a second server I had set up after the EX362 exam. The original server was based on CentOS 7. The problem ...

February 2, 2022 · 1 min · 201 words · kenno

Foreman: Create a new product & repository for AlmaLinux

A few days ago I started to re-surrect my Foreman(/katello) server and wanted to use it to pull content from remote repository for AlmaLinux. This involves updating Foreman with a new product and related AlmaLinux repository. I wrote a similar post on creating product & repository using hammer before for EPEL 8. However, it’s been a long while and things could change with the current version of Foreman server. # rpm -qa | egrep -i '^foreman-[0-9]|^katello-[0-9]|^pulp-server-[0-9]' katello-4.3.0-1.el8.noarch foreman-3.1.1-1.el8.noarch # hammer --version hammer (3.1.0) * hammer_cli_foreman (3.1.0) * hammer_cli_foreman_remote_execution (unknown version) * hammer_cli_foreman_tasks (unknown version) * hammer_cli_katello (1.3.1) There would be 3 steps: ...

January 30, 2022 · 4 min · 669 words · kenno

Resizing KVM qcow2 Image

I’m quite sure I’d resized qcow2 images before. However, when I needed to resize an image today for my VM at home, I totally forgot about it. Well, this means it’s a good excuse for me to just write down a few commands to help me in the future. If you try to follow a long, two things you wanna keep in in mind: do it at your own risk, and always backup your data before you make change to it. Having said, that’s get started. ...

December 25, 2021 · 5 min · 902 words · kenno