poudenes
By:
poudenes

not needed drivers

April 30, 2013 2.5k views
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
2 Answers
Greetings,

In most cases, removing unused drivers or modules is OK, although they may be looped in to various other packages. In these cases, you will be notified via yum of their dependencies.

If you're in doubt of a package (such as lvm2), it is likely best to keep the package in-tact. Be careful when removing other kernel modules or specific packages, as one wrong move could cause push your droplet into an unrecoverable state! Take a snapshot before proceeding with any removals, and ensure your `/etc/yum.conf` file has `tsflags=repackage`.

Hope that helps! If you need anything further, feel free to submit a ticket.
Thanks Russell for the feedback. I always make a snapshot before i do something. It is the safest way to do.
Have another answer? Share your knowledge.