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
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
No docs
Load videvs from libzfs
No docs
No docs
Sync dataset info
No docs
Sync ZFS Pool properties
Sync virtual devices
Update Disk with pool and health status
zpool_add (self, type, disk1, disk2)
Runs zpool add
Runs zpool destroy
Runs zpool detach
zfs_admin.zfs_admin.doctype.zfs_pool.zfs_pool.zpool_create (name, type, disk1, disk2)
zpool create