- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- what is the difference between "vgcfgbackup & vgcf...
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
Discussions
Discussions
Forums
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
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
тАО03-27-2009 02:45 AM
тАО03-27-2009 02:45 AM
I want you to explain the purpose of vgcfgbackp, vgcfgrestore, vgexport and vgimport.
I need following details for each command.
1) purpose:
2) scenario (where we are using):
3) configuration files details:
4) execution (how to execute):
5) what are the changes made when execution:
So pls explain me in details.
I want all important details that we have to must know when we are executing these commands.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-27-2009 02:51 AM
тАО03-27-2009 02:51 AM
Re: what is the difference between "vgcfgbackup & vgcfgrestore" and "vgexport & vgimport"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-27-2009 02:55 AM
тАО03-27-2009 02:55 AM
Re: what is the difference between "vgcfgbackup & vgcfgrestore" and "vgexport & vgimport"
vgcfgrestore : Use this to restore the LVM configuraztion on a physical disk, for instance, after it has been replaced. When the LV on a replaced disk is not mirrored, a vgcfgrestore is rather useless, but when your LV is mirrored, you can resync your mirror to the new disk after a vgcfgrestore.
vgexport : Gathers the physical disks and LV-number/name mapping to configuration files and removes the VG configuration from the LVM, but leaves all information on disk intact.
vgimport : Reads the above configuration files to add a VG to the LVM setup, but the data on the disks itself should already be there.
vgcfgrestore/vgcfgbackup : Backups the LVM configuration on disk for pure restore/recovery reasons.
vgexport/vgimport : Backups LVM layout to allow you to move the disks to another system and import the configuration there.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-27-2009 03:02 AM
тАО03-27-2009 03:02 AM
Re: what is the difference between "vgcfgbackup & vgcfgrestore" and "vgexport & vgimport"
1)vgcfgbackup is used to backup the VG configuration. This is automatically done when you execute any other LVM commands like
lvcreate, vgextend etc..
Syntax:- #vgcfgbackup
2)vcfgrestore is used to restore the VG configuration on to a PV. This is normally done, when we replace the failed disks.
Syntax:- #vgcfgrestore -n
3)'vgexport' is used to export the volume group configuration by specifying a map file, and this exported configuration can be imported in another machine by using the same map file and 'vgimport' command.
Syntax:-
machine1#vgexport -v -s -m /tmp/mapfile
copy the mapfile to other machine, make sure the vg device file exists on the second machine
machine2#vgimport -v -s -m /tmp/mapfile
machine2#vgcfgbackup
Always keep a copy of the config files like /etc/lvmtab, fstab, lvmrc etc ...
Hope this helps!
regards!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-27-2009 03:07 AM
тАО03-27-2009 03:07 AM
Re: what is the difference between "vgcfgbackup & vgcfgrestore" and "vgexport & vgimport"
The best source I would recommand is man page. It has enough details to clarify you.
#man vgcfgbackup/vgcfgrestore/vgexport/vgimport
vgcfgbackup:
------------
whenever you do any lvm activities like lvcreate, remove, disk add... should be updtated in the respective volume group conf file under /etc/lvmconf. If disk fails we can restore the LVM configuration onto the disk using this backup configuration file.
By default, LVM will run vgcfgbackup command in the background whenever you do lvm activities unless you specified with -A n option.
vgcfgrestore:
-------------
As I explained above, if any disk fails we need to restore the LVM configuration onto the new disk with vgcfgrestore with backup configuration file.
vgexport:
=========
Removing the VG entirely from the server. It will remove the vg directory, device files, lvmtab entry. But it will not remove any lvm configurations or data residing on the disk.
vgimport:
=========
You can import the VG which is exported by vgexport on same server or any other server using vgimport command.
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-27-2009 03:27 AM
тАО03-27-2009 03:27 AM
Re: what is the difference between "vgcfgbackup & vgcfgrestore" and "vgexport & vgimport"
here is a thread about LVM
http://forums13.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1238153130640+28353475&threadId=229361
HTH -
Have a good one -
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-27-2009 02:05 PM
тАО03-27-2009 02:05 PM
Re: what is the difference between "vgcfgbackup & vgcfgrestore" and "vgexport & vgimport"
sounds like you need to be booking yourself on one of HP's LVM training courses and sys admin courses.
you have already been given some ideas, but really you probably be should not be using the commands if you cannot even find some basic info from the man pages
buy a good hpux book and read the docs on docs.hp.com
Andy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-27-2009 02:15 PM
тАО03-27-2009 02:15 PM
Re: what is the difference between "vgcfgbackup & vgcfgrestore" and "vgexport & vgimport"
If you take the root of each word --- backup, restore, export and import --- you can begin to understand the action of each.
If you read the document that Richard cited; the manpages as mentioned; and take a course as Andrew suggested you will benefit greatly.
You need to devote more time to reading the wealth of documents on the HP web.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-27-2009 08:41 PM
тАО03-27-2009 08:41 PM
SolutionYou can check below link which is as follows for detailis regarding vgcfgbackup,vgcfgrestore, vgexport and vgimport
http://docs.hp.com/en/B2355-60127/vgcfgbackup.1M.html
http://docs.hp.com/en/B2355-60127/vgcfgrestore.1M.html
http://docs.hp.com/en/B2355-60127/vgexport.1M.html
http://docs.hp.com/en/B2355-60127/vgimport.1M.html
Rgds//
Taifur
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-27-2009 10:14 PM
тАО03-27-2009 10:14 PM
Re: what is the difference between "vgcfgbackup & vgcfgrestore" and "vgexport & vgimport"
Dear Senthil kumar
vgcfgbackup for any changes happening in lvm
i mean any changes u are doing in lvm
by default system is doing itself, but u can specify destination path.
vgexport for exporting volume group
for example if u want to rename a volume group or u want to export a volume group in another node etc...
vgimport is importing a volume a group map files
Sajjad Sahir