- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Problem with pvcreate
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
07-23-2002 07:59 AM
07-23-2002 07:59 AM
'pvcreate : The physical volume /dev/dsk/c0t3d0 is already recorded in the /etc/lvmtab file'
I have removed all existing filesystems and volume groups.
I'm also getting an error when trying to create 'vg03', this is saying that vg03 is already in use - I'm sure it isn't. Please help !
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2002 08:04 AM
07-23-2002 08:04 AM
SolutionYou must still have some entries in your lvmtab. Try recreating it.
mv /etc/lvmtab /etc/lvmtab.bak
vgscan
vgscan will recreate the lvmtab.
Then attempt to create the vg again.
Hope this helps.
...jcd...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2002 08:05 AM
07-23-2002 08:05 AM
Re: Problem with pvcreate
do a strings /etc/lvmtab to ensure that the disk in question isn't there. Use the vgreduce command to take the disk out of the vg if necessary.
do an ll /dev/*/group and see if vg03 is really there or not. Secondly, make sure it isn't and important VG in use, but not activated. Use vgexport to remove the VG.
Use pvcreate again. If it complains that the PV already belongs to an existing VG, use the -f option, but use extreme caution and make sure this is what you want to do.
Hope this helps
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2002 08:10 AM
07-23-2002 08:10 AM
Re: Problem with pvcreate
Check with strings /etc/lvmtab and see these volume groups are recorded in there.
If yes you need check what vg these physical disks belongs and being used or not.
If not try vgscan to recreate lvmtab.
You can also try using pvcreate -f /dev/rdsk/cxtydz from command line if you are sure these disks are not belongs to any volume group.
Goodluck
-USA..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2002 08:10 AM
07-23-2002 08:10 AM
Re: Problem with pvcreate
# cd /etc
# mv lvmtab lvmtab.org
# vgscan -v
Does "strings /etc/lvmtab" still shows vg03 in it ? If you're sure c0t3d0 is not used in any of your volume group you can "force" pvcreate it.
# pvcreate -f /dev/rdsk/c0t3d0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2002 08:11 AM
07-23-2002 08:11 AM
Re: Problem with pvcreate
backup lvmtab.
run vgscan with the present situation, then see what is the content of lvmtab. if ur problem disk is still listed in lvmtab, i doubt a reboot may solve the problem.
regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2002 08:29 AM
07-23-2002 08:29 AM
Re: Problem with pvcreate
there are 2 ways to do it .
1.mv /etc/lvmtab to /etc/lvmtab.old and than doa vgscan -a and try creating vg03 using ther disk .
2. or use a differnt vgname like vg05 etc .
It looks that the lvmtab has information which is conflicting .
You can also use sam to do the job.
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2002 08:40 AM
07-23-2002 08:40 AM
Re: Problem with pvcreate
In addition to the advice already offered, you indicated that you "removed all existing filesystems and volume groups" before you attempted to reuse the physical volume(s).
Did you 'vgreduce' all physical volumes but the last and 'vgremove' the last?
A quick, clean way to destroy a volume group, remove '/dev/vgXX' files and insure that the 'etc/lvmtab' configuration is consistent is to 'vgexport' the volume group you no longer want.
Then, since the volume group (VGID) remains on the physical disk, do a 'pvcreate -f' to erase it.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2002 01:20 PM
07-23-2002 01:20 PM
Re: Problem with pvcreate
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2002 11:44 PM
07-23-2002 11:44 PM
Re: Problem with pvcreate
/dev/vg01
Y(==q
/dev/dsk/c0t1d0
/dev/vg07
Y(==r
/dev/dsk/c0t12d0
/dev/dsk/c1t12d0
/dev/vg02
Y(==r
/dev/dsk/c0t13d0
/dev/vg04
Y(==rK
/dev/dsk/c0t14d0
/dev/vg00
/dev/dsk/c0t15d0
/dev/dsk/c1t15d0
/dev/vg05
Y(==r
/dev/dsk/c1t1d0
/dev/dsk/c1t2d0
/dev/dsk/c1t3d0
/dev/dsk/c1t6d0
/dev/vg08
Y(==s*
/dev/dsk/c1t13d0
/dev/dsk/c1t14d0
/dev/dsk/c2t1d0
/dev/dsk/c2t2d0
/dev/dsk/c2t3d0
/dev/dsk/c2t4d0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2002 11:46 PM
07-23-2002 11:46 PM
Re: Problem with pvcreate
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2002 01:27 AM
07-24-2002 01:27 AM
Re: Problem with pvcreate
George