How to change the timezone of containers running in k8s

rm -rf /etc/localtime ln -s /usr/share/zoneinfo/Asia/Tehran /etc/localtime dpkg-reconfigure -f noninteractive tzdata 2. Change the timezone via k8s mount hostPath: spec: containers: – name: nginx image: nginx ports: – containerPort: 80 name: nginx volumeMounts: – name: tz-config mountPath: /etc/localtime volumes: – name: tz-config hostPath: path: /usr/share/zoneinfo/Asia/Tehran

Install NetBackup Client on Solaris / Linux

Download / Untar NetBackup Client binary package and exec installation script: ### FYI, Just NetBackup master server hostname is required during installation. [root @ soltest]/tmp # tar -xf NetBackup_7.6.0.1_CLIENTS1.tar [root @ soltest]/tmp # cd NetBackup_7.6.0.1_CLIENTS1 [root @ soltest]/tmp/NetBackup_7.6.0.1_CLIENTS1 # ./install Symantec Installation Script Copyright 1993 – 2013 Symantec Corporation, All Rights Reserved. Installing NetBackup Client … Read more

How To Install and Configure DellEMC PowerPath on Linux (RHEL/CentOS)

NOTICE: Before you start DellEMC powerpath installation and configuration, make sure HBA cards are installed on the server and Fiber channel switches are zoned properly. [root@unixonline ~]# tar -xzf DellEMCPower.LINUX-7.4.0.b201.tar.gz [root@unixonline ~]# ls DellEMCPower.LINUX-7.4.0.00.00-201.OL7.x86_64.rpm DellEMCPower.LINUX-7.4.0.00.00-201.RHEL8.x86_64.rpm DellEMCPower.LINUX-7.4.0.b201.tar.gz DellEMCPower.LINUX-7.4.0.00.00-201.OL8.x86_64.rpm DellEMCPower.LINUX-7.4.0.00.00-201.SLES12SP5.x86_64.rpm DellEMCPower.LINUX-7.4.0.00.00-201.RHEL7.x86_64.rpm DellEMCPower.LINUX-7.4.0.00.00-201.SLES15SP3.x86_64.rpm In this example, DellEMC Powerpath 7 ( DellEMCPower.LINUX-7.4.0.00.00-201.RHEL7.x86_64.rpm ) is installed on Red Hat 7. … Read more

Reset HBA port in Linux

There are several commands available that allow you to reset one or more interconnects in Linux, issue_lip is one and the most recommended command. The following command can be used to find HBA device name.(in this example host1,host2): [root@unixonline ~]# systool -c fc_host -v|egrep “Device =|node_name|port_state|speed” Class Device = “host1” node_name = “0x20000032fff8dce3” port_state = … Read more

Monitoring Swap Usage for Each Process With the top Command

To monitor which process is using swap, you can use the top command:Log in to Advanced shell (bash).Type the following command to enter the top utility: # top [root@unixonline]# top top – 01:10:24 up 230 days, 9:05, 9 users, load average: 0.00, 0.01, 0.05 Tasks: 220 total, 1 running, 219 sleeping, 0 stopped, 0 zombie … Read more

How to do tape device discovery for NetBackup device configuration from RHEL Linux command line

How-To Steps: Scan and discover SCSI devices in Linux cli: scsi-rescan OR: ls -l /sys/class/scsi_host/echo “- – -” > /sys/class/scsi_host/host0/scanecho “- – -” > /sys/class/scsi_host/host1/scanecho “- – -” > /sys/class/scsi_host/host2/scanecho “- – -” > /sys/class/scsi_host/host3/scanecho “- – -” > /sys/class/scsi_host/host4/scanecho “- – -” > /sys/class/scsi_host/host5/scanecho “- – -” > /sys/class/scsi_host/host6/scan The commands to scan and … Read more

Recovering rebooted or crashed GlusterFS

checking glusterfs configurations: [root@glustertest1 ~]# gluster volume info Volume Name: test_volType: DisperseVolume ID: b23f6c11-8dfe-4d51-919d-35a30dd75100Status: StoppedSnapshot Count: 0Number of Bricks: 1 x (4 + 2) = 6Transport-type: tcpBricks:Brick1: glustertest1:/glusterfs/brick1Brick2: glustertest2:/glusterfs/brick1Brick3: glustertest3:/glusterfs/brick1Brick4: glustertest4:/glusterfs/brick1Brick5: glustertest5:/glusterfs/brick1Brick6: glustertest6:/glusterfs/brick1Options Reconfigured:transport.address-family: inetnfs.disable: on[root@glustertest1 ~]# [root@glustertest1 ~]# gluster volume statusVolume test_vol is not started if its not started: mount glusterFS: [root@glustertest1 ~]# mount … Read more

Rename a GlusterFS Peer in RHEL

Here are the steps:FYI, its not required to detach the peer. WARNING: Before proceed be sure of backup your data, and proceed with caution. Do not execute any command without understanding what it do exactly, be sure that you are in the correct path, make the correct names replacements in each command if apply (indicated … Read more

Install and Configure Chrony server(NTP) for time adjustment in RHEL/Centos

### Install Chrony. [root@testos ~]# yum -y install chrony ### Edit/Update Chrony Configuration file [root@testos ~]# vi /etc/chrony.conf ### line 3: change servers for synchronization #server 0.centos.pool.ntp.org iburst #server 1.centos.pool.ntp.org iburst #server 2.centos.pool.ntp.org iburst #server 3.centos.pool.ntp.org iburst server <NTP1 SERVER ADDRESS> iburst server <NTP2 SERVER ADDRESS> iburst server <NTP3 SERVER ADDRESS> iburst ### line 25: … Read more