[HP-UX] vgcfgrestore 恢复

和链接中遇到的很像 http://blog.itpub.net/451222/viewspace-861737/

[root@xxxxx001:/]# vgchange -a y vgspace2
May 21 23:40:47 - "xxxxx001": Activating volume group vgspace2 with exclusive option.
vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk/c8t1d0":
I/O error
vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk/c8t1d1":
I/O error
vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk/c8t1d2":
I/O error
vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk/c25t1d0":
I/O error
vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk/c25t1d1":
I/O error
vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk/c25t1d2":
I/O error
vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk/c4t1d2":
I/O error
vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk/c29t1d2":
I/O error
vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk/c4t1d1":
I/O error
vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk/c29t1d1":
I/O error
vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk/c4t1d0":
I/O error
vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk/c29t1d0":
I/O error
vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk/c32t1d6":
I/O error
vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk/c33t1d6":
I/O error
vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk/c32t1d7":
I/O error
vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk/c33t1d7":
I/O error
vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk/c32t2d3":
I/O error
vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk/c33t2d3":
I/O error
vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk/c32t2d4":
I/O error
vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk/c33t2d4":
I/O error
vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk/c31t1d6":
I/O error
vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk/c34t1d6":
I/O error
vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk/c31t1d7":
I/O error
vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk/c34t1d7":
I/O error
vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk/c31t2d3":
I/O error
vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk/c34t2d3":
I/O error
vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk/c31t2d4":
I/O error
vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk/c34t2d4":
I/O error
vgchange: Activation mode requested for the volume group "/dev/vgspace2" conflicts with configured mode.
vgchange: Warning: couldn't query physical volume "/dev/dsk/c8t1d0":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query physical volume "/dev/dsk/c8t1d1":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query physical volume "/dev/dsk/c8t1d2":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query physical volume "/dev/dsk/c25t1d0":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query physical volume "/dev/dsk/c25t1d1":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query physical volume "/dev/dsk/c25t1d2":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query physical volume "/dev/dsk/c4t1d2":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query physical volume "/dev/dsk/c29t1d2":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query physical volume "/dev/dsk/c4t1d1":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query physical volume "/dev/dsk/c29t1d1":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query physical volume "/dev/dsk/c4t1d0":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query physical volume "/dev/dsk/c29t1d0":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query physical volume "/dev/dsk/c32t1d6":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query physical volume "/dev/dsk/c33t1d6":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query physical volume "/dev/dsk/c32t1d7":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query physical volume "/dev/dsk/c33t1d7":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query physical volume "/dev/dsk/c32t2d3":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query physical volume "/dev/dsk/c33t2d3":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query physical volume "/dev/dsk/c32t2d4":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query physical volume "/dev/dsk/c33t2d4":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query physical volume "/dev/dsk/c31t1d6":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query physical volume "/dev/dsk/c34t1d6":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query physical volume "/dev/dsk/c31t1d7":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query physical volume "/dev/dsk/c34t1d7":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query physical volume "/dev/dsk/c31t2d3":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query physical volume "/dev/dsk/c34t2d3":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query physical volume "/dev/dsk/c31t2d4":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query physical volume "/dev/dsk/c34t2d4":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query all of the physical volumes.
        ERROR:  Function activate_volume_group
        ERROR:  Failed to activate vgspace2
May 21 23:40:48 - Node "xxxxx001": Deactivating volume group vgspace2
vgchange: Volume group "vgspace2" has been successfully changed.

[root@xxxxx001:/etc/lvmconf]# vgcfgrestore
Usage: vgcfgrestore
        [-R]
        [-F]
        { -n vgname |
         -f VGConfPath }
        { -l |
         {[-o OldPVPath] PVPath}}
