rootvg 加PV 失败
资料简介:
大家好:今天向rootvg增加一个PV报错 具体内容如下:
Logical volume hd9var must be closed. If the logical
volume contains a filesystem, the umount command will close
求解!
# 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
浏览13353
下载0
已下载用户的评价
您还未下载该资料,不能发表评价;
查看我的 待评价资源
查看我的 待评价资源
xindahai系统运维工程师耀泰明德
没用
[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进制,注意两个字符为一组。例如: 0 15 11 175 137 66 367 237 用dd将此PVID写入硬盘: #echo " 0 15 11 175 137 66 367 237c" | 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
[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进制,注意两个字符为一组。例如: 0 15 11 175 137 66 367 237 用dd将此PVID写入硬盘: #echo " 0 15 11 175 137 66 367 237c" | 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
xindahai系统运维工程师耀泰明德
没用
[b]回复 [url=http://www.aixchina.net/club/redirect.php?goto=findpost&pid=650533&ptid=86285]48#[/url] [i]laolizaixian[/i] [/b] 请看 27 楼
[b]回复 [url=http://www.aixchina.net/club/redirect.php?goto=findpost&pid=650533&ptid=86285]48#[/url] [i]laolizaixian[/i] [/b] 请看 27 楼
xindahai系统运维工程师耀泰明德
没用
[b]回复 [url=http://www.aixchina.net/club/redirect.php?goto=findpost&pid=651355&ptid=86285]49#[/url] [i]gava_java[/i] [/b] 请看 27楼
[b]回复 [url=http://www.aixchina.net/club/redirect.php?goto=findpost&pid=651355&ptid=86285]49#[/url] [i]gava_java[/i] [/b] 请看 27楼
laolizaixian系统工程师SDDXict
没用
[b]回复 [url=http://www.aixchina.net/club/redirect.php?goto=findpost&pid=649101&ptid=86285]46#[/url] [i]xindahai[/i] [/b] 能否share一下具体步骤呢
[b]回复 [url=http://www.aixchina.net/club/redirect.php?goto=findpost&pid=649101&ptid=86285]46#[/url] [i]xindahai[/i] [/b] 能否share一下具体步骤呢