- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: VG extended with PV, how to update VG config o...
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-09-2008 06:43 AM
07-09-2008 06:43 AM
Later I've added a PV (mirroring -> Mirror-UX) to vg01 on server 1. Activating vg01 on server 2 leads to IO errors. I guess because server 2 doesn't have the second PV in the vg01 config??
My question is can I update the vg01 config on server 2 (1 -> 2 PV's)? Or do I have to start all over again (removeing vg01 and creating vg01 on server 1 with mirroring, and than exporting it to server 2)?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2008 06:49 AM
07-09-2008 06:49 AM
Re: VG extended with PV, how to update VG config on 2nd node
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2008 06:56 AM
07-09-2008 06:56 AM
Re: VG extended with PV, how to update VG config on 2nd node
/rcw
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2008 07:03 AM
07-09-2008 07:03 AM
Re: VG extended with PV, how to update VG config on 2nd node
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2008 09:10 AM
07-09-2008 09:10 AM
Re: VG extended with PV, how to update VG config on 2nd node
U can check the below thread
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1054496
BR/
Yaqub
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2008 09:19 AM
07-09-2008 09:19 AM
Re: VG extended with PV, how to update VG config on 2nd node
I've had a look at the link. Indeed the map file contains only the LV's and no disk devices.
Situation is:
server1 vg01 c2t0d0 + c4t2d0 (mirror)
server2 vg01 c2t0d0
In this case the command to import on server2 will be: vgimport /dev/vg01 /dev/dsk/c2t0d0 /dev/dsk/c4t0d0
Before I do a vgimport on server 2 I'll have to get rid of the vg01 config on server2, right? Do do that I'll have to activate vg01 on server2, but what will happen with the info/config of the disks when vgremove is used to remove vg01 before vgimport'ing it again. So is there any data lost on the disk? Or is it still possible to activate vg01 on server 1 after the vgremove vg01 on server2?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2008 09:39 AM
07-09-2008 09:39 AM
Re: VG extended with PV, how to update VG config on 2nd node
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2008 10:06 AM
07-09-2008 10:06 AM
Re: VG extended with PV, how to update VG config on 2nd node
So, if I get you right, vgexport can actually be used for 'cut/paste' a VG? If yes, what are the arguments for vgexport to export it of server2?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2008 11:16 AM
07-09-2008 11:16 AM
Re: VG extended with PV, how to update VG config on 2nd node
After you vgexport into a map file you ftp the map file over to the other server and vgimport.
/usr/sbin/vgexport -m mapfile -s -p -v vg_name
-p preview
run again without -p
ftp to server
/usr/sbin/vgimport -m mapfile -s -v -p vg_name
-p preview
final run without -p
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2008 11:44 AM
07-09-2008 11:44 AM
Re: VG extended with PV, how to update VG config on 2nd node
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2008 12:30 PM
07-09-2008 12:30 PM
Re: VG extended with PV, how to update VG config on 2nd node
I don't understand. Is this a MC/ServiceGuard environment?
I'm trying to understand why you would have two mutally exclusive servers using the same luns.
As for your problem, you would have to change the name of the vg in the command line to point to the vg that you want to use. But I don't think this would work since every PV includes a header with the vgid number. Each PV knows what vg it belongs too.
This is the reason for my above question. What application is binding these two servers together?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2008 01:29 PM
07-09-2008 01:29 PM
Re: VG extended with PV, how to update VG config on 2nd node
What I did was first create the volume group wit one PV, copied (vgexport/vgmport) it to server2, and later I added a PV on server1. I guess I should have better created the VG on server1, added the second PV, and then copied it to server2.
If there's no easy way to change/update the vg01 config on server2 to be the same as on server1 (2 PV's instead of 1 PV), I'd better start all over?!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2008 02:09 PM
07-09-2008 02:09 PM
SolutionBut let's continuse. So,
1) find new luns on server 2
(* pvcreate, etc. *)
2) make new vg and lvols on server 2, refer to lvdisplay reports in vg01 on server 2 to get sizes, arguements like bad block relocation, etc. Call your new vg vg04
3) make temp mount points
4) cp or pvmove data over to new vg with the new luns.
5) Update /etc/fstab with new vg04 lvol information to point to the correct mount points of the file systems that you are preserving
6) Destroy vg01 with 'vgexport vg01' on the second server only.
7) now ftp the vg01 map file from server 1 to server 2 and use vgimport mapfile to recreate vg01.
(* Don't forget mkdir, mknod, and verify that the minor numbers are equal for vg01 on server 1 and 2 *)
Now you have the vg01 luns on server 1 sync'd up with vg01 on server 2.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2008 08:15 PM
07-09-2008 08:15 PM
Re: VG extended with PV, how to update VG config on 2nd node
FInd complete tested step by step procedure.
Do not forget to assigne points.
Shardha
Create a required size disk in EVA/storage and present it to both systems in the cluster.
# ioscan
#ioscan â funC disk
# insf â e
Note down the new disk name /dev/rdsk/cXtYd0
On Node1:-
# cmhaltpkg â v prdpkg
# vgchange -a e vg04
# pvcreate -f /dev/rdsk/cXtYd0
For LVOL4:-
# vgextend /dev/vg04 /dev/dsk/cXtYd0 all physical paths
# vgdisplay â v vg04
# lvextend -L 100000 mb /dev/vg04/lvol4 (newsize)
#lvdisplay â v /dev/vg04/lvol4
# extendfs â F vxfs /dev/vg04/lvol4
#vgexport -v -s -p -m /etc/lvmconf/vg04.map vg04
#vgchange â a n vg04
On Node2 :-
# cd /etc/lvmconf
# rcp node1:/etc/lvmconf/vg04.map .
# vgexport vg04
# mkdir /dev/vg04
# mknod /dev/vg04/group c 64 0x040000
# vgimport â v â s â m /etc/lvmconf/vg04.map vg04
# vgchange -a r vg04
# vgcfgbackup vg04
# vgchange -a n vg04
# cmrunpkg prdpkg
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2008 12:09 PM
07-14-2008 12:09 PM
Re: VG extended with PV, how to update VG config on 2nd node
Thx