[root@localhost netdata]# find / -name netdata-uninstaller.sh
/root/netdata/packaging/installer/netdata-uninstaller.sh
/usr/libexec/netdata/netdata-uninstaller.sh
[root@localhost netdata]# cd /root/netdata/packaging/installer/
[root@localhost installer]# ls
functions.sh kickstart.sh methods netdata-updater.sh UNINSTALL.md
install-required-packages.sh kickstart-static64.sh netdata-uninstaller.sh README.md UPDATE.md
[root@localhost installer]# ./netdata-u
netdata-uninstaller.sh netdata-updater.sh
[root@localhost installer]# ./netdata-uninstaller.sh
This script will REMOVE netdata from your system.
Run it again with --yes to do it.
[root@localhost installer]# ./netdata-uninstaller.sh --yes
Stopping a possibly running netdata...
[/root/netdata/packaging/installer]# rm -v -i /etc/logrotate.d/netdata
rm: remove regular file ‘/etc/logrotate.d/netdata’? y
removed ‘/etc/logrotate.d/netdata’
OK
[/root/netdata/packaging/installer]# rm -v -i /lib/systemd/system/netdata.service
rm: remove regular file ‘/lib/systemd/system/netdata.service’? y
removed ‘/lib/systemd/system/netdata.service’
OK
[/root/netdata/packaging/installer]# rm -v -i /usr/sbin/netdata
rm: remove regular file ‘/usr/sbin/netdata’? y
removed ‘/usr/sbin/netdata’
OK
[/root/netdata/packaging/installer]# rm -v -i /usr/sbin/netdatacli
rm: remove regular file ‘/usr/sbin/netdatacli’? y
removed ‘/usr/sbin/netdatacli’
OK
[/root/netdata/packaging/installer]# rm -v -i /usr/sbin/netdata-claim.sh
rm: remove regular file ‘/usr/sbin/netdata-claim.sh’? y
removed ‘/usr/sbin/netdata-claim.sh’
OK
Press ENTER to recursively delete directory '/usr/share/netdata' >
[/root/netdata/packaging/installer]# rm -v -f -R /usr/share/netdata
removed ‘/usr/share/netdata/web/css/dashboard.slate.css’
removed ‘/usr/share/netdata/web/css/dashboard.css’
removed ‘/usr/share/netdata/web/css/morris-0.5.1.css’
removed ‘/usr/share/netdata/web/css/bootstrap-3.3.7.css’
removed ‘/usr/share/netdata/web/css/bootstrap-theme-3.3.7.min.css’
removed ‘/usr/share/netdata/web/css/bootstrap-slate-flat-3.3.7.css’
removed ‘/usr/share/netdata/web/css/bootstrap-slider-10.0.0.min.css’
removed ‘/usr/share/netdata/web/css/bootstrap-toggle-2.2.2.min.css’
removed ‘/usr/share/netdata/web/css/c3-0.4.18.min.css’
removed directory: ‘/usr/share/netdata/web/css’
removed ‘/usr/share/netdata/web/.well-known/dnt/cookies’
removed directory: ‘/usr/share/netdata/web/.well-known/dnt’
removed directory: ‘/usr/share/netdata/web/.well-known’
removed ‘/usr/share/netdata/web/fonts/glyphicons-halflings-regular.eot’
removed ‘/usr/share/netdata/web/fonts/glyphicons-halflings-regular.svg’
removed ‘/usr/share/netdata/web/fonts/glyphicons-halflings-regular.ttf’
removed ‘/usr/share/netdata/web/fonts/glyphicons-halflings-regular.woff’
removed ‘/usr/share/netdata/web/fonts/glyphicons-halflings-regular.woff2’
removed directory: ‘/usr/share/netdata/web/fonts’
removed ‘/usr/share/netdata/web/images/ms-icon-70x70.png’
removed ‘/usr/share/netdata/web/images/ms-icon-144x144.png’
removed ‘/usr/share/netdata/web/images/ms-icon-150x150.png’
removed ‘/usr/share/netdata/web/images/ms-icon-310x310.png’
removed ‘/usr/share/netdata/web/images/banner-icon-144x144.png’
removed ‘/usr/share/netdata/web/images/favicon-196x196.png’
removed ‘/usr/share/netdata/web/images/seo-performance-128.png’
removed ‘/usr/share/netdata/web/images/favicon-128.png’
removed ‘/usr/share/netdata/web/images/ms-icon-36x36.png’
removed ‘/usr/share/netdata/web/images/ms-icon-310x150.png’
removed ‘/usr/share/netdata/web/images/packaging-beta-tag.svg’
removed ‘/usr/share/netdata/web/images/netdata-logomark.svg’
removed ‘/usr/share/netdata/web/images/alert-128-orange.png’
removed ‘/usr/share/netdata/web/images/alert-128-red.png’
removed ‘/usr/share/netdata/web/images/alert-multi-size-orange.ico’
removed ‘/usr/share/netdata/web/images/alert-multi-size-red.ico’
removed ‘/usr/share/netdata/web/images/animated.gif’
removed ‘/usr/share/netdata/web/images/check-mark-2-128-green.png’
removed ‘/usr/share/netdata/web/images/check-mark-2-multi-size-green.ico’
removed ‘/usr/share/netdata/web/images/netdata.svg’
removed ‘/usr/share/netdata/web/images/post.png’
removed ‘/usr/share/netdata/web/images/android-icon-36x36.png’
removed ‘/usr/share/netdata/web/images/android-icon-48x48.png’
removed ‘/usr/share/netdata/web/images/android-icon-72x72.png’
removed ‘/usr/share/netdata/web/images/android-icon-96x96.png’
removed ‘/usr/share/netdata/web/images/android-icon-144x144.png’
removed ‘/usr/share/netdata/web/images/android-icon-192x192.png’
removed ‘/usr/share/netdata/web/images/apple-icon-57x57.png’
removed ‘/usr/share/netdata/web/images/apple-icon-60x60.png’
removed ‘/usr/share/netdata/web/images/apple-icon-72x72.png’
removed ‘/usr/share/netdata/web/images/apple-icon-76x76.png’
removed ‘/usr/share/netdata/web/images/apple-icon-114x114.png’
removed ‘/usr/share/netdata/web/images/apple-icon-120x120.png’
removed ‘/usr/share/netdata/web/images/apple-icon-144x144.png’
removed ‘/usr/share/netdata/web/images/apple-icon-152x152.png’
removed ‘/usr/share/netdata/web/images/apple-icon-180x180.png’
removed ‘/usr/share/netdata/web/images/apple-icon-precomposed.png’
removed ‘/usr/share/netdata/web/images/apple-icon.png’
removed ‘/usr/share/netdata/web/images/favicon-16x16.png’
removed ‘/usr/share/netdata/web/images/favicon-32x32.png’
removed ‘/usr/share/netdata/web/images/favicon-96x96.png’
removed ‘/usr/share/netdata/web/images/favicon.ico’
removed directory: ‘/usr/share/netdata/web/images’
removed ‘/usr/share/netdata/web/lib/bootstrap-3.3.7.min.js’
removed ‘/usr/share/netdata/web/lib/bootstrap-slider-10.0.0.min.js’
removed ‘/usr/share/netdata/web/lib/bootstrap-table-1.11.0.min.js’
removed ‘/usr/share/netdata/web/lib/bootstrap-table-export-1.11.0.min.js’
removed ‘/usr/share/netdata/web/lib/bootstrap-toggle-2.2.2.min.js’
removed ‘/usr/share/netdata/web/lib/clipboard-polyfill-be05dad.js’
removed ‘/usr/share/netdata/web/lib/d3-4.12.2.min.js’
removed ‘/usr/share/netdata/web/lib/d3pie-0.2.1-netdata-3.js’
removed ‘/usr/share/netdata/web/lib/dygraph-c91c859.min.js’
removed ‘/usr/share/netdata/web/lib/dygraph-smooth-plotter-c91c859.js’
removed ‘/usr/share/netdata/web/lib/fontawesome-all-5.0.1.min.js’
removed ‘/usr/share/netdata/web/lib/gauge-1.3.2.min.js’
removed ‘/usr/share/netdata/web/lib/jquery-2.2.4.min.js’
removed ‘/usr/share/netdata/web/lib/jquery.easypiechart-97b5824.min.js’
removed ‘/usr/share/netdata/web/lib/jquery.peity-3.2.0.min.js’
removed ‘/usr/share/netdata/web/lib/jquery.sparkline-2.1.2.min.js’
removed ‘/usr/share/netdata/web/lib/lz-string-1.4.4.min.js’
removed ‘/usr/share/netdata/web/lib/pako-1.0.6.min.js’
removed ‘/usr/share/netdata/web/lib/perfect-scrollbar-0.6.15.min.js’
removed ‘/usr/share/netdata/web/lib/tableExport-1.6.0.min.js’
removed directory: ‘/usr/share/netdata/web/lib’
removed ‘/usr/share/netdata/web/old/index.html’
removed directory: ‘/usr/share/netdata/web/old’
removed ‘/usr/share/netdata/web/static/img/netdata-logomark.svg’
removed directory: ‘/usr/share/netdata/web/static/img’
removed ‘/usr/share/netdata/web/static/js/3.121af197.chunk.js.LICENSE’
removed ‘/usr/share/netdata/web/static/js/11.ceb606ff.chunk.js’
removed ‘/usr/share/netdata/web/static/js/12.57901787.chunk.js’
removed ‘/usr/share/netdata/web/static/js/18.bdd5d3df.chunk.js’
removed ‘/usr/share/netdata/web/static/js/13.022a621f.chunk.js.map’
removed ‘/usr/share/netdata/web/static/js/14.879a054d.chunk.js.map’
removed ‘/usr/share/netdata/web/static/js/17.c166a52e.chunk.js.map’
removed ‘/usr/share/netdata/web/static/js/1.2f513036.chunk.js’
removed ‘/usr/share/netdata/web/static/js/8.4bd2b516.chunk.js.map’
removed ‘/usr/share/netdata/web/static/js/18.bdd5d3df.chunk.js.map’
removed ‘/usr/share/netdata/web/static/js/16.65523352.chunk.js’
removed ‘/usr/share/netdata/web/static/js/1.2f513036.chunk.js.LICENSE’
removed ‘/usr/share/netdata/web/static/js/7.b73bcb29.chunk.js.map’
removed ‘/usr/share/netdata/web/static/js/12.57901787.chunk.js.map’
removed ‘/usr/share/netdata/web/static/js/6.0c389a57.chunk.js.LICENSE’
removed ‘/usr/share/netdata/web/static/js/8.4bd2b516.chunk.js’
removed ‘/usr/share/netdata/web/static/js/10.b22f9247.chunk.js’
removed ‘/usr/share/netdata/web/static/js/9.acb99d4b.chunk.js’
removed ‘/usr/share/netdata/web/static/js/3.121af197.chunk.js’
removed ‘/usr/share/netdata/web/static/js/2.c610ecb4.chunk.js’
removed ‘/usr/share/netdata/web/static/js/6.0c389a57.chunk.js’
removed ‘/usr/share/netdata/web/static/js/13.022a621f.chunk.js.LICENSE’
removed ‘/usr/share/netdata/web/static/js/14.879a054d.chunk.js’
removed ‘/usr/share/netdata/web/static/js/11.ceb606ff.chunk.js.map’
removed ‘/usr/share/netdata/web/static/js/16.65523352.chunk.js.map’
removed ‘/usr/share/netdata/web/static/js/17.c166a52e.chunk.js’
removed ‘/usr/share/netdata/web/static/js/9.acb99d4b.chunk.js.LICENSE’
removed ‘/usr/share/netdata/web/static/js/6.0c389a57.chunk.js.map’
removed ‘/usr/share/netdata/web/static/js/9.acb99d4b.chunk.js.map’
removed ‘/usr/share/netdata/web/static/js/13.022a621f.chunk.js’
removed ‘/usr/share/netdata/web/static/js/1.2f513036.chunk.js.map’
removed ‘/usr/share/netdata/web/static/js/runtime-main.a0839a06.js.map’
removed ‘/usr/share/netdata/web/static/js/15.72db773d.chunk.js’
removed ‘/usr/share/netdata/web/static/js/10.b22f9247.chunk.js.map’
removed ‘/usr/share/netdata/web/static/js/0.70e0be7f.chunk.js.LICENSE’
removed ‘/usr/share/netdata/web/static/js/7.b73bcb29.chunk.js’
removed ‘/usr/share/netdata/web/static/js/0.70e0be7f.chunk.js.map’
removed ‘/usr/share/netdata/web/static/js/main.5aba11d8.chunk.js’
removed ‘/usr/share/netdata/web/static/js/0.70e0be7f.chunk.js’
removed ‘/usr/share/netdata/web/static/js/2.c610ecb4.chunk.js.map’
removed ‘/usr/share/netdata/web/static/js/15.72db773d.chunk.js.map’
removed ‘/usr/share/netdata/web/static/js/3.121af197.chunk.js.map’
removed ‘/usr/share/netdata/web/static/js/main.5aba11d8.chunk.js.map’
removed ‘/usr/share/netdata/web/static/js/runtime-main.a0839a06.js’
removed directory: ‘/usr/share/netdata/web/static/js’
removed ‘/usr/share/netdata/web/static/css/10.a36e3b73.chunk.css’
removed ‘/usr/share/netdata/web/static/css/1.7a518d29.chunk.css’
removed ‘/usr/share/netdata/web/static/css/9.161f9aef.chunk.css’
removed ‘/usr/share/netdata/web/static/css/8.4f6dd913.chunk.css’
removed ‘/usr/share/netdata/web/static/css/1.7a518d29.chunk.css.map’
removed ‘/usr/share/netdata/web/static/css/main.59ec331e.chunk.css.map’
removed ‘/usr/share/netdata/web/static/css/8.4f6dd913.chunk.css.map’
removed ‘/usr/share/netdata/web/static/css/10.a36e3b73.chunk.css.map’
removed ‘/usr/share/netdata/web/static/css/9.161f9aef.chunk.css.map’
removed ‘/usr/share/netdata/web/static/css/main.59ec331e.chunk.css’
removed directory: ‘/usr/share/netdata/web/static/css’
removed directory: ‘/usr/share/netdata/web/static’
removed ‘/usr/share/netdata/web/precache-manifest.7a9ced647e2a56a5dd5898ec136043e5.js’
removed ‘/usr/share/netdata/web/dashboard-react.js’
removed ‘/usr/share/netdata/web/asset-manifest.json’
removed ‘/usr/share/netdata/web/service-worker.js’
removed ‘/usr/share/netdata/web/manifest.json’
removed ‘/usr/share/netdata/web/netdata-swagger.yaml’
removed ‘/usr/share/netdata/web/netdata-swagger.json’
removed ‘/usr/share/netdata/web/demo.html’
removed ‘/usr/share/netdata/web/demo2.html’
removed ‘/usr/share/netdata/web/demosites.html’
removed ‘/usr/share/netdata/web/demosites2.html’
removed ‘/usr/share/netdata/web/dashboard.html’
removed ‘/usr/share/netdata/web/dashboard.js’
removed ‘/usr/share/netdata/web/dashboard_info.js’
removed ‘/usr/share/netdata/web/dashboard_info_custom_example.js’
removed ‘/usr/share/netdata/web/dashboard.css’
removed ‘/usr/share/netdata/web/dashboard.slate.css’
removed ‘/usr/share/netdata/web/favicon.ico’
removed ‘/usr/share/netdata/web/goto-host-from-alarm.html’
removed ‘/usr/share/netdata/web/index.html’
removed ‘/usr/share/netdata/web/main.css’
removed ‘/usr/share/netdata/web/main.js’
removed ‘/usr/share/netdata/web/console.html’
removed ‘/usr/share/netdata/web/infographic.html’
removed ‘/usr/share/netdata/web/robots.txt’
removed ‘/usr/share/netdata/web/refresh-badges.js’
removed ‘/usr/share/netdata/web/sitemap.xml’
removed ‘/usr/share/netdata/web/tv.html’
removed ‘/usr/share/netdata/web/dash-example.html’
removed ‘/usr/share/netdata/web/version.txt’
removed directory: ‘/usr/share/netdata/web’
removed directory: ‘/usr/share/netdata’
OK
Press ENTER to recursively delete directory '/usr/libexec/netdata' >
[/root/netdata/packaging/installer]# rm -v -f -R /usr/libexec/netdata
removed ‘/usr/libexec/netdata/plugins.d/go.d.plugin’
removed ‘/usr/libexec/netdata/plugins.d/health-cmdapi-test.sh’
removed ‘/usr/libexec/netdata/plugins.d/acl.sh’
removed ‘/usr/libexec/netdata/plugins.d/request.sh’
removed ‘/usr/libexec/netdata/plugins.d/alarm.sh’
removed ‘/usr/libexec/netdata/plugins.d/template_dim.sh’
removed ‘/usr/libexec/netdata/plugins.d/cgroup-name.sh’
removed ‘/usr/libexec/netdata/plugins.d/cgroup-network-helper.sh’
removed ‘/usr/libexec/netdata/plugins.d/charts.d.dryrun-helper.sh’
removed ‘/usr/libexec/netdata/plugins.d/charts.d.plugin’
removed ‘/usr/libexec/netdata/plugins.d/loopsleepms.sh.inc’
removed ‘/usr/libexec/netdata/plugins.d/fping.plugin’
removed ‘/usr/libexec/netdata/plugins.d/ioping.plugin’
removed ‘/usr/libexec/netdata/plugins.d/node.d.plugin’
removed ‘/usr/libexec/netdata/plugins.d/python.d.plugin’
removed ‘/usr/libexec/netdata/plugins.d/tc-qos-helper.sh’
removed ‘/usr/libexec/netdata/plugins.d/anonymous-statistics.sh’
removed ‘/usr/libexec/netdata/plugins.d/system-info.sh’
removed ‘/usr/libexec/netdata/plugins.d/get-kubernetes-labels.sh’
removed ‘/usr/libexec/netdata/plugins.d/alarm-notify.sh’
removed ‘/usr/libexec/netdata/plugins.d/alarm-email.sh’
removed ‘/usr/libexec/netdata/plugins.d/alarm-test.sh’
removed ‘/usr/libexec/netdata/plugins.d/apps.plugin’
removed ‘/usr/libexec/netdata/plugins.d/cgroup-network’
removed ‘/usr/libexec/netdata/plugins.d/ebpf_process.plugin’
removed ‘/usr/libexec/netdata/plugins.d/perf.plugin’
removed ‘/usr/libexec/netdata/plugins.d/slabinfo.plugin’
removed directory: ‘/usr/libexec/netdata/plugins.d’
removed ‘/usr/libexec/netdata/charts.d/ap.chart.sh’
removed ‘/usr/libexec/netdata/charts.d/apcupsd.chart.sh’
removed ‘/usr/libexec/netdata/charts.d/example.chart.sh’
removed ‘/usr/libexec/netdata/charts.d/libreswan.chart.sh’
removed ‘/usr/libexec/netdata/charts.d/nut.chart.sh’
removed ‘/usr/libexec/netdata/charts.d/opensips.chart.sh’
removed ‘/usr/libexec/netdata/charts.d/sensors.chart.sh’
removed directory: ‘/usr/libexec/netdata/charts.d’
removed ‘/usr/libexec/netdata/node.d/node_modules/lib/ber/index.js’
removed ‘/usr/libexec/netdata/node.d/node_modules/lib/ber/errors.js’
removed ‘/usr/libexec/netdata/node.d/node_modules/lib/ber/reader.js’
removed ‘/usr/libexec/netdata/node.d/node_modules/lib/ber/types.js’
removed ‘/usr/libexec/netdata/node.d/node_modules/lib/ber/writer.js’
removed directory: ‘/usr/libexec/netdata/node.d/node_modules/lib/ber’
removed directory: ‘/usr/libexec/netdata/node.d/node_modules/lib’
removed ‘/usr/libexec/netdata/node.d/node_modules/netdata.js’
removed ‘/usr/libexec/netdata/node.d/node_modules/extend.js’
removed ‘/usr/libexec/netdata/node.d/node_modules/pixl-xml.js’
removed ‘/usr/libexec/netdata/node.d/node_modules/net-snmp.js’
removed ‘/usr/libexec/netdata/node.d/node_modules/asn1-ber.js’
removed directory: ‘/usr/libexec/netdata/node.d/node_modules’
removed ‘/usr/libexec/netdata/node.d/fronius.node.js’
removed ‘/usr/libexec/netdata/node.d/named.node.js’
removed ‘/usr/libexec/netdata/node.d/sma_webbox.node.js’
removed ‘/usr/libexec/netdata/node.d/snmp.node.js’
removed ‘/usr/libexec/netdata/node.d/stiebeleltron.node.js’
removed directory: ‘/usr/libexec/netdata/node.d’
removed ‘/usr/libexec/netdata/python.d/python_modules/bases/FrameworkServices/__init__.py’
removed ‘/usr/libexec/netdata/python.d/python_modules/bases/FrameworkServices/ExecutableService.py’
removed ‘/usr/libexec/netdata/python.d/python_modules/bases/FrameworkServices/LogService.py’
removed ‘/usr/libexec/netdata/python.d/python_modules/bases/FrameworkServices/MySQLService.py’
removed ‘/usr/libexec/netdata/python.d/python_modules/bases/FrameworkServices/SimpleService.py’
removed ‘/usr/libexec/netdata/python.d/python_modules/bases/FrameworkServices/SocketService.py’
removed ‘/usr/libexec/netdata/python.d/python_modules/bases/FrameworkServices/UrlService.py’
removed directory: ‘/usr/libexec/netdata/python.d/python_modules/bases/FrameworkServices’
removed ‘/usr/libexec/netdata/python.d/python_modules/bases/__init__.py’
removed ‘/usr/libexec/netdata/python.d/python_modules/bases/charts.py’
removed ‘/usr/libexec/netdata/python.d/python_modules/bases/collection.py’
removed ‘/usr/libexec/netdata/python.d/python_modules/bases/loaders.py’
removed ‘/usr/libexec/netdata/python.d/python_modules/bases/loggers.py’
removed directory: ‘/usr/libexec/netdata/python.d/python_modules/bases’
removed ‘/usr/libexec/netdata/python.d/python_modules/urllib3/packages/backports/__init__.py’
removed ‘/usr/libexec/netdata/python.d/python_modules/urllib3/packages/backports/makefile.py’
removed directory: ‘/usr/libexec/netdata/python.d/python_modules/urllib3/packages/backports’
removed ‘/usr/libexec/netdata/python.d/python_modules/urllib3/packages/ssl_match_hostname/__init__.py’
removed ‘/usr/libexec/netdata/python.d/python_modules/urllib3/packages/ssl_match_hostname/_implementation.py’
removed directory: ‘/usr/libexec/netdata/python.d/python_modules/urllib3/packages/ssl_match_hostname’
removed ‘/usr/libexec/netdata/python.d/python_modules/urllib3/packages/__init__.py’
removed ‘/usr/libexec/netdata/python.d/python_modules/urllib3/packages/ordered_dict.py’
removed ‘/usr/libexec/netdata/python.d/python_modules/urllib3/packages/six.py’
removed directory: ‘/usr/libexec/netdata/python.d/python_modules/urllib3/packages’
removed ‘/usr/libexec/netdata/python.d/python_modules/urllib3/contrib/_securetransport/__init__.py’
removed ‘/usr/libexec/netdata/python.d/python_modules/urllib3/contrib/_securetransport/bindings.py’
removed ‘/usr/libexec/netdata/python.d/python_modules/urllib3/contrib/_securetransport/low_level.py’
removed directory: ‘/usr/libexec/netdata/python.d/python_modules/urllib3/contrib/_securetransport’
removed ‘/usr/libexec/netdata/python.d/python_modules/urllib3/contrib/__init__.py’
removed ‘/usr/libexec/netdata/python.d/python_modules/urllib3/contrib/appengine.py’
removed ‘/usr/libexec/netdata/python.d/python_modules/urllib3/contrib/ntlmpool.py’
removed ‘/usr/libexec/netdata/python.d/python_modules/urllib3/contrib/pyopenssl.py’
removed ‘/usr/libexec/netdata/python.d/python_modules/urllib3/contrib/securetransport.py’
removed ‘/usr/libexec/netdata/python.d/python_modules/urllib3/contrib/socks.py’
removed directory: ‘/usr/libexec/netdata/python.d/python_modules/urllib3/contrib’
removed ‘/usr/libexec/netdata/python.d/python_modules/urllib3/util/__init__.py’
removed ‘/usr/libexec/netdata/python.d/python_modules/urllib3/util/connection.py’
removed ‘/usr/libexec/netdata/python.d/python_modules/urllib3/util/request.py’
removed ‘/usr/libexec/netdata/python.d/python_modules/urllib3/util/response.py’
removed ‘/usr/libexec/netdata/python.d/python_modules/urllib3/util/retry.py’
removed ‘/usr/libexec/netdata/python.d/python_modules/urllib3/util/selectors.py’
removed ‘/usr/libexec/netdata/python.d/python_modules/urllib3/util/ssl_.py’
removed ‘/usr/libexec/netdata/python.d/python_modules/urllib3/util/timeout.py’
removed ‘/usr/libexec/netdata/python.d/python_modules/urllib3/util/url.py’
removed ‘/usr/libexec/netdata/python.d/python_modules/urllib3/util/wait.py’
removed directory: ‘/usr/libexec/netdata/python.d/python_modules/urllib3/util’
removed ‘/usr/libexec/netdata/python.d/python_modules/urllib3/__init__.py’
removed ‘/usr/libexec/netdata/python.d/python_modules/urllib3/_collections.py’
removed ‘/usr/libexec/netdata/python.d/python_modules/urllib3/connection.py’
removed ‘/usr/libexec/netdata/python.d/python_modules/urllib3/connectionpool.py’
removed ‘/usr/libexec/netdata/python.d/python_modules/urllib3/exceptions.py’
removed ‘/usr/libexec/netdata/python.d/python_modules/urllib3/fields.py’
removed ‘/usr/libexec/netdata/python.d/python_modules/urllib3/filepost.py’
removed ‘/usr/libexec/netdata/python.d/python_modules/urllib3/response.py’
removed ‘/usr/libexec/netdata/python.d/python_modules/urllib3/poolmanager.py’
removed ‘/usr/libexec/netdata/python.d/python_modules/urllib3/request.py’
removed directory: ‘/usr/libexec/netdata/python.d/python_modules/urllib3’
removed ‘/usr/libexec/netdata/python.d/python_modules/pyyaml2/__init__.py’
removed ‘/usr/libexec/netdata/python.d/python_modules/pyyaml2/composer.py’
removed ‘/usr/libexec/netdata/python.d/python_modules/pyyaml2/constructor.py’
removed ‘/usr/libexec/netdata/python.d/python_modules/pyyaml2/cyaml.py’
removed ‘/usr/libexec/netdata/python.d/python_modules/pyyaml2/dumper.py’
removed ‘/usr/libexec/netdata/python.d/python_modules/pyyaml2/emitter.py’
removed ‘/usr/libexec/netdata/python.d/python_modules/pyyaml2/error.py’
removed ‘/usr/libexec/netdata/python.d/python_modules/pyyaml2/events.py’
removed ‘/usr/libexec/netdata/python.d/python_modules/pyyaml2/loader.py’
removed ‘/usr/libexec/netdata/python.d/python_modules/pyyaml2/nodes.py’
removed ‘/usr/libexec/netdata/python.d/python_modules/pyyaml2/parser.py’
removed ‘/usr/libexec/netdata/python.d/python_modules/pyyaml2/reader.py’
removed ‘/usr/libexec/netdata/python.d/python_modules/pyyaml2/representer.py’
removed ‘/usr/libexec/netdata/python.d/python_modules/pyyaml2/resolver.py’
removed ‘/usr/libexec/netdata/python.d/python_modules/pyyaml2/scanner.py’
removed ‘/usr/libexec/netdata/python.d/python_modules/pyyaml2/serializer.py’
removed ‘/usr/libexec/netdata/python.d/python_modules/pyyaml2/tokens.py’
removed directory: ‘/usr/libexec/netdata/python.d/python_modules/pyyaml2’
removed ‘/usr/libexec/netdata/python.d/python_modules/pyyaml3/__init__.py’
removed ‘/usr/libexec/netdata/python.d/python_modules/pyyaml3/composer.py’
removed ‘/usr/libexec/netdata/python.d/python_modules/pyyaml3/constructor.py’
removed ‘/usr/libexec/netdata/python.d/python_modules/pyyaml3/cyaml.py’
removed ‘/usr/libexec/netdata/python.d/python_modules/pyyaml3/dumper.py’
removed ‘/usr/libexec/netdata/python.d/python_modules/pyyaml3/emitter.py’
removed ‘/usr/libexec/netdata/python.d/python_modules/pyyaml3/error.py’
removed ‘/usr/libexec/netdata/python.d/python_modules/pyyaml3/events.py’
removed ‘/usr/libexec/netdata/python.d/python_modules/pyyaml3/loader.py’
removed ‘/usr/libexec/netdata/python.d/python_modules/pyyaml3/nodes.py’
removed ‘/usr/libexec/netdata/python.d/python_modules/pyyaml3/parser.py’
removed ‘/usr/libexec/netdata/python.d/python_modules/pyyaml3/reader.py’
removed ‘/usr/libexec/netdata/python.d/python_modules/pyyaml3/representer.py’
removed ‘/usr/libexec/netdata/python.d/python_modules/pyyaml3/resolver.py’
removed ‘/usr/libexec/netdata/python.d/python_modules/pyyaml3/scanner.py’
removed ‘/usr/libexec/netdata/python.d/python_modules/pyyaml3/serializer.py’
removed ‘/usr/libexec/netdata/python.d/python_modules/pyyaml3/tokens.py’
removed directory: ‘/usr/libexec/netdata/python.d/python_modules/pyyaml3’
removed ‘/usr/libexec/netdata/python.d/python_modules/third_party/__init__.py’
removed ‘/usr/libexec/netdata/python.d/python_modules/third_party/ordereddict.py’
removed ‘/usr/libexec/netdata/python.d/python_modules/third_party/lm_sensors.py’
removed ‘/usr/libexec/netdata/python.d/python_modules/third_party/mcrcon.py’
removed ‘/usr/libexec/netdata/python.d/python_modules/third_party/boinc_client.py’
removed ‘/usr/libexec/netdata/python.d/python_modules/third_party/monotonic.py’
removed directory: ‘/usr/libexec/netdata/python.d/python_modules/third_party’
removed ‘/usr/libexec/netdata/python.d/python_modules/__init__.py’
removed directory: ‘/usr/libexec/netdata/python.d/python_modules’
removed ‘/usr/libexec/netdata/python.d/freeradius.chart.py’
removed ‘/usr/libexec/netdata/python.d/gearman.chart.py’
removed ‘/usr/libexec/netdata/python.d/go_expvar.chart.py’
removed ‘/usr/libexec/netdata/python.d/haproxy.chart.py’
removed ‘/usr/libexec/netdata/python.d/hddtemp.chart.py’
removed ‘/usr/libexec/netdata/python.d/httpcheck.chart.py’
removed ‘/usr/libexec/netdata/python.d/hpssa.chart.py’
removed ‘/usr/libexec/netdata/python.d/icecast.chart.py’
removed ‘/usr/libexec/netdata/python.d/ipfs.chart.py’
removed ‘/usr/libexec/netdata/python.d/isc_dhcpd.chart.py’
removed ‘/usr/libexec/netdata/python.d/litespeed.chart.py’
removed ‘/usr/libexec/netdata/python.d/logind.chart.py’
removed ‘/usr/libexec/netdata/python.d/megacli.chart.py’
removed ‘/usr/libexec/netdata/python.d/memcached.chart.py’
removed ‘/usr/libexec/netdata/python.d/mongodb.chart.py’
removed ‘/usr/libexec/netdata/python.d/monit.chart.py’
removed ‘/usr/libexec/netdata/python.d/mysql.chart.py’
removed ‘/usr/libexec/netdata/python.d/nginx.chart.py’
removed ‘/usr/libexec/netdata/python.d/nginx_plus.chart.py’
removed ‘/usr/libexec/netdata/python.d/nvidia_smi.chart.py’
removed ‘/usr/libexec/netdata/python.d/nsd.chart.py’
removed ‘/usr/libexec/netdata/python.d/ntpd.chart.py’
removed ‘/usr/libexec/netdata/python.d/ovpn_status_log.chart.py’
removed ‘/usr/libexec/netdata/python.d/openldap.chart.py’
removed ‘/usr/libexec/netdata/python.d/oracledb.chart.py’
removed ‘/usr/libexec/netdata/python.d/phpfpm.chart.py’
removed ‘/usr/libexec/netdata/python.d/portcheck.chart.py’
removed ‘/usr/libexec/netdata/python.d/postfix.chart.py’
removed ‘/usr/libexec/netdata/python.d/postgres.chart.py’
removed ‘/usr/libexec/netdata/python.d/powerdns.chart.py’
removed ‘/usr/libexec/netdata/python.d/proxysql.chart.py’
removed ‘/usr/libexec/netdata/python.d/puppet.chart.py’
removed ‘/usr/libexec/netdata/python.d/rabbitmq.chart.py’
removed ‘/usr/libexec/netdata/python.d/redis.chart.py’
removed ‘/usr/libexec/netdata/python.d/rethinkdbs.chart.py’
removed ‘/usr/libexec/netdata/python.d/retroshare.chart.py’
removed ‘/usr/libexec/netdata/python.d/riakkv.chart.py’
removed ‘/usr/libexec/netdata/python.d/samba.chart.py’
removed ‘/usr/libexec/netdata/python.d/sensors.chart.py’
removed ‘/usr/libexec/netdata/python.d/smartd_log.chart.py’
removed ‘/usr/libexec/netdata/python.d/spigotmc.chart.py’
removed ‘/usr/libexec/netdata/python.d/springboot.chart.py’
removed ‘/usr/libexec/netdata/python.d/squid.chart.py’
removed ‘/usr/libexec/netdata/python.d/tomcat.chart.py’
removed ‘/usr/libexec/netdata/python.d/tor.chart.py’
removed ‘/usr/libexec/netdata/python.d/traefik.chart.py’
removed ‘/usr/libexec/netdata/python.d/uwsgi.chart.py’
removed ‘/usr/libexec/netdata/python.d/varnish.chart.py’
removed ‘/usr/libexec/netdata/python.d/w1sensor.chart.py’
removed ‘/usr/libexec/netdata/python.d/web_log.chart.py’
removed ‘/usr/libexec/netdata/python.d/adaptec_raid.chart.py’
removed ‘/usr/libexec/netdata/python.d/am2320.chart.py’
removed ‘/usr/libexec/netdata/python.d/apache.chart.py’
removed ‘/usr/libexec/netdata/python.d/beanstalk.chart.py’
removed ‘/usr/libexec/netdata/python.d/bind_rndc.chart.py’
removed ‘/usr/libexec/netdata/python.d/boinc.chart.py’
removed ‘/usr/libexec/netdata/python.d/ceph.chart.py’
removed ‘/usr/libexec/netdata/python.d/chrony.chart.py’
removed ‘/usr/libexec/netdata/python.d/couchdb.chart.py’
removed ‘/usr/libexec/netdata/python.d/dnsdist.chart.py’
removed ‘/usr/libexec/netdata/python.d/dns_query_time.chart.py’
removed ‘/usr/libexec/netdata/python.d/dockerd.chart.py’
removed ‘/usr/libexec/netdata/python.d/dovecot.chart.py’
removed ‘/usr/libexec/netdata/python.d/elasticsearch.chart.py’
removed ‘/usr/libexec/netdata/python.d/energid.chart.py’
removed ‘/usr/libexec/netdata/python.d/example.chart.py’
removed ‘/usr/libexec/netdata/python.d/exim.chart.py’
removed ‘/usr/libexec/netdata/python.d/fail2ban.chart.py’
removed directory: ‘/usr/libexec/netdata/python.d’
removed ‘/usr/libexec/netdata/netdata-uninstaller.sh’
removed ‘/usr/libexec/netdata/netdata-updater.sh’
removed directory: ‘/usr/libexec/netdata’
OK
Press ENTER to recursively delete directory '/var/lib/netdata' >
[/root/netdata/packaging/installer]# rm -v -f -R /var/lib/netdata
removed ‘/var/lib/netdata/registry/netdata.public.unique.id’
removed directory: ‘/var/lib/netdata/registry’
removed ‘/var/lib/netdata/health/health-log.db.old’
removed ‘/var/lib/netdata/health/health-log.db’
removed directory: ‘/var/lib/netdata/health’
removed ‘/var/lib/netdata/netdata.api.key’
removed ‘/var/lib/netdata/.aclk_report_sent’
removed ‘/var/lib/netdata/netdata.tarball.checksum’
removed ‘/var/lib/netdata/god-jobs-statuses.json’
removed ‘/var/lib/netdata/pythond-jobs-statuses.json’
removed directory: ‘/var/lib/netdata’
OK
Press ENTER to recursively delete directory '/var/cache/netdata' >
[/root/netdata/packaging/installer]# rm -v -f -R /var/cache/netdata
removed ‘/var/cache/netdata/dbengine/datafile-1-0000000210.ndf’
removed ‘/var/cache/netdata/dbengine/datafile-1-0000000211.ndf’
removed ‘/var/cache/netdata/dbengine/journalfile-1-0000000211.njf’
removed ‘/var/cache/netdata/dbengine/datafile-1-0000000212.ndf’
removed ‘/var/cache/netdata/dbengine/journalfile-1-0000000212.njf’
removed ‘/var/cache/netdata/dbengine/datafile-1-0000000213.ndf’
removed ‘/var/cache/netdata/dbengine/journalfile-1-0000000213.njf’
removed ‘/var/cache/netdata/dbengine/datafile-1-0000000214.ndf’
removed ‘/var/cache/netdata/dbengine/journalfile-1-0000000214.njf’
removed ‘/var/cache/netdata/dbengine/datafile-1-0000000215.ndf’
removed ‘/var/cache/netdata/dbengine/datafile-1-0000000216.ndf’
removed ‘/var/cache/netdata/dbengine/journalfile-1-0000000216.njf’
removed ‘/var/cache/netdata/dbengine/datafile-1-0000000217.ndf’
removed ‘/var/cache/netdata/dbengine/datafile-1-0000000218.ndf’
removed ‘/var/cache/netdata/dbengine/datafile-1-0000000219.ndf’
removed ‘/var/cache/netdata/dbengine/journalfile-1-0000000219.njf’
removed ‘/var/cache/netdata/dbengine/datafile-1-0000000220.ndf’
removed ‘/var/cache/netdata/dbengine/journalfile-1-0000000220.njf’
removed ‘/var/cache/netdata/dbengine/datafile-1-0000000221.ndf’
removed ‘/var/cache/netdata/dbengine/journalfile-1-0000000221.njf’
removed ‘/var/cache/netdata/dbengine/datafile-1-0000000222.ndf’
removed ‘/var/cache/netdata/dbengine/journalfile-1-0000000222.njf’
removed ‘/var/cache/netdata/dbengine/datafile-1-0000000223.ndf’
removed ‘/var/cache/netdata/dbengine/journalfile-1-0000000223.njf’
removed ‘/var/cache/netdata/dbengine/datafile-1-0000000224.ndf’
removed ‘/var/cache/netdata/dbengine/journalfile-1-0000000224.njf’
removed ‘/var/cache/netdata/dbengine/journalfile-1-0000000210.njf’
removed ‘/var/cache/netdata/dbengine/journalfile-1-0000000215.njf’
removed ‘/var/cache/netdata/dbengine/journalfile-1-0000000217.njf’
removed ‘/var/cache/netdata/dbengine/journalfile-1-0000000218.njf’
removed directory: ‘/var/cache/netdata/dbengine’
removed ‘/var/cache/netdata/.netdata_bash_sleep_timer_fifo’
removed directory: ‘/var/cache/netdata/.pki/nssdb’
removed directory: ‘/var/cache/netdata/.pki’
removed directory: ‘/var/cache/netdata’
OK
Press ENTER to recursively delete directory '/var/log/netdata' >
[/root/netdata/packaging/installer]# rm -v -f -R /var/log/netdata
removed ‘/var/log/netdata/debug.log’
removed ‘/var/log/netdata/access.log-20200505.gz’
removed ‘/var/log/netdata/access.log-20200506.gz’
removed ‘/var/log/netdata/access.log-20200507.gz’
removed ‘/var/log/netdata/error.log-20200530.gz’
removed ‘/var/log/netdata/error.log-20200531.gz’
removed ‘/var/log/netdata/error.log-20200604.gz’
removed ‘/var/log/netdata/error.log-20200608.gz’
removed ‘/var/log/netdata/access.log-20200508.gz’
removed ‘/var/log/netdata/error.log-20200605.gz’
removed ‘/var/log/netdata/access.log-20200513.gz’
removed ‘/var/log/netdata/error.log-20200601.gz’
removed ‘/var/log/netdata/error.log-20200602.gz’
removed ‘/var/log/netdata/access.log-20200530.gz’
removed ‘/var/log/netdata/error.log-20200603.gz’
removed ‘/var/log/netdata/access.log-20200608’
removed ‘/var/log/netdata/access.log’
removed ‘/var/log/netdata/error.log’
removed ‘/var/log/netdata/access.log-20200516.gz’
removed ‘/var/log/netdata/error.log-20200606.gz’
removed ‘/var/log/netdata/access.log-20200605.gz’
removed ‘/var/log/netdata/error.log-20200607.gz’
removed ‘/var/log/netdata/access.log-20200522.gz’
removed ‘/var/log/netdata/error.log-20200527.gz’
removed ‘/var/log/netdata/error.log-20200528.gz’
removed ‘/var/log/netdata/access.log-20200526.gz’
removed ‘/var/log/netdata/error.log-20200529.gz’
removed ‘/var/log/netdata/access.log-20200604.gz’
removed ‘/var/log/netdata/error.log-20200609’
removed directory: ‘/var/log/netdata’
OK
Press ENTER to recursively delete directory '/etc/netdata' >
[/root/netdata/packaging/installer]# rm -v -f -R /etc/netdata
removed directory: ‘/etc/netdata/charts.d’
removed directory: ‘/etc/netdata/node.d’
removed directory: ‘/etc/netdata/python.d’
removed directory: ‘/etc/netdata/statsd.d’
removed directory: ‘/etc/netdata/custom-plugins.d’
removed directory: ‘/etc/netdata/go.d’
removed directory: ‘/etc/netdata/health.d’
removed directory: ‘/etc/netdata/ssl’
removed ‘/etc/netdata/netdata.conf’
removed directory: ‘/etc/netdata/claim.d’
removed ‘/etc/netdata/.environment’
removed ‘/etc/netdata/.installer-cleanup-of-stock-configs-done’
removed ‘/etc/netdata/edit-config’
removed ‘/etc/netdata/orig’
removed directory: ‘/etc/netdata’
OK
Finding lib directory ...
[/root/netdata/packaging/installer]# ldconfig
OK
ePBF uninstall all done!
Press ENTER to delete 'netdata' from following groups: ' adm nobody' >
Deleting netdata user from adm group ...
[/root/netdata/packaging/installer]# gpasswd -d netdata adm
Removing user netdata from group adm
OK
Deleting netdata user from nobody group ...
[/root/netdata/packaging/installer]# gpasswd -d netdata nobody
Removing user netdata from group nobody
OK
Press ENTER to delete 'netdata' system user >
Deleting netdata user account ...
[/root/netdata/packaging/installer]# userdel -f netdata
OK
Press ENTER to delete 'netdata' system group >
Removing netdata user group ...
Group netdata already removed in a previous step.
OK
Group netdata was not automatically removed, you might have to remove it manually
Netdata files were successfully removed from your system
[root@localhost installer]#
Tampilkan postingan dengan label centos. Tampilkan semua postingan
Tampilkan postingan dengan label centos. Tampilkan semua postingan
Selasa, Juni 09, 2020
Rabu, April 29, 2020
centos increase root Extending Root partition in CentOS 7 by resizing Home partition
Extending Root partition in CentOS 7 by resizing Home partition
With default installation of CentOS 7 we have rather small ROOT partition, with the rest of disk given to HOME partition. If you however, use your server for hosting or mail purposes, most of the space will be required in ROOT partition, while HOME is almost unused.
Therefore, we need to re-partition our disk by increasing ROOT, while shrinking HOME partition.
At first, main steps in short:
- Backup HOME partition
- Unmount and remove HOME logical volume
- Resize ROOT partition
- Restore HOME
- Remove HOME from fstab
Now everything in detail.
While checking disk space you can use “df –h”, however, “lsblk” gives much nicer output. Here we can see that Home partition is 440GB, while Root is only 50GB.
[root@server /]# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
fd0 2:0 1 4K 0 disk
sda 8:0 0 500G 0 disk
├─sda1 8:1 0 500M 0 part /boot
└─sda2 8:2 0 499.5G 0 part
├─centos-root 253:0 0 50G 0 lvm /
├─centos-swap 253:1 0 7.9G 0 lvm [SWAP]
└─centos-home 253:2 0 441.6G 0 lvm /home
sr0 11:0 1 1024M 0 rom
1. Backup Home partiton
There are several ways to backup and restore Home partition, but I mostly use “tar”, which is quick-and-dirty.
[root@server home]# cd /home
[root@server home]# tar cvf home.tar *
[root@server home]# cd /tmp
[root@server tmp]# cp /home/home.tar /tmp
2. Unmount and remove Home logical volume
[root@server /]# umount /home
[root@server /]# lvremove /dev/centos/home
Do you really want to remove active logical volume home? [y/n]: y
Logical volume “home” successfully removed
[root@server /]#
3. Resize Root partition
With “vgs” command you can see how much free space is available. By issuing lvresize command you can either use exact amount to extend or percentage. In my example I use 100%, but it could’ve been 441.63GB
[root@server /]# vgs
VG #PV #LV #SN Attr VSize VFree
centos 1 2 0 wz--n- 499.51g 441.63g
/* Issue resize command */
[root@server /]# lvresize -l +100%FREE centos/root
Size of logical volume centos/root changed from 50.00 GiB (12800 extents) to 491.63 GiB (125858 extents).
Logical volume root successfully resized.
[root@server /]#
/* Confirm the size of your partitions */
[root@server /]# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
fd0 2:0 1 4K 0 disk
sda 8:0 0 500G 0 disk
├─sda1 8:1 0 500M 0 part /boot
└─sda2 8:2 0 499.5G 0 part
├─centos-root 253:0 0 491.6G 0 lvm /
└─centos-swap 253:1 0 7.9G 0 lvm [SWAP]
sr0 11:0 1 1024M 0 rom
[root@server /]#
4. Remove entry of Home partition from fstab or comment it out so that system would not mount it at startup
[root@server etc]# sed -i ‘/centos-home/d’ /etc/fstab
Reboot and you are done!
To extend the Logical Volume and Filesystem at the same time:
lvextend -L +5G --resizefs /dev/centos/root
lvextend -L +5G --resizefs /dev/centos/root
To extend the Logical Volume separately:
lvextend -L +5G /dev/centos/root
lvextend -L +5G /dev/centos/root
To extend the Filesystem separately:
xfs_growfs /dev/centos/root
xfs_growfs /dev/centos/root
Langganan:
Postingan (Atom)
