[HP-UX] vgcfgrestore 恢復

tolilong發表於2016-09-20
和連結中遇到的很像 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/,如需轉載,請註明出處,否則將追究法律責任。

相關文章