专注收集记录技术开发学习笔记、技术难点、解决方案
网站信息搜索 >> 请输入关键词:
您当前的位置: 首页 > 人工智能

AIX 5L:创设lv(2)

发布时间:2011-07-03 09:11:25 文章来源:www.iduyao.cn 采编人员:星星草
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
友情提示:
信息收集于互联网,如果您发现错误或造成侵权,请及时通知本站更正或删除,具体联系方式见页面底部联系我们,谢谢。

其他相似内容:

热门推荐: