- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: HDLM volume group migration
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
тАО06-15-2010 08:26 AM
тАО06-15-2010 08:26 AM
HDLM volume group migration
I have a situation where we will be installing HDLM on hpux 11.iv1 using LVM. A required step is to migrate our volume groups using vgextend onto the /dev/dsk/chxtxdx device file and vgreduce the /dev/dsk/cxtxdx device file. We have a very limited maintenance window and was wondering if any admins out there have automated the task via a script?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-15-2010 08:48 AM
тАО06-15-2010 08:48 AM
Re: HDLM volume group migration
I've automated the vg commands in the past.
I just develop a working test script on a test server, and change the device being worked on.
vgextend /dev/vg05 /dev/dsk/chxtxdx (interesting device file here)
lvextend -m 1 /dev/vg05/lvol1 /dev/dsk/chtxdx
# repeat for each logical volume.
lvreduce -m 0 /dev/vg05/lvol1
or
lvsplit
vgreduce /dev/vg05 /dev/dsk/cxtxdx
Again a little work would be needed on your part to insure the right devices were used and the right switches were put on the command line.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-15-2010 08:57 AM
тАО06-15-2010 08:57 AM
Re: HDLM volume group migration
It will reduce the time.
Regards,
Sooraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-15-2010 09:20 AM
тАО06-15-2010 09:20 AM
Re: HDLM volume group migration
Using LVM mirroring as Steven suggested offers a safety net that 'pvmove' doesn't. A 'pvmove' is actually a "poor-man's" mirror operation. The problem is that any interruption of 'pvmove' may leave you with stale logical extents.
While mirror creation takes some time, there is no loss of overall availability. Breaking the old mirror just takes a few seconds at most.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-15-2010 11:30 AM
тАО06-15-2010 11:30 AM
Re: HDLM volume group migration
Thanks for the quick response.
I think I should have clarified what we're doing.
I already have HDLM running and the vgs are using hdlm device files for load balancing. No data needs to be moved, no mirroring required.
We are migrating the servers from 1 hardware platform to newer one using make_net_recovery. I have tested it and it works fine for restoring the OS. Ignite will re-import my data volume groups for me using SCSI device files. So I loose my hdlm load balancing and the scsi device files will have new names on the new OS hardware.
After I need to reinstall the HDLM device (as per hitachi documentation). SO my problem is I will have a bunch of new hdlm device files. For each vg, I need to quickly correlate the scsi devices to a hdlm device and then vgextend the hdlm device to vgreduce the scsi device.
I know i can use dlnkmgr view -lu to help correlate hdlm to scsi and i have strings /etc/lvmtab to find the scsi under each vg. i was wondering is someone had a quick way to merge the 2 sources together via script to perform the lvm commands rapidly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-16-2010 11:38 AM
тАО06-16-2010 11:38 AM
Re: HDLM volume group migration
ok, I wont have a fully automated script but a good process. when the new hardware is up. i will do a vgdisplay -v vgname, grab the PV Name devices into a list. then run dlnkmgr view -drv and grep for each PV Name its hdlm counter part. then run vgextend on the hdlm list, vgreduce on the first PV name list and voila, should be ok.