Operating System - HP-UX
1752598 Members
5787 Online
108788 Solutions
New Discussion юеВ

Re: How to use the LUN of one HP-UX server to another server

 
SOLVED
Go to solution
senthil_kumar_1
Super Advisor

How to use the LUN of one HP-UX server to another server

Hi All,

I have one HP-UX 11.11 server with some LUN (SAN disks).

Now i want to use the LUN linked with one HP-UX server in another HP-UX server.

Actually we are going to scrap the old HP-UX server.

How to use that LUN in new HP-UX server with all VGs and LVs and data intact.
25 REPLIES 25
Pete Randall
Outstanding Contributor

Re: How to use the LUN of one HP-UX server to another server

I'm assuing that both servers have connections to this SAN. If so, run vgexport against all the VGs on the original server (you can run in preview mode if you're not ready to actually disconnect), transfer the map file to the new server and run vgimport. You need to create device files first:

mkdir /dev/vgNN
mknod /dev/vgNN/group c 64 0xNN0000
vgimport -s -m /tmp/vgNN.map /dev/vgNN
vgchange -a y /dev/vgNN


Pete

Pete
R.K. #
Honored Contributor

Re: How to use the LUN of one HP-UX server to another server

Hi Senthil,

>> How to use that LUN in new HP-UX server with all VGs and LVs and data intact.


I *think* you have to:

- Create mapfiles of VGs in old server.
- Present LUNs from san side to the new server.
- Transfer the mapfiles to new server
- vgimport these VGs on new server.

This should solve the issue.
Don't fix what ain't broke
Gordon Sjodin
Frequent Advisor

Re: How to use the LUN of one HP-UX server to another server

I would use:

vgexport -pvs -m /tmp/vg01.map /dev/vg01
on the source and then rcp the file to the other node.

On the other node:

Vgexport /dev/vg01
Umask 655
Mkdir /dev/vg01
mknod /dev/vg01/group c 64 0x010000
vgimport -vs -m /tmp/vg01.map /dev/vg01

singh sanjeev
Trusted Contributor

Re: How to use the LUN of one HP-UX server to another server

i will recmonned,

first vgexport:

vgexport -pvs -m /tmp/vg01.map /dev/vg01
on the source and then rcp the file to the other node.

Request SAN storagee team to make them avail to new server .
On new node:

Vgexport /dev/vg01
Umask 655
Mkdir /dev/vg01
mknod /dev/vg01/group c 64 0x010000
vgimport -vs -m /tmp/vg01.map /dev/vg01
Sanjeev Singh
Shailendran V Naidu
Frequent Advisor
Solution

Re: How to use the LUN of one HP-UX server to another server

Hi Senthil,
a. Create a map file for the VG you want to remove, say NODE1:
# vgexport -p -s -v -m /tmp/vgxx.map /dev/vgxx
b. identify the UUID of the LUN and the Port WWN of the port the LUN is currently assigned to and will be assigned to:
ex : if you use IBM sdd "datapath query devices" will give the UUID of the VPATH you want to remove and "datapath query wwpn" or "fcmsutil /dev/tdx" will give the WWPN of the FC adapter port to which the LUN is assigned.
c. scp or ftp or rcp the map file to Node 2 where you want to move the LUN to.
d. unmount all the LVs and remove the VG permanently from Node1
# vgexport vgxx.
e. Disassociate the lun from the Port on Node1 and zone it to the port on Node 2. SAN storage team should be able to tell you how. the procedure Varies according to Storage Brand.
f. On Node 2 import the VG:
# ioscan -f
# ioscan -funC disk
# insf -eC disk
If you are using SDD "datapath query devices" will give the UUID of the VPATH you have just added.
# mkdir /dev/vgxx
# mknod /dev/vgxx/group c 64 0xMM0000 <- MM is the minor number you want to use.
# vgimport -s -v -m /tmp/vgxx /dev/vgxx
# vgdisplay vgxx <-- if it says not active use vgchange -a y vgxx - Cant remember if it will activate after you import-->
You can then start mounting the LVs.

All the Best!
senthil_kumar_1
Super Advisor

Re: How to use the LUN of one HP-UX server to another server

Hi Gordon Sjodin and singh sanjeev,

Why are you doing "Vgexport /dev/vg01" in another node.

Why it is required?
Pete Randall
Outstanding Contributor

Re: How to use the LUN of one HP-UX server to another server

The vgexport needs to be done on the node originally owning the LUN, not on the node acquiring the LUN.


Pete

Pete
senthil_kumar_1
Super Advisor

Re: How to use the LUN of one HP-UX server to another server

Hi All,

How to find the UUID of the local disk and LUN (SAN disk)?

What is the command in HP-UX?

What is the purpose of "# insf -eC disk"?
senthil_kumar_1
Super Advisor

Re: How to use the LUN of one HP-UX server to another server

Hi Pete Randall,

So we have to execute "vgexport vgXX" in source server after unmounting LV, then removing the LV, and then removing the vgXX, Am i correct?

Is it a custom that we have to run "vgexport vgXX in source or is there any special purpose to this?