[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-noarch:printing-4.0-amd64:printing-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 [none:(nil)] [...] # 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 [none:(nil)] [...] # 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! |
Does "sdf1" appear in /proc/partitions ? If not, have you tried "partprobe sdf" ?
|
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! |
All times are GMT -5. The time now is 05:34 AM. |