[英]Can't open /dev/sda2 exclusively. Mounted filesystem?
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
我更新到新內核,問題在 RHEL 6 中得到解決。 已從 2.6.32-131.x 升級到 2.6.32-431.x
檢查您正在使用的那些磁盤/分區,是否未安裝到系統上的任何目錄。
如果是,請卸載它們並重試。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.