Operating System - HP-UX
1753650 Members
6205 Online
108798 Solutions
New Discussion юеВ

what is the difference between vgexport and vgremove?

 
iPranay
Occasional Contributor

what is the difference between vgexport and vgremove?

what is the difference between vgexport and vgremove?

3 REPLIES 3
Torsten.
Acclaimed Contributor

Re: what is the difference between vgexport and vgremove?

The man pages will tell you.

 

With vgexport you remove all VG configuration from the system without touching the disks itself, this means all data will remain on the disks.

 

With vgremove you first have to remove the LVOLs, then the VG itself.

 

This will remove the VG definition from the system and the VG structure (including data) from the disks.


Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
iPranay
Occasional Contributor

Re: what is the difference between vgexport and vgremove?

Thank you :) Torsten
sujit kumar singh
Honored Contributor

Re: what is the difference between vgexport and vgremove?

Once you do Vgexport, vg can be imported later on, if you have not done pvcreate on the member disks or have not created partitions on it using idisk in Integrity,

Vgremove means removing the VG structures entirely from the PVs and a VGimport from there is not possible.

vgimport in preview mode with -p and additionally options like -s and -f can be used to export the VG in preview mode there by creating a VG map file which can be used to import on another node to have the VG configured with LVs and FS there. the preview mode export and import using map files is used very commonly in case of distributing the VG configuration to other nodes in MC/SG clusters.

Vgexport followed by vgimport can also be used to rename a VG on the same system.