oci-utils icon indicating copy to clipboard operation
oci-utils copied to clipboard

oci-growfs: command not found

Open davidkhala opened this issue 3 years ago • 7 comments
trafficstars

Curerent Package

oci-utils-0.12.7-1.el7.noarch

I checked with others command like oci-metadata, and also see

ocid: command not found

davidkhala avatar Feb 20 '22 12:02 davidkhala

not sure what you are trying to run or on wat linux distro you are trying to run (parts of) oci-utils; although oci-growfs is now supporting ext4 filesystem, it is ported to python and cannot be run standalone anymore; oci-utils is still not supported on Ubuntu/Debian if you are trying to run it on one of those; if running on OL/RH, you should install it using the RPM, available shortly.

guidotijskens avatar Feb 21 '22 08:02 guidotijskens

not sure what you are trying to run or on wat linux distro you are trying to run (parts of) oci-utils; although oci-growfs is now supporting ext4 filesystem, it is ported to python and cannot be run standalone anymore; oci-utils is still not supported on Ubuntu/Debian if you are trying to run it on one of those; if running on OL/RH, you should install it using the RPM, available shortly.

As you can guess from package name, it is Oracle Linux 7 and oci-utils-0.12.7-1.el7.noarch is for sure a rpm package The issue comes as new since it was there and worked before.

davidkhala avatar Feb 21 '22 08:02 davidkhala

please let me know exactly what you are trying to do and what is not working and what is showing the "ocid: command not found"

guidotijskens avatar Feb 21 '22 08:02 guidotijskens

I create this issue for 2 independent command not found case

  1. oci-growfs command not found
  2. ocid command not found

What I tried to do is execute $oci-growfs or $ocid. Both of them should be there per my understanding of README

davidkhala avatar Feb 21 '22 12:02 davidkhala

as already said, ocid nor oci-growfs are intended to be run from the command prompt; ocid is a daemon, which for some reasons is not enabled by default, which takes care of the persistence of iscsi volumes and vnic's if enabled and running; oci-growfs is trying to expand the root file system if there is free space on the boot volume and no other partition is blocking this. oci-growfs is executed by the ocid service (if running..) . you can run this from the prompt, as the man page is documenting, by typing /usr/libexec/ocid and /usr/libexec/oci-growfs; this has been like this always, this code has never been in the path; maybe the readme could be somewhat clearer. .

guidotijskens avatar Feb 21 '22 13:02 guidotijskens

Enviroment: Oracle linux 7.9

run : /usr/libexec/oci-growfs;

Resolve the issue

Captura de Pantalla 2022-03-31 a la(s) 11 40 42 .

XterraEngine-dev avatar Mar 31 '22 17:03 XterraEngine-dev

as already said, ocid nor oci-growfs are intended to be run from the command prompt; ocid is a daemon, which for some reasons is not enabled by default, which takes care of the persistence of iscsi volumes and vnic's if enabled and running; oci-growfs is trying to expand the root file system if there is free space on the boot volume and no other partition is blocking this. oci-growfs is executed by the ocid service (if running..) . you can run this from the prompt, as the man page is documenting, by typing /usr/libexec/ocid and /usr/libexec/oci-growfs; this has been like this always, this code has never been in the path; maybe the readme could be somewhat clearer. .

Oh, it is all about these binaries have never been in the path Got that idea, any chances to update README?

davidkhala avatar Apr 01 '22 01:04 davidkhala