Main Menu

Search

HTML - Home - ABOUT TARBOTS


Welcome to tarbots.com
... AI Search Assistant

This site has articles which provides information on everyday commands, procedures & scripts for DevOps & Infrastructure technologies which will be very useful for System Admin, DevOps, CloudOps, Network Admins and any teams or individuals working on Infrastructure technologies.

CLICK HERE to learn more about tarbots.com


Technologies Covered In This Site

HTML - HOME - RECENT ARTICLES TITLE


Recent Articles


PODMAN: How to Setup Podman Registry Instance Running On Non SSL HTTP protocol?

Following are steps to Setup Podman Registry Instance Running On Non SSL HTTP protocol?

1) Install podman (if its not already installed).

dnf -y install podman

2) Run podman instance by pulling container image. In this case we are pulling registry image from Oracle Container registry (OCR)

sudo podman run -d --name ock-registry \
-p 5000:5000 \
-v /var/lib/registry:/var/lib/registry:Z \
--restart=always \
-e REGISTRY_AUTH="" \
container-registry.oracle.com/os/registry:v2.7.1.1

3) Validate that the podman instance is running and podman registry image is pulled. 

For this use below commands.

podman ps -a

podman images


Below is sample outputs of above commands.

CONTAINER ID  IMAGE                                               COMMAND               CREATED        STATUS        PORTS                   NAMES
5cd3575b4a36  container-registry.oracle.com/os/registry:v2.7.1.1  serve /etc/docker...  5 seconds ago  Up 5 seconds  0.0.0.0:5000->5000/tcp  ock-registry

podman images
REPOSITORY                                 TAG         IMAGE ID      CREATED      SIZE
container-registry.oracle.com/os/registry  v2.7.1.1    695bdaead1f4  6 years ago  490 MB
 
4) For connecting from the clients to private registry running on HTTP, set insecure registry.

For this follow below steps.

Edit /etc/containers/registries.conf file and insert the following text at the end of the file.

[[registry]]
location = "localhost:5000"
insecure = true

Reload daemon and restart podman service after the change.

systemctl daemon-reload
systemctl restart podman



Keywords

registry registries private offline air-gapped airgapped air gapped install installation installing setup setting up configure configuring configuration 

LINUX: DMESG Command To Check the Disk IO Timeout Errors On Hard Drive / Attached Storage Devices

Below command can be used to Check the Disk IO Timeout Errors On Hard Drive / Attached Storage Devices

dmesg -T | egrep -i 'sda|blk_update|I/O error|timed out|reset|pvscsi'


In above command replace sda with the device name you want to check the Disk IO timeout errors. 

Note: You can check the devices using "lsblk" command.



Keywords:

timeout time out timing out io ioerror error input output network issue issues disconnect disconnected disconnecting latency slow slowness speed slowly device devices harddrive drive drives attached attaching lun luns iscsi


LINUX: How To Backup and Restore The Data Inside XFS Filesystem on the Linux Hosts?

XFS filesystem can be backed up on Linux hosts using xfsdump.

Below are steps.

Install xfsdump package if it does not exist.

 dnf -y install xfsdump

Backup the xfs filesystem using below xfsdump command.

xfsdump -f <filename>.dump <xfs filesystem to backup>

For example if you want to backup /var/lib/containers XFS filesystem and save the dump to /apps/images.dump, your command will look as follows:

xfsdump -f /apps/images.dump /var/lib/containers

Restore XFS filesystem from backup dump

If you want to restore the XFS filesystem from dump, use below command

xfsrestore -f <filename>.dump <xfs filesystem to restore to>

For example if you want to restore to /var/lib/containers XFS filesystem from the dump /apps/images.dump, your command will look as follows:

xfsrestore -f /apps/images.dump /var/lib/containers



Keywords:

backup backing restore restoring disasterrecovery DR disaster recover recovering dump file files original state 



PODMAN: How To Change /var/tmp (imageCopyTmpDir ) Of Podman To Different Directory?

Below are steps to change the podman tmp directory from default /var/tmp location.


1. Set the podman tmp directory to desired directory. In below command example it is /var/tmp/testdir. Change the /var/tmp/testdir directory to directory of your choice.

$ export TMPDIR=/var/tmp/testdir

2. Restart podman and reload daemon.

Below are commands.

$ sudo systemctl daemon-reload

$ sudo systemctl restart podman

3. Validate podman tmp directory is changed to the new directory set.

Use below command.

$ podman info | grep -i tmp

Below is the output you should see which should change the tmp directory location for imageCopyTmpDir parameter

$ podman info | grep -i tmp

  imageCopyTmpDir: /var/tmp/testdir 



Keywords:

Change Changing Update Updating default custom tmp temp temporary directories directories files file modify modifying cache caching