Giter VIP home page Giter VIP logo

Comments (6)

keithrob avatar keithrob commented on July 24, 2024

If I understand your question right, you would like SoS to scoop up an arbitrary file, i.e. dmraid.ddf1, and place it into the archive containing all of the other log files, i.e. /tmp/sosreport-*.tar.xz. If that understanding is correct, then you should know that this is generally not how SoS works.

The config files, log files, cmd output, etc. that SoS collects are specifically defined by plug-ins. For example, there is a Apache plug-in to collect Apache HTTPD related config files and log files. In your specific case, the plug-in that would be capturing dmraid type information is called devicemapper.py (sosreport/sos/plugins/devicemapper.py).

To summarize, the information that SoS collects from a system is strictly defined by individual plug-ins. If you want something collected that is not in a plug-in then please elaborate on what it is and why you might want it collected.

Cheers,
Keith

from sos.

boskiv avatar boskiv commented on July 24, 2024

No, I trying to say that directory dmraid.ddf1 MUST be in archive because sosreport/sos/plugins/devicemapper.py plugin is enabled. But even that it's not happend. In redhat I run sosreport by hand and diretory dmraid.ddf1 creating in place where I run.

from sos.

jhjaggars avatar jhjaggars commented on July 24, 2024

Hi boskiv,

It doesn't look like the devicemapper plugin copies any files. It shells out and calls many utilities, like dmraid, to gather information about configured devices.

Were you expecting sosreport to copy the $PWD/dmraid.ddf1/ directory when you ran sosreport --batch from the $PWD?

from sos.

bmr-cymru avatar bmr-cymru commented on July 24, 2024

This must be generated by the calls to dmraid; I'll have a look at the source to try to work out where this comes from, otherwise I'll need to find some DDF1 metadata to test with.

from sos.

bmr-cymru avatar bmr-cymru commented on July 24, 2024

man dmraid:

       {-r|--raid_devices} [device-path...]
              List  all discovered RAID devices with format, RAID level, sectors used and data offset into the device.  In case a metadata format handler is chosen with -f
              , only RAID devices with such format can be discovered. Useful if devices have multiple metadata signatures.  If -D is added to -r  the  RAID  metadata  gets
              dumped  into a subdirectory named dmraid.format_name (eg. format_name = isw) in files named devicename.dat.  The byte offset where the metadata is located on
              the device is written into files named devicename.offset and the size of the device in sectors into files named devicename.size.

I don't think we want to collect this by default.

from sos.

bmr-cymru avatar bmr-cymru commented on July 24, 2024

Fixed in commit 74b88d7.

from sos.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.