Dietmar Maurer
|
d2ce211899
|
fixup for previous commit
|
2020-06-20 06:15:26 +02:00 |
|
Dietmar Maurer
|
1cb46c6f65
|
src/tools/disks/zpool_status.rs - cleanup: use struct StackItem instead of tuple
|
2020-06-19 18:58:57 +02:00 |
|
Dietmar Maurer
|
5d88c3a1c8
|
src/tools/disks/zpool_status.rs: remove unnecessary checks
Thos things can never happen, so simply use unwrap().
|
2020-06-19 18:27:39 +02:00 |
|
Dietmar Maurer
|
07fb504943
|
src/tools/disks/zpool_status.rs: simplify code by using serde_json::to_value
|
2020-06-19 17:51:13 +02:00 |
|
Dietmar Maurer
|
f675c5e978
|
src/tools/disks/zpool_status.rs - add all attributes to the tree
|
2020-06-19 16:55:28 +02:00 |
|
Dietmar Maurer
|
3352ee5656
|
parse_zpool_status_field: handle tabs without copying input
|
2020-06-18 19:40:01 +02:00 |
|
Dietmar Maurer
|
b29cbc414d
|
parse_zpool_status_vdev: consider tabs as 8 spaces
|
2020-06-18 18:38:56 +02:00 |
|
Dietmar Maurer
|
026dc1d11f
|
src/api2/node/disks/zfs.rs: add zpool_details api
|
2020-06-18 15:04:46 +02:00 |
|
Dietmar Maurer
|
9438aca6c9
|
src/tools/disks/zpool_status.rs: improve parser
|
2020-06-18 14:55:22 +02:00 |
|
Dietmar Maurer
|
547f0c97e4
|
src/tools/nom.rs: new helper parse_complete_line() for single line parsers
Like parse_complete(), but generates simpler error messages.
|
2020-06-18 12:57:55 +02:00 |
|
Dietmar Maurer
|
177a2de992
|
src/tools/nom.rs: move nom helpers into separate file
|
2020-06-18 12:41:13 +02:00 |
|
Dietmar Maurer
|
0686b1f4db
|
src/tools/disks/zpool_list.rs: split code into separate file
|
2020-06-18 10:31:07 +02:00 |
|
Dietmar Maurer
|
0727e56a06
|
src/tools/disks/zpool_status.rs: parse zpool status output
|
2020-06-18 10:23:15 +02:00 |
|
Dietmar Maurer
|
2fd3d57490
|
src/tools/disks/zfs.rs: rename ZFSPoolStatus into ZFSPoolInfo, fix error message
|
2020-06-17 09:08:26 +02:00 |
|
Dietmar Maurer
|
3f851d1321
|
src/api2/node/disks/directory.rs: add early check if disk is unused
|
2020-06-17 08:31:11 +02:00 |
|
Dietmar Maurer
|
1aef491e24
|
src/bin/proxmox_backup_manager/disk.rs: add cli to create mounted disks
|
2020-06-17 08:07:54 +02:00 |
|
Dietmar Maurer
|
d0eccae37d
|
avoid compiler warning
|
2020-06-17 08:07:42 +02:00 |
|
Dietmar Maurer
|
a34154d900
|
src/tools/disks/zfs.rs: cleanup parse_pool_header
|
2020-06-17 07:47:11 +02:00 |
|
Dietmar Maurer
|
c2cc32b4dd
|
src/tools/disks/zfs.rs: add more parser tests
|
2020-06-17 07:38:19 +02:00 |
|
Dietmar Maurer
|
46405fa35d
|
src/tools/disks/zfs.rs: add comment
|
2020-06-17 07:14:26 +02:00 |
|
Dietmar Maurer
|
66af7f51bc
|
src/tools/disks/zfs.rs: make zfs list parser private
|
2020-06-17 07:00:54 +02:00 |
|
Dietmar Maurer
|
c72ccd4e33
|
src/tools/disks/zfs.rs: add regression tests for parse_zfs_list
|
2020-06-16 18:14:35 +02:00 |
|
Dietmar Maurer
|
902b2cc278
|
src/tools/disks/zfs.rs: simplify code
|
2020-06-16 17:51:17 +02:00 |
|
Dietmar Maurer
|
fb5a066500
|
src/api2/node/disks.rs: expose directory api
|
2020-06-16 13:36:32 +02:00 |
|
Dietmar Maurer
|
929a13b357
|
src/api2/node/disks/zfs.rs: add zpool api
|
2020-06-16 13:25:53 +02:00 |
|
Dietmar Maurer
|
36c65ee0b0
|
src/tools/disks/zfs.rs: cleanup (rename usage properties)
And allow to parse zpool list output without -v flag.
|
2020-06-16 13:25:53 +02:00 |
|
Dietmar Maurer
|
3378fd9fe5
|
src/tools/disks/zfs.rs: parse more infos (dedup, fragmentation, health)
|
2020-06-16 13:25:53 +02:00 |
|
Dietmar Maurer
|
58c51cf3d9
|
avoid compiler warnings
|
2020-06-16 13:25:53 +02:00 |
|
Dietmar Maurer
|
5509b199fb
|
use new run_command helper
|
2020-06-16 13:25:53 +02:00 |
|
Dietmar Maurer
|
ac7513e368
|
src/tools.rs: add setup_safe_path_env()
|
2020-06-15 10:38:30 +02:00 |
|
Dietmar Maurer
|
fbbcd85839
|
src/api2/node/disks/directory.rs: implement add-datastore feature
|
2020-06-15 10:01:50 +02:00 |
|
Dietmar Maurer
|
d4f2397d4c
|
add api to format disks and create datastores
|
2020-06-10 11:03:36 +02:00 |
|
Dietmar Maurer
|
669c137fec
|
src/tools/systemd.rs: implement daemon_reload, start_unit, stop_unit and enable_unit
|
2020-06-10 08:56:04 +02:00 |
|
Dietmar Maurer
|
144006fade
|
src/tools.rs: add new run_command helper
|
2020-06-10 07:16:47 +02:00 |
|
Dietmar Maurer
|
b9cf6ee797
|
src/tools/systemd/types.rs: add Mount config
|
2020-06-09 18:47:10 +02:00 |
|
Dietmar Maurer
|
da84cc52f4
|
src/tools/systemd.rs: implement escape_unit and unescape_unit
|
2020-06-09 11:52:06 +02:00 |
|
Dietmar Maurer
|
9bb161c881
|
src/tools/disks.rs: add create_single_linux_partition and create_file_system
|
2020-06-08 17:43:01 +02:00 |
|
Dietmar Maurer
|
297e600730
|
cleanup comment
|
2020-06-08 17:43:01 +02:00 |
|
Dietmar Maurer
|
ed7b3a7de2
|
src/tools/disks.rs: add get_fs_uuid helper
|
2020-06-08 17:43:01 +02:00 |
|
Dietmar Maurer
|
0f358204bd
|
src/tools/disks.rs: add helper to list partitions
|
2020-06-08 17:43:01 +02:00 |
|
Dietmar Maurer
|
ca6124d5fa
|
src/tools/disks.rs: make helpers pub
So that I can use them with my test code.
|
2020-06-08 17:43:01 +02:00 |
|
Dietmar Maurer
|
bc853b028f
|
src/tools/disks.rs: cleanup, remove unused DiskUse bitflag type
|
2020-06-08 09:43:07 +02:00 |
|
Dietmar Maurer
|
d406de299b
|
src/tools/disks.rs: use dev_t to index zfs/lvm device sets
|
2020-06-08 09:01:34 +02:00 |
|
Dietmar Maurer
|
dfb31de8f0
|
proxmox_backup_manager disk list: display gpt column
|
2020-06-08 07:35:44 +02:00 |
|
Dietmar Maurer
|
7c3aa258f8
|
src/tools/disks/zfs.rs: allow empty zpool list output
|
2020-06-08 07:23:04 +02:00 |
|
Dietmar Maurer
|
044055062c
|
src/tools/disks.rs: new helper to reread partition table
|
2020-06-08 07:22:06 +02:00 |
|
Dietmar Maurer
|
2b388026f8
|
src/api2/node/disks.rs: correctly use disk_by_name insteadf of disk_by_node
|
2020-06-08 07:20:59 +02:00 |
|
Dietmar Maurer
|
707974fdb3
|
src/api2/node/disks.rs: implement initgpt API
|
2020-06-07 10:30:34 +02:00 |
|
Dietmar Maurer
|
9069debcd8
|
src/api2/types.rs: define BLOCKDEVICE_NAME_SCHEMA
|
2020-06-07 07:20:25 +02:00 |
|
Dietmar Maurer
|
fa2bdc1309
|
src/config/acl.rs: add /system/disks to valid acl paths
|
2020-06-06 15:48:15 +02:00 |
|
Dietmar Maurer
|
8e40aa63c1
|
src/bin/proxmox-backup-manager.rs: add disk subcommand
|
2020-06-06 15:40:28 +02:00 |
|
Dietmar Maurer
|
d2522b2db6
|
src/tools/disks.rs: fix disk size, add completion helper
|
2020-06-06 15:39:25 +02:00 |
|
Dietmar Maurer
|
ce8e3de401
|
move disks api to /node/<node>/disks
|
2020-06-06 14:43:36 +02:00 |
|
Dietmar Maurer
|
7fa2779559
|
src/api2/disks.rs: implement smart api
|
2020-06-06 12:23:11 +02:00 |
|
Dietmar Maurer
|
042afd6e52
|
src/tools/disks.rs: new helper disk_by_name()
|
2020-06-06 12:22:38 +02:00 |
|
Dietmar Maurer
|
ff30caeaf8
|
src/api2/disks.rs - list-disks: add usage-type filter
|
2020-06-06 11:48:58 +02:00 |
|
Dietmar Maurer
|
553cd12ba6
|
src/api2/disks.rs: start disks api
|
2020-06-06 11:38:47 +02:00 |
|
Dietmar Maurer
|
de1e1a9d95
|
src/tools/disks.rs: use api macro so that we can use those types with the api
|
2020-06-06 11:37:24 +02:00 |
|
Dietmar Maurer
|
91960d6162
|
src/tools/disks.rs - get_disks: query smart status
|
2020-06-06 09:18:20 +02:00 |
|
Dietmar Maurer
|
4c24a48eb3
|
src/tools/disks/smart.rs: use model.to_string_lossy() to simplify code
|
2020-06-06 09:05:22 +02:00 |
|
Dietmar Maurer
|
484e761dab
|
src/tools/disks/smart.rs: try to get correct wearout for ATA devices
|
2020-06-06 09:01:15 +02:00 |
|
Dietmar Maurer
|
059b7a252e
|
src/tools/disks/smart.rs - get_smart_data: use &Disk instead of &str
So that we can query other device infos easily (model, vendor, ..)
|
2020-06-06 08:24:58 +02:00 |
|
Dietmar Maurer
|
eb80aac288
|
src/tools/disks/smart.rs: parse output from smartctl
|
2020-06-05 18:30:06 +02:00 |
|
Dietmar Maurer
|
c26aad405f
|
src/tools/disks.rs: implement get_disks (similar to the one in PVE::Diskmanage)
But no ceph support for now. Also no support for old cciss block devices.
|
2020-06-05 10:33:53 +02:00 |
|
Dietmar Maurer
|
f03a0e509e
|
src/tools/disks.rs; use correct subdir to check holders
|
2020-06-05 10:33:53 +02:00 |
|
Dietmar Maurer
|
4c1e8855cc
|
src/tools/disks.rs: fix disk type detection, remove newline from vendor string
|
2020-06-05 08:09:52 +02:00 |
|
Dietmar Maurer
|
85a9a5b68c
|
depend on proxmox 0.1.39
|
2020-06-05 08:08:40 +02:00 |
|
Dietmar Maurer
|
620911b426
|
src/tools/disks/lvm.rs: implement get_lvm_devices()
|
2020-06-04 09:12:19 +02:00 |
|
Dietmar Maurer
|
5c264c8d80
|
src/tools/disks.rs: add/use get_partition_type_info
|
2020-06-04 07:48:22 +02:00 |
|
Dietmar Maurer
|
456ad0c478
|
src/tools/disks/zfs.rs: add parser for zpool list output
|
2020-06-03 12:16:08 +02:00 |
|
Dietmar Maurer
|
c76c7f8303
|
bump version to 0.2.2-1
|
2020-06-03 10:37:46 +02:00 |
|
Dietmar Maurer
|
c48aa39f3b
|
src/bin/proxmox-backup-client.rs: implement quite flag
|
2020-06-03 10:11:37 +02:00 |
|
Dietmar Maurer
|
4e14781aec
|
fix typo
|
2020-06-03 06:59:43 +02:00 |
|
Dietmar Maurer
|
1610c45a86
|
src/client/pull.rs: also download client.log.blob
|
2020-05-30 14:51:33 +02:00 |
|
Dietmar Maurer
|
b2387eaa45
|
avoid compiler warnings
|
2020-05-30 14:05:33 +02:00 |
|
Dietmar Maurer
|
96d65fbcd0
|
cleanup: define/use const for predefined blob file names.
|
2020-05-30 14:04:15 +02:00 |
|
Dietmar Maurer
|
7cc3473a4e
|
src/client/backup_specification.rs: split code into extra file
|
2020-05-30 10:54:38 +02:00 |
|
Dietmar Maurer
|
4856a21836
|
src/client/pull.rs: more verbose logging
|
2020-05-30 08:12:43 +02:00 |
|
Dietmar Maurer
|
934f5bb8ac
|
src/bin/proxmox-backup-proxy.rs: cleanup, move code to src/tools/disks.rs
And simplify find_mounted_device by using stat.st_dev
|
2020-05-29 11:13:36 +02:00 |
|
Dietmar Maurer
|
013fa7bbcb
|
rrd: reduce io by saving data only once a minute
|
2020-05-29 09:16:13 +02:00 |
|
Dietmar Maurer
|
a8d7033cb2
|
src/bin/proxmox-backup-proxy.rs: add test if last prune job is still running
|
2020-05-29 08:06:48 +02:00 |
|
Dietmar Maurer
|
04ad7bc436
|
src/bin/proxmox-backup-proxy.rs: test if last sync job is still running
|
2020-05-29 08:06:48 +02:00 |
|
Dietmar Maurer
|
77ebbefc1a
|
src/server/worker_task.rs: make worker_is_active_local pub
|
2020-05-29 08:06:48 +02:00 |
|
Dietmar Maurer
|
750252ba2f
|
src/tools/systemd/time.rs: add test for "daily" schedule
|
2020-05-29 07:52:09 +02:00 |
|
Dietmar Maurer
|
dc58194ebe
|
src/bin/proxmox-backup-proxy.rs: use correct id to lookup sync jobs
|
2020-05-29 07:50:59 +02:00 |
|
Dietmar Maurer
|
c6887a8a4d
|
remote config gui: add comment field
|
2020-05-29 06:46:56 +02:00 |
|
Dietmar Maurer
|
947f45252d
|
www/ServerStatus.js: use term "IO wait" for CPU iowait
Because we already use "IO delay" for the storage statistics.
|
2020-05-29 06:12:49 +02:00 |
|
Dietmar Maurer
|
c94e1f655e
|
rrd stats: improve io delay stats
|
2020-05-28 19:12:13 +02:00 |
|
Dietmar Maurer
|
91e5bb49f5
|
src/bin/proxmox-backup-proxy.rs: simplify code
and gather all stats for the root disk
|
2020-05-28 12:30:54 +02:00 |
|
Dietmar Maurer
|
547e3c2f6c
|
src/tools/disks/zfs.rs: use wtime + rtime (wait + run time)
|
2020-05-28 11:45:34 +02:00 |
|
Dietmar Maurer
|
4bf26be3bb
|
www/DataStoreStatistic.js: add transfer rate
|
2020-05-28 10:20:29 +02:00 |
|
Dietmar Maurer
|
25c550bc28
|
src/bin/proxmox-backup-proxy.rs: gather zpool io stats
|
2020-05-28 10:09:13 +02:00 |
|
Dietmar Maurer
|
0146133b4b
|
src/tools/disks/zfs.rs: helper to read zfs pool io stats
|
2020-05-28 10:07:52 +02:00 |
|
Dietmar Maurer
|
3eeba68785
|
depend on proxmox 0.1.38, use new fs helper functions
|
2020-05-28 10:06:44 +02:00 |
|
Dietmar Maurer
|
143b654550
|
src/tools.rs - command_output: add parameter to check exit code
|
2020-05-27 07:25:39 +02:00 |
|
Dietmar Maurer
|
97fab7aa11
|
src/tools.rs: new helper to handle command_output (std::process::Output)
|
2020-05-27 06:53:25 +02:00 |
|
Dietmar Maurer
|
a6fbbd03c8
|
depend on proxmox 0.1.37
|
2020-05-26 13:00:34 +02:00 |
|
Dietmar Maurer
|
1a0d3d11d2
|
src/api2/admin/datastore.rs: add rrd api
|
2020-05-26 12:26:14 +02:00 |
|
Dietmar Maurer
|
8c03041a2c
|
src/bin/proxmox-backup-proxy.rs: gather block device stats on datastore
|
2020-05-26 11:20:59 +02:00 |
|
Dietmar Maurer
|
3fcc4b4e5c
|
src/tools/disks.rs: add helper to read block device stats
|
2020-05-26 11:20:22 +02:00 |
|