- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: LVM raw devices migration to VxVM , HP-UX 11v2...
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
тАО11-04-2010 01:52 AM
тАО11-04-2010 01:52 AM
The current enviroment has RAW LVM data volumes. New Blade systems with HP-UX 11v31 are being deployd to replace the current HP-UX servers running HP-UX 11v23.What would be the best practice and steps for this migration considering the current RAW file systems.
The other question should I do the following:-
1. vgexport -p .... to create the map files and then vgimport to the new systems.
2. Then execute vxvmconvert etc.....
Please advise best practices on how I can approach this taking into consideration minimum downtime.
Regards
Jose
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-04-2010 05:00 AM
тАО11-04-2010 05:00 AM
Re: LVM raw devices migration to VxVM , HP-UX 11v23 , SG 11.18 and Oracle 11gR1
Hm....maybe Chapter 2 in this document can be of some help:
http://bizsupport1.austin.hp.com/bc/docs/support/SupportManual/c02002479/c02002479.pdf
/Danny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-04-2010 05:25 AM
тАО11-04-2010 05:25 AM
Re: LVM raw devices migration to VxVM , HP-UX 11v23 , SG 11.18 and Oracle 11gR1
Thanks for your reply. I have been reading the document and I have found something very important :-
Note: This release only supports the conversion of LVM version 1 volume groups
to VxVM. It does not support the conversion of LVM version 2 volume groups. This must be noted.
Thanks
Jose
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-04-2010 07:53 AM
тАО11-04-2010 07:53 AM
SolutionI'm assuming you've already made the decision to move to vxvm instead of hp lvm. That's certainly not an invalid choice as vxvm is a technologically superior product - it does cost more, though... A lot more.
If the decision hasn't already been made, then make sure you understand the benefits that vxvm can give you and make an informed decision on whether or not those benefits are worth the cost.
My preferred method of converting between logical volume managers is to copy the data. Since these are oracle raw volumes, the only thing you need to do is create a vxvm volume of the same size and run dd:
dd if=${hp_lvm_raw} of=${vxvm_raw_vol} bs=10240
The internal format for the oracle files is no different be it HP LVM, vxvm, or even cooked files. In fact, that's how you convert between raw and cooked - dd...
The method above assumes you have extra disk space. If you can't completely replace the disk space, see if you can do it a few volumes at a time.
If that's not possible, you will probably have to open a service call with Symantec to see if they have any updates to the vxconvert script. Unless they changed that significantly, though, that really doesn't do anything except encapsulate the HP LVM structures - not the best option unless you can migrate that to different volumes.
Hope that helps.
Doug
------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-04-2010 11:14 AM
тАО11-04-2010 11:14 AM
Re: LVM raw devices migration to VxVM , HP-UX 11v23 , SG 11.18 and Oracle 11gR1
I did the vxvmconvert for a customer on HP-UX 11.11.
1. "pre-vxvmconvert" checks.
1.a checking if "full vxvm" software was installed
commands : swlist ; vxdctl license
1.b checking if asl is installed
check : hardware compatibility list of the support.symantec.com
command : vxdisk -o alldgs list;vxdisk list
comment : dont forget to check jbod requirements, sometimes they also need "attention"
1.c latest vxvm patching installed
check : latest vxvm patchset installed on itrc patch site
1.d get a sense of the typical volumegroup/logical volumes to be converted.
f.e.
command : vgdisplay -v /dev/vgXX
comment : 120 Gbyte volumegroup, PE size 32 Mbyte, 32 Gbyte luns
command : lvdisplay -v /dev/vgXX/YY
comment : logical volume of 1Gbyte in size; striped over 4 (EMC) luns; 64kbyte stripesize
1.e lvm volumegroup(s) containing mirrors using mwc
comment : think there is/was a problem with that on HP-UX 11.11
1.f lvm volumegroup(s) containing /usr filesystem
comment : not sure what the deal was with /usr..
1.g lvm volumegroup(s) with any dump or primary swap
comment : not sure what the deal was with dump/primary swap
1.h lvm volumegroup(s) used in MC/SG clusters
comment : MC/SG volumegroups need special care.. in essence they need to return to "normal" volumegroups for the duration of the vxvmconvert
1.i lvm volumgroup(s) used for cluster lock disks
comment : You dont convert MC/SG cluster lock volumegroups as there is no vxvm-equivalent of a cluster lock diskgroup, so they should stay lvm (and MC/SG clusters that have all data on vxvm diskgroups, work fine with LVM clusterlock volumegroups ; best of both worlds so to say)
1.j lvm volumegroup(s) with any disks that have bad block directory
command : bbdir
comment : bbdir is a hp support utility, can be asked for. checks the bad block directory. bad block directory should be empty before the conversion starts.
1.k Not enough space on the rootfilesystem to save a copy of each physical disk├в s LVM metadata
comment : vxvmconvert saves prior to the conversion, lvm metadata of the ├в to be converted volumegroup├в in the directory /etc/vx/reconfig.d/vgrecords/
1.l lvm volumegroup(s) with mirrored volumes need mirror license installed
comment : obvious is obvious. you need full vxvm with mirrored lvm volumes
1.m lvm volumegroup(s) with insufficient space for metadata
comment : the size of the lvm header determines the size of the vxvm header, and the size of the vxvm header determines how many "vxvm objects" can be stored in the vxvm header.. In my case the PE size of the volumegroup was 32 Mbyte. SO that means a lvm header of 32Mbyte at least. A 32 Mbyte vxvm header can contain a lot of vxvm objects so I had no problem there.. A PE size of 4Mbyte could give a problem when a lot of small lvm volumes needs to be converted, which will give a lot of vxvm objects. vxvm objects are volumes/plexes/subdisks. There is away to know the number of vxvm objects in a vxvm diskgroup. Think its vxdg list
1.n lvm logical volume(s) with 0 size
comment : there was a bug in vxvm 3.5 on hp-ux 11.11 that gave problems with vxvmconvert on "0 size" logical volumes. removing this volumes, before beginnning the conversion dealt with the problem.
1.o lvm volumegroup(s) containing the root volume
comment : not sure what was the problem with this.
2. conversion
2.a VRTSexplorer
comment : get VRTSexplorer data from each system before the conversion starts (script can be found on the symantec support site)
2.b. full backup of the userdata
2.c. backup of the LVM data
command : vgcfgbackup of each of the to be converted LVM volumegroups
2.d Stopping application access to implicated logical volumes / start volumegroups in ├в standard├в mode
The "standard" mode, is for the MC/SG volumegroups who needs to first loose there "exclusive" access settings to be able to converted.. (later they will get the good vxvm settings.. )
something like.
#
stop the implicated volumegroup
# vgchange ├в a n /dev/<>
remove the cluster flag from the implicated volumegroup
# vgchange ├в c n /dev/<>
start the volumegroups as ├в normal├в volumegroups
# vgchange ├в a y /dev/vg<>
# vgdisplay ├в v /dev/vg<>
VG status available
2.e. check if bbdir doesn├в t show any ├в not-empty├в bad block directory
#cd /dev/rdsk
# for j in $(ls)
do
echo /var/tmp/bbdir.11 -d /dev/rdsk/$j
/var/tmp/bbdir.11 -d /dev/rdsk/$j |grep -i "bad block"
done
2.f. vxvmconvert
the vxvmconvert operation itself
2.g. implement changes for the new vxvm volume names
adapting /etc/lvmtab , adapting cntl scripts in MC/SG
2.h. Start the applications
You see quite a list. And while I did the above, actually a (vxvmconvert) bug was stumbled upon and as Im a HP support guy, who was doing some consulting on the side, the bug was worked around and later solved in a patch. (so that bug you shouldnt encounter anymore ;) )
The main time consumer is the amount of luns that are part of the volumegroups. The more luns in total all volumegroups "have" the longer the time to convert. I dont remember how much luns we had at the time, but I think for the above around 8 or 9 volumegroups needed to be converted which had a lot of luns, dont remember how much. I think in total we needed on average 30 minutes per volumegroup conversion or something like that.. (for the volumegroups with a lot of luns) We needed maybe 4 hours for all the volumegroups. Not sure how much TB that was "converted" that way, but it probably was a lot..
Good Luck,
Greetz,
Chris
PS. Doug, a dd will not convert a lvm header in a vxvm header, which is all that vxvmconvert does. The data is left alone, that is why vxvmconvert is so fast, it doesnt touch the data, as it doesnt need to touch that. After vxvmconvert is done, terabytes of data will be available on vxvm volumes instead of lvm volumes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-05-2010 03:48 AM
тАО11-05-2010 03:48 AM
Re: LVM raw devices migration to VxVM , HP-UX 11v23 , SG 11.18 and Oracle 11gR1
Thanks for your thorough explanations which gave me a better insight what I need to do and take note.Why I asked these questions is that the customer is interested in Extended Clusters " running service guard- 2 nodes at DR and 2 nodes at Production sites which are +- 15 KM's away from each other" using DWDM and also for what I have read it states use VxVM. Please if you have any more inputs, suggestions and hints for this type of setup enviroment please can you forward it to me.
Thanking You
Jose