Questions tagged «device-mapper»

1
为什么驱动器的大小有两个不同的值,以及如何与device-mapper和LVM协调它们?
我有一个通过USB连接的1 TB驱动器。它包含一个LVM 物理卷,它填充了整个设备(没有任何分区表)。当我尝试通过使用整个PV 扩展逻辑卷时,设备映射器开始抱怨LVM在PV上分配的部分大于设备。来自设备映射器的错误消息(如所示dmesg)报告的大小为1953320367 [dm]扇区: device-mapper: table: 254:0: sdf too small for target: start=1821353984, len=132169728, dev_size=1953320367 但是LVM创建了具有238467个物理范围的PV ,这是1953521664 [lvm]个扇区(大约多了100 MB): $ pvdisplay /dev/sdf --- Physical volume --- PV Name /dev/sdf VG Name apu-vg1 PV Size 931.51 GiB / not usable 1.71 MiB Allocatable yes PE Size 4.00 MiB Total PE …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.