Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Oracle Linux LVM issue

Status
Not open for further replies.

nyck

Technical User
Mar 10, 2004
447
GB
Hello,

I have been rebuilding an R900 this morning and have installed oracle linux 6.3, at the raid level there was sda which was a mirror and sdb a raid 5 setup. So during the install I just setup sda with LVM and left sdb alone as I always tend to do when I install Linux. So now the server is up and running and looking good apart from the fact you cannot see sdb when you run a pvs or a pvscan:-

pvs
PV VG Fmt Attr PSize PFree
/dev/sda2 rootvg lvm2 a-- 135.93g 23.93g

[root@lonlin4 ~]# pvscan
PV /dev/sda2 VG rootvg lvm2 [135.93 GiB / 23.93 GiB free]
Total: 1 [135.93 GiB] / in use: 1 [135.93 GiB] / in no VG: 0 [0 ]

So I ran an fdisk –l /dev/sdb and it’s there:-

fdisk -l /dev/sdb

Disk /dev/sdb: 1999.3 GB, 1999307276288 bytes
255 heads, 63 sectors/track, 243068 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000cb143

Device Boot Start End Blocks Id System
/dev/sdb1 1 243069 1952447488 fb VMware VMFS

Anyway I decide to run a pvcreate against it and I get the following error:-

pvcreate -ff /dev/sdb
Device /dev/sdb not found (or ignored by filtering).

So a bit stuck and wondering if you have any ideas on the above?
 
pvcreate /dev/sdb1
for WHOLE disk, like you are trying to do, you would have to zero out the disk with dd. I do not see any reason to use the whole disk, but YMMV.
Also, I'd lose -ff flag.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top