• 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?


  • 相关阅读:
    Linux 下curl模拟Http 的get or post请求
    ShopNC学习笔记(转)
    (转) shopnc数据库操作
    Mysql开发规范
    长连接、短连接、长轮询和WebSocket
    一个支付宝没有安装app时看不到web网页,无法支付的问题
    MVVM设计模式
    c中的scanf和printf
    import和class关键字的区别
    oc中的注释
  • 原文地址:https://www.cnblogs.com/youran-he/p/8573164.html
Copyright © 2020-2023  润新知