ZFS Pool

Table Name: tabZFS Pool

Fields

Sr Fieldname Type Label Options
1 section_break_5 Section Break Virtual Devices
2 virtual_devices Table Virtual Devices ZFS Pool VDev
3 section_break_7 Section Break
4 health Select Health
ONLINE
OFFLINE
DEGRADED
FAULTED
REMOVED
UNAVAIL
5 size Data Size
6 column_break_2 Column Break
7 allocated Data Allocated
8 free Data Free
9 info Section Break Info
10 capacity Percent Capacity Used
11 fragmentation Percent Fragmentation
12 dedupratio Float Deduplication Ratio
13 comment Small Text Comment
14 guid Int GUID
15 dedupditto Int Deduplication Threshold (Blocks)
16 column_break_16 Column Break
17 version Data Version
18 freeing Int Freeing
19 bootfs Data Boot Filesystem
20 cachefile Data Cache File
21 altroot Data Alternate Root
22 settings Section Break Settings
23 listsnapshots Data List Snapshots
24 delegation Data Delegation
25 autoexpand Data Auto Expand
26 leaked Int Leaked
27 column_break_27 Column Break
28 autoreplace Data Auto Replace
29 readonly Data Read Only
30 expandsize Data Expand Size
31 maxblocksize Int Max Block Size
32 failmode Data Fail Mode

Controller

zfs_admin.zfs_admin.doctype.zfs_pool.zfs_pool

Class ZFSPool

Inherits from frappe.model.document.Document

add_vdev (self, vdev, is_child=False)

Add a new virtual device row


fix_vdev_ordering (self)

Remove unused vdev records and order them so that the groups and disks appear below each other


get_disk_name (self, disk_path)

No docs


get_vdev_row (self, guid)

No docs


load_vdevs (self)

Load videvs from libzfs


on_update (self)

No docs


sync (self)

No docs


sync_datasets (self)

Sync dataset info


sync_one_dataset (self, d)

No docs


sync_properties (self)

Sync ZFS Pool properties


sync_vdev (self)

Sync virtual devices


update_disks (self)

Update Disk with pool and health status


zpool_add (self, type, disk1, disk2)

Runs zpool add


zpool_destroy (self)

Runs zpool destroy


zpool_detach (self, disk)

Runs zpool detach



zfs_admin.zfs_admin.doctype.zfs_pool.zfs_pool.zpool_create (name, type, disk1, disk2)

zpool create


Linked In: