- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to stop a LUN
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2007 08:17 AM
05-08-2007 08:17 AM
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?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2007 08:23 AM
05-08-2007 08:23 AM
SolutionStop 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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2007 08:27 AM
05-08-2007 08:27 AM
Re: How to stop a LUN
~cheers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2007 08:33 AM
05-08-2007 08:33 AM
Re: How to stop a LUN
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2007 08:36 AM
05-08-2007 08:36 AM
Re: How to stop a LUN
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2007 08:40 AM
05-08-2007 08:40 AM
Re: How to stop a LUN
"pull the fiber connections from the server. No more SAN connection." What's your mean? would you please give me more details?
thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2007 08:46 AM
05-08-2007 08:46 AM
Re: How to stop a LUN
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2007 08:47 AM
05-08-2007 08:47 AM
Re: How to stop a LUN
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2007 08:55 AM
05-08-2007 08:55 AM
Re: How to stop a LUN
> 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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2007 09:04 AM
05-08-2007 09:04 AM
Re: How to stop a LUN
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2007 09:07 AM
05-08-2007 09:07 AM
Re: How to stop a LUN
You are funny guy, thank you very much for your suggestion and help.
Yes, our HP-UX servers connect to the SAN storage via two FC HBAs each.
But this HP-UX server be placed in our another city's computer room. Unplug or pull the FC of server back for stopping the access is a "good" idea, my boss will fire me at the same time. Just a joke! I could not do this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2007 09:15 AM
05-08-2007 09:15 AM
Re: How to stop a LUN
~hope it helps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2007 09:18 AM
05-08-2007 09:18 AM
Re: How to stop a LUN
vg03 have two PVs (one is the c8t0d0) and two LVs, each LV be created file system via "newfs" and "mount" those LVs to f01 and f02. f02 is the mount point of c8t0d0.
according as your method, I just umount f02 and/or lvchange -a n lv_c8t0d0, right?
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2007 09:43 AM
05-08-2007 09:43 AM
Re: How to stop a LUN
Un-mounting /f02 would make the filesystem unavailable and kill all processes that are currently using it. On the other hand lvchange /dev/vg03/lvol?? would prevent all new procs from accessing this lvol/LUN but the currently running processes would not be affected and would continue to run.
~hope it helps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2007 12:02 AM
05-09-2007 12:02 AM
Re: How to stop a LUN
Thanks Sandman,
thank you very much for everyone here.
Have a great day