- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: vgexport and vgimport
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
01-07-2010 11:40 PM
01-07-2010 11:40 PM
when we have to use vgexport and vgimport comand?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2010 11:53 PM
01-07-2010 11:53 PM
Re: vgexport and vgimport
I was waiting for your thread only. :)
have you tried going thru the man pages or on internet. if you did, where is your dount. "What these commands do" cannot be a doubt.
So, preferably try finding out yourself first. Its a good suggestion. If you want to be a good System Admin, then first try things finding out yourself.
I hope you understand what i m trying to say :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2010 11:57 PM
01-07-2010 11:57 PM
Re: vgexport and vgimport
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2010 12:34 AM
01-08-2010 12:34 AM
Re: vgexport and vgimport
1) vgexport - export an LVM volume group and its associated logical volumes. It remove the specified VG from the /etc/lvmtab file and associated device files including vg_name from the /dev/ directory. It is useful while moving your disks across system, renaming your VGname etc.
2) vgcfgbackup - create or update LVM volume group configuration backup file. It saves the LVM configuration for a volume group in a default or alternate configuration backup file (/etc/lvmconf directory by default). vgcfgbackup runs automatically each time an LVM command changes the LVM configuration. It is useful when you have a corrupted LVM header of a disk by restoring VG configurations on that disk.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2010 12:49 AM
01-08-2010 12:49 AM
SolutionFew points..
vgexport:
- Can be used to remove existance to vg entirely from server
- To create map file with details of vg like VGID, names of lvols etc for future use.
- Can be done to get back a VG (say if you do not know which disks are involved in this VG)
- Example
# more vg00.mapfile
VGID 09342e62418b9aab
1 lvol1
2 lvol2
3 lvol3
4 lvol4
5 lvol5
6 lvol6
7 lvol7
8 lvol8
vgcfgbackup:
- to backup vg configuration
- holds information of disks involved in this vg
- Can be done on any one disk in a vg (say replacement disk)
- Example
# strings vg00.conf.new
CONFIG01
/dev/vg00
/dev/rdsk/c1t2d0
-- junk characters--
Hope you got some idea..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2010 01:06 AM
01-08-2010 01:06 AM
Re: vgexport and vgimport
.....by using vgexport,it will remove all the VG related configurations from the server ,but the data on the disk will be untouched, which we can import on the same server later or on another one.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2010 01:27 AM
01-08-2010 01:27 AM
Re: vgexport and vgimport
1)Is it necessory to deactivate the vg before vgexport?
2)I got the below command from docs.here it is showing exporting vg01.So what is the /tmp/vg01.map file?where it will be stored?What is for -v and -m?
#vgexport -v -m /tmp/vg01.map vg01
3)I think data will be intact.right?
4)And while connecting to another box,it will take the vg01 as what if vg01 is already available with that box?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2010 01:34 AM
01-08-2010 01:34 AM
Re: vgexport and vgimport
1)Is it necessory to deactivate the vg before vgexport?
yes
2)I got the below command from docs.here it is showing exporting vg01.So what is the /tmp/vg01.map file?where it will be stored?What is for -v and -m?
#vgexport -v -m /tmp/vg01.map vg01
Full path is given in your command itself
/tmp/vg01.map
-v Print verbose messages including the names of the physical volumes associated with this volume group.
3)I think data will be intact.right?
Yes...untouched
4)And while connecting to another box,it will take the vg01 as what if vg01 is already available with that box?
Yes..but you need to move those disks to another server, then follow:
# mkdir /dev/vgXX --> (you could also choose another VG name)
# mknod /dev/vgXX/group c 64 0xXX0000
# vgexport -v -s -m /tmp/vgXX.map vgXX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2010 01:45 AM
01-08-2010 01:45 AM
Re: vgexport and vgimport
4)And while connecting to another box,it will take the VG01 AS WHAT IF VG01 IS ALREADY AVAILABLE WITH THAT BOX???
Yes..but you need to move those disks to another server, then follow:
# mkdir /dev/vgXX --> (you could also choose another VG name)
# mknod /dev/vgXX/group c 64 0xXX0000
# vgexport -v -s -m /tmp/vgXX.map
Are you tellig to change the vg name?
And I think after connecting the disk to other server we have to do vgimport.??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2010 02:56 AM
01-08-2010 02:56 AM
Re: vgexport and vgimport
>> Are you tellig to change the vg name?
You can change the name of VG if you want or if another VG of same name do not exist in other server. Else use the same name for VG.
>> And I think after connecting the disk to other server we have to do vgimport.??
Yes, as the data is present on these disks we will remove them and replace them to another server, create VG (mkdir..mknod..) and then we will do vgimport with the same mapfile that was created by vgexport command on the previous server. So after executing vgimport command, it will search for disks having same VGID (mentioned in mapfile) and include them as part of this newly created VG. Then it will same as earlier VG in previous server.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2010 02:58 AM
01-08-2010 02:58 AM
Re: vgexport and vgimport
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2010 10:11 PM
01-10-2010 10:11 PM
Re: vgexport and vgimport
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2010 11:33 PM
01-10-2010 11:33 PM
Re: vgexport and vgimport
If I am changing the disk from one cotroller to other of the same server,Is it require to do vgexport??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2010 12:10 AM
01-11-2010 12:10 AM
Re: vgexport and vgimport
Probably..vgscan will be required beacuse the disk name will be changed and existing lvmtab will no longer work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2010 12:44 AM
01-11-2010 12:44 AM