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
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Greetings,
<br>
<br>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.
<br>
<br>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.
<br>
<br>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.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.