- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Move VG to other node.
Categories
Company
Local Language
Forums
Discussions
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Knowledge Base
Forums
Discussions
- Cloud Mentoring and Education
- Software - General
- HPE OneView
- HPE Ezmeral Software platform
- HPE OpsRamp
Knowledge Base
Discussions
Forums
Discussions
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
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
08-20-2003 07:46 PM
08-20-2003 07:46 PM
Move VG to other node.
I would like to move one VG from server A
to machine B. VG is from VA7400.
VG name will change on other node.
It is vg05 on server A, it will be vg09 on server B.
(No use of MCSG)
This is what I can think of--
1. vgexport -pvm /tmp/vg05.map vg05.
2. Vgreduce all pvs, vgchange -a n vg05 and then vgexport vg05- On server A.
3. Put file vg05.map on server B.
4. Check device files for vg05.-i.e device files as seen from server B. It may be on different controller.
5. mkdir /dev/vg09
6. mknod /dev/vg09/group c 64 0x090000
7. vgimport -v -m /tmp/vg05.map vg09 all_pvs
Is this OK? Any other way to do this?
Give details please.
Thanks in Advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2003 07:53 PM
08-20-2003 07:53 PM
Re: Move VG to other node.
vgimport
Is the accepted way of moving volume groups between systems on disk that are shared.
Assuming all the logical volumes are filesystems, you could also use fbackup to create a tape to move everything.
You method looks easier, but obviously, anyone that knows me knows I wouldn't conduct such an operation without a few backups in my back pocket.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2003 07:54 PM
08-20-2003 07:54 PM
Re: Move VG to other node.
# vgexport -m /tmp/vg05.map -p -v -s /dev/vg05
# vgchange -a n /dev/05
On the new server B
# mkdir /dev/vg09
# mknod /dev/vg09/group c 64 0x0X0000 (assign the next available number)
# vgimport -v -m /tmp/vg05 -p -s /dev/vg09
if okay
# vgimport -v -m /tmp/vg05 -s /dev/vg09
Using the -s (shared) the VGID will be in the mapfile. So when you run the import the VGID is used to scan the hardware and will find the right disk devices to be used.
Once everything comes up run:
# vgchange -a y /dev/vg09
If you intend to mount filesystems on them you need to 'fcsk' each one.
Create the necessary mount point directories.
# mount .....
update /etc/fstab
Back to server A and vgexport the volume group
# vgexport /dev/vg05
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2003 07:58 PM
08-20-2003 07:58 PM
Re: Move VG to other node.
On node A :
# vgexport -p -s -m /tmp/vg03.map /dev/vg03
# rcp /tmp/vg03.map nodeB:/tmp
On node B :
# mkdir /dev/vg03
# mknod /dev/vg03/group c 64 0x060000
# vgimport -s -m /tmp/vg03.map /dev/vg03
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2003 07:59 PM
08-20-2003 07:59 PM
Re: Move VG to other node.
Step 2 is wrong - you don't want to remove any pvs from the volume group. You wouldn't be able to do this anyway without removing all the lvols. Just deactivate and vgexport it. Other that this it should be fine. Just remember to remove the filesystem definitions in /etc/fstab from the server you are removing the vg from and vice versa for the new server.
cheers,
James.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2003 08:00 PM
08-20-2003 08:00 PM
Re: Move VG to other node.
vgchange -s --> sharable options is only for SG. I do not want to make use of that, rather I can not.
I am talking abt VG export to other node without SG, without having same device files and same VG name on other node.
If I remember correctly, if vg name is to be same on other node and device files are also same-i.e coming from same controller then it is possible.
But my situation is different.
Please advise. Though I doubt this is not possible.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2003 08:15 PM
08-20-2003 08:15 PM
Re: Move VG to other node.
It's very simple and steps will be followed.
1. umount all FS belonging to vg05.
2. vgchange -an /dev/vg05
3. vgexport -vm
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2003 08:16 PM
08-20-2003 08:16 PM
Re: Move VG to other node.
You can safely use it, I do all the time mounting BCV's on secondary servers for testing. ALthough the man page may indicate this, (MC/SG) you can use it for this type of work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2003 08:17 PM
08-20-2003 08:17 PM
Re: Move VG to other node.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2003 09:13 PM
08-20-2003 09:13 PM
Re: Move VG to other node.
Seems that this has to be done using -s options or else it does not work.
Withous -s options it gives me following error.
Volume Group belongs to different CPU ID
Then vgimport goes fine. But I can not activate the vg, gives error as vg not in lvmtab and vgscan does not help in this regard.
I think it is possible only with -s options.
Gurus please confirm.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2003 09:39 PM
08-20-2003 09:39 PM
Re: Move VG to other node.
That warning is normal, it shouldn't affect the import. What makes you think the import went ok? Do the device files get created for the VG? You are not specifying the -p option on the import are you? Is the minor number for the group file unique? Also, ensure the VG was properly deactivated and exported from the other server.
I don't know why everyone's getting so excited about the -s option - its just another way to do it, there is no right or wrong way in this regard, just personal preference. Hence using -s or specifying the correct disks on the command line is functionally equivalent.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2003 09:43 PM
08-20-2003 09:43 PM
Re: Move VG to other node.
That warning is normal, it shouldn't affect the import. What makes you think the import went ok? Do the device files get created for the VG? You are not specifying the -p option on the import are you? Is the minor number for the group file unique? Also, ensure the VG was properly deactivated and exported from the other server.
I don't know why everyone's getting so excited about the -s option - its just another way to do it, there is no right or wrong way in this regard, just personal preference. Hence using -s or specifying the correct disks on the command line is functionally equivalent.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2003 09:44 PM
08-20-2003 09:44 PM
Re: Move VG to other node.
I do this particular task just about every week with BCV's onto a dev server, and it is done using -s option. In fact I am doing this right now. Only difference we have is that we use the same volume group.
Please advise exact syntax for all the commands you used and exactly where the error came up.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2003 10:13 PM
08-20-2003 10:13 PM
Re: Move VG to other node.
With -s option
1. vgexport -pvs -m /tmp/vg08.map vg08
No erros--
2. vgchange -a n vg08 - OK
3. put /tmp/vg08 on other server-B.
On server B
4. mkdir /dev/vg03
5. mknod /dev/vg03/group c 64 0x030000
6. vgimport -pvs -m /tmp/vg08.map vg03
was OK
7. vgimport -vs -m /tmp/vg08.map vg03
8. vgchange -a y vg03-OK
Without -s options
1. vgexport -pv -m /tmp/vg08.map vg08
No erros--
2. vgchange -a n vg08 - OK
3. put /tmp/vg08 on other server-B.
On server B
4. mkdir /dev/vg03
5. mknod /dev/vg03/group c 64 0x030000
6. vgimport -pv -m /tmp/vg08.map vg03
gave error - Volume Group belongs to different CPU ID
last message- vgimport completed successfully.
7. vgimport -vs -m /tmp/vg08.map vg03
gave error - Volume Group belongs to different CPU ID
last message- vgimport completed successfully.
8. vgchange -a y vg03-error
vg03 not in lvmtab file. Did vgscan -a, no change in errors.
can not do vgchange -a y vg03.
Tried
9. Also tried - vgimport -v -m /tmp/vg08.map vg03 /device_file--same errors.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2003 10:19 PM
08-20-2003 10:19 PM
Re: Move VG to other node.
On the "without -s" try you then imported using the -s option and not by the correct procedure in specifying the disks after the volume group name.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2003 10:24 PM
08-20-2003 10:24 PM
Re: Move VG to other node.
Can you give exact steps-for doing it without -s option?
Thanks in advance. Points are coming.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2003 10:42 PM
08-20-2003 10:42 PM
Re: Move VG to other node.
I think you pretty much had it the first time, without the vgreduce, hence I won't repeat all the steps. I notice you did actually try to import using the device files on the last step, which I missed before. However, I imagine you are just making a slight mistake. You must correctly identify and include all device files on the new host for importing. If you think you know the correct devices you can use the following to confirm the VGID :
# echo 0x2010?2X | adb /dev/dsk/cXtXdX | expand | tr -d " " | sed "s/2010:/VGID /"
This number should be the same for all disks within the volume group. Just be careful of the syntax and format of commands.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2003 11:25 PM
08-20-2003 11:25 PM
Re: Move VG to other node.
James,
Even chekcing the vgid did not help. I will try it again with a fresh vg.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2003 01:31 AM
08-21-2003 01:31 AM
Re: Move VG to other node.
You no need to specify the map file -m option when you know all the pvs belong to the volumegroup. The only difference is you get all the logical volumes under the vg as lvol1, lvol2 ....
The command is simple.
#vgimport -v vg09 all_pvs