mount
输出:
/dev/sda3 on / type ext4 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
/dev/sda1 on /boot type ext3 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
对于 fdisk -l 命令:
fdisk -l
输出如下:
Disk /dev/sda: 1499.7 GB, 1499748892672 bytes
255 heads, 63 sectors/track, 182334 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0008c375
Device Boot Start End Blocks Id System
/dev/sda1 * 1 14 103424 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 14 536 4194304 82 Linux swap / Solaris
Partition 2 does not end on cylinder boundary.
/dev/sda3 536 182335 1460299776 83 Linux
这是我尝试运行的命令:
vgcreate vg_dlp /dev/sda3
我得到的输出:
No physical volume label read from /dev/sda3
Can't open /dev/sda3 exclusively. Mounted filesystem?
Unable to add physical volume '/dev/sda3' to volume group 'vg_dlp'.
我正在尝试为 /dev/sda3 创建卷组,但出现错误。我可以从 /dev/sda3 到 /dev/sda4 占用一些可用空间来创建卷组吗?
答案1
/dev/sda3
是您的根文件系统,您不能仅使用简单的命令将其转换为 LVM 卷。消息甚至会准确地告诉您这一点。