LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-20-2015, 05:14 AM   #1
SierraBravo
LQ Newbie
 
Registered: Jan 2008
Posts: 5

Rep: Reputation: 0
[LVM] pvcreate - ignored by filtering


Hi guys,

again LVM issue.

Problem:
# pvcreate /dev/sdf1
Device /dev/sdf1 not found (or ignored by filtering).

# lsb_release -a
LSB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarchrinting-4.0-amd64rinting-4.0-noarch
Distributor ID: RedHatEnterpriseServer
Description: Red Hat Enterprise Linux Server release 6.6 (Santiago)
Release: 6.6
Codename: Santiago

# rpm -qa | grep lvm
lvm2-2.02.118-2.el6.x86_64
mesa-private-llvm-3.4-3.el6.x86_64
lvm2-libs-2.02.118-2.el6.x86_64

# fdisk -l /dev/sdf

Disk /dev/sdf: 1073 MB, 1073741824 bytes
34 heads, 61 sectors/track, 1011 cylinders
Units = cylinders of 2074 * 512 = 1061888 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xed02de30

Device Boot Start End Blocks Id System
/dev/sdf1 1 1011 1048376+ 8e Linux LVM

# pvck -vv /dev/sdf1
Setting activation/monitoring to 1
Setting global/locking_type to 1
Setting global/wait_for_locks to 1
File-based locking selected.
Setting global/prioritise_write_locks to 1
Setting global/locking_dir to /var/lock/lvm
Scanning /dev/sdf1
/dev/sdf1: stat failed: No such file or directory
Device /dev/sdf1 not found (or ignored by filtering).

#grep -i filter /etc/lvm/lvm.conf
filter = [ "a/.*/" ]


# pvscan -vvv
[...]
Opened /dev/sdf RO O_DIRECT
/dev/sdf: size is 2097152 sectors
Closed /dev/sdf
Opened /dev/sdf RO O_DIRECT
/dev/sdf: block size is 4096 bytes
/dev/sdf: physical block size is 512 bytes
Closed /dev/sdf
/dev/sdf: Skipping: Partition table signature found [nonenil)]
[...]

# vgscan -vvv
[...]
/dev/sdf: Aliased to /dev/disk/by-id/scsi-36000c29f6a9b39c7e029e564e636314f in device cache (preferred name)
Opened /dev/sdf RO O_DIRECT
/dev/sdf: size is 2097152 sectors
Closed /dev/sdf
Opened /dev/sdf RO O_DIRECT
/dev/sdf: block size is 4096 bytes
/dev/sdf: physical block size is 512 bytes
Closed /dev/sdf
/dev/sdf: Skipping: Partition table signature found [nonenil)]
[...]


# ll /dev/sdf
brw-rw---- 1 root disk 8, 80 Nov 20 11:05 /dev/sdf
# ll /dev/sdf1
ls: cannot access /dev/sdf1: No such file or directory

# scsi_id -g -u -d /dev/sdf
36000c29f6a9b39c7e029e564e636314f

Any suggestion?

PS: If I reboot the server, I will find persistent block device /dev/sdf1 , but I need to do this operation WITHOUT reboot my box
PS1: Tried forse udev rescan with "udevadm control --reload-rules", no luck
PS2: Tried udevadm control --reload-rules and udevadm trigger . No luck

Thanks!

Last edited by SierraBravo; 11-20-2015 at 07:49 AM. Reason: vgscan output sdf grep
 
Old 11-20-2015, 07:53 AM   #2
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 4,299

Rep: Reputation: 1959Reputation: 1959Reputation: 1959Reputation: 1959Reputation: 1959Reputation: 1959Reputation: 1959Reputation: 1959Reputation: 1959Reputation: 1959Reputation: 1959
Does "sdf1" appear in /proc/partitions ? If not, have you tried "partprobe sdf" ?
 
1 members found this post helpful.
Old 11-20-2015, 08:09 AM   #3
SierraBravo
LQ Newbie
 
Registered: Jan 2008
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks man! It works!

# cat /proc/partitions
major minor #blocks name

8 0 62914560 sda
8 1 204800 sda1
8 2 62708736 sda2
8 16 20971520 sdb
8 17 20971504 sdb1
8 32 104857600 sdc
8 33 104856223 sdc1
8 64 1048576 sde
8 65 1048376 sde1
8 48 209715200 sdd
8 49 209712478 sdd1
253 0 35442688 dm-0
253 1 16777216 dm-1
253 2 104853504 dm-2
253 3 20967424 dm-3
253 4 10485760 dm-4
8 80 1048576 sdf


# partprobe /dev/sdf
# cat /proc/partitions
[...]
8 80 1048576 sdf
8 81 1048376 sdf1

YEAH!

Now I can successfully see PV (and create)

# pvck -dv /dev/sdf1
Scanning /dev/sdf1
Found label on /dev/sdf1, sector 1, type=LVM2 001
Found text metadata area: offset=4096, size=1044480


Honestly, this device is a sample VMDK shared between 2 VM and managed by a HA cluster pacemaker/corosync environment.
I've easily created this PV on the other vm.

A similar enviroment in SUSE 11 SP3 do not require partprobe command to update LVM devices.

BTW, it's ok for me

Thanks again!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Fresh Slackware64-current RAID-1 + LVM + LUKS: pvcreate not working gargamel Slackware 6 03-23-2010 02:24 PM
Slackware - LVM pvcreate problems nathacof Slackware 13 12-18-2008 10:32 AM
Slackware 12.1 LVM pvcreate error /dev/hdc: open failed :Read-only jimdaworm Slackware 1 05-20-2008 06:04 PM
lvm:didn't do pvcreate on partition, before adding it to volume group kpachopoulos Linux - General 3 03-11-2007 08:22 AM
LVM pvcreate "Device not found" error susmitha Linux - Newbie 2 07-14-2005 06:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration