- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: incorrect LV config after disk clone
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
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
тАО02-20-2008 07:28 AM
тАО02-20-2008 07:28 AM
production /dev/dsk/c11t7d2 - lvol1 - test /dev/dsk/c16t8d4
production /dev/dsk/c13t7d7 - lvol2 - test /dev/dsk/c16t8d5
production /dev/dsk/c11t7d4 - lvol3 - test /dev/dsk/c16t8d6
production /dev/dsk/c11t2d6 - lvol4 - not used on test server
production /dev/dsk/c13t2d7 - lvol5 (1/2) - not used on test server
production /dev/dsk/c13t13d5 - lvol5 (2/2) - not used on test server
production /dev/dsk/c13t13d4 - lvol6 - test /dev/dsk/c16t13d7
We've done this many times with no problems, but in this case there is a gap in the lvol sequence on the test server. As a result one of the logical volumes is sized incorrectly and not using any extents on one of the disks (c16t13d7). The vgdisplay details are attached. I've already taken workarounds to get the missing data mounted elsewhere, but my question is how to correct this situation for the future. Would the only option be to reconfigure the vg on the production server so that the disks I need on test have contiguous logical volumes?
- Kevin
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-21-2008 06:14 AM
тАО02-21-2008 06:14 AM
Re: incorrect LV config after disk clone
You have 7 disks in the vg and clone only 4 disks? I doubt that this is supported in any way. You should always clone all disks of a vg!
My advise would be either to clone all 7 disks or split the whole thing into 2 vg's and clone just the vg with the data you need.
As a hotfix (not more!) you can use pvmove to move extents to other disks.
My 2 cents,
Armin
PS: Please assign points if you find answers useful!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-21-2008 07:45 AM
тАО02-21-2008 07:45 AM
Re: incorrect LV config after disk clone
As said Armin it is probably not supported. But from an other point of view, we could consider that you just try to deal with a VGs which is missing 3 of 7 disks ... it should not be a problem.
The problem I can see is that lvol6 on test shows same size as lvol4 on production. May be it is just a naming problem. Do you use a mapfile to import the VG or not ? If not, you should try :
- on production server : vgexport -p -m vg30.map vg30
Push vg30.map on test server.
- on test server : vgimport -m vg30.map vg30 /dev/dsk/c16t8d4 /dev/dsk/c16t8d5 /dev/dsk/c16t8d6 /dev/dsk/c16t13d7
Regards
Eric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-21-2008 08:48 AM
тАО02-21-2008 08:48 AM
Re: incorrect LV config after disk clone
I didn't try removing the volume group and importing from the map file. Since the disks contain information about 6 LV's, would they all be created during the vgimport? Or could I edit the map file to remove lvol4 and lvol5 before importing?
Kevin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-21-2008 09:37 AM
тАО02-21-2008 09:37 AM
Re: incorrect LV config after disk clone
vgexport -p ... does not remove the vg. "-p" is "preview". The goal is only to get a mapfile.
"Since the disks contain information about 6 LV's, would they all be created during the vgimport?"
Yes, but it does not matter. What is important is that lv are correctly imported regarding physical disks
"Or could I edit the map file to remove lvol4 and lvol5 before importing?"
You should not. An no more edit the mapfile to change order. For example, initial map is :
VGID acf01b8247bda82f
1 lvol1
2 lvol2
3 lvol3
4 lvol4
5 lvol5
6 lvol6
And you modify it this way :
VGID acf01b8247bda82f
1 lvol1
2 lvol2
3 lvol3
4 lvol6 ---> Modified order
You MUST leave the mapfile UNMODIFIED.
After importing on test, you can lvremove lvol4 and lvol5, then "vgreduce -f" for missing disks. You will have a clean clone of what you exactly want.
Of course, working like this assumes that you control exactly where each LV resides ...
Eric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-21-2008 10:33 AM
тАО02-21-2008 10:33 AM
Re: incorrect LV config after disk clone
Unfortunately I won't get a chance to try it for a week or two. Despite being a test environment I'll need to schedule the downtime.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-21-2008 11:06 AM
тАО02-21-2008 11:06 AM
SolutionWhy not ... it can help you to diagnose problems on test box side.
"If so then I'm assuming -s should be used with vgimport on the test server"
It depends on what version of LVM you are using. In the past, when a VGID was in mapfile, it was not possible to import a VG without -s option. Now it is no more mandatory.
"It appears the other option would be to specify all the PV's during the import as in the example above."
Yes ... and I do prefer working like this rather than with "-s" : vgimport does whatever it wants and I want to control everything ;-) I mean, for example, there are pvlink and I don't want them to appear in the vg, I want disk to be imported in a specific order, etc ...
Other thing is that when you import a cloned VG it is better to change VGID before (vgchgid). Not mandatory on a different box than the source but a good practice to keep in mind. If you vgchgid the cloned disks, vgimport -s will have no sense.
"Despite being a test environment I'll need to schedule the downtime."
Why ? You mean that vg30 is activated, FS mounted and used on test box ? So how do you deal with lvol6 wich does not correspond to the one you was expecting ?
Evening here, back home now ...
Regards, Eric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-22-2008 11:36 AM
тАО02-22-2008 11:36 AM
Re: incorrect LV config after disk clone
Thank you for the clarification, especially regarding the -s option. I'll read up on vgchgid and determine when I can take another shot at this.
Kevin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-14-2008 05:53 AM
тАО10-14-2008 05:53 AM