Using map files for precise allocation

If the default options provided by the inter- and intra-disk policies are not sufficient for your needs, consider creating map files to specify the exact order and location of the physical partitions for a logical volume.

You can use SMIT, or the mklv -m command to create map files.

For example, to create a ten-partition logical volume called lv06 in the rootvg in partitions 1 through 3, 41 through 45, and 50 through 60 of hdisk1, you could use the following procedure from the command line.

  1. To verify that the physical partitions you plan to use are free to be allocated, type:
    lspv -p hdisk1
  2. Create a file, such as /tmp/mymap1, containing:
    hdisk1:1-3
    hdisk1:41-45
    hdisk1:50-60
    The mklv command allocates the physical partitions in the order that they appear in the map file. Be sure that there are sufficient physical partitions in the map file to allocate the entire logical volume that you specify with the mklv command. (You can list more than you need.)
  3. Type the command:
    mklv -t jfs -y lv06 -m /tmp/mymap1 rootvg 10