openstack 存储节点按照报错Device /dev/sdb not found (or ignored by filtering).

 

root@dell-PowerEdge-T30:~# pvcreate /dev/sdb
  Device /dev/sdb not found (or ignored by filtering).
首页查看其硬盘的情况,发现 /dev/sdb存在之后调整修改

lfdisk -l

root@dell-PowerEdge-T30:~# 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 4.0 TB (4000787030016 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).


The device presents a logical sector size that is smaller than
the physical sector size. Aligning to a physical sector (or optimal
I/O) size boundary is recommended, or performance may be impacted.

命令(输入 m 获取帮助): n
Partition type:
   p   primary (1 primary, 0 extended, 3 free)
   e   extended
Select (default p): p
分区号 (1-4,默认为 2): 1
Partition 1 is already defined.  Delete it before re-adding it.

命令(输入 m 获取帮助): t
Selected partition 1
Hex code (type L to list codes): 8e
Changed system type of partition 1 to 8e (Linux LVM)

命令(输入 m 获取帮助): w
The partition table has been altered!

Calling ioctl() to re-read partition table.

WARNING: Re-reading the partition table failed with error 16: 设备或资源忙.
The kernel still uses the old table. The new table will be used at
the next reboot or after you run partprobe(8) or kpartx(8)
Syncing disks.
root@dell-PowerEdge-T30:~# pvcreate /dev/sdb
  Device /dev/sdb not found (or ignored by filtering).
root@dell-PowerEdge-T30:~#  dd if=/dev/urandom of=/dev/sdb bs=512 count=64
记录了64+0 的读入
记录了64+0 的写出
32768字节(33 kB)已复制,0.00555416 秒,5.9 MB/秒
root@dell-PowerEdge-T30:~# pvcreate /dev/sdb
  Can't open /dev/sdb exclusively.  Mounted filesystem?


转载于:https://www.cnblogs.com/youran-he/p/8573164.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值