0

我的 azure 帐户中有一个 linux VM,我正在使用 disk -l 命令将我的 VM 上的所有驱动器列为 fooolow:

[root@thermo-breast-cancer-devvm Python-3.7.8]# fdisk -l
Disk /dev/sda: 64 GiB, 68719476736 bytes, 134217728 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 4504F03A-B9F1-4B8B-88BD-4EDC60947270

Device       Start       End   Sectors  Size Type
/dev/sda1  1026048   2050047   1024000  500M Linux filesystem
/dev/sda2  2050048 134215679 132165632   63G Linux LVM
/dev/sda14    2048     10239      8192    4M BIOS boot
/dev/sda15   10240   1024000   1013761  495M EFI System

Partition table entries are not in disk order.


Disk /dev/sdb: 16 GiB, 17179869184 bytes, 33554432 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x6d61cffb

Device     Boot Start      End  Sectors Size Id Type
/dev/sdb1         128 33552383 33552256  16G  7 HPFS/NTFS/exFAT


Disk /dev/mapper/rootvg-tmplv: 2 GiB, 2147483648 bytes, 4194304 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/mapper/rootvg-usrlv: 10 GiB, 10737418240 bytes, 20971520 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/mapper/rootvg-homelv: 1 GiB, 1073741824 bytes, 2097152 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/mapper/rootvg-varlv: 8 GiB, 8589934592 bytes, 16777216 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/mapper/rootvg-rootlv: 2 GiB, 2147483648 bytes, 4194304 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

实际上,除了 64 的 sea 之外,当我在门户网站上列出所有资源时,它还向我显示了几个我在 azure protal 上看不到的额外驱动器,它只显示了一个大小为 64gig 的磁盘,但为什么 protal 没有'不列出 fdik 命令列出的所有其他磁盘?

在此处输入图像描述

4

1 回答 1

0

首先,这是检查附加到 VM 的磁盘的错误窗格。您也可以在资源组下拥有其他磁盘。您应该在虚拟机的磁盘部分下检查它。

现在回到正题。Azure 虚拟机有一个临时磁盘,sda1 是您的临时磁盘,在门户上不可见。您正在使用 LVM,这就是为什么即使您只有一个物理卷,该输出中也有多个磁盘的原因。

Sda14 是保留的操作系统分区,默认情况下是隐藏的(即使在 Windows 中也是如此)。sda13 是您在 LVM 的帮助下从同一个磁盘创建的引导分区。下面的文章详细讨论了 LVM:

https://opensource.com/business/16/9/linux-users-guide-lvm

希望这可以帮助。

于 2020-07-06T23:03:57.950 回答