Re: changing pp size of a volume group

From: sbzx (zsoos_at_no.info.hu)
Date: 03/31/04


Date: 30 Mar 2004 23:21:47 -0800


> while on the subject, i've got another question:
>
> suppose you have a disk which was part of a volumegroup where pp size was
> 32MB. then you do an exportvg of the disk, and try to import this disk into a
> volumegroup with a pp size of 16MB.
>
> I suppose the action will fail ?

Tom,

There are some problems with your question. (1) Only a full VG can be
exported, a disk cannot (unless, of course the VG only has one disk).
A disk can be removed (reducevg) from a VG, though, in which case that
disk becomes blank from a VG perspective, no VG information is
preserved (LV information, PP size, etc. are all lost). (2) A disk
cannot be imported (importvg) into a VG, it can be added to it using
extendvg. When you add a disk to a VG using extendvg, all the
administrative sectors of the disk will be overwritten. The added disk
will inherit all VG parameters from the VG it is added to, including
PP size. When you import a VG (full or partial), a new VG definition
is created in AIX containing only the disks that are part of the newly
imported VG. You cannot join two VGs with either extendvg or importvg.
In fact, there is no way merging two volume groups unless you are
ready to make a full backup and restore.

I hope this explanation helps.

sbzx



Relevant Pages

  • Re: disaster please help
    ... Gerard M. MAMOU ... importvg -y uservg hdisk1 ... I usually use whatever disk shows up first in the hdisk list for the VG ... Gerard Mamou ...
    (AIX-L)
  • Re: disaster please help
    ... which vg the disk belonged to) ... importvg -y hdiskXX ... Gerard M. MAMOU ...
    (AIX-L)
  • Re: disaster please help
    ... I understand that the name of the uservg imported should not be rootvg. ... importvg -y uservg hdisk1 ... I usually use whatever disk shows up first in the hdisk list for the VG ...
    (AIX-L)
  • Re: AIX machine wont boot - LED says 0518
    ... > both the mount and fsck commands have failed - I'm stuck. ... disk and installed 4.2.1 onto it you had a new 'rootvg'. ... 'importvg hdisk0' it was trying to import another vg w/ the same name ...
    (comp.unix.aix)
  • Re: How to add a disk drive with an existing file system
    ... >> How can I take a disk drive from one AIX 4.3.3 server to another ... >> the existing file system available to this server? ... You'll have to supply a vg name to importvg if you ...
    (comp.unix.aix)