- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Need a script to verify multiple paths to SAN att...
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
08-09-2005 08:04 AM
08-09-2005 08:04 AM
Is there a way in HPUNIX to check if the disk has single path and print it on the screen with a error message ?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2005 08:12 AM
08-09-2005 08:12 AM
Re: Need a script to verify multiple paths to SAN attached disks ?
# vgdisplay apps
--- Physical volumes ---
PV Name /dev/dsk/c8t0d1
PV Name /dev/dsk/c9t0d1 Alternate Link
PV Status available
Total PE 17260
Free PE 5918
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2005 08:18 AM
08-09-2005 08:18 AM
Re: Need a script to verify multiple paths to SAN attached disks ?
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=888182
should give you what you need.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2005 08:21 AM
08-09-2005 08:21 AM
SolutionFrom the volume manager perspective, if you are running in an LVM environment, you can do something like this:
for VG in `strings /etc/lvmtab | grep vg | grep -v vg00`
do
MainPathCount=`vgdisplay -v $VG | grep "PV Name" | grep -v Alternate | wc -l`
AltrPathCount=`vgdisplay -v $VG | grep "PV Name" | grep Alternate | wc -l`
if [ ${MainPathCount} != ${AltrPathCount} ]
then
echo "$VG has single path LUNs"
fi
done
this procedure has gaping holes in it as it does not do any error checks and it assumes your volume group names has character string "vg" in them. But it is just to give you an idea.
The correct way of doing it is via SAM related commands by mapping out devices and parsing the output.
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2005 08:24 AM
08-09-2005 08:24 AM
Re: Need a script to verify multiple paths to SAN attached disks ?
also what kind of SAN storage do you have atached to this server ? EMC ? XP ? VA ?
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2005 08:58 AM
08-09-2005 08:58 AM
Re: Need a script to verify multiple paths to SAN attached disks ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2005 06:22 PM
08-09-2005 06:22 PM
Re: Need a script to verify multiple paths to SAN attached disks ?
anaya:/usr/symcli/bin#symcli
Symmetrix Command Line Interface (SYMCLI) Version V5.4.1.0 (Edit Level: 538)
built with SYMAPI Version V5.4.1.0 (Edit Level: 538)
If yes,
anaya:/usr/symcli/bin#symdev list|more
Salud
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2005 04:44 PM
08-11-2005 04:44 PM