AIX 5L:创建lv(2)

1、计划 安装
将ORACLE的安装目录对应LV lv_soft01设为8G,将ORACLE存放数据目录对应lv lv_data01设置为20G,通过bc计算
[tydic91:root:/]#bc
1024*8/64
128
1024*20/64
320
对应的pp数分别为128和320

2、创建逻辑卷

[tydic91:root:/]#smitty mklv
                                                        Add a Logical Volume

Type or select values in entry fields.
Press Enter AFTER making all desired changes.
按F4,列VG组,选择oradatavg

                                                        Add a Logical Volume

Type or select values in entry fields.
Press Enter AFTER making all desired changes.

                                                        [Entry Fields]
  Logical volume NAME                                [lv_soft01]
* VOLUME GROUP name                                   oradatavg
* Number of LOGICAL PARTITIONS                       [128]                                                                        #
  PHYSICAL VOLUME names                              []                                                                          +
  Logical volume TYPE                                [jfs2]                                                                      +
  POSITION on physical volume                         middle                                                                     +
  RANGE of physical volumes                           minimum                                                                    +
  MAXIMUM NUMBER of PHYSICAL VOLUMES                 []                                                                           #
    to use for allocation
  Number of COPIES of each logical                    1                                                                          +
    partition
  Mirror Write Consistency?                           active                                                                     +
  Allocate each logical partition copy                yes                                                                        +
    on a SEPARATE physical volume?
  RELOCATE the logical volume during                  yes                                                                        +
    reorganization?
  Logical volume LABEL                               []
  MAXIMUM NUMBER of LOGICAL PARTITIONS               [512]                                                                        #
  Enable BAD BLOCK relocation?                        yes                                                                        +
  SCHEDULING POLICY for writing/reading               parallel                                                                   +
    logical partition copies
  Enable WRITE VERIFY?                                no                                                                         +
  File containing ALLOCATION MAP                     []                                                
  Stripe Size?                                       [Not Striped]                                                               +
  Serialize IO?                                       no                                                                         +
按两次enter后:
Command: OK       stdout: yes           stderr: no

Before command completion, additional instructions may appear below.

lv_soft01

按F3返回,再创建逻辑卷lv_data01

                                                        Add a Logical Volume

Type or select values in entry fields.       
Press Enter AFTER making all desired changes.

                                                        [Entry Fields]
  Logical volume NAME                                [lv_data01]
* VOLUME GROUP name                                   oradatavg
* Number of LOGICAL PARTITIONS                       [320]                                                                        #
  PHYSICAL VOLUME names                              []                                                                          +
  Logical volume TYPE                                [jfs2]                                                                      +
  POSITION on physical volume                         middle                                                                     +
  RANGE of physical volumes                           minimum                                                                    +
  MAXIMUM NUMBER of PHYSICAL VOLUMES                 []                                                                           #
    to use for allocation
  Number of COPIES of each logical                    1                                                                          +
    partition
  Mirror Write Consistency?                           active                                                                     +
  Allocate each logical partition copy                yes                                                                        +
    on a SEPARATE physical volume?
  RELOCATE the logical volume during                  yes                                                                        +
    reorganization?
  Logical volume LABEL                               []
  MAXIMUM NUMBER of LOGICAL PARTITIONS               [512]                                                                        #
  Enable BAD BLOCK relocation?                        yes                                                                        +
  SCHEDULING POLICY for writing/reading               parallel                                                                   +
    logical partition copies
  Enable WRITE VERIFY?                                no                                                                         +
  File containing ALLOCATION MAP                     []
  Stripe Size?                                       [Not Striped]                                                               +
  Serialize IO?                                       no                                                                   
结果:
                                                           COMMAND STATUS

Command: OK            stdout: yes           stderr: no

Before command completion, additional instructions may appear below.

lv_data01

3、确认
[tydic91:root:/]#lsvg -l oradatavg
oradatavg:
LV NAME             TYPE       LPs     PPs     PVs  LV STATE      MOUNT POINT
lv_soft01           jfs2       128     128     1    closed/syncd  N/A
lv_data01           jfs2       320     320     1    closed/syncd  N/A

猜你喜欢

转载自cjjwzs.iteye.com/blog/1159403
AIX
今日推荐