AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
 View Only
  • 1.  increase the PV

    Posted Wed September 13, 2006 01:14 PM

    Originally posted by: SystemAdmin


    one of the PV -hdisk1 is full while assign to a LV. However, the lspv hdisk1 shows:
    PP SIZE: 128 megabyte(s) LOGICAL VOLUMES: 12
    TOTAL PPs: 546 (69888 megabytes) VG DESCRIPTORS: 1
    FREE PPs: 374 (47872 megabytes) HOT SPARE: no
    USED PPs: 172 (22016 megabytes) MAX REQUEST: 256 kilobytes
    FREE DISTRIBUTION: 109..18..29..109..109
    USED DISTRIBUTION: 01..91..80..00..00
    How can I use the "extendlv -m MapFile logicalVolume" to increase the PP of this HD available to the LV? I read the manual about the -m option, can not quite under stand the meaning of partition number in MapFile?
    #AIX-Forum


  • 2.  Re: increase the PV

    Posted Wed September 13, 2006 02:57 PM

    Originally posted by: SystemAdmin


    Run "lspv -M hdisk1"

    Here is a sample output:
    $ lspv -M hdisk0 | head
    hdisk0:1 hd5:1:1
    hdisk0:2 ngs:1:1
    hdisk0:3 share:1:1
    hdisk0:4 oradata:1:1
    hdisk0:5 inst.save:1:1
    hdisk0:6-10
    hdisk0:11 hd4:15:1
    hdisk0:12 lpplvov:1:2
    hdisk0:13 lpplvov:2:2
    hdisk0:14 lpplvov:3:2

    In this case, on hdisk0, the PPnums 6-10 are available.

    To use these you would create a map file where the sole content is:

    hdisk0:6-10

    Then you would invoke:
    extendlv -m /tmp/mymapfile LVName Partitions

    Note
    6-10 are available for use and that is 5 partitions and not 4.
    If you specify "6" for Partitions in extendlv, and only 5 are available there will be an error message.

    The map file can have multiple lines from different disks as well.

    #AIX-Forum


  • 3.  Re: increase the PV

    Posted Wed September 13, 2006 04:47 PM

    Originally posted by: SystemAdmin


    According to the format of IBM redbook doc for extendlv, should that be:
    extendlv m hdisk1:202-204 fslv00 3, if my lspv -M hdisk1 indicated that
    hdisk1:201 fslv00:235
    hdisk1:202-219
    hdisk1:220 hd8:1:2
    #AIX-Forum