Giter Site home page Giter Site logo

lsdrv's Introduction

lsdrv - Report on a system's disk interfaces and how they are used.

This script shows a system administrator the details of the block devices
in a system, organized by subsystem and interface and displayed in a tree.
Where possible, serial numbers and unique IDs are displayed in braces to
document the setup. The hierarchy looks like:

Controller {serial}
 └─Physical Device {serial}
    └─Block Device {uuid}
       └─Partition {uuid}
          └─Layered Device {uuid}
             └─LVM Volume Group {uuid}
                └─LVM Logical Volume {uuid}
                   └─Mount point

System utilities 'lspci' and/or 'lsusb' are used to describe the
controller, with fallback to an abbreviated form of the sysfs path.

Sysfs properties and the system utilities 'ata_id', 'sginfo' and/or
'smartctl' are used to decribe the physical device.

Sysfs properties and the system utilities 'vol_id' or 'blkid' are used
to describe the generic block devices and the partitions or other layered
devices they contain (except for LVM).

System utilities 'pvs' and 'lvs' are used to describe block devices that
are physical volumes in the LVM subsystem.

Missing utilities are noted, but the script attempts to continue without
them.

If you get UnicodeEncodeError while executing with Python 3, you may have LC_ALL=C. Try executing 'export PYTHONIOENCODING=utf_8' or 'export LC_ALL=en_US.UTF-8'.

lsdrv's People

Contributors

coolcold avatar crimsonglory avatar l8gravely avatar pturmel avatar tskagestad avatar

Watchers

 avatar

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.