Pvcreate error: Can ' t open/dev/sdb7 exclusively. Mounted filesystem?

Source: Internet
Author: User
Tags md5

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?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.