Operating System - HP-UX
1833780 Members
2688 Online
110063 Solutions
New Discussion

Moving a EVA5K LUN from one server to another

 
Khalil Ahmed
Frequent Advisor

Moving a EVA5K LUN from one server to another

I have a EVA5000K disk array and two rx2620 Unix servers attached to it. What I would like to do is unpresent a LUN from one server and present it to the other server, ensuring that the data is not lost and is visible to the second server (ie no pvcreate). Can anyone please confirm if this is possible and what steps are involved.

Thanks

Khalil
4 REPLIES 4
Steven E. Protter
Exalted Contributor

Re: Moving a EVA5K LUN from one server to another

Shalom Khalil,

First on the server, vgexport the volume group.

Then change assignment on the disk array.

Then vgimport on the new server.

Data will be preserved.

Still, back it up before you start.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Chan 007
Honored Contributor

Re: Moving a EVA5K LUN from one server to another

Khalil,

use this steps

1. vgexport -p -s -v -m -f /dev/

Note:Mapfile will have the vg and lv information.
Textfile will have the pv info.

copy these 2 files to the second system (server2).

2. Unmount the filesystem on server1
3. vgchange -a n /dev/ on server1

3a. if needed vgexport /dev/vgname

4. unpresent the LUN for the server1.
5. Present the LUN to the server2.
6. ioscan -fCdisk on server2.
7. insf -e on server2.
8. Check the new pv.
9. vgcreate /dev/
10. mknod /dev/ c 64 0xnn0000
11. vgimport -m /dev/ /dev/dsk/ /dev/dsk/

or change the textfile, to reflect the new pvs,
vgimport -m /dev/ -f
12. vgchange -a y /dev/
13. ensure fstab is updated with mounts and mount points are created.
14. mount -a

Chan
Khalil Ahmed
Frequent Advisor

Re: Moving a EVA5K LUN from one server to another

Hi SEP,

As straight forward as that!

I'll give it ago and see what happens, (though I'll take your advice and back it up first!)

Khalil

Khalil Ahmed
Frequent Advisor

Re: Moving a EVA5K LUN from one server to another

Hi Chan,

Your detailed step by step instructions was exactly what I was looking for. It should make it a lot easier to carry out, thanks for that.

Khalil