OldPVPath and PVPath : character special files
More arguments required.
[root@xxxxx001:/etc/lvmconf]# vgcfgrestore -l -n vgspace2
Volume Group Configuration information in "/etc/lvmconf/vgspace2.conf"
VG Name /dev/vgspace2
 ---- Physical volumes : 28 ----
    /dev/rdsk/c8t1d0 (Non-bootable)
   /dev/rdsk/c25t1d0 (Non-bootable)
    /dev/rdsk/c8t1d1 (Non-bootable)
   /dev/rdsk/c25t1d1 (Non-bootable)
    /dev/rdsk/c8t1d2 (Non-bootable)
   /dev/rdsk/c25t1d2 (Non-bootable)
    /dev/rdsk/c4t1d2 (Non-bootable)
   /dev/rdsk/c29t1d2 (Non-bootable)
    /dev/rdsk/c4t1d1 (Non-bootable)
   /dev/rdsk/c29t1d1 (Non-bootable)
    /dev/rdsk/c4t1d0 (Non-bootable)
   /dev/rdsk/c29t1d0 (Non-bootable)
   /dev/rdsk/c32t1d6 (Non-bootable)
   /dev/rdsk/c33t1d6 (Non-bootable)
   /dev/rdsk/c32t1d7 (Non-bootable)
   /dev/rdsk/c33t1d7 (Non-bootable)
   /dev/rdsk/c32t2d3 (Non-bootable)
   /dev/rdsk/c33t2d3 (Non-bootable)
   /dev/rdsk/c32t2d4 (Non-bootable)
   /dev/rdsk/c33t2d4 (Non-bootable)
   /dev/rdsk/c31t1d6 (Non-bootable)
   /dev/rdsk/c34t1d6 (Non-bootable)
   /dev/rdsk/c31t1d7 (Non-bootable)
   /dev/rdsk/c34t1d7 (Non-bootable)
   /dev/rdsk/c31t2d3 (Non-bootable)
   /dev/rdsk/c34t2d3 (Non-bootable)
   /dev/rdsk/c31t2d4 (Non-bootable)
   /dev/rdsk/c34t2d4 (Non-bootable)
