- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- About vgcfgrestore
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-16-2009 01:19 AM
тАО03-16-2009 01:19 AM
Will "vgcfgrestore -n /dev/EVA00 /dev/rdsk/c6t0d1" restore /dev/EVA00/disc4 file that was damaged by mistake?
Thanks,
Eric
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-16-2009 01:31 AM
тАО03-16-2009 01:31 AM
Re: About vgcfgrestore
No it will not restore the device file, this will restore the LVM (VolumeGroup) information to the disk.
If the device file has been altered/removed you can use the mknod or the insf -e "hardwarpath" to recreate the device file.
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-16-2009 01:32 AM
тАО03-16-2009 01:32 AM
Re: About vgcfgrestore
vgcfgrestore restores the LVM Physical volume header onto the target disk. This enables recovery of a lost LVM configuration but not of any data.
J.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-16-2009 01:45 AM
тАО03-16-2009 01:45 AM
Re: About vgcfgrestore
vgcfgrestore restores LVM configuration from file, no data which has to be restored by a backup. Hope you have that.
Best regards,
Fabio
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-16-2009 03:22 AM
тАО03-16-2009 03:22 AM
Re: About vgcfgrestore
What I really want is to restore the logical volume "/disc4" availability, if it is possible.
I already executed the "insf -e -H hw-path" but fsck returns the following:
fsck -F vxfs /dev/rdsk/c4t0d3
vxfs fsck: not a valid vxfs file system
invalid super-block
vxfs fsck: cannot initialize aggregate
file system check failure, aborting ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-16-2009 03:29 AM
тАО03-16-2009 03:29 AM
Re: About vgcfgrestore
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-16-2009 03:31 AM
тАО03-16-2009 03:31 AM
Re: About vgcfgrestore
the physical volume /dev/rdsk/c4t0d3 does not contain a filesystem directly, since it is configured in LVM. Get the list of logical volumes from dev/EVA00 by running:
# vgdisplay -v dev/EVA00
Then select the logical volume that you want to repair and run:
# fsck -F vxfs /dev/EVA00/disc4 ,for example
Hope this helps,
J.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-16-2009 03:38 AM
тАО03-16-2009 03:38 AM
Re: About vgcfgrestore
If the LVM header has been accidently overwritten or became corrupted on the disk you can recover it from the backup file using vgcfgrestore.
# vgcfgrestore -n vgXY /dev/rdsk/c1t6d0
But keep in mind this before restore the headers.
vgcfgrestore cannot be performed on devices attached to activated volume groups. Prior to restoring a backup configuration to a disk, detach the PV from the volume group using the pvchange(1M) command, or deactivate the volume group using the vgchange(1M) command.
So either you need to detach the pv from the VG or deactivate the VG before use vgcfgrestore on that disk.
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-16-2009 03:54 AM
тАО03-16-2009 03:54 AM
Re: About vgcfgrestore
--
"fsck -F vxfs -ofull,nolog /dev/rdsk/c4t0d3"
--
Only if you have created a filesystem on the complete disk.
# fsck -F vxfs -o full,nolog /dev/vgxx/lvoly
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-16-2009 04:08 AM
тАО03-16-2009 04:08 AM
Re: About vgcfgrestore
Full fsck did not work:
fsck -F vxfs -y -ofull /dev/EVA00/disc4
vxfs fsck: OLT extent 0 has bad magic
read of primary OLT failed
vxfs fsck: OLT extent 1 has bad magic
read of OLT copy failed
vxfs fsck: no valid OLT, cannot continue
file system check failure, aborting ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-16-2009 04:15 AM
тАО03-16-2009 04:15 AM
Re: About vgcfgrestore
The same result with -ofull,nolog:
fsck -F vxfs -n -ofull,nolog /dev/EVA00/disc4
vxfs fsck: OLT extent 0 has bad magic
read of primary OLT failed
vxfs fsck: OLT extent 1 has bad magic
read of OLT copy failed
vxfs fsck: no valid OLT, cannot continue
The use of nolog option is only relevant for clean (empty?) filesystems, right?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-16-2009 04:23 AM
тАО03-16-2009 04:23 AM
SolutionFew questions.
If the disk failed or LVM headers corrupted first you need to restore the LVM headers into the disk. Have you restored?
This restoration just update LVM headers not file system structures. You have two options here.
1. If all the data on the problematic disk was mirrored, you do not have to do anything; LVM automatically synchronizes the data on the disk with the other mirror copies of the data.
2.If the disk contained any unmirrored logical volumes (or mirrored logical volumes that did not have a current copy on the system), restore the data from backup, mount the file systems
If you are in option two, follow these steps.
#
# vgcfgrestore ├в n vg01 /dev/rdsk/c2t2d0
# vgchange ├в a y vg01
# newfs [options] /dev/vg01/rlvol1
# mount /dev/vg01/lvol1 /dump
#
fsck is not going to work unless you have created the filesystem onto the disk.
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-16-2009 05:04 AM
тАО03-16-2009 05:04 AM
Re: About vgcfgrestore
I will try this tonight with the volume group inactivated (the manual says that, preferably the volume group should be made unavailable before run this command):
#vgchange -a n /dev/EVA00
#vgcfgrestore -n /dev/EVA00 /dev/rdsk/c4t0d3 (this is the right raw device path name)
#vgchange -a y /dev/EVA00
#newfs ...
Thank you,
Eric Antunes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-16-2009 05:39 AM
тАО03-16-2009 05:39 AM
Re: About vgcfgrestore
If the disk is Ok then I would advice to recreate the FS. You need to restore the data again !!
# newfs -F vxfs /dev/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-16-2009 07:48 AM
тАО03-16-2009 07:48 AM
Re: About vgcfgrestore
Ganesan' solution worked:
#vgchange -a n /dev/EVA00
#vgcfgrestore -n /dev/EVA00 /dev/rdsk/c4t0d3 (this is the right raw device path name)
#vgchange -a y /dev/EVA00
#newfs -F vxfs -o largefiles /dev/EVA00/rdisc4
Thank you,
Eric Antunes