zoukankan      html  css  js  c++  java
  • 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?


  • 相关阅读:
    php+ajax文件上传
    安装ruby及sass
    大佬
    ES6--let,解构赋值,promise && ES7--async
    miniapp基础
    8月笔记
    webpack 打包html文件
    webpack压缩打包不成功
    nvm安装成功后,但命令不可用(command not found)
    jq库extend的区别
  • 原文地址:https://www.cnblogs.com/youran-he/p/8573164.html
Copyright © 2011-2022 走看看