[Errno 14] PYCURL ERROR Trying other mirror

####################################################################################
Error yum repo
==================
https://pyr-inf-rhcds02.apacvbk.cbu.csc.com/pulp/repos///content/dist/rhel/rhui/server/6/6Server/x86_64/os/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 – “The requested URL returned error: 401 Authorization Required”
Trying other mirror.
https://pyr-inf-rhcds01.apacvbk.cbu.csc.com/pulp/repos///content/dist/rhel/rhui/server/6/6Server/x86_64/os/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 – “The requested URL returned error: 401 Authorization Required”
Trying other mirror.
https://pyr-inf-rhcds02.apacvbk.cbu.csc.com/pulp/repos///content/dist/rhel/rhui/server/6/6Server/x86_64/os/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 – “The requested URL returned error: 401 Authorization Required”

> Host was not able to access the yum repolist.
> Was generating the error [Errno 14] PYCURL ERROR 22 – “The requested URL returned error: 401 Authorization Required”
> After troubleshooting found incorrect rpm was installed related to certs.
> The correct package was pyr-inf-rhel6-2.0-1.noarch.

Resolved by below steps
=========================

Unistalled below packages
=============================
rpm -e redhat-config-client-2.0-1.noarch
rpm -e pyr-inf-rhui-rhel6_x86_64-2.0-1.noarch

Installed new package
===========================
rpm -ivh pyr-inf-rhel6-2.0-1.noarch.rpm

Advertisements

To give the new sudo options and to give new sudo rules

To give the new sudo options and to give new sudo rules

User_Alias JBOSS_USER=ksivaprag
Cmnd_Alias JBOSS_CMD=/bin/su – jboss , /bin/su jboss
JBOSS_USER ALL=JBOSS_CMD
JBOSS_USER ALL=NOPASSWD: JBOSS_CMD
[root@matcvauaa81-vm ~]#

Example ;
User_Alias APACHE_USER=webadm
Cmnd_Alias APACHE_CMD= \
/opt/software/apache-vehicleservice/bin/apachectl – k stop, \
/opt/software/apache-vehicleservice/bin/apachectl – k start, \
/opt/software/apache-vehicleservice/bin/apachectl s tatus

APACHE_USER ALL=APACHE_CMD

Disable Ctrl+Alt+Delete option on linux box .

To disable this behavior, open the /etc/init/control-alt-delete.conf configuration file .
————————————————REDHAT 5x :—————————
ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now
comment the above line and run command to make change effect and run init q
————————————————REDHAT 6.0 TO 6.2:—————————
start on control-alt-delete
#exec /sbin/shutdown -r now “Control-Alt-Delete pressed”
exec echo “Ctrl-Alt-delete keys pressed”
The init daemon should automagically reload this change, but just to be sure run this command:
initctl reload-configuration
————————————————REDHAT 6.3 AND ABOVE———————
cp -p /etc/init/control-alt-delete.conf /etc/init/control-alt-delete.override
vi /etc/init/control-alt-delete.override
start on control-alt-delete
#exec /sbin/shutdown -r now “Control-Alt-Delete pressed”
exec /bin/true
initctl reload-configuration
—————————————————————————————————-

SanityChecks

SANITY CHECK

#df -hT
#free -m
#uname -a
#netstat -ntulp
#netstat -rn
#cat /etc/redhat-release
#ifconfig -a
#fdisk -l
#pvs,vgs,lvs
#uptime;date
#cat /etc/fstab

PERFORMANCE TUNING

–> Performance depends on CPU,MEMORY,DISK,Network

CPU:
-Context switching
-RunQueue(Active process queue)
-Load average()
-Utilization
commands: sar,top,vmstat

I/O:
-iostat

Memory:
-#free -m

Network:

#tcpdump -c eth0
#ethtool eth0
#ifconfig -a

KDUMP Configuration

create /var/crash FS equal to memory

add line /etc/kdump.conf

core_collector makedumpfile -d 17 -c
add below /etc/grub.conf

crashkernel=256M

kernel /vmlinuz-2.6.32-431.20.3.el6.x86_64 ro root=/dev/mapper/rootvg-rootlv rd_NO_LUKS rd_LVM_LV=rootvg/rootlv LANG=en_US.UTF-8 rd_NO_MD rd_LVM_LV=rootvg/swaplv SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=256M rhgb quiet rd_NO_DM rhgb quiet
initrd /initramfs-2.6.32-431.20.3.el6.x86_64.img

make sure

# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0

chkconfig kdump on

service kdump start

1.We need to add the 30GB new disk and mount it with /kdump
2.check for the memory of 512 MB
3.Need to configure the Kdump under /etc/kdump.conf
4.I seen path is /var/crash we have to change it to /kdump
5.Under /etc/grub.conf
crashkernel=128M@16M
6.Service kdump enable
7.service kdump restart
8.chkconfig kdump on
9.restart the server

Removing openfiles or deleted files

Login to server and type below command to list files

find /proc/*/fd -ls | grep ‘(deleted)’

Once listed the files go to deleted file directory and ls
Nullify the number 1 or any number.

237899032 0 l-wx—— 1 hybris hybris 64 Jan 19 14:58 /proc/7631/fd/1 -> /home/hybris/CopyLogs_NAS/Copy_NAS.log\ (deleted)
237899033 0 l-wx—— 1 hybris hybris 64 Jan 19 14:58 /proc/7631/fd/2 -> /home/hybris/CopyLogs_NAS/Copy_NAS.log\ (deleted)
237915736 0 lr-x—— 1 root root 64 Jan 19 15:06 /proc/877/fd/21 -> /run/log/journal/99033ba25b6549aeb30847609efb5288/system@d381531d7bdc486c8794e01a6f8da91d-0000000001f8e06f-00056295b98c1a14.journal\ (deleted)
[root@carc-vhybt02 ~]# cd /proc/7631/fd/
[root@carc-vhybt02 fd]# > 1
[root@carc-vhybt02 fd]# df -h /home
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_root-lv_home 30G 1.2G 29G 4% /home