1753501 Members
4950 Online
108794 Solutions
New Discussion юеВ

Re: How to stop a LUN

 
SOLVED
Go to solution
Gary L
Super Advisor

How to stop a LUN

Hi

For some reasons, we want to stop the access between the HP-UX sever and SAN storage. We need Shutdown a LUN and startup/restore it after finish the upgrade.
I could use spmgr display see this LUN and could use strings /etc/fstab find out the volume group, LV and mount point. I want to know how to stop and restart a LUN path? spmgr delete / spmgr add ? or umount the mount point? or vgchange -a n /dev/vg03? ...

thank you very much?


14 REPLIES 14
Sundar_7
Honored Contributor
Solution

Re: How to stop a LUN

Gary,

Stop a Lun ? If you mean preventing the system from using the LUN then I would suggest unmount the filesystem. Ofcourse, that will only work if the LUN is being used for a filesystem.

If it is being used as raw LV/device, then you can make the LV unavailable using the lvchange or vgchange commands.

Sundar.
Learn What to do ,How to do and more importantly When to do ?
Sandman!
Honored Contributor

Re: How to stop a LUN

What are you trying to do that you need to stop all access to this LUN? For doing this you would need to identify all lvols that have extents on this LUN and then either unmount the filesystems on this LUN or lvchange the availability of all lvols to "n" so that no new processes can access them lvols.

~cheers
Court Campbell
Honored Contributor

Re: How to stop a LUN

Not sure I understand this either. But off the cuff, I would say just pull the fiber connections from the server. No more SAN connection.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
Gary L
Super Advisor

Re: How to stop a LUN

Hi Sundar and Sandman Court Campbell

Thanks for your fast reply.
As you know, we wanna do some upgrade and fix on storage, the task requirement wrote "stop the access to SAN (LUN ID: 60001fe1...), I think, maybe its mean was let me stop the connection between HP-UX and SAN. And restore it after fixing.
You means, I just vgchange -a n /dev/vg03 and umount the all the corresponding mount points could stop the connection, right?
Gary L
Super Advisor

Re: How to stop a LUN

Hi Court Campbell

"pull the fiber connections from the server. No more SAN connection." What's your mean? would you please give me more details?
thanks.
Sandman!
Honored Contributor

Re: How to stop a LUN

>stop the access to SAN (LUN ID: 60001fe1...)

Well you could simply unmount all the lvols that have extents on this LUN or you could also deactivate the VG that houses this LUN but that would stop access to all file systems that don't have extents on this LUN. Run pvdisplay on this LUN's device file and post the output here.

~thanks
Court Campbell
Honored Contributor

Re: How to stop a LUN

Umm. Your server is connected to your storage device somehow. I am assuming you have 1 or 2 fiber HBAs that connect you to your SAN. If you pull the fiber connections from the back of the server you will no longer be connected to it.

NOTE: I am not saying it is the correct thing to do.

Also if you do chooose to do that, you would want to stop any processes etc that are using the disks in the SAN and umount the mount points.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
Gary L
Super Advisor

Re: How to stop a LUN

through command spmgr display I find the LUN ID devices is c8t0d0
> pvdisplay /dev/dsk/c8t0d0
--- Physical volumes ---
PV Name /dev/dsk/c8t0d0
VG Name /dev/vg03
PV Status available
Allocatable yes
VGDA 2
Cur LV 3
PE Size (Mbytes) 32
Total PE 17490
Free PE 1461
Allocated PE 16029
Stale PE 0
IO Timeout (Seconds) default
Autoswitch On

through command bdf I could find the corresponding file systems of vg03 is /f01 /f02

according as your suggestion, I could use umount f01 / f02 or/and vgchange -a n /dev/vg03 stop the access and connection between HP-UX and SAN, right?
Sandman!
Honored Contributor

Re: How to stop a LUN

Do both /f01 and /f02 have extents on /dev/dsk/c8t0d0? If so then un-mounting them will be alright otherwise unmount only the filesystem that has extents on /dev/dsk/c8t0d0 (/f01 or /f02 or both).