AIX 5L:创建lv(2)
1、计划安装将ORACLE的安装目录对应LV lv_soft01设为8G,将ORACLE存放数据目录对应lv lv_data01设置为20G,通过bc计算[tydic91:root:/]#bc1024*8/641281024*20/64320对应的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 oradatavgoradatavg:LV NAME ? ? ? ? ? ? TYPE ? ? ? LPs ? ? PPs ? ? PVs ?LV STATE ? ? ?MOUNT POINTlv_soft01 ? ? ? ? ? jfs2 ? ? ? 128 ? ? 128 ? ? 1 ? ?closed/syncd ?N/Alv_data01 ? ? ? ? ? jfs2 ? ? ? 320 ? ? 320 ? ? 1 ? ?closed/syncd ?N/A