- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: vgexport
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
09-05-2008 04:09 AM
09-05-2008 04:09 AM
vgexport
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2008 04:18 AM
09-05-2008 04:18 AM
Re: vgexport
Thanks
SKR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2008 04:27 AM
09-05-2008 04:27 AM
Re: vgexport
On source:
vgexport -s /dev/vg??
On target:
mkdir /dev/vg??
mknod /dev/vg??/group c 64 0x??0000
vgimport -s /dev/vg??
vgchange -a y /dev/vg??
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2008 04:33 AM
09-05-2008 04:33 AM
Re: vgexport
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2008 04:39 AM
09-05-2008 04:39 AM
Re: vgexport
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2008 04:41 AM
09-05-2008 04:41 AM
Re: vgexport
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2008 04:48 AM
09-05-2008 04:48 AM
Re: vgexport
"When the -s option is specified, then the -p, -v, and -m options must also be specified."
That's totally untrue.
I have to wonder what current (11iv3) man pages have to say about it.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2008 04:52 AM
09-05-2008 04:52 AM
Re: vgexport
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2008 05:04 AM
09-05-2008 05:04 AM
Re: vgexport
"Using the format of the second command line of the SYNOPSIS above, the vgexport command generates a mapfile that can be copied to other systems that are part of a high availability cluster (use the -p option if you do not want to remove the volume group from the system the command is being run from) and the vgimport command (see vgimport (1M)) can be used to recreate the volume group. See also vgchange (1M). The mapfile contains a description of the volume group and its associated logical volume(s) (if nay). The logical volume information found on the physical volumes is not modified."
See http://www.docs.hp.com/en/B2355-91020/B2355-91020.pdf
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2008 05:18 AM
09-05-2008 05:18 AM
Re: vgexport
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2008 02:39 AM
09-07-2008 02:39 AM
Re: vgexport
If number of disks are huge then vgexport -s may take long time and it can hang also.
What you can do here is take out vg -> disk mapping at primary node and import the same on secondary node.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2008 05:14 AM
09-07-2008 05:14 AM
Re: vgexport
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2008 06:58 PM
09-08-2008 06:58 PM
Re: vgexport
3 Possible syntaxes:
/usr/sbin/vgimport [-m mapfile] [-p] [-v] vg_name pv_path ...
/usr/sbin/vgimport [-m mapfile] [-p] [-v] [-f infile] vg_name
/usr/sbin/vgimport -m mapfile [-N] [-v] [-p] -s vg_name
Pg 633 contains the vgexport man page.
vgexport has 2 syntaxes
/usr/sbin/vgexport [-m mapfile] [-p] [-v] [-f outfile] vg_name
/usr/sbin/vgexport -m mapfile -s [-p] [-v] vg_name
Admittedly, the man page is obscure about the meaning of the -s option with respect to both vgexport and vgimport.
When used with vgexport, the -s option places the unique VGID of the referenced volume group at the top of the map file created with the -m option.
When used with vgimport, the -s option instructs LVM to use the VGID in the first line of the map file as a reference as it scans all disks in the backplane for a matching VGID, loading matching device special file entries for such disks into the /etc/lvmtab file under the volume group name.
When used with the –p option, vgexport -m merely creates a map file which contains a list of logical volumes and volume names. It should take just a few seconds.
If you find that a vgimport with the -s option is taking longer than you like, create a set of files listing all physical volumes that match each volume group. Then use vgimport with the –f option to specify the appropriate file name to import the referenced volume group. This method means that you guarantee that all the listed disks are truly members of the volume group. Use a map file to provide custom logical volume names, if any. If none, then don't use the -m option and map file at all.
The -s option, though possibly more lengthy to operate during vgimport removes a possibility of human error as LVM scans every disk for a matching VGID.