Comments (6)
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.
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.
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.
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.
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.
Fixed in commit 74b88d7.
from sos.
Related Issues (20)
- [RFE] Extend `sos clean` to have an option for environment variables HOT 4
- Planning release sos-4.7.0 HOT 12
- Juju collector returning 127, not finding nodes
- foreman tests are failing HOT 2
- [Ubuntu] sos collect is throwing a deprecation warning when verifying the sos package version
- parse_version fails on Ubuntu HOT 3
- Drop any SCL related code? HOT 2
- [cleaner] unable to set a parser to skip obfuscating a (destination of) symlink
- 4.7.0: pytest fails because missing `sos_tests` module and deprecation waning HOT 3
- -plugin-timeout does not wait long enoufg HOT 4
- [Ubuntu] Stage 1 and Stage 2 errors due to python 3.12 being introduced HOT 14
- [RFE] Add rootless container log collection to podman plugin HOT 2
- [ubuntu] `msr` module being loaded while running a basic sosreport HOT 1
- [RFE] speedup journal export HOT 5
- [RFE] collect kubernetes informations for kubeadm installs HOT 2
- [ubuntu] snap causing issues on 18.04
- sos.conf options dont match cmdline options HOT 3
- Using maxage argument in PlugIn's add_copy_spec raises an exception
- There are no plugin to gater K8s/OCP rotated logs
- [snaps] when using `--all-logs` some command outputs will not be collected HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sos.