Class: OsCtl::Lib::Zfs::ZpoolStatus::Pool

Inherits:
Struct
  • Object
show all
Defined in:
lib/libosctl/zfs/zpool_status.rb

Instance Attribute Summary collapse

Instance Attribute Details

#nameString (readonly)

Returns pool name.

Returns:

  • (String)

    pool name



14
15
16
17
18
19
20
21
# File 'lib/libosctl/zfs/zpool_status.rb', line 14

Pool = Struct.new(
  :name,
  :state,
  :scan,
  :scan_percent,
  :virtual_devices,
  keyword_init: true
)

#scan:none, ... (readonly)

Returns active scan type.

Returns:

  • (:none, :scrub, :resilver)

    active scan type



14
15
16
17
18
19
20
21
# File 'lib/libosctl/zfs/zpool_status.rb', line 14

Pool = Struct.new(
  :name,
  :state,
  :scan,
  :scan_percent,
  :virtual_devices,
  keyword_init: true
)

#scan_percentFloat? (readonly)

Returns scrub/resilver progress.

Returns:

  • (Float, nil)

    scrub/resilver progress



14
15
16
17
18
19
20
21
# File 'lib/libosctl/zfs/zpool_status.rb', line 14

Pool = Struct.new(
  :name,
  :state,
  :scan,
  :scan_percent,
  :virtual_devices,
  keyword_init: true
)

#state:online, ... (readonly)

Returns pool state.

Returns:

  • (:online, :degraded, :suspended, :faulted)

    pool state



14
15
16
17
18
19
20
21
# File 'lib/libosctl/zfs/zpool_status.rb', line 14

Pool = Struct.new(
  :name,
  :state,
  :scan,
  :scan_percent,
  :virtual_devices,
  keyword_init: true
)

#virtual_devicesArray<VirtualDevice> (readonly)

Returns:



14
15
16
17
18
19
20
21
# File 'lib/libosctl/zfs/zpool_status.rb', line 14

Pool = Struct.new(
  :name,
  :state,
  :scan,
  :scan_percent,
  :virtual_devices,
  keyword_init: true
)