Pvcreate error occurred: DEVICE/DEV/SDB1 not found (or ignored by filtering).

Source: Internet
Author: User
error message:[Root@compute2 ~]# pvcreate-vvv/dev/sdb1 ... DEVICE/DEV/SDB1 not found (or ignored by filtering). No devices to process. Unlocking/run/lock/lvm/p_orphans _undo_flock/run/lock/lvm/p_orphans Lvmcache has no info for vgname "#orphans". Setting Global/notify_dbus to 1 completed:pvcreate-vvv/dev/sdb1
Solution idea:1. See if there are/DEV/SDB1 partitions
If there are no partitions, create the partitions by using the following command: FDISK/DEV/SDB
Attachment: If you want to remove the partition above, you can use DD if=/dev/urandom of=/dev/sdb bs=512 count=64

2. If step 1 is not a problem, take a look at the a/sdb/of "filters" in the "Devices" field in/etc/lvm/lvm.conf. # Configuration Section devices. # How LVM uses block devices. Devices {... # Configuration option devices/filter. # LIMIT The block devices which are by LVM used. # This is a l Ist of regular expressions used to accept or reject block # device path names. Each regex's delimited by a vertical bar ' | ' # (or any character) and are preceded by ' a ' to accept the path, or # by ' R ' To reject the path. The alpha regex in the list to match the # Path are used, producing the ' a ' or ' r ' result for the device. # When multiple path names exist for a block device, if any path name # matches a ' a ' pattern before a ' R ' pattern, then The device is # accepted. If all of the path names match an ' r ' of pattern A, then the # device is rejected. unmatching path names do not affect the accept # or reject decision. If no path names for a device match-a pattern, # then the device is accepted. Be careful mixing ' a ' and ' R ' patterns, #As the combination might produce unexpected results (test changes.) # Run Vgscan after changing the ' filter to regenerate t He cache. # The Use_lvmetad comment for a special case regarding filters. # # Example # Accept every block device: # filter = ' a|. */|" ] # Reject The CDROM drive: # filter = ["r|/dev/cdrom|"] # Work with just loopback, devices, e.g. for testing: # filter = [ "A|loop|", "r|." *|" ] # Accept all loop devices and IDE drives except HDC: # filter = [' a|loop| ', ' r|/dev/hdc| ', ' a|/dev/ide| ', ' r|. *|" ] # Use anchors to be very specific: # filter = [' a|^/dev/hda8$| ', ' r|. */|" ] # This is configuration option has an automatic default value. # filter = [' a|. */|" ] #filter = ["a/sda/", "r/.*/"] filter = ["a/sda/", "a/sdb/", "r/.*/"]

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.