Device/dev/sdbnotfound(orignoredbyfiltering

    最近想將服務(wù)器的本地硬盤通過LVM來靈活管理,具體問題如下:

            [root@localhost ~]# pvcreate /dev/sdb

Device /dev/sdb not found (or ignored by filtering).

沭陽網(wǎng)站建設(shè)公司成都創(chuàng)新互聯(lián),沭陽網(wǎng)站設(shè)計(jì)制作,有大型網(wǎng)站制作公司豐富經(jīng)驗(yàn)。已為沭陽成百上千提供企業(yè)網(wǎng)站建設(shè)服務(wù)。企業(yè)網(wǎng)站搭建\外貿(mào)網(wǎng)站制作要多少錢,請找那個(gè)售后服務(wù)好的沭陽做網(wǎng)站的公司定做!

[root@localhost ~]# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
nvme0n1 259:0 0 2.9T 0 disk
sda 8:0 0 744.1G 0 disk
├─sda1 8:1 0 5G 0 part /boot
└─sda2 8:2 0 739.1G 0 part
├─VolGroup-LogVol01 (dm-0) 253:0 0 390.6G 0 lvm /
└─VolGroup-LogVol00 (dm-1) 253:1 0 260G 0 lvm [SWAP]
sdb 8:16 0 21.8T 0 disk

[root@localhost soft]# 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: 24000.0 GB, 23999996231680 bytes
255 heads, 63 sectors/track, 2917833 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
通過上面可以看到/dev/sdb默認(rèn)添加了一個(gè)sdb1的磁盤分區(qū),并且為GPT分區(qū);在此不想
折騰GPT因?yàn)楣芾砗懿环奖?,通過一些資料可以做如下操作解決問題:
[root@localhost soft]# fdisk /dev/sdb

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

WARNING: The size of this disk is 24.0 TB (23999996231680 bytes).
DOS partition table format can not be used on drives for volumes
larger than (2199023255040 bytes) for 512-byte sectors. Use parted(1) and GUID
partition table format (GPT).

WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
switch off the mode (command 'c') and change display units to
sectors (command 'u').

Command (m for help): p

Disk /dev/sdb: 24000.0 GB, 23999996231680 bytes
255 heads, 63 sectors/track, 2917833 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

Command (m for help): d
Selected partition 1

Command (m for help): p

Disk /dev/sdb: 24000.0 GB, 23999996231680 bytes
255 heads, 63 sectors/track, 2917833 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

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.
Syncing disks.
通過上面可以看到刪除其磁盤對應(yīng)的分區(qū),前提是沒有數(shù)據(jù)(切記)
[root@localhost soft]# pvcreate /dev/sdb
Physical volume "/dev/sdb" successfully created
[root@localhost soft]# pvdisplay

"/dev/sdb" is a new physical volume of "21.83 TiB"
--- NEW Physical volume ---
PV Name /dev/sdb
VG Name
PV Size 21.83 TiB
Allocatable NO
PE Size 0
Total PE 0
Free PE 0
Allocated PE 0

創(chuàng)建PV成功,之后的管理可以用LVM靈活擴(kuò)展了。

網(wǎng)站標(biāo)題:Device/dev/sdbnotfound(orignoredbyfiltering
本文URL:http://www.muchs.cn/article10/pdhgdo.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站導(dǎo)航搜索引擎優(yōu)化、網(wǎng)站營銷、面包屑導(dǎo)航、App開發(fā)、網(wǎng)站制作

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)

外貿(mào)網(wǎng)站建設(shè)