- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to notify a vgextend to the second node?
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 08:56 AM
07-23-2002 08:56 AM
I have a package pkgSRP4 that use the vg02 in my cluster, the cluster has two nodes hp4 and hp3 both running 11.00.
I do in hp4 this commands:
pvcreate /dev/rdsk/c5t0d5
vgextend /dev/vg02 /dev/dsk/c5t0d5
vgextend /dev/vg02 /dev/dsk/c3t0d5 (Alternate link)
Then I check the results with the vgdisplay -v vg02 and all it's fine, but the next step in the manual is to do a:
vgexport -p -s -m /tmp/vg02.map /dev/vg02
then
rcp /tmp/vg02.map hp3:/tmp/vg02.map
then in the hp3 (the second node)
vgimport -s -m /tmp/vg02.map /dev/vg02
But when do it the last command it tell me that this vg already exists in the /etc/lvmtab file.
How to do the change in the vg02 in the second node when I am doing an extend and not a new vg?
Many thanks in advance,
Justo.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2002 09:11 AM
07-23-2002 09:11 AM
Re: How to notify a vgextend to the second node?
On the adoptive node (hp3) you need to 'vgexport' the volume group that has been modified on the other node, and *then* re-import it:
# vgexport /dev/vgXX
# mkdir /dev/vgXX
# mknod dev/vgXX/group c 64 0xNN0000
# vgimport -vsm mapfile /dev/vgXX
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2002 09:13 AM
07-23-2002 09:13 AM
SolutionOn hp4
vgexport -pvs -m /etc/lvmconf/map.vg02 vg02
rcp /etc/lvmconf/map.vg02 hp3:/etc/lvmconf
on hp03:
vgexport /dev/vg02
mkdir /dev/vg02
mknod /dev/vg02/group c 64 0x020000 ( Check the group file on hp4)
vgimport -vs -m /etc/lvmconf/map.vg02 /dev/vg02
On the original node, update the package control script with the
additional lvols and mountpoints and distribute the control script to
the adoptive node
Goodluck,
-USA..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2002 09:30 AM
07-23-2002 09:30 AM
Re: How to notify a vgextend to the second node?
It's working, but I have another question.
After I do the import in the hp3 node, I do a strings over the lvmtab and the order for the phisycal disk for the vg02 volume is different that in the first node, then I suppose that the primary and alternate links are different in the first node and in the second, isn't it?
How can I put the same primary and alternate links in both nodes?
Regards,
Justo.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2002 09:37 AM
07-23-2002 09:37 AM
Re: How to notify a vgextend to the second node?
The reason is because you used the -s option in your vgexport /vgimport. in vgimport, the -s means to scan the disks matching the VGID in the map file, which is done sequentially. To change the order to match just vgreduce the disk that is out of order and vgextend it, but of course the VG needs to be activated on that node to do this. You could vgexport the VG and reimport it specifying the disks and in the order you want. This is not going to couse you any problems, I however must point out.
Good luck
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2002 09:44 AM
07-23-2002 09:44 AM
Re: How to notify a vgextend to the second node?
I do the steps that tell me James and Uday and all the things go fine.
In the other question, I will do this when I can, because I can not stop the package at this moment but I anote your notes Christopher.
Many thanks to all of you,
Regards,
Justo.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2002 09:46 AM
07-23-2002 09:46 AM
Re: How to notify a vgextend to the second node?
Swapping the primary and secondary links is easily done. Simply 'vgreduce' the primary (first) link. This promotes the second link to the primary status. Then, 'vgextend' the link you just reduced. That's it. Yes, you are correct, the order of pv_paths in '/etc/lvmtab' denotes the primary and secondary designation.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2002 08:36 PM
07-23-2002 08:36 PM
Re: How to notify a vgextend to the second node?
This is from the man page for pvchange:
-s Manually switch access to the device to the path named by pv_path, specifying it as the primary path.
-tjh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2002 10:45 PM
07-23-2002 10:45 PM
Re: How to notify a vgextend to the second node?
Good trick!!
I do this and all fine!!
The only thing is that is necesary to have the vg active in order to do it.
Many thanks Thomas,
Regards,
Justo.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2002 08:11 AM
07-24-2002 08:11 AM
Re: How to notify a vgextend to the second node?
Check document UXSGLVKBAN00000002
TITLE: "Adding A Disk To A Volume Group In A ServiceGuard Package"
-s.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2002 09:10 AM
07-24-2002 09:10 AM
Re: How to notify a vgextend to the second node?
I spent most of my maintenance time closing down the package, exporting, importing etc just to keep the volume groups in sync because DBA's are notoriously bad at estimating future requirements. In the end I just created two years worth of lvol growth (based on my more realistic figures) in the package and let him get on with it.
Saved a lot of time but does of course require you have bucket loads of disk space.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2002 02:52 PM
07-24-2002 02:52 PM
Re: How to notify a vgextend to the second node?
You need to rebuild lvmtab on the second node prior to doing your vgimport, Before you do this, make sure your VG02 is de-activated on the primary node:
vgchange -an vg02
Then go to your second node and run:
vgscan -p (do a preview first)
vgscan -a (update lvmtab)
then import with your vgimport command above.
Do a man vgscan to see how it works and what it does, but it got me out of the same problem you are facing.
Cheers...
Mike Burbury
GE Australia.