Issue with updating Checkmk Raw version 1.6.0p10 to 2.0.0p39

Hi All,

I am in the midst of upgrading our checkmk Raw from 1.6.0p10 to 2.0.0p39. Not sure if anyone came across this issue before. Here are my update commands :

OMD[prod]:~$ omd status
mkeventd: stopped
rrdcached: stopped
npcd: stopped
nagios: stopped
apache: stopped
crontab: stopped

Overall state: stopped
OMD[prod]:~$ omd update
umount: /opt/omd/sites/prod/tmp: target is busy.
Unmounting temporary filesystem…umount: /opt/omd/sites/prod/tmp: target is busy.
.umount: /opt/omd/sites/prod/tmp: target is busy.
.umount: /opt/omd/sites/prod/tmp: target is busy.
.umount: /opt/omd/sites/prod/tmp: target is busy.
.umount: /opt/omd/sites/prod/tmp: target is busy.
.umount: /opt/omd/sites/prod/tmp: target is busy.
.umount: /opt/omd/sites/prod/tmp: target is busy.
.umount: /opt/omd/sites/prod/tmp: target is busy.
.umount: /opt/omd/sites/prod/tmp: target is busy.
.ERROR: Cannot unmount temporary filesystem.

So, when I tried to unmount the tmp site ( as per the online checkmk documents) :

root@xxxxxxx:/opt/omd/sites/prod/tmp/check_mk# sudo umount /opt/omd/sites/prod/tmp
umount: /opt/omd/sites/prod/tmp: target is busy.

Checking the list of files being used on that path, I get the following:

root@xxxxxxx:/opt/omd/sites/prod/tmp/check_mk# sudo lsof +D /opt/omd/sites/prod/tmp
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
bash 804731 root cwd DIR 0,57 220 8 /opt/omd/sites/prod/tmp/check_mk
sudo 2115590 root cwd DIR 0,57 220 8 /opt/omd/sites/prod/tmp/check_mk
lsof 2115591 root cwd DIR 0,57 220 8 /opt/omd/sites/prod/tmp/check_mk
lsof 2115592 root cwd DIR 0,57 220 8 /opt/omd/sites/prod/tmp/check_mk

Any idea what are these files for, and how shall I proceed in upgrading ?

The manual unmount cannot work as you are inside the directory you try to unmount. But beside this, this can happen if a system has a very long uptime. I would first do a clean reboot of your system and start the upgrade after the reboot.

most tasks can be done while being the site, but I prefer to be root, this is one example

Thank you Anders. I manage to upgrade after rebooting the server :slight_smile:

Thank you @andreas-doehler,

Yes, after rebooting the server I manage to upgrade. Wonder why I didn’t think of this earlier. Thank you very much :slight_smile:

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.