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

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

[[email protected] ~]# pvcreate /dev/sdb

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

[[email protected] ~]# 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

[[email protected] 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因为管理很不方便,通过一些资料可以做如下操作解决问题:
[[email protected] 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.
通过上面可以看到删除其磁盘对应的分区,前提是没有数据(切记)
[[email protected] soft]# pvcreate /dev/sdb
Physical volume "/dev/sdb" successfully created
[[email protected] 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灵活扩展了。

原文地址:http://blog.51cto.com/zhaoguohui/2150683

时间: 2024-08-28 10:10:50

Device /dev/sdb not found (or ignored by filtering的相关文章

Device /dev/xvdf2 not found (or ignored by filtering)

今天对AWS扩容发现以上错误,使用partprob发现分区. partprobe   #重读分区表,需要安装parted包,意思说哪个新划分的分区看不到,可以用这个命令.

Device /dev/sdb1 not found (or ignored by filtering)

/etc/lvm/lvm.conf filters

请查资料了解这些术语:/dev/hda, /dev/hdb, /dev/sda, /dev/sdb, 他们之间有什么区别?

1. 请查资料了解这些术语:/dev/hda, /dev/hdb, /dev/sda, /dev/sdb, 他们之间有什么区别? 答:hda一般是指IDE接口的硬盘,hda指第一块硬盘,hdb指第二块硬盘,等等:sda一般是指SATA接口的硬盘,sda指第一块硬盘,sdb指第二块硬盘,等等. 2. 为什么 du -b /etc/passwd  和 du -k  /etc/passwd  所得到的结果不一致呢?按道理讲1024b 等于 1k 阿铭的 /etc/passwd 为 1181b 而 使用

Waiting for device dev/disk/by-id/ata-...-part2 to appear

问题: 平台:Oralce VM Virtualbox的虚拟机Opensuse11.4 导出该机器的OVA文件后,把该OVA文件导入虚拟机,开机启动时报如下错误: Trying manual resume from /dev/disk/by-id/ata-TOSHIBA-MK1246GSX-28FGTI70T-part1 resume device dev/disk/by-id/ata-TOSHIBA-MK1246GSX-28FGTI70T-part1 not found (ignoring)

Can't initialize physical volume "/dev/sdb" of volume group "cinder-volumes" without -ff /dev/sdb: physical volume not initialized.

原因:无法初始化物理量,之前创建的cinder-volumes没有卸载 方法一: [[email protected] cinder]# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 20G 0 disk ├─sda1 8:1 0 1G 0 part /boot └─sda2 8:2 0 19G 0 part ├─cl-root 253:0 0 17G 0 lvm / └─cl-swap 253:1 0 2G 0 lvm [SWA

mount: block device /dev/cdrom is write-protected, mounting read-only 解决方法

[[email protected] ~]# mount /dev/cdrom /mnt/cdrom/ mount: block device /dev/sr0 is write-protected, mounting read-only 虚拟机挂着光驱光驱时提示只读,用以下命令可解决该报错, mount -o remount,rw /dev/cdrom /mnt/cdrom 参考网址:http://blog.chinaunix.net/uid-30645967-id-5701870.html

使用华为U8860测试时出现“Unable to open log device '/dev/log/main': No such file or directory”

这是因为华为默认禁掉了log输出, 解决办法: 拨号: *#*#2846579#*#* 会显示工程菜单, Go to "ProjectMenu" -> "Background Setting" -> "Log Setting" Open "Log switch" and set it to ON. Open "Log level setting" and set the log level yo

RMAN备份失败之:mount: block device /dev/emcpowerc1 is write-protected, mounting read-only

今天再做巡检的时候发现有一台服务器的RMAN备份不正常,有一段时间没能正常备份了.检查了一下脚本,正常,定时任务列表也正常,再检查一下/var/log/cron的内容,也没有问题.尝试在该挂载点上创建一个1.txt文件的时候,发现有异常报出来了.内容为:mount: block device /dev/emcpowerc1 is write-protected, mounting read-only.原来是因为磁盘为只读状态,不可写入,导致了备份失败. 解决办法: umount /dev/emc

SYMBDSNAP_SDK[3943]: Failed to open device: /dev/symbdsnapctl, errno: 2

在Linux的日志/var/log/message里面看到下面错误信息: Oct 26 09:48:42 xxxxxxx SYMBDSNAP_SDK[3943]: Failed to open device: /dev/symbdsnapctl, errno: 2. Google搜索了一下,发现出现这个错误的原因: Advanced Open File Option for Linux (AOFO-L) is not supported for the use with the kernel v