1819906 Members
2490 Online
109607 Solutions
New Discussion юеВ

Importing "orphan" LUNs

 
J Pashturro
New Member

Importing "orphan" LUNs

I have two HPUX 11.0 servers on a fiber fabric. The first server is dead and I would like to bring up the LUNS currently attached to it on the second server. While I can see the LUNs with an ioscan, is there a simple way to re-attach them?
6 REPLIES 6
Steven E. Protter
Exalted Contributor

Re: Importing "orphan" LUNs

Shalom,

You should be able to use vgimport on the lun.

I'd set up a volume group manually with mknod and all and then try a vgimport.

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
Sandman!
Honored Contributor

Re: Importing "orphan" LUNs

What kind of a storage array do you have? Are you running MCSG by any chance? For most arrays this should be seamless if the VGs were created on the 1st node but were vgexport'ed/vgimport'ed on to the 2nd node.
Sheriff Andy
Trusted Contributor

Re: Importing "orphan" LUNs

Do you have the map files for the volume groups?

If so do make sure you mkdir/ mknod the volume group, then vgimport;

cd /dev
mkdir vg_lun1
mknod vg_lun1/group c 64 0xnn0000 (nn is the minor node number you had for the original server)
vgimport -p -v -s -m /tmp/vg_lun1.map vg_lun1
J Pashturro
New Member

Re: Importing "orphan" LUNs

The LUNs are on a NetApp SAN.

Where would I find the map files?
Sheriff Andy
Trusted Contributor

Re: Importing "orphan" LUNs

Map files are usually created manually from the original server. This is created by doing something like;

# vgexport -p -v -s -m /tmp/vg_lun1.map vg_lun

You might check in the /etc/lvmconf (if you can get into the dead server at all).

If you use the -s option it will give you your VGID. With this you can bring back the volume group from the dead server.

Andy
Sheriff Andy
Trusted Contributor

Re: Importing "orphan" LUNs

J,

You can use this DOCID if you don't have any mapfiles.

DOCID: 3100427608

This does assume that you know the Volume Group names and their respective minor node numbers.