lpar2rrd upgrade - changing permissions error

tsniad
edited October 2022 in IBM

Hey,

I have a question regarding the permission changes for the data.db file. During the update from 7.41 to 7.51 I noticed the following error:

chmod -R o + r, o + x / home / lpar2rrd / lpar2rrd / data
chmod: changing permissions of '/home/lpar2rrd/lpar2rrd/data/_DB/data.db': Operation not permitted


Despite this, the upgrade is over and I wonder if this is the intended action or the error should not be displayed. The data.db file belongs to the user apache:


[lpar2rrd @ LPAR2RRD lpar2rrd] $ ls -la data / _DB / data.db
-rw-rw-rw- 1 apache apache 118784 Oct 6 11:40 date / _DB / data.db


I did the upgrade from the lpar2rrd user who does not have root privileges. Should I manually add permissions to data.db or it doesn't matter and won't matter in the next upgrades?


Below I present the entire listing of the upgrade:

Where is LPAR2RRD actually located [/home/lpar2rrd/lpar2rrd]:
Extracting distribution
Backing up original version : 7.41 to /home/lpar2rrd/lpar2rrd/BACKUP-INSTALL/lpar2rrd-7.41
Saving 7.41 configuration
Copy new version to the target destination
Configuring new /home/lpar2rrd/lpar2rrd/etc/lpar2rrd.cfg
Setting file/dir permissions, it might take some time in big environments
chmod -R o+r,o+x /home/lpar2rrd/lpar2rrd/data
chmod: changing permissions of '/home/lpar2rrd/lpar2rrd/data/_DB/data.db': Operation not permitted

Stopping LPAR2RRD daemon

Removing wrong RHV storage IOPS data

Upgrade to version 7.51 is done
Now you can start the tool:

 cd /home/lpar2rrd/lpar2rrd
 ./load.sh 2>&1 | tee logs/load.out-initial

Wait for finishing of that, then refresh the GUI (Ctrl-F5)

Comments

  • Oh, I accidentally put the question in the wrong category, could I ask for the question to be moved to LPAR2RRD? I do not see this option from my account.

  • Hi,


    either keep it as it is or change to lpar2rrd user ownersip with 644 file rights

  • Hey, thanks for the answer, that solves my problem

Sign In or Register to comment.