Question
not needed drivers
Hi All,
Read a lot on the internet to improve my DO VPS. I have found some stuff to remove, because we do not use it anymore.... or it is old legacy. Can i remove those drivers without problem?
thanks,
Peter
for i in $(find /lib/modules/`uname -r`/kernel/drivers/net/wireless -name "*.ko" -type f) ; do echo blacklist $i >> /etc/modprobe.d/blacklist-wireless.conf ; done
for i in $(find /lib/modules/`uname -r`/kernel/drivers/scsi/fcoe -name "*.ko" -type f) ; do echo blacklist $i >> /etc/modprobe.d/blacklist-fcoe.conf ; done
for i in $(find /lib/modules/`uname -r`/kernel/drivers/bluetooth -name "*.ko" -type f) ; do echo blacklist $i >> /etc/modprobe.d/blacklist-bluetooth.conf ; done
for i in $(find /lib/modules/`uname -r`/kernel/drivers/pcmcia -name "*.ko" -type f) ; do echo blacklist $i >> /etc/modprobe.d/blacklist-pcmcia.conf ; done
for i in $(find /lib/modules/`uname -r`/kernel/drivers/infiniband -name "*.ko" -type f) ; do echo blacklist $i >> /etc/modprobe.d/blacklist-infiniband.conf ; done
for i in $(find /lib/modules/`uname -r`/kernel/drivers/isdn -name "*.ko" -type f) ; do echo blacklist $i >> /etc/modprobe.d/blacklist-isdn.conf ; done
for i in $(find /lib/modules/`uname -r`/kernel/drivers/firewire -name "*.ko" -type f) ; do echo blacklist $i >> /etc/modprobe.d/blacklist-firewire.conf ; done
for i in $(find /lib/modules/`uname -r`/kernel/drivers/ieee802154 -name "*.ko" -type f) ; do echo blacklist $i >> /etc/modprobe.d/blacklist-ieee802154.conf ; done
yum remove lvm2\* # unnecessary hard drive partitioning system
yum remove nfs\* # nfs (legacy file sharing)
yum remove iscsi\* # scsi over internet (also removes dracut-network)
yum remove fcoe\* # fibre channel over ethernet
yum remove lldpad\* # for fibre channel over ethernet
sed -i 's/1-6/1/g' /etc/syconfig/init # only a single getty available
sed -i 's/1-6/1/g' /etc/init/start-ttys.conf # only a single getty available
Unnecessary services:
rpcbind
nfslock
lldpad
fcoe
rpdidmapd
Add a comment
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×