当前位置:网站首页>AIX存储管理之总结篇
AIX存储管理之总结篇
2022-07-02 00:37:00 【51CTO】
温故:
你知道逻辑卷占实际物理硬盘的大小是如何计算的吗?通过前面的讲解,大家不难知道逻辑卷是由逻辑分区组成的,那么只要知道有多少个逻辑分区就可以了。这个说法对吗???这个说法对了一半,原因是一个逻辑分区可以映射一到三个物理分区。
1、如果该逻辑卷没有拷贝(就是Lv本身的大小)
逻辑卷占实际物理硬盘的大小(MB)=PP的大小(MB)×LV包含 LP的个数
2、如果该逻辑卷有拷贝
逻辑卷占实际物理硬盘的大小(MB)= PP的大小(MB)×LV包含 LP数(个)×LV的拷贝数
原文链接: AIX存储管理之逻辑卷的创建及属性的查看和修改
知新:
今天要对前面所讲的AIX存储管理这部分内容做一个总结,主要都是一些零碎的知识点,有哦兴趣的可以看看。
(1)逻辑卷管理器(Logical Volume Manager,简写为LVM)是一组用于建立和控制逻辑卷存储的操作系统命令、库函数和其他一些工具。
(2)LVM的组成要素有∶物理卷(Physical Volume)、卷组(Volume Group)、逻辑卷(Logical Volume)、物理分区(Physical Partition)、逻辑分区(Logical Partition)、文件系统(File System)等。
(3)磁盘 Ouorum 是一个卷组中可以正常访问的 VGDA 和 VGSA 的个数分别占该卷组中 VGDA 总数和 VGSA 总数的比率。通常要求可用的 VGDA/VGSA 达到51%或更多时,卷组才能被激活。
(4)逻辑卷镜像就是把逻辑卷中每一个逻辑分区上的数据保存到1~3 个物理分区上,即每一个逻辑分区拥有 1~3 个副本。如果只有一个副本,则逻辑卷就没有镜像;如果有 2或 3 个副本,则逻辑卷有镜像,即一个逻辑分区映射 2 或 3 个物理分区。
(5)根据逻辑卷在硬盘上的位置不同,可以将硬盘的截面分为 5 个同心的区域∶外边缘(Outer-Edge)、外中间(Outer-Middle)、中央(Center)、内中间(Inner-Middle)和内边缘(Inner-Edge)。中央区域的 I/O 效率最好,性能最佳。
(6)要显示物理卷的信息,就用 Isdev -Cc disk 或 lspv 命令;用chdev -l hdiskname -a pv=yes 命令可以将一个硬盘配置成一个物理卷;要删除一个物理卷就用 rmdev -l hdiskname -d 命令;
(7)用 mkvg 命令创建新卷组;用 lsvg 命令显示卷组的信息;用 chvg 命令修改卷组的属性;用extendvg 命令向一个卷组中增加新物理卷;用 reducevg 命令从一个卷组中删除一个物理卷;用 varyonvg 命令激活一个卷组,用 varoffvg 命令停用一个卷组;
(8)逻辑卷控制块保存着逻辑卷的重要信息,它位于逻辑卷开始的位置,占用了 512个字节。逻辑卷控制块包括的信息有∶ 逻辑卷创建日期、逻辑卷的镜像拷贝数和文件系统安装点。用/usr/sbin/getlvcb 命令能够获得逻辑卷的 LVCB 信息。
(9)对逻辑卷性能影响最大的策略有∶Intra-Disk Allocation(磁盘内部分配)、Inter-Disk Allocation(磁盘之间分配)、I/O Scheduling(I/O操作调度)和 Write-Verify(写校验)。
(10)磁盘内部(Intra-Disk)分配策略决定着逻辑卷的物理分区在磁盘上的实际物理位置;磁盘之间(Inter-Disk)分配策略决定着一个逻辑卷的物理分区在多个物理卷之间的分布情况,主要包括物理分区分布的范围(Range)和严格(Strict)程度。
(11)用 lsvg 或lslv 命令显示逻辑卷的信息;用 mklv 命令创建一个逻辑卷;用 rmlv命令删除一个逻辑卷;用 chly 命令修改逻辑卷的属性;用 extendly 命令增加逻辑卷的大小;用 cplv 命令把一个逻辑卷复制到一个新逻辑分区或已存在的逻辑分区上。
关于存储管理暂且讲到这里,下一篇文章为大家带来《 AIX文件系统之概述》
边栏推荐
- PHP reads ini or env type configuration
- Flow control statement of SQL data analysis [if, case... When detailed]
- LDR6035智能蓝牙音响可充可放(5.9.12.15.20V)快充快放设备充电
- 毕业季 | 华为专家亲授面试秘诀:如何拿到大厂高薪offer?
- LeetCode 0241.为运算表达式设计优先级 - DFS
- vue 强制清理浏览器缓存
- 449-原码、补码、反码
- What is the purpose of ERP project implementation plan?
- Is it safe and reliable to open an account in Caixue school and make new debts?
- GaussDB(for MySQL) :Partial Result Cache,通过缓存中间结果对算子进行加速
猜你喜欢
Asp .NetCore 微信订阅号自动回复之文本篇
Leetcode skimming: stack and queue 02 (realizing stack with queue)
Slf4j print abnormal stack information
Intelligent operation and maintenance practice: banking business process and single transaction tracking
The origin of usb-if Association and various interfaces
Schrodinger's Japanese learning applet source code
Friends circle community program source code sharing
SQL Server Installation Guide
Practical calculation of the whole process of operational amplifier hysteresis comparator
使用多线程Callable查询oracle数据库
随机推荐
Kyushu cloud and Intel jointly released the smart campus private cloud framework, enabling new infrastructure for education
Node -- egg creates a local file access interface
Linux centos7 installation Oracle11g super perfect novice tutorial
Use es to realize epidemic map or take out order function (including code and data)
[cascade classifier training parameters] training Haar cascades
Common loss function of deep learning
使用多线程Callable查询oracle数据库
Kuberntes cloud native combat high availability deployment architecture
[wechat authorized login] the small program developed by uniapp realizes the function of obtaining wechat authorized login
The new version of graphic network PDF will be released soon
ThreadLocal内存泄漏是什么,怎么解决
[opencv450] hog+svm and hog+cascade for pedestrian detection
Leetcode skimming: binary tree 01 (preorder traversal of binary tree)
Window sorting functions rank and deny for SQL data analysis_ rank、raw_ Number and lag, lead window offset function [usage sorting]
Some understandings of graph convolution neural network r-gcn considering relations and some explanations of DGL official code
Leetcode skimming: stack and queue 05 (inverse Polish expression evaluation)
程序员该如何更好的规划自己的职业发展?
Cmake engineering related
heketi 记录
USB-IF协会与各种接口的由来