Some cases you may have to disable the AHCI driver claiming the software device. You can use any one of the below options to blacklist the AHCI driver. This depends on the kernel version you use.
How to configure nic or netwok bonding in CentOS 7 & RHEL 7
Source: Configure NIC(Network Interface Card) bonding in CentOS 7 / RHEL 7
use the kernel core_pattern parameter. This may be useful if you want to save the core in an NFS location.
[root@test:~]$sysctl -w kernel.core_pattern=’/remote/dumps/%t_%e_core.%p’
Nice article on using printk for debugging. It explains the usage, log level, rate limiting and one time messaging, changing the size of printk buffer, debugging early boot problems etc.
Refer Debugging by printing
Udev in linux subsystem helps to write scripts to do a specific action when a new device is added or an existing device is removed from the system.
The following article helps you to write your own basic script by identifying a device and adding the specific udev rules. Refer An introduction to Udev: The Linux subsystem for managing device events for more details.