有没有办法获取物理卷的当前元数据大小。我使用了
[root@i-6b4fb096 ~]# pvcreate --metadatasize 10000 /dev/sda4
Physical volume "/dev/sda4" successfully created
[root@i-6b4fb096 ~]# pvdisplay /dev/sda4
"/dev/sda4" is a new physical volume of "39.99 GiB"
--- NEW Physical volume ---
PV Name /dev/sda4
VG Name
PV Size 39.99 GiB
Allocatable NO
PE Size 0
Total PE 0
Free PE 0
Allocated PE 0
PV UUID ZcTGAv-L4D9-Gxvw-p9BE-Ay19-Ccql-bSIJN8
但是,我已经检查了此命令的手册页 - 也使用了 pvdisplay - 但我找不到任何信息让我知道该参数是否设置正确。
答案1
尝试这样做:
$ pvs --units k -o pv_mda_count,pv_mda_free,pv_mda_size /dev/sda4
#PMda PMdaFree PMdaSize
1 507.50k 1020.00k