Environment: VMware Workstation
Centos7.2 x64
A failure occurred:
Divide two partitions on two disks to do PV (physical Volume):
Modify two partition ID to 8e
Pvcreate/dev/sdb7/dev/sdc7
Can ' t open/dev/sdb7 exclusively. Mounted filesystem?
Because these two disks were previously used for soft Raid5, uninstall RAID5 First and then delete them.
Umount/dev/md5
Mdadm-s/DEV/MD5//Stop MD5
RM/DEV/MD5//Delete MD5
Again
Pvcreate/dev/sdb7/dev/sdc7
Can ' t open/dev/sdb7 exclusively. Mounted filesystem?
Check the/etc/fstab file and discover that there are/DEV/MD5 items in the file, delete the item
Pvcreate/dev/sdb7/dev/sdc7
Warning:linux_raid_member Signature detected on/dev/sdb7 at offset 4096. Wipe it? [y/n]: Y
Wiping Linux_raid_member Signature On/dev/sdb7.
Physical volume "/DEV/SDB7" successfully created
Create success!
There are many problems do not understand, after the stop md5,rm/dev/md5, the use of command Cat/proc/mdstat can also see the raid information, expect the big God to see can answer, thank you!
This article is from the "Play Linux" blog, be sure to keep this source http://xiaolizi007.blog.51cto.com/4006583/1881988
Pvcreate error: Can ' t open/dev/sdb7 exclusively. Mounted filesystem?