ITEM: J2223L

Using "lvedit" to create LVs with specific PPs


Question:

        I am at AIX 3.2.5 and I want to create some new logical volumes. 
I have done this before but it has been so long I can't remember how to 
use the lvedit command anymore.  I want these logical volumes to be on
specific physical partitions.

Response:

Here are the steps to use in lvedit:

  lvedit \
  add \
  ---
  then select from the settings or hit \ to choose defaults
  ---
  type "extend"
  hit \ to select "Sequential"
  ---

You will then be able to chose from the available partitions in that
volume group.  The format is like this:

  hdisk0:144-146

The command that the lveditor is building is mklv.  Another option
is to use the mklv command from the command line.  First run lspv -p 
on each disk in the volume group:

  lspv -p \

This will show you the available partitions.  Select which ones you 
want and create a map file using vi.  Example file contents could be:

hdisk0:20
hdisk0:22-25
hdisk0:30-40
hdisk1:10-20

Then run the mklv command:

mklv -t jfs -y \ -m \ VGname \#PPs


Support Line: Using "lvedit" to create LVs with specific PPs ITEM: J2223L
Dated: May 1994 Category: N/A
This HTML file was generated 99/06/24~13:30:44
Comments or suggestions? Contact us