- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Mirror disk pvcreate -B error: The physical volume...
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
11-18-2008 03:16 PM
11-18-2008 03:16 PM
I have been doing the task of rebuild a rp4440 server as OS went bad couple weeks ago. I have done the OE (HP-UX 11i v1) installation and complete install the Mirror_disk/UX.
There are two physical HDs in this box
0/1/1/0.1.0 /dev/rdsk/c2t1d0 -- primary boot root disk
0/1/1/0.0.0 /dev/rdsk/c2t0d0 -- wanna configure it as alternate boot root disk
I have configured c2t1d0 as primary root disk and installed the OE … into it. I'm going to configure c2t0d0 as alternate boot root disk. But when I run command # pvcreate -B /dev/rdsk/c2t0d0 I got below error message
"pvcreate: The physical volume already belongs to a volume group".
# vgscan
Following Physical Volumes belong to one Volume Group.
Unable to match these Physical Volumes to a Volume Group.
Use the vgimport command to complete the process.
/dev/dsk/c2t0d0
But when I run
# vgimport /dev/vg00 /dev/dsk/c2t0d0
vgimport: Volume group "/dev/vg00" already exists in the "/etc/lvmtab" file.
# vgextend /dev/vg00 /dev/dsk/c2t0d0
vgextend: Couldn't install the physical volume "/dev/dsk/c2t0d0".
Device busy
I have tried pvremove, it didn't work...
How to remove old configurations of c2t0d0 and how to remove/delete all the data on c2t0d0? I need a fresh new c2t0d0 like a new HD in order to use it configure as AlterNet boot root disk.
Thanks a lot any answers will be very appreciate.
-Gary
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2008 03:34 PM
11-18-2008 03:34 PM
Solution# cp -pi /etc/lvmtab /etc/lvmtab.old
# mv /etc/lvmtab /etc/lvmtab.
# /usr/sbin/vgscan -v
# strings /etc/lvmtab --> look weather disk /dev/dsk/c2t0d0" still exists
if not
# pvcreate -fB /dev/rdsk/c2t0d0
# vgextend /dev/vg00 /dev/dsk/c2t0d0
Thanks,
Johnson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2008 04:22 PM
11-18-2008 04:22 PM
Re: Mirror disk pvcreate -B error: The physical volume already belongs to a volume group
Thanks you very much for your fast reply and detail steps.
I know the reason why c2t0d0 existing, because that HD contains the old data, I'm going to rebuid this server, but I have no idea how to remove the old data on those two HDs (like format on windows). OE installation process deleted/covered the old data on c2t1d0.
I will try # pvcreate -fB to force create see if it works.
Thanks again.
-G
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2008 05:28 PM
11-18-2008 05:28 PM
Re: Mirror disk pvcreate -B error: The physical volume already belongs to a volume group
I have done the mirror disk job.
Thanks a lot.
Q: How to "format" or delete all the data on a HD like c2t0d0.
Thanks.
-G
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2008 06:13 PM
11-18-2008 06:13 PM
Re: Mirror disk pvcreate -B error: The physical volume already belongs to a volume group
Normally we NEVER "format" any disk. We simply do a vgexport to remove all information about the VG and LVOLs and then reuse the disk for any other VG (by pvcreate and vgcreate) that will ultimately overwrite the data.
If you still wants to format or rather destroy the data (by overwriting by zeroes) on the disk, use below command:
#dd if=/dev/zero of=/dev/rdsk/c2t0d0 bs=1024k
-R.K.$
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2008 12:34 PM
11-19-2008 12:34 PM
Re: Mirror disk pvcreate -B error: The physical volume already belongs to a volume group
Thanks for your good answer.
Have a good day.
-Gary