Detect New NIC CentOS7
ls -l /sys/class/net/ interfaceid= cat /sys/class/net/$interfaceid/address
make a file in /etc/sysconfig/network-scripts
vim /etc/sysconfig/network-scripts/ifcfg-$interfaceid TYPE=Ethernet BOOTPROTO=none NAME= DEVICE= HWADDR=MACADDRESS ONBOOT=yes IPADDR= NETMASK=
then interface up
ifup ifcfg-$interfaceid ifconfig $interfaceid
Rescan the SCSI Bus to Add a SCSI Device Without rebooting the VM
## check host ls /sys/class/scsi_host
echo "- - -" > /sys/class/scsi_host/host1/scan echo "- - -" > /sys/class/scsi_host/host2/scan echo "- - -" > /sys/class/scsi_host/host3/scan echo "- - -" > /sys/class/scsi_host/host4/scan echo "- - -" > /sys/class/scsi_host/host5/scan echo "- - -" > /sys/class/scsi_host/host6/scan fdisk -l tail -n 50 /var/log/messages