- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: disk path status check
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
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
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
09-27-2013 07:40 AM
09-27-2013 07:40 AM
disk path status check
We need to createthe scirpt for disk path status check
/usr/bin/sudo /usr/sbin/ioscan -m dsf
below command show lot of disk path details
/dev/rdisk/disk29 /dev/rdsk/c6t0d7
/dev/rdsk/c8t0d7
/dev/rdsk/c12t0d7
/dev/rdsk/c10t0d7
i need to check the lun path status .
/usr/sbin/scsimgr -p lun_map -D /dev/rdisk/disk29
lunpath:10:32/0/2/0/0/0/0/4/0/0/0.0x00060e8005bf3333.0x5007000000000000:fibre_channel:ACTIVE:ACTIVE
lunpath:19:32/0/2/0/0/0/0/4/0/0/0.0x00060e8005bffb01.0x5007000000000000:fibre_channel:ACTIVE:ACTIVE
lunpath:38:33/0/2/0/0/0/0/4/0/0/0.0x00060e8005bffb14.0x5007000000000000:fibre_channel:ACTIVE:ACTIVE
lunpath:37:33/0/2/0/0/0/0/4/0/0/0.0x00060e8005bffb11.0x5007000000000000:fibre_channel:ACTIVE:ACTIVE
from the below output if any lunpath show like that (fibre_channel:NOT ACTIVE), we need to filter the two lunpath with raw disk name
/usr/sbin/scsimgr -p lun_map -D /dev/rdisk/disk29
lunpath:10:32/0/2/0/0/0/0/4/0/0/0.0x00060e8005bf3333.0x5007000000000000:fibre_channel:ACTIVE:ACTIVE
lunpath:19:32/0/2/0/0/0/0/4/0/0/0.0x00060e8005bffb01.0x5007000000000000:fibre_channel:ACTIVE:ACTIVE
lunpath:38:33/0/2/0/0/0/0/4/0/0/0.0x00060e8005bffb14.0x5007000000000000:fibre_channel:NOT ACTIVE
lunpath:37:33/0/2/0/0/0/0/4/0/0/0.0x00060e8005bffb11.0x5007000000000000:fibre_channel:NOT ACTIVE
please provide script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2013 11:36 AM
09-27-2013 11:36 AM
Re: disk path status check
>we need to filter the two lunpath with raw disk name
Please indicate the exact output you want, given your example.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2013 10:01 AM
09-28-2013 10:01 AM
Re: disk path status check
need to check the lun path status .
from the below output if any lunpath show like that (fibre_channel:NOT ACTIVE), we need that disk name separtely
/usr/sbin/scsimgr -p lun_map -D /dev/rdisk/disk29
lunpath:10:32/0/2/0/0/0/0/4/0/0/0.0x00060e8005bf3333.0x5007000000000000:fibre_channel:ACTIVE:ACTIVE
lunpath:19:32/0/2/0/0/0/0/4/0/0/0.0x00060e8005bffb01.0x5007000000000000:fibre_channel:ACTIVE:ACTIVE
lunpath:38:33/0/2/0/0/0/0/4/0/0/0.0x00060e8005bffb14.0x5007000000000000:fibre_channel:NOT ACTIVE
lunpath:37:33/0/2/0/0/0/0/4/0/0/0.0x00060e8005bffb11.0x5007000000000000:fibre_channel:NOT ACTIVE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2013 12:45 PM
09-28-2013 12:45 PM
Re: disk path status check
>we need that disk name separately
What's a "disk name"?
Due to your lack of specifications of the OUTPUT, I assume you just want these whole lines?
lunpath:38:33/0/2/0/0/0/0/4/0/0/0.0x00060e8005bffb14.0x5007000000000000:fibre_channel:NOT ACTIVE
lunpath:37:33/0/2/0/0/0/0/4/0/0/0.0x00060e8005bffb11.0x5007000000000000:fibre_channel:NOT ACTIVE
So you can just do:
/usr/sbin/scsimgr -p lun_map -D /dev/rdisk/disk29 | grep "NOT ACTIVE"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2013 12:51 PM
09-28-2013 12:51 PM
Re: disk path status check
# ioscan -P health -C disk
# ioscan -P health -C lunpath
If you see "limited" or "offline" you have a problem.
"online" or "standby" is OK.
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!