Overview
AUBURN was upgraded to 20.04. I had to re-install Ansible.
Procedure
Upgrade the O/S
Upgrade the O/S
Ran the following commands to upgrade the O/S:
sudo apt -y upgrade sudo apt --fix-broken install -y sudo apt -y upgrade sudo apt -y autoremove
Got the following error messages:
WARNING: PV /dev/xvda5 in VG auburn-vg is using an old PV header, modify the VG to update. WARNING: PV /dev/xvdd in VG auburn-vg is using an old PV header, modify the VG to update.
Fix PV Headers
According to PV is using old PV header, the solution to having an old PV header is:
vgck --updatemetadata vg02
Ran the following command to update the PV header:
sudo vgck --updatemetadata auburn-vg
The output is:
WARNING: PV /dev/xvda5 in VG auburn-vg is using an old PV header, modify the VG to update. WARNING: PV /dev/xvdd in VG auburn-vg is using an old PV header, modify the VG to update. WARNING: updating PV header on /dev/xvda5 for VG auburn-vg. WARNING: updating PV header on /dev/xvdd for VG auburn-vg.
Ran the following command to display the current status of the volume group:
sudo vgdisplay auburn-vg
The output was:
--- Volume group --- VG Name auburn-vg System ID Format lvm2 Metadata Areas 2 Metadata Sequence No 6 VG Access read/write VG Status resizable MAX LV 0 Cur LV 2 Open LV 2 Max PV 0 Cur PV 2 Act PV 2 VG Size <14.52 GiB PE Size 4.00 MiB Total PE 3716 Alloc PE / Size 3461 / <13.52 GiB Free PE / Size 255 / 1020.00 MiB VG UUID E6XhQE-TPUW-eUdX-Oa5D-V0mu-Qibj-66dWrE
Check Current O/S
The current O/S release is displayed as follows:
cat /etc/os-release
The output is:
NAME="Ubuntu" VERSION="20.04.1 LTS (Focal Fossa)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 20.04.1 LTS" VERSION_ID="20.04" HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" VERSION_CODENAME=focal UBUNTU_CODENAME=focal
Ansible Re-installation
Check Ansible Status
Used the following command to check the version of Ansible:
ansible --version
The output was:
Traceback (most recent call last): File "/usr/local/bin/ansible", line 34, infrom ansible import context ModuleNotFoundError: No module named 'ansible'
It appears that Ansible is not installed.
Install Ansible
Used the following command to install Ansible:
sudo pip3 install ansible
Verify Ansible Status
Used the following command to verify status of Ansible:
ansible --version
The output was:
ansible 2.10.2 config file = /etc/ansible/ansible-ocm12c/ansible.cfg configured module search path = ['/home/douglas/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/lib/python3.8/dist-packages/ansible executable location = /usr/local/bin/ansible python version = 3.8.5 (default, Jul 28 2020, 12:59:40) [GCC 9.3.0]