- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- lvm pvreate error
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2003 02:06 PM
01-06-2003 02:06 PM
lvm pvreate error
pvcreate -ff -y /dev/hdb
it generates the following error:
pvcreate -- device "/dev/hdb" has a partition table
my understanding is that pvcreate examines the /proc/partitions file for partition table. currently my /proc/partitions table has an entry for /dev/hdb as ...target1/disc with no part#s. i have tried:
dd if=/dev/zero of=/dev/hdb bs=1k count=1
blockdev --rereadpt /dev/hdb
nothing i can find indicates that there is a prtition table on /dev/hdb, however pvcreate is still detecting one.
is there something i am missing that pvcreate is finding? is this a lvm-devfs issue?
using lvm 1.0.1 and mandrake8.2 kernel 2.4.18-6.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2003 04:52 PM
01-06-2003 04:52 PM
Re: lvm pvreate error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2003 11:00 PM
01-06-2003 11:00 PM
Re: lvm pvreate error
do this
#dd if=/dev/zero of=/dev/hdb bs=1k count=1
#blockdev --rereadpt /dev/hdb
reboot the sysem.
now give pvcreate command.
regards,
U.SivaKumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2003 08:37 AM
01-08-2003 08:37 AM
Re: lvm pvreate error
below are the contents of my /proc/partitions which pvcreate investigates for partition tables.
22 0 15972 hdc
3 0 20066251 /ide/host0/bus0/tartet0/lun0/disc
3 1 313267 /ide/host0/bus0/tartet0/lun0/part1
3 2 265072 /ide/host0/bus0/tartet0/lun0/part2
3 3 1 /ide/host0/bus0/tartet0/lun0/part3
3 5 3076416 /ide/host0/bus0/tartet0/lun0/part5
3 64 20066251 /ide/host0/bus0/tartet1/lun0/disc
as far as i can tell using fdisk -l, sfdisk -l, and looking at /proc/partitions, there is no partition table. what is pvcreate seeing that i am missing?
keep in mind, the kernel 2.4.18-6 that i am using was created with devfs enabled. however, when i am trying to create the physical volume devfs is NOT active. is it the case that pvcreate does not recognize hdb as "disc" because devfs is not active? is there some special fix or patch required for lvm to function correctly with devfs? devfs does not use the traditional /dev/hdb naming convention so that is where i am thinking my problems are. but i just dont know for sure.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2003 05:45 AM
01-09-2003 05:45 AM
Re: lvm pvreate error
Just thought you guys would like to know
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2003 04:20 AM
01-10-2003 04:20 AM
Re: lvm pvreate error
I had a problem on a gentoo system in that I could do a pvcreate on /dev/hda, but not use vgcreate to create a vg containing this pv. The issue was resolved by using the devfs name during the vgcreate.
I'm not sure if this will work in your case, as you have devfs tunred off. But you could of course give it a try...
Regards,
Vincent