Category: Linux

RHEL6 – mkfs.ext4: Size of device too big to be expressed in 32 bits

root@linux:~ # mkfs.ext4 -T largefile /dev/filelibraryvg/filelibrarylv
mke2fs 1.41.12 (17-May-2010)
mkfs.ext4: Size of device /dev/filelibraryvg/filelibrarylv too big to be expressed in 32 bits
using a blocksize of 4096.

EXT4 has a maximum supported size of 16TB – Why am I unable to format a volume bigger than 16TB using the EXT4 filesystem?

Need to create the filesystem using another filesystem type

Linux – umount: /filesystem: device is busy. No processes found using lsof and fuser

root@linux:~ # df -hP | grep SCR
/dev/mapper/vgSAPlocal-lv_sapmnt_SCR 15G 2.0G 12G 15% /sapmnt/SCR
scsscr:/export/sapmnt/SCR/exe 4.2G 3.5G 473M 89% /sapmnt/SCR/exe
scsscr:/export/sapmnt/SCR/global 4.2G 362M 3.6G 9% /sapmnt/SCR/global
scsscr:/export/sapmnt/SCR/profile 2.0G 3.0M 1.9G 1% /sapmnt/SCR/profile

I unmounted the filesystems under /sapmnt/SCR

root@linux:~ # umount /sapmnt/SCR/exe /sapmnt/SCR/global /sapmnt/SCR/profile
root@linux:~ #

But I was unable to unmount /sapmnt/SCR

root@linux:~ # umount /sapmnt/SCR
umount: /sapmnt/SCR: device is busy.
(In some cases useful info about processes that use
the device is found by lsof(8) or fuser(1))

After using fuser and lsof, it didn’t find any processes.
I was able to unmount it after restarting the autofs service

root@linux:~ # service autofs restart
Stopping automount: [ OK ]
Starting automount: [ OK ]

VMware Tools: Failed to install the pre-built module

I have never seen this error before.

I’ll try to research this error later

Before running VMware Tools for the first time, you need to configure it by
invoking the following command: “/usr/bin/vmware-config-tools.pl”. Do you want
this program to invoke the command for you now? [yes]

INPUT: [yes] default

Initializing…

Making sure services for VMware Tools are stopped.

Found a compatible pre-built module for vmci. Installing it…

Failed to install the vmci pre-built module.

The communication service is used in addition to the standard communication
between the guest and the host. The rest of the software provided by VMware
Tools is designed to work independently of this feature.
If you wish to have the VMCI feature, you can install the driver by running
vmware-config-tools.pl again after making sure that gcc, binutils, make and the
kernel sources for your running kernel are installed on your machine. These
packages are available on your distribution’s installation CD.
[ Press Enter key to continue ]

INPUT: [ Press Enter key to continue ] default

Found a compatible pre-built module for vsock. Installing it…

Failed to install the vsock pre-built module.

UXMON: mpatho – Only one FC Switch detected, no SAN FC Switch redundancy

After receiving the information that the error was caused by storage node reboot, checking if HPOM still show the error

root@linux:~ # /var/opt/OV/bin/instrumentation/UXMONbroker -check mpmon
Thu May 14 10:34:20 2020 : INFO : UXMONmpmon is running now, pid=31809
Thu May 14 10:34:20 2020 : Minor: mpatho – Only one FC Switch detected, no SAN FC Switch redundancy
mv: `/dev/null’ and `/dev/null’ are the same file
Thu May 14 10:34:20 2020 : INFO : UXMONmpmon end, pid=31809

Checking multipath for mpatho

root@linux:~ # multipath -ll mpatho
mpatho (350002ac666af374b) dm-74 3PARdata,VV
size=150G features=’1 queue_if_no_path’ hwhandler=’0′ wp=rw
`-+- policy=’round-robin 0′ prio=1 status=active
|- 2:0:0:5 sday 67:32 active ready running
`- 4:0:0:5 sdax 67:16 active ready running

Rescaning server

root@linux:~ # systool -av -c fc_host | grep “Class Device =” | awk -F’=’ {‘print $2’} | awk -F'”‘ {‘print “echo \”- – -\” > /sys/class/scsi_host/”$2″/scan”‘} | bash

Checking multipath for mpatho

root@linux:~ # multipath -ll mpatho
mpatho (350002ac666af374b) dm-74 3PARdata,VV
size=150G features=’1 queue_if_no_path’ hwhandler=’0′ wp=rw
`-+- policy=’round-robin 0′ prio=1 status=active
|- 2:0:0:5 sday 67:32 active ready running
|- 4:0:0:5 sdax 67:16 active ready running
|- 1:0:0:5 sdaz 67:48 active ready running
`- 3:0:0:5 sdba 67:64 active ready running

Checking if HPOM still show the error

root@linux:~ # /var/opt/OV/bin/instrumentation/UXMONbroker -check mpmon
Thu May 14 10:36:26 2020 : INFO : UXMONmpmon is running now, pid=37696
mv: `/dev/null’ and `/dev/null’ are the same file
Thu May 14 10:36:26 2020 : INFO : UXMONmpmon end, pid=37696

