Centos
未找到設備 /dev/sdb1(或被過濾忽略)
我正在嘗試添加一個物理卷以用於添加卷組,從而在其中添加 LV。可悲的是,我收到以下錯誤。
[root@server ~]# pvcreate /dev/sdb1 Device /dev/sdb1 not found (or ignored by filtering). [root@server ~]# fdisk -l /dev/sdb WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted. Disk /dev/sdb: 19966.2 GB, 19966213488640 bytes 255 heads, 63 sectors/track, 2427420 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: 0x00000000 Device Boot Start End Blocks Id System /dev/sdb1 1 267350 2147483647+ ee GPT
我會很感激你能給的任何幫助。這將是我第一次必須添加 pv 並且在研究這個問題時我沒有遇到任何有太大幫助的東西。
作業系統為 6 - 64 位
過濾器
# By default we accept every block device: filter = [ "a/.*/" ] # Exclude the cdrom drive # filter = [ "r|/dev/cdrom|" ] # When testing I like to work with just loopback devices: # filter = [ "a/loop/", "r/.*/" ] # Or maybe all loops and ide drives except hdc: # filter =[ "a|loop|", "r|/dev/hdc|", "a|/dev/ide|", "r|.*|" ] # Use anchors if you want to be really specific # filter = [ "a|^/dev/hda8$|", "r/.*/" ]
分開:
parted /dev/sdb "unit s" "print" Model: Adaptec AdaptecRAID5 (scsi) Disk /dev/sdb: 38996510720s Sector size (logical/physical): 512B/512B Partition Table: gpt
MBR中的分區類型設置為“
ee
”,表示磁碟上應該有GPT分區表,但如圖parted
所示,根本沒有 GPT 表。您需要:
a) 使用 parted 創建 GPT 分區,並將該分區用作 PV
b) 從 MBR 中完全刪除分區表,僅使用塊設備
/dev/sdb
作為 PV
我發現我需要重新啟動伺服器或執行“partprobe /dev/sdaX”才能正確通知 pvcreate 分區。
此外,fdisk 不支持 lvm,因此它會發出有關分區的錯誤,這讓我認為當情況並非如此時存在更大的問題。