在AIX中增加硬盘

简介: 在AIX中增加硬盘

一、基本情况

-------------
/>df -m
Filesystem    MB blocks      Free %Used    Iused %Iused Mounted on
/dev/hd4         640.00    384.68   40%     2579     3% /
/dev/hd2        3584.00   1069.80   71%    49720    17% /usr
/dev/hd9var     1536.00    893.23   42%     1359     1% /var
/dev/hd3         768.00    482.37   38%     1400     2% /tmp
/dev/fwdump      128.00    127.66    1%        4     1% /var/adm/ras/platform
/dev/hd1        2304.00    261.86   89%    16990    22% /home
/proc                 -         -    -         -     - /proc
/dev/hd10opt    1024.00    738.99   28%     4176     3% /opt
/dev/fslv00    33280.00   6327.36   81%     4787     1% /datafs
/dev/fslv01     8448.00    584.48   94%     7797     6% /soft
/dev/fslv02     2048.00   2047.34    1%        5     1% /sybase
/dev/fslv03     2048.00    808.62   61%     6778     4% /syb64bit
/dev/fslv04      256.00    242.65    6%       24     1% /mbfe
/dev/fslv05      384.00    231.39   40%       88     1% /bepsmbfe
/dev/fslv06    10240.00   3993.54   62%    17792     2% /oracle
/>lsvg rootvg
VOLUME GROUP:       rootvg                   VG IDENTIFIER: 0007df580000d70000000113fb3e72ce
VG STATE:           active                   PP SIZE:        128 megabyte(s)
VG PERMISSION:      read/write               TOTAL PPs:      1092 (139776 megabytes)
MAX LVs:            256                      FREE PPs:       22 (2816 megabytes)
LVs:                60                       USED PPs:       1070 (136960 megabytes)
OPEN LVs:           27                       QUORUM:         1
TOTAL PVs:          2                        VG DESCRIPTORS: 3
STALE PVs:          0                        STALE PPs:      0
ACTIVE PVs:         2                        AUTO ON:        yes
MAX PPs per VG:     32512                                    
MAX PPs per PV:     1016                     MAX PVs:        32
LTG size (Dynamic): 256 kilobyte(s)          AUTO SYNC:      no
HOT SPARE:          no                       BB POLICY:      relocatable
/>
/>lspv
hdisk0          0007df58fb3e71d4                    rootvg          active
hdisk1          00009d03638bf367                    rootvg          active
/>lspv hdisk0
PHYSICAL VOLUME:    hdisk0                   VOLUME GROUP:     rootvg
PV IDENTIFIER:      0007df58fb3e71d4 VG IDENTIFIER     0007df580000d70000000113fb3e72ce
PV STATE:           active                                    
STALE PARTITIONS:   0                        ALLOCATABLE:      yes
PP SIZE:            128 megabyte(s)          LOGICAL VOLUMES: 29
TOTAL PPs:          546 (69888 megabytes)    VG DESCRIPTORS:   2
FREE PPs:           22 (2816 megabytes)      HOT SPARE:        no
USED PPs:           524 (67072 megabytes)    MAX REQUEST:      256 kilobytes
FREE DISTRIBUTION: 00..00..00..00..22                        
USED DISTRIBUTION: 110..109..109..109..87                    
/>lspv hdisk1
PHYSICAL VOLUME:    hdisk1                   VOLUME GROUP:     rootvg
PV IDENTIFIER:      00009d03638bf367 VG IDENTIFIER     0007df580000d70000000113fb3e72ce
PV STATE:           active                                    
STALE PARTITIONS:   0                        ALLOCATABLE:      yes
PP SIZE:            128 megabyte(s)          LOGICAL VOLUMES: 43
TOTAL PPs:          546 (69888 megabytes)    VG DESCRIPTORS:   1
FREE PPs:           0 (0 megabytes)          HOT SPARE:        no
USED PPs:           546 (69888 megabytes)    MAX REQUEST:      256 kilobytes
FREE DISTRIBUTION: 00..00..00..00..00                        
USED DISTRIBUTION: 110..109..109..109..109

二、增加硬盘操作

-------------------
/>cfgmgr
/>lspv
hdisk0          0007df58fb3e71d4                    rootvg          active
hdisk1          00009d03638bf367                    rootvg          active
hdisk2          none                                None           
hdisk3          none                                None           
/>extendvg rootvg hdisk2 hdisk3
0516-1254 extendvg: Changing the PVID in the ODM.
0516-1254 extendvg: Changing the PVID in the ODM.
0516-1162 extendvg: Warning, The Physical Partition Size of 128 requires the
        creation of 1093 partitions for hdisk2. The limitation for volume group
        rootvg is 1016 physical partitions per physical volume. Use chvg command
        with -t option to attempt to change the maximum Physical Partitions per
        Physical volume for this volume group.
