LVM2: failure to create a block device

I am trying to use LVM2 functionality on linux (Centos6.0). When I try to take the first step of determining PV on a specific block device, I get the following error message:

[root@localhost /] pvcreate /dev/sdb

Unable to open / dev / sdb. Installed file system?

/ dev / sdb is not mounted and its partition table has been deleted. I should also mention that / dev / sdb is used to represent a larger block device (about 4 times larger) and was reduced by the hardware raid configuration (I split hd by 4 in the RAID controller).

Has anyone ever encountered this error before and knows how to get it?

+5
source share
2 answers

, - "" . :

[root@host ~]# dmsetup ls
sdb     (253, 2)
VolGroup00-LogVol01     (253, 1)
VolGroup00-LogVol00     (253, 0)

sdb, , dmsetup :

[root@host ~]# dmsetup remove sdb

[root@host ~]# pvcreate /dev/sdb
Physical volume "/dev/sdb" successfully created
+15

[root@localhost /] pvcreate -vvvvv /dev/sdb

. lsof -L, , - .

0

All Articles