- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Mirroring root disk "Physical volume already belon...
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
04-15-2004 03:21 AM
04-15-2004 03:21 AM
I´m triying to mirror our Boot disk, using "pvcreate -B /dev/rdsk/c2t2d0".
It returns the following error "pvcreate: The physical volume already belongs to a volume group"
I have readed that I must use the "-f" to force it, but I´m afraid I could be wrong, "/dev/rdsk/c2t2d0" being the OS disk, and broke our system.
On the attachment file I have written the sentences I think I must use and the output of ioscan and pvdisplay.
Thank you very much in advance for your time and h
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2004 03:26 AM
04-15-2004 03:26 AM
Re: Mirroring root disk "Physical volume already belongs to a volume group"
vgdisplay -v |grep c2t2d0
and it should provide no line.
This should make you sure it isn't used.
"Reality is just a point of view." (P. K. D.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2004 03:28 AM
04-15-2004 03:28 AM
Re: Mirroring root disk "Physical volume already belongs to a volume group"
If yes - then it is already in a VG on your system...
Or try pvdisplay:
pvdisplay /dev/dsk/c2t2d0
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2004 03:29 AM
04-15-2004 03:29 AM
Solutionyou can force it by using -f with the pvcreate command. However check and make sure it is not listed in lvmtab,
strings /etc/lvmtab |grep c2t2d0
If you don't get anything back, that means it is not configured on this system. So you can extend the vg00 on this disk after doing a pvcreate.
Added some steps to your plan, added lvlnboot commands
pvcreate -B /dev/rdsk/c2t2d0
vgextend /dev/vg00 /dev/dsk/c2t2d0
mkboot /dev/dsk/c2t2d0
mkboot -a "hpux -lq" /dev/rdsk/c2t2d0
lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c2t2d0
lvextend -m 1 /dev/vg00/lvol2 /dev/dsk/c2t2d0
lvextend -m 1 /dev/vg00/lvol3 /dev/dsk/c2t2d0
lvextend -m 1 /dev/vg00/lvol4 /dev/dsk/c2t2d0
lvextend -m 1 /dev/vg00/lvol5 /dev/dsk/c2t2d0
lvextend -m 1 /dev/vg00/lvol6 /dev/dsk/c2t2d0
lvextend -m 1 /dev/vg00/lvol7 /dev/dsk/c2t2d0
lvextend -m 1 /dev/vg00/lvol8 /dev/dsk/c2t2d0
lvlnboot -r /dev/vg00/lvol3
lvlnboot -b /dev/bh00/lvol1
lvlnboot -s /dev/vg00/lvol2
lvlnboot -d /dev/vg00/lvol2
lvlnboot -R
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2004 03:29 AM
04-15-2004 03:29 AM
Re: Mirroring root disk "Physical volume already belongs to a volume group"
#strings /etc/lvmtab | grep c2t2d0
If you get c2t2d0 then it really belongs to a volume group that is recorded in the lvmtab .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2004 03:34 AM
04-15-2004 03:34 AM
Re: Mirroring root disk "Physical volume already belongs to a volume group"
Others have showed you how to check if it's in use on this system. BUT I would caution you to insure that it's not in use by another system that may be connected to whatever disk subsystem it's in.
Better safe than sorry....
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2004 03:38 AM
04-15-2004 03:38 AM
Re: Mirroring root disk "Physical volume already belongs to a volume group"
This is still not quite enough because it is convievable that the disk might be used as a raw device but not under LVM --- it's not common but it can be done. Also, make sure the disk is not under VxVM.
Also, if this is a shared disk (e.g. a Service Guard cluster) then you need to make the same checks on all nodes which have physical access to this disk.
After you assure yourself that the disk is not in use then all you need to do is add -f to your existing pvcreate.
I would also make a change to your mkboot -a (simply because I don't completely trust defaults).
mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/cXtYdZ
You should also add an
lvlnboot -R /dev/vg00
at the end of your script.
Man lvlnboot for details.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2004 03:44 AM
04-15-2004 03:44 AM
Re: Mirroring root disk "Physical volume already belongs to a volume group"
#strings /etc/lvmtab|grep dev/dsk/c2t2d0
#vgdisplay -v |grep /dev/dsk/c2t2d0
#pvdisplay /dev/dsk/c2t2d0
Once you are sure, use the -f option
#pvcreate -f -b /dev/rdsk/c2t2d0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2004 04:26 AM
04-15-2004 04:26 AM
Re: Mirroring root disk "Physical volume already belongs to a volume group"
Thank you very much for your responses. I didn´t thougth this would be so fast.
My primary question is solved, c2t2d0 not being my OS disk.
I think it´ll be better to open another message asking for help to clarify my script, but I should see through the manual before.
¡¡Thank you very much