[SOLVED] Wie zdX device einem zvol zuordnen?

Dunuin

Distinguished Member
Jun 30, 2020
14,793
4,630
258
Germany
Hallo,

Ich finde es etwas schwer festzustellen welcher virtuelle Festplatte wieviel Writes verursacht. Zum Messen nehme ich iostat und das zeigt nur den GErätenamen an, was bei allen zvols halt mit "zd" anfängt.

Hier z.B.:
Code:
root@Hypervisor:~# iostat -d 3600 2
Linux 5.4.78-1-pve (Hypervisor)         12/08/2020      _x86_64_        (16 CPU)

Device             tps    kB_read/s    kB_wrtn/s    kB_read    kB_wrtn
sda               4.51         3.77        29.10     392742    3034091
sdb               4.41         0.74        29.10      76900    3034090
md0               0.00         0.05         0.00       5577          9
md1               3.80         4.32        28.63     450640    2985788
sdf              92.40        52.63       873.06    5488840   91044236
sde              93.09        53.08       872.42    5535768   90977936
sdc              93.29        53.07       872.81    5534184   91017824
sdd              93.21        53.03       872.55    5530320   90991324
sdg              92.95        52.60       872.99    5484928   91037412
sdh               4.47         2.35       298.23     244932   31100060
dm-0              3.79         4.30        28.62     448768    2984652
dm-1              3.79         4.26        35.53     444072    3705236
dm-2              0.01         0.03         0.02       3496       1692
zd0               0.00         0.01         0.00       1056          0
zd16              0.00         0.01         0.00       1056          0
zd32              0.00         0.01         0.00       1056          0
zd48              0.00         0.01         0.00       1056          0
zd64              0.00         0.01         0.00       1056          0
zd80              0.00         0.01         0.00       1056          0
zd96              0.00         0.01         0.00       1056          0
zd112             0.00         0.01         0.00       1056          0
zd128             0.00         0.01         0.00       1056          0
zd144             0.00         0.01         0.00       1056          0
zd160             0.00         0.01         0.00       1056          0
zd176             0.00         0.01         0.00       1056          0
zd192             1.12         3.90       148.27     407175   15461600
zd208             0.00         0.07         0.00       7652          0
zd224             0.71         3.91       300.49     408229   31335521
zd240             0.00         0.07         0.00       7652          0
zd256             0.00         0.07         0.00       7652          0
zd272             0.04         0.52         0.28      54269      29168
zd288            76.07        13.70       884.44    1428192   92231572
zd304             0.74         3.35       147.52     348914   15383892
zd320             0.00         0.07         0.00       7652          0
zd336             0.70         2.76       146.10     288138   15235528
zd352             0.00         0.07         0.00       7652          0
zd368             1.17         7.64       130.29     796394   13586912
zd384             0.00         0.07         0.00       7652          0
zd400             0.01         0.09         0.16       9172      17104
zd432             0.00         0.01         0.00        652        228
zd416             0.00         0.01         0.00       1056          0
zd448             3.69        11.02       630.28    1148695   65726417
zd464             0.76         3.87       296.39     403526   30908108
zd480             1.16         3.18        73.42     331898    7656156
zd496             0.00         0.07         0.00       7676         44
zd512             0.00         0.06         0.00       6608          0
zd528            96.38         9.76       709.20    1017604   73957168
zd544             0.00         0.07         0.05       7788       5068
zd560             4.02        45.00       309.88    4692191   32314936
zd576             1.53         6.70       524.74     698842   54720408
zd592             0.00         0.07         0.00       7652          0
zd608             0.00         0.07         0.00       7652          0
zd640            17.98       306.72       834.82   31985856   87056395
zd624             0.00         0.01         0.00       1056          0
zd656             1.12         3.60        69.81     375537    7279846
zd672             0.67         2.54        68.89     264950    7183516
zd688             0.00         0.07         0.00       7652          0
zd704             0.00         0.01         0.00       1056          0
zd720             0.00         0.01         0.00       1056          0
zd736             0.00         0.01         0.00       1056          0
...
zd3728            0.00         0.01         0.00       1056          0
zd3744            0.00         0.01         0.00       1056          0
zd3760            0.00         0.01         0.00       1056          0
zd3776            3.47        28.89        72.33    3012456    7542240
zd3792            7.26         0.89        28.15      92848    2935720
zd3808            4.34         0.54        16.84      55956    1755828
zd3824           21.02         2.56        81.51     267248    8499900
zd3840           11.05         1.35        42.85     140808    4468100
zd3856            5.94         0.73        23.03      76216    2401140
zd3872            5.36         0.66        20.79      68880    2168508
zd3888            6.09         0.75        23.61      78112    2462556
zd3904            1.54         0.20         5.99      20536     624180
zd3920            1.43         0.18         5.55      19140     578688
zd3936           11.24         1.37        43.61     143376    4547668
zd3952           28.16         3.43       109.21     357484   11389096
zd3968            2.00         0.25         7.75      26292     808296
zd3984            1.03         0.13         4.01      14020     417924
zd4000            1.37         0.18         5.29      18268     552028
zd4016            1.83         0.23         7.11      24224     741860
zd4032            1.06         0.14         4.12      14484     430084
zd4048            1.42         0.18         5.52      19024     575820
Die sdX, mdX und dmX kann ich problemlos zuordnen und weiß was da wie belastet wird. Kann ich da irgendwie einsehen welches zdX-Gerät zu welcher VM gehört also z.B. irgendwie auf den vdev namen wie "vm-110-disk-0" kommen?
 
Code:
$ udevadm info /dev/zd800
P: /devices/virtual/block/zd800
N: zd800
L: 0
S: zvol/bigpool/vm-600103-disk-0
S: bigpool/vm-600103-disk-0
E: DEVPATH=/devices/virtual/block/zd800
E: DEVNAME=/dev/zd800
E: DEVTYPE=disk
E: MAJOR=230
E: MINOR=800
E: SUBSYSTEM=block
E: USEC_INITIALIZED=25473146
E: ID_PART_TABLE_UUID=d4350633-accb-45e6-b940-6e5e7df47b9f
E: ID_PART_TABLE_TYPE=gpt
E: DEVLINKS=/dev/zvol/bigpool/vm-600103-disk-0 /dev/bigpool/vm-600103-disk-0
E: TAGS=:systemd:

alternativ: find /dev/zvol -type l -print -exec readlink {} \;
 
  • Like
Reactions: Dunuin

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!