- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Migrating lvols
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
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
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-01-2001 01:24 PM
11-01-2001 01:24 PM
I'm faced with a dilema with installing a second DLT8000 drive in our SureStore E 2/20 DLT library unit. I'm currenty using all our HSC slots with other devices (EMC disks, GbE NIC, FWD SCSI) and I can add no more to this box, as the K370 doesn't offer more than 3 HSC slots, this is where my problem comes in. I'm forced to move the EMC disks off the core I/O card's HSC SCSI interface to an extra HP-PB SCSI interface, freeing up the slot for the additional tape drive.
This box is primarily used for a Sybase database, which is spread all over raw lvols in various volume groups. So if I take the EMC disks and move them to the PB card this will reorder the devices and hence cause problems with the existing data that is there. What are my options here? I figure we can back everything up and restore the database from the dumps once I've recreated all the lvols, but this seems rather inefficient as the data that resides on these disks still remains the same. What would be the best method to keep everything as it is now, but just swap the contoller that the disks are on?
Thanks,
Mike
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2001 01:38 PM
11-01-2001 01:38 PM
SolutionIf you device files are going to change, 'vgexport' and 'vgimport' your volume groups. Consider this, using vg02:
# vgchange -a n /dev/vg02
# vgexport -m /tmp/vg02.mapfile -v -f /tmp/vg02.oldpaths /dev/vg02
...then...
# mkdir /dev/vg02
# mknod /dev/vg02/group c 64 0x020000
# vgimport -m /tmp/vg02.mapfile -v -f /tmp/vg02.newpaths /dev/vg02
# vgchange -a y /dev/vg02
You can capture the "oldpaths" when you export the affected volume groups, edit the device declarations to reflect the new devices, name the editted file "newpaths" and import the volume group.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2001 01:51 PM
11-01-2001 01:51 PM
Re: Migrating lvols
Alongwith the steps outlined by JRF, work in tandem with the EMC engineer. EMC migration from one channel to another on the server may be a tricky problem.
hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2001 01:57 PM
11-01-2001 01:57 PM
Re: Migrating lvols
When you move the disks to another controller, the Instance number will change hence getting new device files, etc ... well you can tell the system not to change the instance number after you physically move the disks. I'm attaching the doc on how to do that. You have to be very comfortable to do this. If not sure just ignore my suggestion.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2001 02:11 PM
11-01-2001 02:11 PM
Re: Migrating lvols
You can also do this to
avoid tracking the changed
pv names:
ll /dev/*/group >/tmp/group
vgexport -p -v -s -m vgxyz.map vgxyz
-> this will create the
vg map with the VGID in it.
Use the map vgxyz.map created
from this step for the vgimport.
Then,
Then, do a
vgexport -m /tmp/vgxyz.mapxx vgxyz
(you need to do this to actually export the VG, since the first command was run with preview option).
after the change of hardware,
do
mkdir /dev/vgxyz
mknod /dev/vgxyz/group c 64 0xnnnnn
vgimport -s -v -m vgxyz.map vgxyz
(no need to specify disk paths).
Remember this will not
give you the correct primary/alternate settings.
But, you can change it anytime
after getting the VG''s enabled.
Also, if this conenction
goes through a switch to the EMC , make sure to involve
the admin of that, along with
the EMC engineer in the process.
-raj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2001 02:51 PM
11-01-2001 02:51 PM
Re: Migrating lvols
Two comments based upon others comments.
1) The primary and alternate links to your physical volumes can be setup in "one-shot" using the method I first suggested. The 'newpaths' file defines them (P1, A1, P2, A2, etc. in the order you want them declared).
2) I have changed instance numbers before. I consider the proposal to do so, "gutsy" and unnecessary.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2001 03:45 PM
11-01-2001 03:45 PM
Re: Migrating lvols
I would prefer to use vgexport/import way.
# vgchange -a n /dev/vgXX
# vgexport -m /tmp/vgXX.mapfile -v -f /tmp/vgXX.OLDPATH /dev/vgXX
Also keep the copy on EMC utility inq.
After swaping the fiber cards, use again the inq utility to get new paths and relate the old h/w path with new h/w path.
Copy the vgXX.OLDPATH as vgXX.NEWPATH and then modify the /tmp/vgXX.NEWPATH file to reflect new device files.
# mkdir /dev/vgXX
# mknod /dev/vgXX/group c 64 0x0a0000
# vgimport -m /tmp/vgXX.mapfile -v -f /tmp/vgXX.NEWPATH /dev/vgXX
# vgchange -a y /dev/vgXX
HTH
Prashant.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2001 12:20 PM
11-09-2001 12:20 PM
Re: Migrating lvols
Is there anyway to identify the disks after the device files have changed, or should I just bet on the fact that the cXt0d0, will change to reflect the new controller number? I have in my procedures to use 'ioscan -funC disk' to determine the new device files, but I want to be 100% sure on the device mappings that I will be manually editing. Any thoughts on this? Thanks.
-Mike
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2001 01:42 PM
11-09-2001 01:42 PM
Re: Migrating lvols
Food for thought, Clay