- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- vgcfgrestore - unable to restore config bec. of P...
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
Forums
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
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
тАО01-24-2010 05:39 PM
тАО01-24-2010 05:39 PM
We've recently replaced a failed disk from one of our VGs which has the ff. disk assignments:
Failed disk is c6t0d0
------------------------------------
--- Physical volume groups ---
PVG Name PVG_primary
PV Name /dev/dsk/c4t8d0
PV Name /dev/dsk/c4t9d0
PV Name /dev/dsk/c4t10d0
PV Name /dev/dsk/c4t11d0
PV Name /dev/dsk/c4t12d0
PV Name /dev/dsk/c4t13d0
PV Name /dev/dsk/c4t14d0
PVG Name PVG_mirror
PV Name /dev/dsk/c6t0d0
PV Name /dev/dsk/c6t1d0
PV Name /dev/dsk/c6t2d0
PV Name /dev/dsk/c6t3d0
PV Name /dev/dsk/c6t4d0
PV Name /dev/dsk/c6t5d0
PV Name /dev/dsk/c6t6d0
--------------------------------------------
The PV's status is 'unavailable' in the vgdisplay output.
We are following instructions from the "When_Good_Disks_Go_Bad.pdf" document and the next step is to use: vgcfgrestore -n
But when we execute this, we get the ff. error messages:
----------------------------------------------
Size of Physical Volume "/dev/rdsk/c6t0d0" is smaller than the corresponding PV size in configuration backup file saved by "vgcfgbackup" command. Cannot restore.
----------------------------------------------
I know for a fact that we do have the same disk size and all... But we can't get past this issue. Would like to seek help with this one.
Thanks!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-24-2010 06:40 PM
тАО01-24-2010 06:40 PM
Re: vgcfgrestore - unable to restore config bec. of PV size???
Since you are using PVG you have to have a disk with same or big size,
Since there are so many disk in PVG its better not to touch the config and get a disk with bigger size.
BR,
Kapil+
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-24-2010 06:48 PM
тАО01-24-2010 06:48 PM
Re: vgcfgrestore - unable to restore config bec. of PV size???
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-24-2010 06:56 PM
тАО01-24-2010 06:56 PM
Re: vgcfgrestore - unable to restore config bec. of PV size???
It should work.
BR,
Kapil+
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-24-2010 06:58 PM
тАО01-24-2010 06:58 PM
Re: vgcfgrestore - unable to restore config bec. of PV size???
1. vgextend
2. vgsync?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-24-2010 07:58 PM
тАО01-24-2010 07:58 PM
Re: vgcfgrestore - unable to restore config bec. of PV size???
"...Size of Physical Volume "/dev/rdsk/c6t0d0" is smaller than the corresponding PV size in configuration backup file saved by "vgcfgbackup" command. Cannot restore..."
Please perform a 'diskinfo' on all your disks, obtain the product numbers for all and compare them with the old c6t0d0 product number.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-24-2010 08:07 PM
тАО01-24-2010 08:07 PM
Re: vgcfgrestore - unable to restore config bec. of PV size???
Will let you guys know how this goes.
Thanks for the replies!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-24-2010 08:08 PM
тАО01-24-2010 08:08 PM
Re: vgcfgrestore - unable to restore config bec. of PV size???
It would work, extend it with -g option is PVG.
Or enter the disk name later in /etc/lvmpvg file
BR,
Kapil+
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-24-2010 09:18 PM
тАО01-24-2010 09:18 PM
Re: vgcfgrestore - unable to restore config bec. of PV size???
If you have same size of disk, I would suggest a vgrestore.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-25-2010 05:48 AM
тАО01-25-2010 05:48 AM
Re: vgcfgrestore - unable to restore config bec. of PV size???
If you have got the bigger disk now, please use vgcfgrestore to restore all the datas.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-25-2010 05:50 AM
тАО01-25-2010 05:50 AM
Re: vgcfgrestore - unable to restore config bec. of PV size???
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-27-2010 10:25 PM
тАО01-27-2010 10:25 PM
Re: vgcfgrestore - unable to restore config bec. of PV size???
But when this new disk was plugged into the system, we still see that it is less than the disk sizes of the other disks currently installed. Here's a diskinfo o/p for your reference (c6t0d0 is the replaced disk)
SCSI describe of /dev/rdsk/c6t0d0:
vendor: SEAGATE
product id: ST336753LC
type: direct access
size: 35566479 Kbytes
bytes per sector: 512
---------------------------------------------
SCSI describe of /dev/rdsk/c4t8d0:
vendor: HP 36.4G
product id: ST336753LC
type: direct access
size: 35566480 Kbytes
bytes per sector: 512
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-27-2010 11:00 PM
тАО01-27-2010 11:00 PM
Re: vgcfgrestore - unable to restore config bec. of PV size???
size: 35566479 Kbytes
bytes per sector: 512
---------------------------------------------
size: 35566480 Kbytes
bytes per sector: 512
It is odd that c6t0d0 is seagate and c4t8d0 is hp. I admit to have never seen this.
I'd check my firmware on everything including the PDC. I'm thinking the new disk is the latest and greatest and you're old somewhere in the GSP, PDC, ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-27-2010 11:03 PM
тАО01-27-2010 11:03 PM
Re: vgcfgrestore - unable to restore config bec. of PV size???
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-28-2010 06:53 PM
тАО01-28-2010 06:53 PM
Re: vgcfgrestore - unable to restore config bec. of PV size???
vendor: SEAGATE
product id: ST336753LC
vendor: HP 36.4G
product id: ST336753LC
Even though the mfr is Seagate with the exact same Seagate product number, the vendor ID is the giveaway that it is not the same disk. There are a large number of reasons for the variations, none of which make it easy for sysadmins. You can always replace the disk with a bigger one but the reverse won't work.
So diskinfo is your friend -- hopefully you have this info before you have to replace the disk. Always replace with the same vendor ID and product ID. Sometimes, this information is printed on the drive...sometimes not.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-28-2010 06:56 PM
тАО01-28-2010 06:56 PM
Re: vgcfgrestore - unable to restore config bec. of PV size???
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-28-2010 07:29 PM
тАО01-28-2010 07:29 PM
SolutionI have one question for you, here the problem is becuase this guy is using vgcfgrestore and disks are in PVG.
size if disk is just 1KB less....
so what would happen if he removes disks from PVG temporary.....add it with normal LVM command..........put back in PVG and sync it.
It should work right ??
Lemme know if my understanding is correct.
BR,
Kapil+
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-28-2010 08:06 PM
тАО01-28-2010 08:06 PM
Re: vgcfgrestore - unable to restore config bec. of PV size???
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-28-2010 08:12 PM
тАО01-28-2010 08:12 PM
Re: vgcfgrestore - unable to restore config bec. of PV size???
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-28-2010 08:34 PM
тАО01-28-2010 08:34 PM
Re: vgcfgrestore - unable to restore config bec. of PV size???
remove the disk entry from PVG from /etc/lvmpvg add disk as explained by Bill and then put the entry back in PVG file.
BR,
Kapil+
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-28-2010 09:19 PM
тАО01-28-2010 09:19 PM
Re: vgcfgrestore - unable to restore config bec. of PV size???
You can remove the disk entry from the /etc/lvmpvg file and after new disk is installed, you can extend your VG with -g option by specifying the PVG name. and there you go, you have your new disk in your PVG, you can now mirror your LVs on it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-07-2010 10:26 PM
тАО02-07-2010 10:26 PM
Re: vgcfgrestore - unable to restore config bec. of PV size???
The LVs are composed of several PVs since its PVG distributed - in the primary/mirror PVGs. If I perform an 'lvreduce -m 0 LVname', will this will remove the mirror copies from all the other PVs it's distributed onto?
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-07-2010 11:00 PM
тАО02-07-2010 11:00 PM
Re: vgcfgrestore - unable to restore config bec. of PV size???
see example from the "lvreduce" man page
man lvreduce
Remove mirror copies of logical extents of a logical volume from the
physical volume /dev/dsk/c1t0d0:
lvreduce -m 0 /dev/vg01/lvol4 /dev/dsk/c1t0d0
form above example, you can check on how many "PV's" your logical volume has been mirrored you need to specify them as below example, do get the "PV's" use "lvdisplay -v
#lvdisplay -v /dev/vgxx/lvolxx |more -> take note the "PV's" name and followed by "lvreduce"
#lvreduce -m 0 /dev/vgxx/lvolxx /dev/dsk/c1t2d1 /dev/dsk/c2t2d2 /dev/dsk/c1t1d1 /dev/dsk/c1t2d2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-08-2010 12:21 AM
тАО02-08-2010 12:21 AM
Re: vgcfgrestore - unable to restore config bec. of PV size???
Are you using PVG-strict mirroring?
Are your mirrored copies in one PVG only?
This would be PVG-Strict mirroring were the primary is in one PVG and the mirror in the 2nd PVG.
With PVG's mirroring occurs across HBA so that a loss of an HBA would not completely blow up the mirroring. You manually edit the /etc/lvmpvg file so primary PVs are in one group and the mirrors are in the 2nd.
As long as you pv and vg are set up correctly then LVM will handle the lvremove automatically.
List your pvdisplay -v with a few extents and your /etc/lvmtab. Also a lvdisplay -v with a few extents.