当前位置:网站首页>AIX存储管理之卷组的创建(一)
AIX存储管理之卷组的创建(一)
2022-07-02 00:37:00 【51CTO】
温故:
物理卷只有两个属性可以被修改,即物理卷的分配权限和物理卷的可用性。物理卷的分配权限是指是否可以在该物理卷上为逻辑卷分配新的物理分区。物理卷的可用性是指该物理卷的使用状态,即可用状态和不可用状态,物理卷的可用性表明是否可以在该物理卷上执行任何逻辑读写操作。想要对这两个属性进行修改,可以有两种方式。一种是使用smit工具,另一种是使用chpv命令。其实追根究底这两种方式实为一种,因为即便你使用了smit工具,但是底层依旧是使用的chpv命令来进行的。smit工具属于图形化界面,不需要了解底层而已。
原文链接: AIX存储管理之对物理卷的增删改操作
拓展:
在讲新的内容之前,拓展一下PV的迁移知识点。
例1:hdisk1,hdisk2 和 hdisk3在同一卷组中,要把 hdisk1 上的 PP 移到hdisk2和hdisk3则执行下面的命令∶
例2:把属于Lv01 的 PP 从 hdisk1 上移动到 hdisk2 中。#
知新:
前面将物理卷的知识大致串了一遍,今天开始讲一讲卷组。卷组这部分讲完之后再继续讲逻辑卷,有规律的进行下去。
使用过AIX系统的朋友都知道系统在安装时,就会创建一个 rootvg卷组。rootvg 卷组包含着自带硬盘(也就是内置硬盘)和系统逻辑卷,但是我个人建议 rootvg卷组最好只包含自带硬盘。因为扩展硬盘是可以移动的,移动之后还需要配置,容易产生问题,rootvg卷组中的逻辑卷就相应地会受到影响。还有一点是要注意的,一个系统中可是只能有一个rootvg卷组啊,不信的话币可以试试再创建一个,肯定不会成功,最起码卷组的名字不能重复这个条件就已经断了你的念想哈哈。
一、创建卷组的注意事项
(1)卷组的名字在系统中必须是惟一的,且名字尽可能具有意义,比如存放数据的卷组可以命名为datavg.
(2)保证将要被你使用到卷组中的物理卷都是可用状态且当前不属于其他卷组,这一点尤为重要。
(3)确定新卷组中的物理分区大小,默认值是 4MB,常用为 8MB。一个物理卷最多能包含 1016个物理分区,因此一个卷组中如果包含一个大于 4.5GB 的物理卷,则这个卷组中物理分区的大小必须大于 4MB。
(4)新创建的卷组在系统启动时是否自动被激活。
(5)要确定新卷组中最多能够容纳多少个物理卷。
二、创建卷组
同修改物理卷的属性类似,也是有两种方式,分别是smit工具和mkvg命令。下面举两个例子:
创建一个新卷组 datavg,是专用于存放数据的卷组,包含的物理卷有 hdisk1和hdisk2。该卷组中的物理分区大小为 4MB,要求该卷组中最多有8个物理卷,并且在系统启动时自动激活新卷组。
方法1:使用mkvg命令
方法2:使用smit 工具

在上图中,"VOLUME GROUP name"栏中输入要创建的新卷组名,在"Physical partition SIZE in megabytes"栏中选择要创建卷组的 PP大小,在"PHYSICAL VOLUME names"栏中选择或者输入该卷组所包含的物理卷名,若有多个物理卷,各个物理卷名之间用空格隔开。
在"Activate volume group AUTOMATICALLY at system restart?"栏中指出在系统启动时是否自动激活这个卷组。如果卷组不经常使用,最好不要在系统启动时自动激活它,因为处于激活状态的卷组会占用系统的资源。
在"Volume Group MAJOR NUMBER"栏中指定卷组的主设备号。如果不指定主设备号,系统会自动分配一个主设备号。系统内核通过设备的主设备号和副设备号来访问设备,同样,系统也是通过卷组的主设备号和副设备号来访问卷组,按 F4 键或 Esc+4 键列出可用的主设备号。
注意:可能有人注意到了,使用smit工具时没有对“该卷组最多有几个物理卷”进行限制,是因为用 SMIT 工具创建 VG 时,它调用 mkyg 命令,只是在命令中使用-f 参数强制性创建一个卷组,而不使用-d参数来确定卷组中最大的 PV数,VG中最大的 PV 数默认是 32 个;而且也不使用-m 参数指定 PV 的最大容量,-m 参数决定一个 PV上有多少个 PP,如果没有使用-m 参数,则认为是 1016个PP。
关于VG的创建就暂且讲到这里,后面要讲的是卷组的属性显示和修改。
为大家带来的下一篇文章是《 AIX存储管理之卷组属性的查看和修改(二)》
边栏推荐
- [wechat authorized login] the small program developed by uniapp realizes the function of obtaining wechat authorized login
- Ldr6035 smart Bluetooth audio can continuously charge and discharge mobile devices
- If the browser is accidentally closed, how does react cache the forms filled out by users?
- 【模板】自适应辛普森积分
- [QT] QT cannot find a solution to the compiler using msvc2017
- EMC circuit protection device for surge and impulse current protection
- 程序员该如何更好的规划自己的职业发展?
- Leetcode 96 différents arbres de recherche binaires
- What is ThreadLocal memory leak and how to solve it
- Take the enclave Park as a sample to see how Yuhua and Shaoshan play the song of Chang Zhu Tan integrated development
猜你喜欢

时间复杂度与空间复杂度

RFID让固定资产盘点更快更准

2022 safety officer-a certificate examination questions and online simulation examination

Export default the exported object cannot be deconstructed, and module Differences between exports

【会议资源】2022年第三届自动化科学与工程国际会议(JCASE 2022)

Use es to realize epidemic map or take out order function (including code and data)

SQL Server Installation Guide

Leetcode question brushing: stack and queue 07 (maximum value of sliding window)

Leetcode 96 différents arbres de recherche binaires

How can entrepreneurial teams implement agile testing to improve quality and efficiency? Voice network developer entrepreneurship lecture Vol.03
随机推荐
[template] adaptive Simpson integral
Leetcode skimming: binary tree 03 (post order traversal of binary tree)
Asp .NetCore 微信订阅号自动回复之文本篇
数据库--SqlServer详解
JS common library CDN recommendation
Accelerator systems initiative is an independent non-profit organization
LeetCode 0241. Design priority for arithmetic expressions - DFS
【CTF】bjdctf_ 2020_ babystack2
Gaussdb (for MySQL):partial result cache, which accelerates the operator by caching intermediate results
Which securities company is safer to open a stock account
When installing mysql, there are two packages: Perl (data:: dumper) and Perl (JSON)
2022 high altitude installation, maintenance and removal of test question simulation test platform operation
2022 safety officer-a certificate examination questions and online simulation examination
Which app is better and more secure for stock mobile account opening
Weather forecast applet source code weather wechat applet source code
js 公共库 cdn 推荐
I want to ask, which is the better choice for securities companies? I don't understand. Is it safe to open an account online now?
Qt5.12.9 migration tutorial based on Quanzhi H3
Example explanation: move graph explorer to jupyterlab
Promise和模块块化编程