SMARTdb update {mini tutorial} ;)

guletz

Famous Member
Apr 19, 2017
1,644
292
128
Brasov, Romania
Hi to all,

1. What problem do we want to solve?

- we want to have a updated database regarding SMART info((Self-Monitoring, Analysis and Reporting Technology; often written as SMART)), because
the developers of smartmontools make updates frequently about HDDs/SSDs/and so on

2. How it can be done?

- the short answer: running from command line
Code:
/usr/sbin/update-smart-drivedb
- details bellow:

a. Check if the /usr/sbin/update-smart-drivedb can show a output like this, and if you want you can adjuts the command with some parameters(see update-smart-drivedb --help)
- in my case, I can see at firs run this:

Code:
/usr/sbin/update-smart-drivedb
/var/lib/smartmontools/drivedb/drivedb.h updated from branches/RELEASE_7_2_DRIVEDB

- if I run again, then I see this:

Code:
update-smart-drivedb
/var/lib/smartmontools/drivedb/drivedb.h is already up to date

- OK, so smartmontools data-base is up-to-date

b. Create a schedule so smartmontools can be updated automaticaly(weekly)

- create a new file with with your prefered editor(nano, mcedit, ...) or:

Code:
echo "/usr/sbin/update-smart-drivedb >> /var/log/syslog" > /etc/cron.weekly/smart-update

- I want to see the result of the command in my logs, so I use >> ... . It could be any files under /var/log if you want!

- make the permission for smart-update file(we want to be able to run):

Code:
chmod 750 /etc/cron.weekly/smart-update

c. Check if all is OK, running from shell:
- it can be executed?

Code:
/etc/cron.weekly/smart-update

- you will not see any output(because we redirected the output to a log file)

- I can see anything in my log-file?

Code:
cat /var/log/syslog|grep drivedb.h
/var/lib/smartmontools/drivedb/drivedb.h is already up to date

- If you can see some info like this then, you are OK!


Nota Bene: sorry for my bad English skils ;)

Good luck / Bafta !
 
Last edited:
  • Like
Reactions: soryn and macleod

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!