- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Copying a VG
Categories
Company
Local Language
Forums
Discussions
- Integrity Servers
- Server Clustering
- HPE NonStop Compute
- HPE Apollo Systems
- High Performance Computing
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 Software
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
11-05-2003 02:21 AM
11-05-2003 02:21 AM
Copying a VG
I have VG called VG01 with 4 disks in it sitting on server1. I have another 4 disks that I present to another server called server2.
Is there some fancy way of copying the VG config AND data of VG01 to the 4 new disks on server2 so that server2 VG01 is identical to the server1 VG01?
I could just re-create the VG and manually recreate the LV's/filesystems and set permissions etc but that would be a pain.
your thoughts appreciated.
Kind regards,
Mohammed U. Ali
mu.ali@ntlworld.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2003 02:24 AM
11-05-2003 02:24 AM
Re: Copying a VG
deactivate the volume group
vgimport
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
11-05-2003 02:26 AM
11-05-2003 02:26 AM
Re: Copying a VG
You can re-create the LVM information on the other machine with "vgexport -m /tmp/mapfile -p vg01" and then copy the mapfile to the other machine and "vgimport -m /tmp/mapfile -p vg01" but you still need to create /dev/vg01/group and it will not copy the data. You may as well do the whole thing manually and if you restore from a tape, you won't have the permissions problem.
Oh, and don't forget to update /etc/fstab either
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2003 02:29 AM
11-05-2003 02:29 AM
Re: Copying a VG
Other than recreating the Volume Group and restoring the data from tape or from tar or any other copy utility you like, I don't think there is an easy way out of this one.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2003 02:39 AM
11-05-2003 02:39 AM
Re: Copying a VG
I thought as much. I'll probably just import mapfile and restore from tape.
Funny you should mention the BC option. I was considering doing that but then wondered if it was a shortcut or (probably) a longer one :)
Thanks guys.
Kind regards,
Mohammed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2003 02:47 AM
11-05-2003 02:47 AM
Re: Copying a VG
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2003 02:50 AM
11-05-2003 02:50 AM
Re: Copying a VG
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2003 02:52 AM
11-05-2003 02:52 AM
Re: Copying a VG
vgexport / vgimport will only work if you export the VG from server1, remove the disks from server1, attach the disks to server2, and then vgimport.
vgexport / vgimport is not designed to replicate a VG configuration between different sets of disks.
You will have to recreate the VG from scratch.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2003 02:56 AM
11-05-2003 02:56 AM
Re: Copying a VG
I was under the impression that vgimport only queried the disks when you have the "-s" option enabled. Have I been deluding myself again?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2003 03:04 AM
11-05-2003 03:04 AM
Re: Copying a VG
Sorry to say, yep you have been. ;) The '-s' option allows you to more easily import the VGs since you don't have to specify each and every disk on the vgimport command line. The '-s' may actually add an extra disk read into the vgimport since it is looking for all disks with the VGID that is specified in the map file.
Anyway, when you use vgimport it will look at all the disks, since each has a VGRA on it and get the LV information from all of the disks. It uses this information to figure out which LVs reside on which disks and what the sizes are.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2003 03:09 AM
11-05-2003 03:09 AM
Re: Copying a VG
Thanks for taking the time to clear that up.
Regards