hpux11.31环境,vgmodify: This operation can only be completed if PE number zero的解决办法

背景介绍:

在HPUX 11.31环境下,VG扩容大容量磁盘的时候,由于Max PE per PV 只有4039个,而添加2T的磁盘,Max PE per PV需要达到16636才行。查了官网后,可通过vgmodify在线修改Max PE per PV。

1、通过vgmodify修改Max PE per PV报错:

#vgmodify -e 16636 -n -r odsvg03

Current Volume Group settings:
                                                      Max LV      255
                                                      Max PV      255
                                               Max PE per PV     4039
                                            PE Size (Mbytes)      128
                                          VGRA Size (Kbytes)     8448
vgmodify: This operation can only be completed if PE number zero on "/dev/rdisk/disk79" is freed
vgmodify: This operation can only be completed if PE number zero on "/dev/rdisk/disk116" is freed
...

 

2、查询disk169还有空余的PE没有使用。通过pvmove将disk79的0号PE在线迁移到disk169。

#pvmove /dev/disk/disk79:0 /dev/disk/disk169
Transferring logical extents of logical volume "/dev/odsvg03/odsv03l31100"...
Physical volume "/dev/disk/disk79" has been successfully moved.
Volume Group configuration for /dev/odsvg03 has been saved in /etc/lvmconf/odsvg03.conf

 

 

3、再次执行vgmodify预览修改,报错消失

vgmodify -e 16636 -n -r odsvg03

Current Volume Group settings:
                                                      Max LV      255
                                                      Max PV      255
                                               Max PE per PV     4039
                                            PE Size (Mbytes)      128
                                          VGRA Size (Kbytes)     8448
The current and new Volume Group parameters differ.
An update to the Volume Group IS required


New Volume Group settings:
                                                      Max LV      255
                                                      Max PV      255
                                               Max PE per PV    16636
                                            PE Size (Mbytes)      128
                                          VGRA Size (Kbytes)    34224
Review complete. Volume group not modified

4、vgmodify 带-a选项在线修改成功。

#vgmodify -a -e 16636 -n odsvg03

Current Volume Group settings:
                                                      Max LV      255
                                                      Max PV      255
                                               Max PE per PV     4039
                                            PE Size (Mbytes)      128
                                          VGRA Size (Kbytes)     8448
The current and new Volume Group parameters differ.
An update to the Volume Group IS required


New Volume Group settings:
                                                      Max LV      255
                                                      Max PV      255
                                               Max PE per PV    16636
                                            PE Size (Mbytes)      128
                                          VGRA Size (Kbytes)    34224
New Volume Group configuration for "odsvg03" has been saved in "/etc/lvmconf/odsvg03.conf"
Old Volume Group configuration for "odsvg03" has been saved in "/etc/lvmconf/odsvg03.conf.old"
Starting the modification by writing to all Physical Volumes
Applying the configuration to all Physical Volumes from "/etc/lvmconf/odsvg03.conf"
Completed the modification process.
New Volume Group configuration for "odsvg03" has been saved in "/etc/lvmconf/odsvg03.conf.old"
Volume group "odsvg03" has been successfully changed.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

七七powerful

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值