From: Aaron Lauterer <a.lauterer@proxmox.com>
To: pbs-devel@lists.proxmox.com
Subject: [pbs-devel] [PATCH proxmox-backup] report: add disk/by-id and disk/by-path info
Date: Thu, 24 Jun 2021 11:32:06 +0200 [thread overview]
Message-ID: <20210624093206.739285-1-a.lauterer@proxmox.com> (raw)
Globbing seems to not work, e.g. `ls -l /dev/disk/*`. Therefore calling
it two times for the id and path directories as those two are the most
useful in my experience when trying to infer things about the disks and
how they are connected.
Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
---
src/server/report.rs | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/server/report.rs b/src/server/report.rs
index e89abbc5..73f73e52 100644
--- a/src/server/report.rs
+++ b/src/server/report.rs
@@ -23,6 +23,8 @@ fn commands() -> Vec<(&'static str, Vec<&'static str>)> {
("proxmox-backup-manager", vec!["versions", "--verbose"]),
("df", vec!["-h"]),
("lsblk", vec!["--ascii"]),
+ ("ls", vec!["-l", "/dev/disk/by-id"]),
+ ("ls", vec!["-l", "/dev/disk/by-path"]),
("zpool", vec!["status"]),
("zfs", vec!["list"]),
("proxmox-backup-manager", vec!["subscription", "get"]),
--
2.30.2
next reply other threads:[~2021-06-24 9:38 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-24 9:32 Aaron Lauterer [this message]
2021-06-28 7:28 ` Thomas Lamprecht
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210624093206.739285-1-a.lauterer@proxmox.com \
--to=a.lauterer@proxmox.com \
--cc=pbs-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox