网创优客建站品牌官网
为成都网站建设公司企业提供高品质网站建设
热线:028-86922220
成都专业网站建设公司

定制建站费用3500元

符合中小企业对网站设计、功能常规化式的企业展示型网站建设

成都品牌网站建设

品牌网站建设费用6000元

本套餐主要针对企业品牌型网站、中高端设计、前端互动体验...

成都商城网站建设

商城网站建设费用8000元

商城网站建设因基本功能的需求不同费用上面也有很大的差别...

成都微信网站建设

手机微信网站建站3000元

手机微信网站开发、微信官网、微信商城网站...

建站知识

当前位置:首页 > 建站知识

Device/dev/sdbnotfound(orignoredbyfiltering

    最近想将服务器的本地硬盘通过LVM来灵活管理,具体问题如下:

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

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

沭阳网站建设公司成都创新互联,沭阳网站设计制作,有大型网站制作公司丰富经验。已为沭阳成百上千提供企业网站建设服务。企业网站搭建\外贸网站制作要多少钱,请找那个售后服务好的沭阳做网站的公司定做!

[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默认添加了一个sdb1的磁盘分区,并且为GPT分区;在此不想
折腾GPT因为管理很不方便,通过一些资料可以做如下操作解决问题:
[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.
通过上面可以看到删除其磁盘对应的分区,前提是没有数据(切记)
[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

创建PV成功,之后的管理可以用LVM灵活扩展了。


分享文章:Device/dev/sdbnotfound(orignoredbyfiltering
URL地址:http://bjjierui.cn/article/pdhgdo.html

其他资讯