0516-1162 extendvg: Warning, The Physical Partition Size of 128 requires the
        creation of 1093 partitions for hdisk3. The limitation for volume group
        rootvg is 1016 physical partitions per physical volume. Use chvg command
        with -t option to attempt to change the maximum Physical Partitions per
        Physical volume for this volume group.
0516-792 extendvg: Unable to extend volume group.
/>chdev -l hdisk2 -a pv=yes
/>chdev -l hdisk3 -a pv=yes
/>chvg -t rootvg
0516-1187 chvg: Volume group not changed. Either the volume group rootvg
        has the specified factor value or is at proper maximum physical partitions
        per physical volume limit already.             //因为PP数目已经达到上限
0516-732 chvg: Unable to change volume group rootvg.
/>chvg -t 2 rootvg                                     //数字2表示2×1016个PP
0516-1164 chvg: Volume group rootvg changed. With given characteristics rootvg
        can include upto 16 physical volumes with 2032 physical partitions each.
/>lsvg rootvg
VOLUME GROUP:       rootvg                   VG IDENTIFIER: 0007df580000d70000000113fb3e72ce
VG STATE:           active                   PP SIZE:        128 megabyte(s)
VG PERMISSION:      read/write               TOTAL PPs:      1092 (139776 megabytes)
MAX LVs:            256                      FREE PPs:       22 (2816 megabytes)
LVs:                60                       USED PPs:       1070 (136960 megabytes)
OPEN LVs:           27                       QUORUM:         1
TOTAL PVs:          2                        VG DESCRIPTORS: 3
STALE PVs:          0                        STALE PPs:      0
ACTIVE PVs:         2                        AUTO ON:        yes
MAX PPs per VG:     32512                                    
MAX PPs per PV:     2032                     MAX PVs:        16
LTG size (Dynamic): 256 kilobyte(s)          AUTO SYNC:      no
HOT SPARE:          no                       BB POLICY:      relocatable

/>extendvg rootvg hdisk2 hdisk3
/>lspv
hdisk0          0007df58fb3e71d4                    rootvg          active
hdisk1          00009d03638bf367                    rootvg          active
hdisk2          00009d034caa708d                    rootvg          active
hdisk3          00009d034caa7219                    rootvg          active
/>lsvg rootvg
VOLUME GROUP:       rootvg                   VG IDENTIFIER: 0007df580000d70000000113fb3e72ce
VG STATE:           active                   PP SIZE:        128 megabyte(s)
VG PERMISSION:      read/write               TOTAL PPs:      3278 (419584 megabytes)
MAX LVs:            256                      FREE PPs:       2208 (282624 megabytes)
LVs:                60                       USED PPs:       1070 (136960 megabytes)
OPEN LVs:           27                       QUORUM:         1
TOTAL PVs:          4                        VG DESCRIPTORS: 4
STALE PVs:          0                        STALE PPs:      0
ACTIVE PVs:         4                        AUTO ON:        yes
MAX PPs per VG:     32512                                    
MAX PPs per PV:     2032                     MAX PVs:        16
LTG size (Dynamic): 256 kilobyte(s)          AUTO SYNC:      no
HOT SPARE:          no                       BB POLICY:      relocatable
/>

三、部分常用命令

----------------

显示 hdisk2 的逻辑卷分配图: lslv -p hdisk2

显示所有活动的卷组名: lsvg -o

显示卷组 vg02 中的所有逻辑卷的名称、特性和状态: lsvg -l vg02

使卷组 vg03 在系统启动期间自动激活: chvg -a y vg03

如果违背每个物理卷限制的 1016 个物理分区来将卷组 vg03 更改为受支持的状态: chvg -t vg03

将每个物理卷的物理分区的最大数更改为 2032,将卷组 vg03 中的物理卷的最大数更改为 16: chvg -t 2 vg03

相关文章
|
缓存 安全 Linux
Linux 中如何安全地抹去磁盘数据?
Linux 中如何安全地抹去磁盘数据?
|
存储 机器学习/深度学习 监控
了解Linux磁盘及分区的过程
了解Linux磁盘及分区的过程
161 0
|
Linux
Linux的磁盘分区和添加磁盘
Linux的磁盘分区和添加磁盘
137 0
|
Linux 虚拟化
【Linux】给服务器新增一块硬盘(挂载硬盘)
【Linux】给服务器新增一块硬盘(挂载硬盘)
818 0
【Linux】给服务器新增一块硬盘(挂载硬盘)
|
存储 缓存 固态存储
Linux 磁盘管理之磁盘理论篇
Linux 磁盘管理之磁盘理论篇
177 0
|
存储 运维 Java
|
KVM 虚拟化