HPE Service Guard for Linux: Cannot halt while it is waiting to relocate

root@linux01:~ # cmhaltpkg -n linux01 -f infraMP0
Cannot halt infraMP0 while it is failing

root@linux01:~ # cmhaltpkg -n linux01 -f mdmMP0 dbMP0 transMP0
Cannot halt mdmMP0 while it is waiting to relocate
Cannot halt dbMP0 while it is waiting to relocate
Cannot halt transMP0 while it is waiting to relocate

I had to kill the processes being used by mp0adm user

Then it relocated all the packages automatically to other node

Running Appcollect

Please generate ADU report
Download AppCollectv3.2.tar.gz from the FTP drop box and copy to /tmp directory and execute following commands:

# cd /tmp
# tar -Pzxvf AppCollectv3.2.tar.gz
# /hp/support/tools/AppCollect

root@linux:/tmp # tar -Pzxvf AppCollectv3.2.tar.gz
/hp/
/hp/support/
/hp/support/tools/
/hp/support/tools/AppCollect
/hp/support/tools/conrep.xml
/hp/support/tools/conrep
/hp/support/tools/sginfo
/hp/support/tools/iml.xml
/hp/support/tools/ilo.xml
/hp/support/tools/AppCollect_v3.2_README.txt
/hp/support/tools/uc_v2.0I_SP4.tar.gz
/hp/support/tools/supportutils-3.0-44.3.noarch.rpm
/hp/support/data/

root@linux:/tmp # /hp/support/tools/AppCollect

————————————————————
HP ConvergedSystem for SAP HANA
/hp/support/tools/AppCollect
Version: 3.2
Author: Bill Neumann – SAP HANA CoE
â–’ Copyright 2013 Hewlett-Packard Development Company, L.P.
————————————————————
Please enter the sidadm user name: lp0adm
Phase 1: Checking supportutils installation.
Phase 2: Getting IML event log. This may take up to 5 minutes.
Phase 3: Getting ILO event log. This may take up to 5 minutes.
Phase 4: Getting BIOS power settings data.
Phase 5: Getting system survey data. This may take up to 10 minutes.
Phase 6: Getting SAP version information.
Phase 7: Getting supportconfig data. This may take up to 30 minutes.
Phase 8: Getting SAP trace files.
Phase 9: Wrapping up data collection. This may take a few minutes.
Done collecting data, please provide /hp/support/data/DL580.linux_202001151507.tgz to HP Support.

HPE Service Guard for Linux: Cannot halt while it is failing

Tried to stop the cluster package and it gave me the following error

root@linux01:~ # cmhaltpkg -n linux01 mdmMP0
Cannot halt mdmMP0 while it is failing

I had to force to stop the package

root@linux01:~ # cmhaltpkg -n linux01 -f mdmMP0
Warning: Package mdmMP0 is not currently running. It is down
Warning: Switching will be disabled
One or more packages or package instances have been halted.
The failover packages have AUTO_RUN disabled and no new instance can start automatically. To allow automatic start, enable AUTO_RUN via cmmodpkg -e cmhaltpkg: Completed successfully on all packages specified

Which package have libstdc++.so.5 and libstdc++.so.6 on RHEL 7

compat-libstdc++-33 contains libstdc++.so.5

root@rhel7:~ # yum whatprovides */libstdc++.so.5
Loaded plugins: changelog, langpacks, product-id, search-disabled-repos, subscription-manager
compat-libstdc++-33-3.2.3-71.el7.i686 : Compatibility standard C++ libraries
Repo : installed
Matched from:
Filename : /usr/lib/libstdc++.so.5

root@rhel7:~ # rpm -ql compat-libstdc++-33-3.2.3-71.el7.i686
/usr/lib/libstdc++.so.5
/usr/lib/libstdc++.so.5.0.7

libstdc++ contains libstdc++.so.6

root@rhel7:~ # yum whatprovides */libstdc++.so.6
Loaded plugins: changelog, langpacks, product-id, search-disabled-repos, subscription-manager
libstdc++-4.8.5-36.el7_6.2.i686 : GNU Standard C++ Library
Repo : @rhel-7-server-rpms
Matched from:
Filename : /usr/lib/libstdc++.so.6

libstdc++-4.8.5-36.el7_6.2.x86_64 : GNU Standard C++ Library
Repo : @rhel-7-server-rpms
Matched from:
Filename : /usr/lib64/libstdc++.so.6

