Monday, August 31, 2015

pvcreate error: Device /dev/sdb not found (or ignored by filtering).

Error::::
[root@pg ~]# pvcreate /dev/sdb /dev/sdc
  Device /dev/sdb not found (or ignored by filtering).
  Device /dev/sdc not found (or ignored by filtering).

(parted) print all
Model: HP LOGICAL VOLUME (scsi)
Disk /dev/sda: 300GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start   End     Size    Type     File system     Flags
 1      1049kB  2149MB  2147MB  primary  linux-swap(v1)
 2      2149MB  300GB   298GB   primary  ext4            boot


Model: HP LOGICAL VOLUME (scsi)
Disk /dev/sdb: 36.0TB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number  Start  End  Size  File system  Name  Flags

Model: HP LOGICAL VOLUME (scsi)
Disk /dev/sdc: 36.0TB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number  Start  End  Size  File system  Name  Flags


Solution:
[root@lrsxfcp29112 ~]# parted
GNU Parted 2.1
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) select /dev/sdc
Using /dev/sdc
(parted) mklabel loop
Warning: The existing disk label on /dev/sdc will be destroyed and all data on this disk
will be lost. Do you want to continue?
Yes/No? y
(parted) q
Information: You may need to update /etc/fstab.


[root@lrsxfcp29112 ~]# pvcreate /dev/sdb
  Physical volume "/dev/sdb" successfully created
[root@lrsxfcp29112 ~]# pvcreate /dev/sdc
  Physical volume "/dev/sdc" successfully created