md

package
v0.0.0-...-a234189 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 29, 2016 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package md extracts useful info from the mdadm command on linux

Csv output is particularly supported, so that a csvfile-based enterprise's ETL tools can also monitor its servers and desktops

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Header() string

Header is generic

func Keys_String2PtrMddata

func Keys_String2PtrMddata(_mp *map[string]*Mddata) []string

Keys_String2PtrMddata is generic

func Md

func Md(_verbose bool) (smap map[string]*Mddata)

Md extracts mdadm data

func SortedKeys_String2PtrMddata

func SortedKeys_String2PtrMddata(_mp *map[string]*Mddata) []string

SortedKeys_String2PtrMddata is generic

Types

type Mddata

type Mddata struct {
	Name_             string // e.g. md0
	Status_           string // e.g. active
	Raidtype_         string // e.g. raid1
	Level_            string // e.g. 5
	Members_          string // e.g. sda2[0]/sdb2[1]
	Blocks_           string // e.g. 511988
	Chunk_            string // e.g. 65536Kb
	Bitmap_           string // e.g. 1/1
	Nearcopies_       string // e.g. 2
	Pages_            string // e.g. [4KB]
	Superversion_     string // e.g. 1.2
	Algo_             string // e.g. 2
	Numcomponents_    string // e.g. [5/5]	First num is ideal, second is actual
	Componentstatus_  string // e.g. [U_]
	Checkpct_         string // 40.2
	Checkminutesleft_ string // 6137.7
	Resync_           string // DELAYED
}

Mddata holds mdadm data

func (*Mddata) Csv

func (self *Mddata) Csv() string

Csv is generic

func (*Mddata) Print

func (self *Mddata) Print()

Print is generic

func (*Mddata) Sprint

func (self *Mddata) Sprint() string

Sprint is generic

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL