AIX 5L:第二步——创建lv

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

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/12350275/viewspace-689881/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/12350275/viewspace-689881/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值