-
-
Notifications
You must be signed in to change notification settings - Fork 203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Proxmox not displaying ZFS disk info #494
Comments
Can you please restart the agent and verify that it's not logging the partitions? It should happen before the Try just executing it directly with temp env vars like this:
If it still doesn't log partitions and disk I/O then something very strange is happening. |
Here is output for Disk partitions
|
Yeah I'm not sure why that's not working. Does I'd be curious to see what the output of this is. I can give you a binary if you don't have Go installed or haven't used it before. package main
import (
"fmt"
"github.com/shirou/gopsutil/v4/disk"
)
func main() {
rpool, err := disk.Usage("/rpool/data")
if err != nil {
panic(err)
}
fmt.Printf("All: %v, Used: %v, Free: %v, UsedPercent: %f%%\n", rpool.Total, rpool.Used, rpool.Free, rpool.UsedPercent)
pm2, err := disk.Usage("/pm2-2tb-zfs")
if err != nil {
panic(err)
}
fmt.Printf("All: %v, Used: %v, Free: %v, UsedPercent: %f%%\n", pm2.Total, pm2.Used, pm2.Free, pm2.UsedPercent)
vz, err := disk.Usage("/var/lib/vz")
if err != nil {
panic(err)
}
fmt.Printf("All: %v, Used: %v, Free: %v, UsedPercent: %f%%\n", vz.Total, vz.Used, vz.Free, vz.UsedPercent)
} |
Also check if you get any |
The only thing I see when not running debug is the below.
|
Thanks, please run this and let me know what it says. # download binary
wget https://static.beszel.dev/issues/494/check-disk-usage_amd64
# make sure it's executable
chmod +x ./check-disk-usage_amd64
# check usage of specific directories
./check-disk-usage_amd64 /rpool/data /pm2-2tb-zfs /var/lib/vz This is the code for reference: package main
import (
"fmt"
"os"
"github.com/shirou/gopsutil/v4/disk"
)
func main() {
if len(os.Args) < 2 {
fmt.Printf("Usage: %s <directory1> <directory2> ...\n", os.Args[0])
return
}
dirs := os.Args[1:]
for _, dir := range dirs {
usg, err := disk.Usage(dir)
fmt.Println("Checking disk usage for", dir)
if err != nil {
fmt.Println(err)
} else {
fmt.Printf("All: %v, Used: %v, Free: %v, UsedPercent: %f%%\n", usg.Total, usg.Used, usg.Free, usg.UsedPercent)
}
}
} |
Output below
|
Description
Added one of my Proxmox servers and have been trying to get it to populate disk usage stats. I know currently I/O is not supported.
I've added the mountpoints of the disk which are
/rpool/data
(root partition is on this disk as well) and/pm2-2tb-zfs
. However they both show 0.00 MB used.Expected Behavior
Show disk usage for each disk added. Added debug log below, however it does not give me info about Disk Partitions
Steps to Reproduce
OS / Architecture
Proxmox
Beszel version
0.9.1
Installation method
Docker
The text was updated successfully, but these errors were encountered: