- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- vgimport from old vgname to new vgname
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
02-27-2003 06:20 AM
02-27-2003 06:20 AM
Can I vgexport vg01 and vg02 with mapfiles - which I won't need anymore, then vgexport vg20 and vgimport vg20 using the vg02 volume group name? We would like to use the vg02 volume group name as a standard for our Shark connections. Any ideas ?
Thanks -
Chris
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2003 06:22 AM
02-27-2003 06:22 AM
Re: vgimport from old vgname to new vgname
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2003 06:25 AM
02-27-2003 06:25 AM
SolutionAssuming vg01 and vg02 are already exported.
# vgchange -a n /dev/vg20
# vgexport -p -v -s -m mapfilename /dev/vg20
After you are sure that this does what you want, redo the command without the '-p' so that vg20 definitions get removed from the machine.
# mkdir /dev/vg02
# mknod /dev/vg02/group c 64 0x020000
# vgimport -m mapfilename -s -v /dev/vg02
# vgchange -a y /dev/vg02
And you are done.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2003 06:30 AM
02-27-2003 06:30 AM
Re: vgimport from old vgname to new vgname
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2003 06:51 AM
02-27-2003 06:51 AM
Re: vgimport from old vgname to new vgname
The only real requirement is that you choose a unique minor device number for the volume group node. By convention, vg02 using 64:0x020000, vg03 uses 64:0x030000, vg04 uses the 64:0x040000 major:minor device tuple but that is just to make things easier for us dumb humans.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2003 06:52 AM
02-27-2003 06:52 AM
Re: vgimport from old vgname to new vgname
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2003 06:55 AM
02-27-2003 06:55 AM
Re: vgimport from old vgname to new vgname
I forgot to remove the -p option when I vgexported vg01 and vg02 - how do I remove these from the system safely?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2003 06:58 AM
02-27-2003 06:58 AM
Re: vgimport from old vgname to new vgname
# vgexport /dev/vg01
# vgexport /dev/vg02
This will remove the VG information from /etc/lvmtab and thus from the system.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2003 07:05 AM
02-27-2003 07:05 AM
Re: vgimport from old vgname to new vgname
following your instructions I get the message:
vgimport: Unable to read the physical volume
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2003 07:14 AM
02-27-2003 07:14 AM
Re: vgimport from old vgname to new vgname
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2003 07:21 AM
02-27-2003 07:21 AM
Re: vgimport from old vgname to new vgname
man vgexport will tell you about the -m and -f options those are very handy. Makes a vgimport command a lot easier.
If all the ESS disks, you assigned to the system, were also in the vg20 VG it is still easy just try
vgimport -m
/dev/dsk/c#t#d# .......
/dev/dsk/c#t#d# .... are all the disks from the vg20 group.
Paul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2003 07:25 AM
02-27-2003 07:25 AM
Re: vgimport from old vgname to new vgname
OK - My dumb human mistake :
I forgot the -s option on the vgexport - so I had to manually re-add the vg20 volume group then vgexport with the -s option .
Everything worked correct and easy.
Thanks all !
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2003 07:27 AM
02-27-2003 07:27 AM
Re: vgimport from old vgname to new vgname
http://forums.itrc.hp.com/cm/PostAnswer/1,,0xe95435a43b46d71190080090279cd0f9,00.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2003 07:27 AM
02-27-2003 07:27 AM
Re: vgimport from old vgname to new vgname
I should have done it your way - I get it now!
Thanks !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2003 07:29 AM
02-27-2003 07:29 AM