linux - 无法独占打开/dev/sda2。挂载的文件系统?

标签 linux filesystems centos lvm

WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/sda: 3999.7 GB, 3999688294400 bytes
255 heads, 63 sectors/track, 486267 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1      267350  2147483647+  ee  GPT
Partition 1 does not start on physical sector boundary.
/dev/sda2               1        2090    16785120   82  Linux swap / Solaris
/dev/sda3               1      218918  1758456029+  8e  Linux LVM

Partition table entries are not in disk order

上面是我的“fdisk -l”,我当前的问题是当我尝试执行“pvcreate/dev/sda2”时,它给我“无法独占地打开/dev/sda2。已安装文件系统?”我已经在谷歌上搜索了一段时间,试图找到解决这个问题的方法。我从谷歌尝试了一些东西,但最终都没有成功。

最佳答案

您正在尝试初始化一个分区以供当前由交换使用的 LVM 使用。

你应该运行

pvcreate /dev/sda3

关于linux - 无法独占打开/dev/sda2。挂载的文件系统?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23435996/

相关文章:

android - 如何在使用 adb 时 chmod 二进制文件

docker - Kubernetes pod 无法访问在另一个节点上运行的服务

linux - 如何从 RabbitMQ 执行本地 bash 脚本?

linux - 使用 HTACCESS 在 URL 中隐藏文件夹

linux - 使用命令行在启动后捕获进程的 STDIN/STDERR/STDOUT?

python - 如何在 Linux 下执行 python cgi 脚本

iphone - iPhone开发中有没有快捷方式进入/Resources/文件夹?

linux - connect() 与 unix 域套接字和完整积压

c - 我无法弄清楚c中的系统调用 "read"函数。 (K&R c语言书)

php - CentOS 5.7访问系统调用在apache web服务器检查文件存在时返回EACCES