centos7无法创建pv的解决方法

转载自https://www.cnblogs.com/daynote/p/9747053.html

centos7默认情况下是创建不了pv的(原因待查证),解决方法如下:

默认:

[root@compute1 ~]# pvcreate /dev/sdbDevice /dev/sdb excluded by a filter

解决:

[root@compute1 ~]# dd if=/dev/urandom of=/dev/sdb bs=512 count=64
64+0 records in
64+0 records out
32768 bytes (33 kB) copied, 0.00760562 s, 4.3 MB/s
[root@compute1 ~]# pvcreate /dev/sdb
Physical volume “/dev/sdb” successfully created.

This entry was posted in OpenStack and tagged . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *