lvm - LVM2 : Failing to pvcreate a block device -


i'm trying make use of lvm2 functionality in linux (centos6.0). when trying make first step of defining pv on specific block device, following error message:

[root@localhost /] pvcreate /dev/sdb 

can't open /dev/sdb exclusively. mounted filesystem?

/dev/sdb not mounted , partition table deleted. should mention /dev/sdb used represent larger block device (about 4 times larger) , reduced configuration of hardware raid (i split hd 4 in raid controller).

has ever encountered error before , knows how take here?

maybe device-mapper 'stealing' device. try this:

[root@host ~]# dmsetup ls sdb     (253, 2) volgroup00-logvol01     (253, 1) volgroup00-logvol00     (253, 0) 

if find sdb device listed above example, remove using dmsetup , create physical volume:

[root@host ~]# dmsetup remove sdb  [root@host ~]# pvcreate /dev/sdb physical volume "/dev/sdb" created 

Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -