rootvg 加PV 失败

本资料无预览

如感兴趣请购买后下载

立即下载

资料简介:
大家好:今天向rootvg增加一个PV报错 具体内容如下:
# oslevel -s
6100-05-01-1016
# lspv
hdisk1          000c3f3f30c970de                    None            
hdisk2          000c3f3f252526f4                    None            
hdisk0          0003e74ef490f392                    rootvg          active
hdisk3          000c3f3ffe72cd5e                    None            

extendvg rootvg hdisk1
0516-322 extendvg: The Device Configuration Database is inconsistent.
        Execute redefinevg to correct the database.
0516-792 extendvg: Unable to extend volume group.
# redefinevg -d hdisk0 rootvg
# extendvg rootvg hdisk1
0516-322 extendvg: The Device Configuration Database is inconsistent.
        Execute redefinevg to correct the database.
0516-792 extendvg: Unable to extend volume group.
# lsvg -p rootvg
rootvg:
PV_NAME           PV STATE          TOTAL PPs   FREE PPs    FREE DISTRIBUTION
hdisk0            active            546         26          00..08..07..00..11
0516-304 : Unable to find device id 000c3f3f2c6d53de in the Device
        Configuration Database.
000c3f3f2c6d53de  missing           546         514         110..109..77..109..109

# reducevg rootvg 000c3f3f2c6d53de
0516-016 ldeletepv: Cannot delete physical volume with allocated
        partitions. Use either migratepv to move the partitions or
        reducevg with the -d option to delete the partitions.
0516-884 reducevg: Unable to remove physical volume 000c3f3f2c6d53de.
# reducevg -d rootvg 000c3f3f2c6d53de
0516-914 rmlv: Warning, all data belonging to logical volume
        hd9var on physical volume 000c3f3f2c6d53de will be destroyed.
rmlv: Do you wish to continue? y(es) n(o)? y
0516-1008 rmlv: Logical volume hd9var must be closed.  If the logical
        volume contains a filesystem, the umount command will close
        the LV device.
0516-884 reducevg: Unable to remove physical volume 000c3f3f2c6d53de.


Logical volume hd9var must be closed. If the logical
volume contains a filesystem, the umount command will close


求解!
2013-01-13
浏览13346
下载0

已下载用户的评价

您还未下载该资料,不能发表评价;
查看我的 待评价资源
CJ_aneCJ_ane系统运维工程师IBM2013-10-30
没用
疑难杂症:lol
whitexwhitex系统工程师伊迪艾电脑科技(中国)有限公司2013-10-30
没用
pvid乱了真让人头疼啊 很吓人
flm20080704flm20080704系统工程师XXXX2013-09-26
没用
看来原因有点坑,又是rootvg部分mirror又是盘丢失了并重新赋予了PVID
victory77victory77系统工程师南天信息2013-09-25
没用
学习了 谢谢
xindahaixindahai系统运维工程师耀泰明德2013-02-19
没用
[b]回复 [url=http://www.aixchina.net/club/redirect.php?goto=findpost&pid=651355&ptid=86285]49#[/url] [i]gava_java[/i] [/b] 如果某人对硬盘做过"chdev -l hdiskX -a pv=clear"的话,那么即使再使用"chdev -l hdisk* -a pv=yes"也无法获得原来的PVID了,这样就会导致原来的VG没法使用了。一般我们会使用recreatvg来修复,但是这样的话不仅lv name,fs name都改了,甚至mount point都需要改掉,数据虽然保住了,但是非常的麻烦。 下面提供一个手工修改PVID的办法,以达到恢复数据的目的: 首先取得硬盘VGDA区中的PVID。例如: #lqueryvg -p hdisk* -P 000d097d5f36f79f 2 0 将pvid转换成8进制,注意两个字符为一组。例如: 0151117513766367237 用dd将此PVID写入硬盘: #echo "0151117513766367237c" | dd of=/dev/hdiskX bs=1 seek=128 count=8 检查是否成功写入: #dd if=/dev/hdiskX bs=1 skip=128 count=8 | od -x 删除该盘,再重新认一遍: #rmdev -dl hdiskX;cfgmgr –v 最后再importvg
xindahaixindahai系统运维工程师耀泰明德2013-02-19
没用
[b]回复 [url=http://www.aixchina.net/club/redirect.php?goto=findpost&pid=650533&ptid=86285]48#[/url] [i]laolizaixian[/i] [/b] 请看 27 楼
xindahaixindahai系统运维工程师耀泰明德2013-02-19
没用
[b]回复 [url=http://www.aixchina.net/club/redirect.php?goto=findpost&pid=651355&ptid=86285]49#[/url] [i]gava_java[/i] [/b] 请看 27楼
dba_xyxdba_xyx数据库管理员asia2013-02-02
没用
楼主整理一下解决步骤吧,谢谢
laolizaixianlaolizaixian系统工程师SDDXict2013-01-31
没用
[b]回复 [url=http://www.aixchina.net/club/redirect.php?goto=findpost&pid=649101&ptid=86285]46#[/url] [i]xindahai[/i] [/b] 能否share一下具体步骤呢
letmeupsghletmeupsgh系统运维工程师建设银行大连分行信息技术部2013-01-31
没用
解决了吗?????

贡献者

xindahai系统运维工程师,耀泰明德
X社区推广