Operating System - HP-UX
1745909 Members
4182 Online
108723 Solutions
New Discussion юеВ

How to mount a F.S. from a LUN that was moved from one site to DR site

 
NDO
Super Advisor

How to mount a F.S. from a LUN that was moved from one site to DR site

Hi

I have a system running HP-UX 11.31 that has all of its file systems mounted on a NetApp storage. But the NetApp admin wants to move one LUN/File System/Volume group from current NetApp storage to DR site where there is another NetApp. But the new presented LUN it will not have associated to it the "/dev/vgxx/lvolxx" in which I have to mount, but only something like /dev/rdsk/cxtydz.

So how do I mount this F.S.

6 REPLIES 6
Bill Hassell
Honored Contributor

Re: How to mount a F.S. from a LUN that was moved from one site to DR site

You must create a volume group and then use vgimport to import the LUN.
This assumes that the original volume group consists of just one LUN. 



Bill Hassell, sysadmin
Torsten.
Acclaimed Contributor

Re: How to mount a F.S. from a LUN that was moved from one site to DR site

Yes, you vgexport the LUN from storage1 and vgimport it from storage2.

 

You may also consider to LVM mirror the VG from storage1 to storage2, then un-mirror from storage1.

No downtime is needed for that.


Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
NDO
Super Advisor

Re: How to mount a F.S. from a LUN that was moved from one site to DR site

Hi Bill!

You said that I must create a VG, but the syntax for creating a VG has:

# vgcreate /dev/<vgname> /dev/dsk/c#t#d# ...

so can I use the copied LUN presented from the NetApp admin which is:

disk     68  0/0/0/5/0/0/1.9.4.0.0.11.0   sdisk   CLAIMED     DEVICE       NETAPP  LUN
                      /dev/dsk/c7t11d0   /dev/rdsk/c7t11d0

so can I use vgcreate /dev/vg09 /dev/dsk/c7t11d0  ?? After mknod.... mkdir -p /dev/vg09.... 

Torsten.
Acclaimed Contributor

Re: How to mount a F.S. from a LUN that was moved from one site to DR site

Assuming you run 11.31 just do a vgimport, see man page for details.


Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
NDO
Super Advisor

Re: How to mount a F.S. from a LUN that was moved from one site to DR site

a vgimport would imply that you have to use vgexport , vgchange, them  umount. That is not what we want to do, because that will wipeout current vg that we are exporting. The purpose of this exercise, is only to veryfy that a snap mirror from the NetApp admin of one of the VG will work in case of disaster.

Torsten.
Acclaimed Contributor

Re: How to mount a F.S. from a LUN that was moved from one site to DR site

you wrote:

>> But the NetApp admin wants to move one LUN/File System/Volume group from current NetApp storage to DR site where there is another NetApp. 

 

My understanding of "move" is "move", not "copy" or "clone" ...

 

OK; vgexport the VG in PREVIEW mode using a map file, then vgimport it, don't forget "vgchgid".


Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!