under trying to rebuild rpm's ( rpm --rebuilddb) or even install yum package.
Host has been also restarted but it can't help out.
Do You have any idea how we can investigate further?
It seems that the main reason is too lack of this file but any process with rpm is not hanging...
[root@hostname]# uname -snr
Linux host 3.10.0-693.2.2.el7.x86_64
[root@hostname]# rpm -vv --rebuilddb > /tmp/rpmrebuilddb.log 2>&1
[root@hostname]# more /tmp/rpmrebuilddb.log
error: can't create transaction lock on /var/lib/rpm/.rpm.lock (No such file or directory)
[root@hostname rpm]# ls -ltr
total 34780
-rw-r--r--. 2 root root 8192 Jan 1 1970 Triggername
-rw-r--r--. 2 root root 24576 Jan 1 1970 Sigmd5
-rw-r--r--. 2 root root 45056 Jan 1 1970 Sha1header
-rw-r--r--. 2 root root 172032 Jan 1 1970 Requirename
-rw-r--r--. 2 root root 1720320 Jan 1 1970 Providename
-rw-r--r--. 2 root root 31830016 Jan 1 1970 Packages
-rw-r--r--. 2 root root 16384 Jan 1 1970 Obsoletename
-rw-r--r--. 2 root root 28672 Jan 1 1970 Name
-rw-r--r--. 2 root root 12288 Jan 1 1970 Installtid
-rw-r--r--. 2 root root 8192 Jan 1 1970 Group
-rw-r--r--. 2 root root 430080 Jan 1 1970 Dirnames
-rw-r--r--. 2 root root 8192 Jan 1 1970 Conflictname
-rw-r--r--. 2 root root 1310720 Jan 1 1970 Basenames
[root@hostname rpm]# pwd
/var/lib/rpm