我在安装 LVM 来提取 Proxmox 虚拟机数据时遇到问题。关于如何安装它有什么想法吗?
root@rescue:~# mount /dev/sdd /mnt/
mount: block device /dev/sdd is write-protected, mounting read-only
NTFS signature is missing.
Failed to mount '/dev/sdd': Invalid argument
The device '/dev/sdd' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?
root@rescue:~# mount /dev/sdd1 /mnt/
mount: unknown filesystem type 'linux_raid_member'
root@rescue:~#
磁盘信息
root@rescue:~# fdisk -l
Disk /dev/sda: 240.1 GB, 240057409536 bytes
255 heads, 63 sectors/track, 29185 cylinders, total 468862128 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 identifier: 0x000bf890
Device Boot Start End Blocks Id System
/dev/sda1 * 4096 40962047 20478976 83 Linux
/dev/sda2 40962048 43057151 1047552 82 Linux swap / Solaris
/dev/sda3 43057152 468854783 212898816 f W95 Ext'd (LBA)
/dev/sda5 43059200 468854783 212897792 8e Linux LVM
Disk /dev/sdc: 2000.4 GB, 2000398934016 bytes
81 heads, 63 sectors/track, 765633 cylinders, total 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x35f0e73a
Device Boot Start End Blocks Id System
/dev/sdc1 2048 3907029167 1953513560 8e Linux LVM
Disk /dev/sdd: 2000.4 GB, 2000398934016 bytes
81 heads, 63 sectors/track, 765633 cylinders, total 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x43bc6360
Device Boot Start End Blocks Id System
/dev/sdd1 2048 3907029167 1953513560 8e Linux LVM
Disk /dev/sdb: 240.1 GB, 240057409536 bytes
81 heads, 63 sectors/track, 91879 cylinders, total 468862128 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 identifier: 0xf95db8ab
Device Boot Start End Blocks Id System
/dev/sdb1 2048 468862127 234430040 8e Linux LVM
Disk /dev/mapper/pve-data: 453.8 GB, 453760778240 bytes
255 heads, 63 sectors/track, 55166 cylinders, total 886251520 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 identifier: 0x00000000
Disk /dev/mapper/pve-data doesn't contain a valid partition table
root@rescue:~#
答案1
该分区的类型为“Linux LVM”,因此它可能是一个 LVM 物理卷。用于file -s /dev/sdd1
检查。
运行该命令pvs
可查看系统上可用的物理卷的摘要,或pvdisplay
查看更详细的信息。如果您认为某些物理卷存在但未检测到,请运行pvscan
扫描所有连接的磁盘以查找潜在的 LVM 卷。
在VG
输出列中pvs
,您可以看到物理卷所属的卷组。如果卷组分布在多个物理卷上,则所有物理卷都需要存在(RAID 适当配置除外)。运行vgs
以查看可用卷组的摘要,或vgdisplay
查看更详细的信息。
LVM 区域的内容是通过逻辑卷访问的。运行lvs
以查看可用卷组的摘要,或lvdisplay
查看更详细的信息。为了访问逻辑卷,它必须处于活动状态,并在“Attr”列中lvs
报告。a
如果卷尚未自动激活,请使用其中是卷组名称和是逻辑卷名称来执行此操作。您还可以用来激活组中的所有逻辑卷。lvchange -ay mygroup/myvolume
mygroup
myvolume
vgchange -ay mygroup
要安装活动逻辑卷,请通过其设备路径(即或 )引用它。/dev/mapper/mygroup-myvolume
/dev/mygroup/myvolume