root@rhel7:~ # rpm -ql libstdc++-4.8.5-36.el7_6.2.i686
/usr/lib/libstdc++.so.6
/usr/lib/libstdc++.so.6.0.19
/usr/share/gcc-4.8.2
/usr/share/gcc-4.8.2/python
/usr/share/gcc-4.8.2/python/libstdcxx
/usr/share/gcc-4.8.2/python/libstdcxx/__init__.py
/usr/share/gcc-4.8.2/python/libstdcxx/__init__.pyc
/usr/share/gcc-4.8.2/python/libstdcxx/__init__.pyo
/usr/share/gcc-4.8.2/python/libstdcxx/v6
/usr/share/gcc-4.8.2/python/libstdcxx/v6/__init__.py
/usr/share/gcc-4.8.2/python/libstdcxx/v6/__init__.pyc
/usr/share/gcc-4.8.2/python/libstdcxx/v6/__init__.pyo
/usr/share/gcc-4.8.2/python/libstdcxx/v6/printers.py
/usr/share/gcc-4.8.2/python/libstdcxx/v6/printers.pyc
/usr/share/gcc-4.8.2/python/libstdcxx/v6/printers.pyo
/usr/share/gcc-4.8.5
/usr/share/gdb
/usr/share/gdb/auto-load
/usr/share/gdb/auto-load/usr
/usr/share/gdb/auto-load/usr/lib
/usr/share/gdb/auto-load/usr/lib/libstdc++.so.6.0.19-gdb.py
/usr/share/gdb/auto-load/usr/lib/libstdc++.so.6.0.19-gdb.pyc
/usr/share/gdb/auto-load/usr/lib/libstdc++.so.6.0.19-gdb.pyo

Starting INET services. (xinetd) failed

xinetd is not starting

root@linux:~ # service xinetd start
Starting INET services. (xinetd) failed

No services managed by xinetd are available

root@linux:~ # tail -20 /var/log/messages
Oct 9 06:15:04 linux run-crons[14711]: eds-ntpdate: OK
Oct 9 06:39:45 linux — MARK —
Oct 9 06:59:45 linux — MARK —
Oct 9 07:15:04 linux run-crons[31922]: eds-ntpdate: OK
Oct 9 07:30:51 linux xinetd[15114]: Reading included configuration file: /etc/xinetd.d/chargen [file=/etc/xinetd.conf] [line=26]
Oct 9 07:30:51 linux xinetd[15114]: Reading included configuration file: /etc/xinetd.d/chargen-udp [file=/etc/xinetd.d/chargen-udp] [line=14]
Oct 9 07:30:51 linux xinetd[15114]: Reading included configuration file: /etc/xinetd.d/daytime [file=/etc/xinetd.d/daytime] [line=15]
Oct 9 07:30:51 linux xinetd[15114]: Reading included configuration file: /etc/xinetd.d/daytime-udp [file=/etc/xinetd.d/daytime-udp] [line=14]
Oct 9 07:30:51 linux xinetd[15114]: Reading included configuration file: /etc/xinetd.d/discard [file=/etc/xinetd.d/discard] [line=15]
Oct 9 07:30:51 linux xinetd[15114]: Reading included configuration file: /etc/xinetd.d/discard-udp [file=/etc/xinetd.d/discard-udp] [line=14]
Oct 9 07:30:51 linux xinetd[15114]: Reading included configuration file: /etc/xinetd.d/echo [file=/etc/xinetd.d/echo] [line=15]
Oct 9 07:30:51 linux xinetd[15114]: Reading included configuration file: /etc/xinetd.d/echo-udp [file=/etc/xinetd.d/echo-udp] [line=14]
Oct 9 07:30:51 linux xinetd[15114]: Reading included configuration file: /etc/xinetd.d/netstat [file=/etc/xinetd.d/netstat] [line=15]
Oct 9 07:30:51 linux xinetd[15114]: Reading included configuration file: /etc/xinetd.d/rsync [file=/etc/xinetd.d/rsync] [line=16]
Oct 9 07:30:51 linux xinetd[15114]: Reading included configuration file: /etc/xinetd.d/servers [file=/etc/xinetd.d/servers] [line=12]
Oct 9 07:30:51 linux xinetd[15114]: Reading included configuration file: /etc/xinetd.d/services [file=/etc/xinetd.d/services] [line=14]
Oct 9 07:30:51 linux xinetd[15114]: Reading included configuration file: /etc/xinetd.d/systat [file=/etc/xinetd.d/systat] [line=14]
Oct 9 07:30:51 linux xinetd[15114]: Reading included configuration file: /etc/xinetd.d/time [file=/etc/xinetd.d/time] [line=17]
Oct 9 07:30:51 linux xinetd[15114]: Reading included configuration file: /etc/xinetd.d/time-udp [file=/etc/xinetd.d/time-udp] [line=15]
Oct 9 07:30:51 linux xinetd[15114]: 15114 {init_services} no services. Exiting…

Enabling sysstat changing disable = yes to disable = no

root@linux:~ # vi /etc/xinetd.d/sysstat
# Finger, systat and netstat give out user information which may be
# valuable to potential “system crackers.” Many sites choose to disable
# some or all of these services to improve security.
# Try “telnet localhost systat” and “telnet localhost netstat” to see that
# information yourself!
#
service systat
{
disable = no
socket_type = stream
protocol = tcp
wait = no
user = nobody
server = /bin/ps
server_args = -auwwx
}

Starting service xinetd

root@linux:~ # service xinetd start
Starting INET services. (xinetd) done