Monday, October 9, 2017

centos 7 write path & auto eth issue

 centos 7 write path & auto eth issue  
   
 gross.  
   
 # dmesg |grep "WRITE SAME"  
 [  6.984034] sda3: WRITE SAME failed. Manually zeroing.  
   
 # touch /etc/tmpfiles.d/write_same.conf  
 # find /sys | grep max_write_same_blocks >> /etc/tmpfiles.d/write_same.conf  
 # vi write_same.conf  
    
  # type path mode uid  gid  age argument  
  w /sys/devices/pci0000:00/0000:00:10.0/host0/target0:0:0/0:0:0:0/scsi_disk/0:0:0:0/max_write_same_blocks -  -  -  - 0  
   
 next, deal with eth  
   
 # nmcli d  
 DEVICE TYPE   STATE    CONNECTION  
 ens160 ethernet disconnected --  
 lo   loopback unmanaged  --  
   
 change netword script  
   
 vi /etc/sysconfig/network-scripts/ifcfg-<ethname>  
 ONBOOT=yes  
   
 restart networking however you do it.  

No comments: