Code Monkey home page Code Monkey logo

freenas-disklist's Introduction

FreeNas-DiskList

FreeNas "Disklist" script for report informations about installed hard drives

I wrote this script for getting informations about all installed disks inside my FreeNas box.

This script is written in Perl and use under the hood theses commands:

  • geom disk list
  • gmultipath status
  • zpool status
  • glabel status
  • sas2ircu list
  • sas2ircu # display
  • sas3ircu list
  • sas3ircu # display
  • nvmecontrol devlist

Command line usages are available here

Examples

./disklist.pl
partition           zpool         device      disk                      size  serial                 rpm
--------------------------------------------------------------------------------------------------------
da134p2             freenas-boot  da134       SanDisk Ultra Fit           62  4C531001421128120501   ???
da126p2             volBACKUP     da126       ATA Hitachi HUA72302      2000  YGHGTR4A              7200
da127p2             volBACKUP     da127       ATA Hitachi HUA72302      2000  YFHLRZ1A              7200
da128p2             volBACKUP     da128       ATA Hitachi HUA72302      2000  YGGU4MKA              7200
da129p2             volBACKUP     da129       ATA Hitachi HUA72302      2000  YGGU5D6A              7200
da130p2             volBACKUP     da130       ATA Hitachi HUA72302      2000  YFGR7ZPC              7200
da131p2             volBACKUP     da131       ATA Hitachi HUA72302      2000  YGHHK07A              7200
da132p2             volBACKUP     da132       ATA Hitachi HUA72302      2000  YFHHMMXA              7200
da133p2             volBACKUP     da133       ATA Hitachi HUA72302      2000  YGGK2R4A              7200
./disklist.pl -i:zpool tank -all

partition           label                                       zpool    device     sector  disk                      size  type  serial     rpm  location         multipath         mode
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
multipath/disk30p2  gptid/fe38f700-829a-11e7-810a-00074304a2f0  tank     da49,da97     512  HITACHI HUS72302CLAR2000  2000  HDD   YGH1E3DD  7200  SAS3008(1):3#53  multipath/disk30
multipath/disk31p2  gptid/01a5298c-829b-11e7-810a-00074304a2f0  tank     da50,da98     512  HITACHI HUS72302CLAR2000  2000  HDD   YGH1Y9KD  7200  SAS3008(1):3#54  multipath/disk31

freenas-disklist's People

Contributors

nephri avatar

Watchers

Ben Rog-Wilhelm avatar James Cloos avatar  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.