当前位置:网站首页>Creating logical volumes and viewing and modifying attributes for AIX storage management
Creating logical volumes and viewing and modifying attributes for AIX storage management
2022-07-02 00:40:00 【51CTO】
restudy old materials :
In the last article 《AIX View and modify the volume group properties of storage management ( Two )》 Talked about it. AIX How to view and modify the properties of a volume group . I won't repeat them here , Just a point : If there is someone unfamiliar with the command , have access to smit Tools to operate .
Link to the original text : AIX View and modify the volume group properties of storage management ( Two )
know sth. new :
Today we will talk about viewing and modifying the properties of logical volumes , After talking about logical volumes , About AIX Storage management is basically over . A summary will be made later , You can have a look if you are interested .
One 、 Create logical volumes
That is, how to create a logical volume . There are also several points to pay attention to when creating logical volumes :
- How many logical partitions does the logical volume contain , That is, specify the size of the logical volume ;
- In which volume group are logical volumes created , Indicates the volume group name to which the logical volume belongs ;
- Indicates the name of the logical volume ;
- Indicate on which physical volume to create the logical volume ;
- Indicate where the physical partition assigned to the logical volume is located on the physical volume , That is, the internal disk allocation policy ;
- Whether to mirror the logical volume , There are several copies ;
- If you mirror a logical volume , The distribution strategy of the physical partition of each replica on the physical volume should be pointed out , That is, the allocation strategy between disks ;
- Whether to open the write validation of the logical volume .
The command used to create a logical volume is mklv , for instance : stay rootvg Created in gaolv. The logical volume is mirrored with two copies , share 20 Logical partitions , Each logical partition maps to two physical partitions , Then the physical partition is 40 individual .
It can also be used smit Tools , The command used is :
1、 Select Add logical volume

2、 Fill logical volume The name of the volume group to which it belongs

3、 Fill in the properties of the logical volume

Fill in the corresponding information .
There's a little problem . Do you know how to calculate the size of the logical volume in the actual physical hard disk ? Through the previous explanation , It is not difficult to know that logical volumes are composed of logical partitions , So just know how many logical partitions there are . Is that right ??? This statement is half right , The reason is that a logical partition can map one to three physical partitions .
1、 If the logical volume has no copies ( Namely Lv Its own size )
The size of the logical volume in the actual physical hard disk (MB)=PP Size (MB)×LV contain LP The number of
2、 If the logical volume has a copy
The size of the logical volume in the actual physical hard disk (MB)= PP Size (MB)×LV contain LP Count ( individual )×LV Number of copies
One more little question : Do you know how to change the size of a logical volume ? By adding and reducing logical partitions , You can change the size of a logical volume ; By increasing and decreasing the number of mirrors of logical volumes , You can change the physical location of the logical volume on the disk .
Two 、 View logical volume properties
1、 Displays all logical volumes in a volume group
2、 Displays the detailed properties of the logical volume

3、 Displays the physical volume spanned by a logical volume and the distribution of the logical volume on the physical volume

Be careful :
"COPIES" The list shows that the logical volume is on the same physical volume 3 Used in copies PP Count ."COPIES" The format description of the column is shown in Figure :

If the logical volume gaolv Two copies of are on the same physical volume hdisk1 On , be hdisk1 Corresponding "COPIES" The contents of the column should be ∶ 128∶128∶000, Such logical volume mirroring cannot be avoided hdisk1 Single point of failure of physical volumes , When hdisk1 There is a problem with the hard disk , Then the whole gaolv Will lose .
"DISTRIBUTION" The contents of the column represent the contents of the logical volume PP Distribution on physical volumes .

The following is an example :gaolv Logical volume in hdisk1 There are 64 individual PP At the outer and inner edges , stay hdisk0 There are 32 individual PP Located on the outer edge ,96 individual PP Located on the inner edge .

4、 Displays the logical volume allocation on the specified physical volume

5、 Displays the replica allocation of the mirrored logical volume

3、 ... and 、 Logical volume attribute modification
If you want to modify the properties of a logical volume , It is recommended to use smit Tools , Because for me personally , You need to remember a lot of parameters when using commands to modify attributes , My brain is not easy to use .
1、 Select Modify logical volume

2、 Fill in the logical volume name

3、 Enter the modify interface

Four 、 Copy logical volumes
1、 Copy a logical volume to a new logical volume .
This command will delete the old logical volume oldlv Copy the contents of to a new logical volume newlv On , The new logical volume is named myvg In the volume group of . If you do not specify a volume group , The new logical volume is in the same volume group as the old logical volume .
cplv The command will not start with a logical volume 512 Copy bytes to the new logical volume , Because of this 512 Bytes are LVCB, But it will write new logical volumes with new attributes LVCB.
2、 Copy a logical volume to an existing logical volume .
This command will delete the old logical volume oldlv Copy the contents of to an existing logical volume , Both logical volumes are in the same volume group . Because you want to overwrite data that already exists on the logical volume , Therefore, the user is required to confirm whether to continue the copy operation . If the existing logical volume is smaller than the old logical volume , You may lose data , And cause the copy operation to fail .
It can also be used smit Tools to operate , Carry out orders :
1、 Select the deepened part in the figure

