- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: export vg
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
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
08-01-2001 06:18 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2001 06:25 AM
08-01-2001 06:25 AM
Re: export vg
You should use vgexport command exporting all volume groups one by one (creating separate map files). Check man pages for vgexport.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2001 06:31 AM
08-01-2001 06:31 AM
SolutionTo try to answer your question
Option 1####
# vgchange -a n
# vgexport
This will destroy the volume group
# vgexport [-s] -p -v -m /tmp/
This will create a mapfile of your volume group
Option 2#####
but you might mean you want to NFS export your volume groups. This is not strictly possible. You can NFS export the logical volumes by
o Add the mount points to /etc/exports
# exportfs -av
On the remote machine you can use NFS to import them or the automounter.
Option 3####
Alternatively do you mean export (save) the data in a vg. Again this is not strictly possible. You can save the data on a filesystem. There are lots of tools for this such as fbackup, Ignite-UX (make_tape_recovery), tar, cpio.....
If you put a little more explaintion we/I may be able to help more
Cheers
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2001 06:32 AM
08-01-2001 06:32 AM
Re: export vg
vgexport -pvs -m /etc/lvmconf/vg_ _ _.map /dev/vg_ _
Above create for volgroup /dev/vg_ _ and places this mapfile in /etc/lvmconf
Hope that helps,
Rita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2001 06:37 AM
08-01-2001 06:37 AM
Re: export vg
#!/usr/bin/sh
for V in `vgdisplay|awk '/dev/ {print $3}'`
do
echo $V
M=`echo $V|tr -d "/"`
echo -m /tmp/${M}.mapfile $V
done
#.end.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2001 06:38 AM
08-01-2001 06:38 AM
Re: export vg
Oops. Let's take out the debugging. The suggestion is this:
#!/usr/bin/sh
for V in `vgdisplay|awk '/dev/ {print $3}'`
do
M=`echo $V|tr -d "/"`
vgexport -m /tmp/${M}.mapfile $V
done
#.end.
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2001 06:50 AM
08-01-2001 06:50 AM
Re: export vg
vgexport command will help you in exporting volume groups.
To export vg01 from system by creating a map file use.
#vgexport -m /tmp/vg01.map vg01
To just create the map file use
#vgexport -p -v -m /tmp/vg01.map vg01
If you want to export VGs from one machine in a cluster to be imported on another machine in cluster use.
#vgexport -s -p -m -v /tmp/vg01.map vg01
Thanks.
Prashant.