[root@xxxxx001:/etc/lvmconf]# vgcfgrestore -n vgspace2 /dev/rdsk/c33t1d6
Volume Group configuration has been restored to /dev/rdsk/c33t1d6
[root@xxxxx001:/etc/lvmconf]#
[root@xxxxx001:/etc/lvmconf]# vgcfgrestore -n vgspace2 /dev/rdsk/c34t2d4
Volume Group configuration has been restored to /dev/rdsk/c34t2d4
[root@xxxxx001:/etc/lvmconf]# vgcfgrestore -n vgspace2  /dev/rdsk/c31t2d4
Volume Group configuration has been restored to /dev/rdsk/c31t2d4
[root@xxxxx001:/etc/lvmconf]# vgcfgrestore -n vgspace2 /dev/rdsk/c34t2d3
Volume Group configuration has been restored to /dev/rdsk/c34t2d3
[root@xxxxx001:/etc/lvmconf]# vgcfgrestore -n vgspace2  /dev/rdsk/c31t2d3
Volume Group configuration has been restored to /dev/rdsk/c31t2d3
[root@xxxxx001:/etc/lvmconf]# vgcfgrestore -n vgspace2  /dev/rdsk/c34t1d7
Volume Group configuration has been restored to /dev/rdsk/c34t1d7
[root@xxxxx001:/etc/lvmconf]# vgcfgrestore -n vgspace2  /dev/rdsk/c31t1d7
Volume Group configuration has been restored to /dev/rdsk/c31t1d7
[root@xxxxx001:/etc/lvmconf]# vgcfgrestore -n vgspace2  /dev/rdsk/c34t1d6
Volume Group configuration has been restored to /dev/rdsk/c34t1d6
[root@xxxxx001:/etc/lvmconf]# vgcfgrestore -n vgspace2 /dev/rdsk/c31t1d6
Volume Group configuration has been restored to /dev/rdsk/c31t1d6
[root@xxxxx001:/etc/lvmconf]# vgcfgrestore -n vgspace2  /dev/rdsk/c33t2d4
Volume Group configuration has been restored to /dev/rdsk/c33t2d4
[root@xxxxx001:/etc/lvmconf]# vgcfgrestore -n vgspace2 /dev/rdsk/c32t2d4
Volume Group configuration has been restored to /dev/rdsk/c32t2d4
[root@xxxxx001:/etc/lvmconf]# vgcfgrestore -n vgspace2 /dev/rdsk/c33t2d3
Volume Group configuration has been restored to /dev/rdsk/c33t2d3
[root@xxxxx001:/etc/lvmconf]# vgcfgrestore -n vgspace2 /dev/rdsk/c32t2d3
Volume Group configuration has been restored to /dev/rdsk/c32t2d3
[root@xxxxx001:/etc/lvmconf]# vgcfgrestore -n vgspace2 /dev/rdsk/c33t1d7
Volume Group configuration has been restored to /dev/rdsk/c33t1d7
[root@xxxxx001:/etc/lvmconf]# vgcfgrestore -n vgspace2 /dev/rdsk/c32t1d7
Volume Group configuration has been restored to /dev/rdsk/c32t1d7
[root@xxxxx001:/etc/lvmconf]# vgcfgrestore -n vgspace2 /dev/rdsk/c33t1d6
Volume Group configuration has been restored to /dev/rdsk/c33t1d6
[root@xxxxx001:/etc/lvmconf]# vgcfgrestore -n vgspace2 /dev/rdsk/c32t1d6
Volume Group configuration has been restored to /dev/rdsk/c32t1d6
[root@xxxxx001:/etc/lvmconf]# vgcfgrestore -n vgspace2 /dev/rdsk/c29t1d0
Volume Group configuration has been restored to /dev/rdsk/c29t1d0
[root@xxxxx001:/etc/lvmconf]# vgcfgrestore -n vgspace2 /dev/rdsk/c4t1d0
Volume Group configuration has been restored to /dev/rdsk/c4t1d0
[root@xxxxx001:/etc/lvmconf]# vgcfgrestore -n vgspace2 /dev/rdsk/c29t1d1
Volume Group configuration has been restored to /dev/rdsk/c29t1d1
[root@xxxxx001:/etc/lvmconf]# vgcfgrestore -n vgspace2 /dev/rdsk/c4t1d1
Volume Group configuration has been restored to /dev/rdsk/c4t1d1
[root@xxxxx001:/etc/lvmconf]# vgcfgrestore -n vgspace2 /dev/rdsk/c29t1d2
Volume Group configuration has been restored to /dev/rdsk/c29t1d2
[root@xxxxx001:/etc/lvmconf]# vgcfgrestore -n vgspace2 /dev/rdsk/c4t1d2
Volume Group configuration has been restored to /dev/rdsk/c4t1d2
[root@xxxxx001:/etc/lvmconf]# vgcfgrestore -n vgspace2 /dev/rdsk/c25t1d2
Volume Group configuration has been restored to /dev/rdsk/c25t1d2
[root@xxxxx001:/etc/lvmconf]# vgcfgrestore -n vgspace2 /dev/rdsk/c8t1d2
Volume Group configuration has been restored to /dev/rdsk/c8t1d2
[root@xxxxx001:/etc/lvmconf]# vgcfgrestore -n vgspace2 /dev/rdsk/c25t1d1
Volume Group configuration has been restored to /dev/rdsk/c25t1d1
[root@xxxxx001:/etc/lvmconf]# vgcfgrestore -n vgspace2 /dev/rdsk/c8t1d1
Volume Group configuration has been restored to /dev/rdsk/c8t1d1
[root@xxxxx001:/etc/lvmconf]# vgcfgrestore -n vgspace2 /dev/rdsk/c25t1d0
Volume Group configuration has been restored to /dev/rdsk/c25t1d0
[root@xxxxx001:/etc/lvmconf]# vgcfgrestore -n vgspace2 /dev/rdsk/c8t1d0
Volume Group configuration has been restored to /dev/rdsk/c8t1d0
[root@xxxxx001:/etc/lvmconf]# vgchange -a y vgspace2
vgchange: Activation mode requested for the volume group "/dev/vgspace2" conflicts with configured mode.
[root@xxxxx001:/etc/lvmconf]#
[root@xxxxx001:/etc/lvmconf]# vgchange -c y vgspace2
Performed Configuration change.
Volume group "vgspace2" has been successfully changed.
[root@xxxxx001:/etc/lvmconf]#
[root@xxxxx001:/etc/lvmconf]# vgsync vgspace2
vgsync: Couldn't query logical volume "/dev/vgspace2/SPACEoradata":
Volume group not activated.

vgsync: Couldn't query the list of logical volumes.
vgsync: Couldn't access the list of logical volumes for volume group "vgspace2".
vgsync: Couldn't resynchronize volume group "vgspace2".
[root@xxxxx001:/etc/lvmconf]# vgchange -a y vgspace2
vgchange: Activation mode requested for the volume group "/dev/vgspace2" conflicts with configured mode.
[root@xxxxx001:/etc/lvmconf]#
[root@xxxxx001:/etc/lvmconf]#
[root@xxxxx001:/etc/lvmconf]#
[root@xxxxx001:/etc/lvmconf]# cmrunpkg -v -n xxxxx001 pkg_space5
Running package pkg_space5 on node xxxxx001.

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/24237320/viewspace-2125243/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/24237320/viewspace-2125243/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值