Re: strange output from storage promise
"'Lars Erik Wik' via help-cfengine" <[email protected]> Thu, 14 Sep 2023 01:53:58 -0700 (PDT)
| Newsgroups | gmane.comp.sysutils.cfengine.general |
|---|---|
| Message-ID | <[email protected]> |
> where is volume.sensible_size coming from? `sensible_size` is an attribute in `body volume` (see https://docs.cfengine.com/docs/3.21/reference-promise-types-storage.html#sensible_size) I might be wrong, but It looks to me like you are listing the size of the filesystem. However the `storage` promise type is complaining about the number of bytes used. Can you try to type command `df /opt/` ? On Thursday, September 14, 2023 at 10:13:46 AM UTC+2 Xander Cage wrote: > Hi, > > on one of our aix machines we get this outpput from storage monitoring. > > error: File system '/opt' is suspiciously small! (9759 bytes) > > which is definitly not correct... > > root@wpsap: /root # lsfs -q /opt > Name Nodename Mount Pt VFS Size Options Auto Accounting > /dev/hd10opt -- /opt jfs2 11534336 -- yes no > (lv size: 11534336, fs size: 11534336, block size: 512, sparse files: yes, > inline log: no, inline log size: 0, EAformat: v1, Quota: no, DMAPI: no, > VIX: yes, EFS: no, ISNAPSHOT: no, MAXEXT: 0, MountGuard: no, LFF: no) > > mesage comes from here -> > https://github.com/cfengine/core/blob/master/cf-agent/verify_storage.c#L251 > > skimmed through spaghetti code but i guess was unable to fully grasp whats > going on here... > > https://github.com/cfengine/core/blob/master/cf-agent/verify_storage.c#L249 > > where is volume.sensible_size coming from? i expected some form of statfs > call somewhere but only found one in another unrelated universe. > > > https://github.com/cfengine/core/blob/master/libpromises/storage_tools.c#L84 > > i have an case open with the ibm guys, so please can sombady shaed some > light on this`? > > wbr > > chris > > > -- You received this message because you are subscribed to the Google Groups "help-cfengine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/help-cfengine/01adc3a3-02e5-4783-961a-87573602e32fn%40googlegroups.com.