当前位置:网站首页>Creation of volume group for AIX storage management (I)
Creation of volume group for AIX storage management (I)
2022-07-02 00:39:00 【51CTO】
restudy old materials :
Only two properties of a physical volume can be modified , That is, the allocation permission of the physical volume and the availability of the physical volume . The allocation permission of a physical volume refers to whether a new physical partition can be allocated to the logical volume on the physical volume . The availability of a physical volume refers to the usage status of the physical volume , That is, available state and unavailable state , The availability of a physical volume indicates whether any logical read and write operations can be performed on the physical volume . You want to modify these two properties , There are two ways . One is to use smit Tools , The other is to use chpv command . In fact, in the final analysis, these two methods are actually one , Because even if you use smit Tools , But the bottom layer is still used chpv By order .smit Tools are graphical interfaces , There is no need to understand the bottom .
Link to the original text : AIX The addition, deletion and modification of physical volumes in storage management
expand :
Before talking about new content , Expand the PV Knowledge points of migration .
example 1:hdisk1,hdisk2 and hdisk3 In the same volume group , To put hdisk1 Upper PP Move to hdisk2 and hdisk3 Then execute the following command ∶
example 2: Belong to Lv01 Of PP from hdisk1 Move up to hdisk2 in .#
know sth. new :
The knowledge of physical volume has been roughly strung before , Today, let's talk about volume group . After this part of volume group is finished, continue to talk about logical volume , Proceed regularly .
Have used AIX All friends of the system know that when the system is installed , It creates a rootvg The volume group .rootvg The volume group contains its own hard disk ( That is, the built-in hard disk ) And system logic volumes , But I personally suggest rootvg The volume group should only contain its own hard disk . Because the expansion hard disk is removable , After moving, you need to configure , It's easy to cause problems ,rootvg The logical volumes in the volume group will be affected accordingly . There is another point to pay attention to , There can only be one in a system rootvg Roll group , If you don't believe it, you can try to create another , It won't work , At least the name of the volume group can't be repeated. This condition has broken your mind, haha .
One 、 Considerations for creating volume groups
(1) The name of the volume group must be unique in the system , And the name is as meaningful as possible , For example, the volume group storing data can be named datavg.
(2) Ensure that the physical volumes you will use in the volume group are available and do not currently belong to other volume groups , This is especially important .
(3) Determine the physical partition size in the new volume group , The default value is 4MB, It is often used for 8MB. A physical volume can contain at most 1016 Physical zones , Therefore, if a volume group contains a volume larger than 4.5GB The physical volume of , The size of the physical partition in this volume group must be greater than 4MB.
(4) Whether the newly created volume group is automatically activated when the system starts .
(5) To determine the maximum number of physical volumes that can be accommodated in the new volume group .
Two 、 Create a volume group
It is similar to modifying the properties of physical volumes , There are also two ways , Namely smit Tools and mkvg command . Here are two examples :
Create a new volume group datavg, Is a volume group dedicated to storing data , The physical volumes included are hdisk1 and hdisk2. The physical partition size in this volume group is 4MB, The volume group is required to have at most 8 Physical volumes , And automatically activate the new volume group when the system starts .
Method 1: Use mkvg command
Method 2: Use smit Tools
In the diagram above ,"VOLUME GROUP name" Enter the name of the new volume group to be created , stay "Physical partition SIZE in megabytes" Column to create a volume group PP size , stay "PHYSICAL VOLUME names" Select or enter the physical volume name contained in the volume group , If there are multiple physical volumes , Each physical volume name is separated by a space .
stay "Activate volume group AUTOMATICALLY at system restart?" The column indicates whether this volume group is automatically activated when the system starts . If volume groups are not used often , It's best not to activate it automatically when the system starts , Because the active volume group will occupy the resources of the system .
stay "Volume Group MAJOR NUMBER" Column specifies the primary device number of the volume group . If the master equipment number is not specified , The system will automatically assign a master equipment number . The system kernel accesses the device through the primary device number and secondary device number of the device , Again , The system also accesses the volume group through the primary device number and secondary device number of the volume group , Press F4 Key or Esc+4 Key to list the available master device numbers .
Be careful : Someone might have noticed , Use smit Tools are not right “ There are at most several physical volumes in this volume group ” Limit , It's because of the use of SMIT Tool creation VG when , It calls mkyg command , Only used in commands -f Parameter force to create a volume group , Instead of using -d Parameter to determine the largest PV Count ,VG The largest of PV The default value is 32 individual ; And don't use -m Parameter assignment PV Maximum capacity of ,-m Parameters determine a PV How many on PP, If not used -m Parameters , Think it is 1016 individual PP.
About VG Let's stop here for the time being , Later, we will talk about the attribute display and modification of volume groups .
The next article for you is 《 AIX View and modify the volume group properties of storage management ( Two )》
边栏推荐
- Leetcode skimming: binary tree 03 (post order traversal of binary tree)
- Leetcode skimming: stack and queue 05 (inverse Polish expression evaluation)
- Node——Egg 实现上传文件接口
- 【js通过url下载文件】
- Picture puzzle wechat applet source code_ Support multi template production and traffic master
- When installing mysql, there are two packages: Perl (data:: dumper) and Perl (JSON)
- Jielizhi, production line assembly link [chapter]
- 【模板】自适应辛普森积分
- Mysql database driver (JDBC Driver) jar package download
- leetcode96不同的二叉搜索树
猜你喜欢
Otaku wallpaper Daquan wechat applet source code - with dynamic wallpaper to support a variety of traffic owners
leetcode96不同的二叉搜索树
[bottom pop-up selector] uniapp picker component - scroll selector popped up at the bottom
Powerful calendar wechat applet source code - support the main mode of doing more traffic
export default 导出的对象,不能解构问题,和module.exports的区别
Common loss function of deep learning
基于全志H3的QT5.12.9移植教程
Practical calculation of the whole process of operational amplifier hysteresis comparator
Ldr6035 smart Bluetooth audio can be charged and released (5.9.12.15.20v) fast charging and fast releasing device charging
The new version of graphic network PDF will be released soon
随机推荐
Export default the exported object cannot be deconstructed, and module Differences between exports
GCC compilation
Random avatar encyclopedia, multi category wechat applet source code with history_ Support traffic master
Download the online video m3u8 tutorial
Intelligent operation and maintenance practice: banking business process and single transaction tracking
Is the securities account given by qiniu business school safe? Where can I open an account
SQL数据分析之窗口排序函数rank、dense_rank、raw_number与lag、lead窗口偏移函数【用法整理】
LeetCode 0241. Design priority for arithmetic expressions - DFS
智能运维实战:银行业务流程及单笔交易追踪
Xinniuniu blind box wechat applet source code_ Support flow realization, with complete material pictures
2023 Lexus ES products have been announced, which makes great progress this time
Promise和模块块化编程
[CTF] bjdctf 2020 Bar _ Bacystack2
Node -- add compressed file
heketi 记录
Tensorflow tensor convolution, input and convolution kernel dimension understanding
基于全志H3的QT5.12.9移植教程
数据库--SqlServer详解
PHP reads ini or env type configuration
如何提升数据质量