device ethX does not seem to be present, delaying initialization..

Problem :device ethX does not seem to be present, delaying initialization…

Solution: fix the problem by deleting the /etc/udev/rules.d/70-persistent-net.rules file and restarting server.

Step 1:Restart network daemon.

#Service network restart

Shutting down loopback interface:
Bringing up loopback interface:
Bringing up interface eth0: Device eth0 does not seem to be present, delaying initialization.

Step 2:

#rm -rf /etc/udev/rules.d/70-persistent-net.rules

Step 3:

#reboot

If your server is virtualbox;

Solution:

step 1:copy the mac address from the inside file “/etc/sysconfig/network-scripts/ifcfg-eth0” to the host to virtualbox–>Settings–>network–>Adapter 1–>advanced–>MAc address

step 2:

#service network reload

 

 

How To install rsh, rlogin, rexec for Data protector/Netbackup client.

Install rsh and rshd using yum command:

[root@cintqasrv01 ~]# yum -y install rsh rsh-server
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
Updating certificate-based repositories.
Unable to read consumer identity
Setting up Install Process
Resolving Dependencies
–> Running transaction check
—> Package rsh.x86_64 0:0.17-60.el6 will be installed
—> Package rsh-server.x86_64 0:0.17-60.el6 will be installed
–> Finished Dependency Resolution

Dependencies Resolved

====================================================================================================================================
Package Arch Version Repository Size
====================================================================================================================================
Installing:
rsh x86_64 0.17-60.el6 nas 48 k
rsh-server x86_64 0.17-60.el6 nas 42 k

Transaction Summary
====================================================================================================================================
Install 2 Package(s)

Total download size: 90 k
Installed size: 141 k
Downloading Packages:
————————————————————————————————————————————
Total 2.9 MB/s | 90 kB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : rsh-0.17-60.el6.x86_64 1/2
Installing : rsh-server-0.17-60.el6.x86_64 2/2
Installed products updated.
Verifying : rsh-server-0.17-60.el6.x86_64 1/2
Verifying : rsh-0.17-60.el6.x86_64 2/2

Installed:
rsh.x86_64 0:0.17-60.el6 rsh-server.x86_64 0:0.17-60.el6

Complete!

 

Enable rsh (or rlogin, …)

The option “disable” set to “no“.

[root@cintqasrv01 ~]# vi /etc/xinetd.d/rsh

# default: on
# description: The rshd server is the server for the rcmd(3) routine and, \
# consequently, for the rsh(1) program. The server provides \
# remote execution facilities with authentication based on \
# privileged port numbers from trusted hosts.
service shell
{
socket_type = stream
wait = no
user = root
log_on_success += USERID
log_on_failure += USERID
server = /usr/sbin/in.rshd
disable = no
}

Restart your  “xinetd” daemon:

[root@cintqasrv01 ~]# service xinetd restart
Stopping xinetd: [ OK ]
Starting xinetd: [ OK ]

Append rsh, rlogin, rexec in  /etc/securetty file.

[root@cintqasrv01 ~]# vi /etc/securetty

console
vc/1
vc/2
vc/3
vc/4
vc/5
vc/6
vc/7
vc/8
vc/9
vc/10
vc/11
tty1
tty2
tty3
tty4
tty5
tty6
tty7
tty8
tty9
tty10
tty11
rsh
rlogin
rexec

Add client server and backup server on /etc/hosts file.

[root@cintqasrv01 ~]# vim /etc/hosts
10.80.0.13 client01.turizmkampanyalari.com.tr client01
10.90.0.52 tkbcksrv1..turizmkampanyalari.com.tr tkbcksrv1

Add the line(backup server and user) on target(client) machine.

[root@cintqasrv01 ~]# vi ~/.rhosts

tkbcksrv1   root

Check /etc/pam.d/rsh file like below.

[root@cintqasrv01 ~]# vim  /etc/pam.d/rsh
#%PAM-1.0
# For root login to succeed here with pam_securetty, “rsh” must be
# listed in /etc/securetty.
auth required pam_nologin.so
auth required pam_securetty.so
auth required pam_env.so
auth required pam_rhosts.so
account include password-auth
session optional pam_keyinit.so force revoke
session required pam_loginuid.so
session include password-auth

Disable firewall and SELinux security settings.

[root@cintqasrv01 ~]# chkconfig iptables off
[root@cintqasrv01 ~]# /etc/init.d/iptables stop
[root@cintqasrv01 ~]# vim /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing – SELinux security policy is enforced.
# permissive – SELinux prints warnings instead of enforcing.
# disabled – No SELinux policy is loaded.
SELINUX=disable
# SELINUXTYPE= can take one of these two values:
# targeted – Targeted processes are protected,
# mls – Multi Level Security protection.
SELINUXTYPE=targeted

You can install Data Protector  or Netbackup client properly.