2、 Just choose the corresponding way

The first is to copy to an existing logical volume , The second is to copy to the user created logical volume , The third is to copy to the logical volume created by the system .
5、 ... and 、 Logical volume increase / Reduce copies
Use smit Tools , Carry out orders
1、 Select the deepened part

2、 Select Article 3 or 4 to add or delete copies

expand :
Have you ever thought about what factors are affecting the performance of logical volumes . Here I will briefly talk about two factors . One is the internal allocation of the disk , The second is the allocation between disks .
Internal disk allocation refers to the physical partition of the logical volume stored in the actual location of the disk . For a single disk only , For frequently used 、 The most frequently accessed logical volumes are recommended to be placed in the central area of the disk , For logical volumes that do not need frequent access, it is recommended to put them at the edge . But there is a special case : On the outer edge of the disk (Outer-Edge) More data blocks are stored on each track of the disk than on each track in other areas of the disk , therefore , For applications that need to perform a large number of sequential read and write operations , If you store data on the outer edge of the disk , It will produce higher throughput .
Allocation between disks refers to the distribution of physical partitions of logical volumes on multiple physical volumes . In the same volume group , The physical partitions of a specified logical volume can be distributed on one or more disks , This is done by creating the logical volume "RANGE of physical volumes" Setting of options ( In use smitty mklv Command to create LV when ) To decide . This option ( namely Range) There are two range values ∶ minimum( Minimum number ) and maximum( The maximum number ).
1)minimum Physically and logically represent a volume , If one physical volume is not enough , Then put the physical partition on as few physical volumes as possible .minimum Value can only be used to increase the availability of data , Instead of setting logical volumes that require frequent access minimum value .
2)maximum It means that the physical partitions of the logical volume are distributed on as many physical volumes as possible , It is usually distributed on all physical volumes in the volume group as much as possible .maximum Value can reduce the average time to access logical volumes . If a non mirrored logical volume spans multiple physical volumes , Then the error of any physical volume will lead to the loss of data , Make the data of the logical volume incomplete .maximum Value is a performance oriented setting , It should be used in conjunction with mirroring to improve data availability and logical volume performance .
Let's stop here for the moment about logical volumes , The next article brings you 《 AIX Summary of storage management 》
边栏推荐
- Leetcode skimming: stack and queue 04 (delete all adjacent duplicates in the string)
- 程序员该如何更好的规划自己的职业发展?
- AIX存储管理之总结篇
- How to open an account for individual stock speculation? Is it safe?
- Export default the exported object cannot be deconstructed, and module Differences between exports
- Is it safe to buy funds in a securities account? Where can I buy funds
- Picture puzzle wechat applet source code_ Support multi template production and traffic master
- Leetcode 96 différents arbres de recherche binaires
- SQL数据分析之子查询的综合用法和案例题【耐心整理】
- Kuberntes cloud native combat high availability deployment architecture
猜你喜欢

Ldr6035 smart Bluetooth audio can be charged and released (5.9.12.15.20v) fast charging and fast releasing device charging

It's nothing to be utilitarian!

Leetcode skimming: binary tree 03 (post order traversal of binary tree)

Asp . Text of automatic reply to NETCORE wechat subscription number

工作中非常重要的测试策略,你大概没注意过吧

Friends circle community program source code sharing

EMC circuit protection device for surge and impulse current protection

Talents come from afar, and Wangcheng district has consolidated the intellectual base of "strengthening the provincial capital"

Basis of deep learning neural network

Source code of Qiwei automatic card issuing system
随机推荐
How to type spaces in latex
2022 safety officer-b certificate examination practice questions simulated examination platform operation
Node——Egg 创建本地文件访问接口
智能运维实战:银行业务流程及单笔交易追踪
Asp . Text of automatic reply to NETCORE wechat subscription number
Qt5.12.9 migration tutorial based on Quanzhi H3
Leetcode skimming: stack and queue 04 (delete all adjacent duplicates in the string)
[CTF] bjdctf 2020 Bar _ Bacystack2
Data analysis methodology and previous experience summary [notes dry goods]
启牛商学院给的证券账户安不安全?哪里可以开户
Leetcode 96 différents arbres de recherche binaires
Linux centos7 installation Oracle11g super perfect novice tutorial
Output results of convolution operation with multiple tensors and multiple convolution kernels
[leetcode] number of maximum consecutive ones
【js通过url下载文件】
Take the enclave Park as a sample to see how Yuhua and Shaoshan play the song of Chang Zhu Tan integrated development
Export default the exported object cannot be deconstructed, and module Differences between exports
JS -- image to base code, base to file object
Leetcode skimming: binary tree 02 (middle order traversal of binary tree)
测试员8年工资变动,令网友羡慕不已:你一个月顶我一年工资