- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How can I undo a 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
Discussions
Discussions
Discussions
Forums
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
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
тАО09-29-2000 09:18 AM
тАО09-29-2000 09:18 AM
How can I undo a pvcreate?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-29-2000 09:26 AM
тАО09-29-2000 09:26 AM
Re: How can I undo a pvcreate?
When you add both disk paths to a Volume Group they will appear as Primary and Alternate.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-29-2000 09:29 AM
тАО09-29-2000 09:29 AM
Re: How can I undo a pvcreate?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-29-2000 09:39 AM
тАО09-29-2000 09:39 AM
Re: How can I undo a pvcreate?
What order did you do things in
Did you :-
pvcreate primary
create VG including primary
then pvcreate alternate?
If so then just trash the VG and start again:-
vgchange -a n vg??
vgexport vg??
pvcreate primary
mkdir /dev/vg??
mknod... group
vgcreate your VG with primary and alternate disks specied and all should be well.
Regards,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-29-2000 09:45 AM
тАО09-29-2000 09:45 AM
Re: How can I undo a pvcreate?
Are you absolutely sure that the two disks that are concerned are alternate links?
Your symptoms suggest to me that they are not.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-29-2000 09:59 AM
тАО09-29-2000 09:59 AM
Re: How can I undo a pvcreate?
It's only when you've added both to a volume group that the first becomes primary and the second alternate. You can also switch them round by removing the primary (lternate becomes primary) then putting it back at which point it becomes the alternate.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-01-2000 04:40 PM
тАО10-01-2000 04:40 PM
Re: How can I undo a pvcreate?
I looks to me as if there were two different disks and you are trying to add them to a Volume group.
If the one disk is trying to add to a volume group from two different paths, it will get added as a alternate link by it self. If you are referring to two different disks, then you can not add them as primary and alternate links.
Please make sure the device files you are using and they refer to the same disk on different paths and try creating/extending the volume group
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-02-2000 01:49 AM
тАО10-02-2000 01:49 AM
Re: How can I undo a pvcreate?
First:
Primary and alternate link refers to the same disk using two hardware paths, so have you 1 disk or 2, 1 PV or 2PV?. In facts this means disk 1 is plugged by two ways.
Second:
if you have done pvcreate /dev/xx/alternate LVM can do it unless you use force (-f), because primary is into a VG yet.
3- When you do vgextend /dev/xx/alternate and LVM says your VG has two disks you must belive, so you must have two disk 2PV, and no two conections for 1 disk.
4- in order to verify if your VGs disks are the same, run smt->disk->info and see the serial number for each.
5- A way to undo a pvcreate is vgcfgrestore of a previously vgcfgbackp'd vg.
NOTE: Alternate link is a alternate path for a disk, not the path of mirror copy.
The use of disk A or B )( or mirror) is defined whe you create lvs not vgs.