08-22-2011
Hello,
We have a script which when run on the host gives us the status of the internal and SAN attached disks. The output of which is as follows:
Nm DEVICE VEND PROD LunID SYM DevID DISKGROUP SIZE N E
----------------------------------------------------------------------------------------
1. cciss/c0d0 HP LOGICAL VOLUME N/A N/A N/A 68.33 1 1
2. sdb EMC SYMMETRIX 27 7300 251 app_DG 50.58 2 2
----------------------------------------------------------------------------------------
N =Number of Paths (NE =Not Enabled)
E =Number of Currently Enabled Paths
================================================== =======
The requirement now is to create another script which will check the SAN path status from the above script. If the no of Paths shows less than 1 for SAN disks, then I should get an alert that SAN path failed or if all the path is ok, then SAN path is ok.
Thanking in anticipation.
Regards,
Mahive.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi
I have a path link
/test/df/link1/actual/file1
here link1 is actually a softlink link1= a/b
i need to print the ACTUAL FULL path instead of a linked path
is there any direct command to print the actual path of any linked path
eg
showPhyscialPath /test/df/link1/actual/file1 and it... (4 Replies)
Discussion started by: reldb
4 Replies
2. UNIX for Dummies Questions & Answers
UNIX Shell Script
I'm in /home/suneel dirctory
in that directory need to check for a path for example com/src/resources
If Path exists need to copy the files from one directory
If path not exist need to create the folders and copy the files
UNIX shell script help required (3 Replies)
Discussion started by: suneelc
3 Replies
3. Solaris
Hi there
Now, Ive always support servers that used multi path software with dual cards, e.g. powerpath (emc ) / MPXIO. I got asked a question today, that if a solaris 8/9/10 host had 2 HBA cards, but no multipathing software, what would happen ?? Does the HBA card with the highest id on the... (2 Replies)
Discussion started by: sbk1972
2 Replies
4. Red Hat
Hello,
I am using LINUX OS. I want to check what is the SAN storage size. How do i check this in server? Any help is really appreciated.. (3 Replies)
Discussion started by: govindts
3 Replies
5. Shell Programming and Scripting
The situation is a data center with around 800 servers.
Each server has installed one of these unix-like OS: rhel, sunos, aix, hp-ux.
And we have to make scripts general enough to being able to be executed over all these servers.
Furthermore, sometimes the scripts will be executed as a... (1 Reply)
Discussion started by: asanchez
1 Replies
6. Shell Programming and Scripting
Please help, I want script to check filename, size and date in specify path.
I want output as:
DATE: YYYYMMDD HH:MM
------------------------------------------------
fileA,filesize,yyyy mm dd HH:MM
fileA,filesize,yyyy mm dd HH:MM
fileA,filesize,yyyy mm dd HH:MM
fileA,filesize,yyyy mm dd... (1 Reply)
Discussion started by: akeji
1 Replies
7. AIX
Thanks I need to know if my server has dual HBA and if multipath has been configured. For Multipath I ran lspath and it shows all drives and if MPIO is configured for that drive.
Thanks for any input. (2 Replies)
Discussion started by: 300zxmuro
2 Replies
8. Shell Programming and Scripting
Hello All,
We have a script which when run on the host gives us the status of the internal and SAN attached disks, its paths and other information. The output of which is as follows:
Nm DEVICE VEND PROD LunID SYM DevID DISKGROUP SIZE N E... (3 Replies)
Discussion started by: mahive
3 Replies
9. Red Hat
Hi folks,
How to identify the SAN is running in Single path or dual source path for linux servers. (2 Replies)
Discussion started by: gsiva
2 Replies
10. Solaris
Hi everybody,
i am working on the new script , its job discover the Storage Env ( especially MultiPATH ) and FC cards for solaris 11 sparc systems for now..
script is seem working ( but may contain any mistakes or bug ) on the oracle Qlogic fc cards on Emc_VMAx systems and Solaris 11 Sparc_64... (0 Replies)
Discussion started by: ygemici
0 Replies
LEARN ABOUT HPUX
norewind_close_disabled
norewind_close_disabled(5) File Formats Manual norewind_close_disabled(5)
NAME
norewind_close_disabled - determine whether access to tape device special files without the no-rewind-on-close option is allowed
VALUES
Default
Allowed values
DESCRIPTION
Note: this tunable was named in releases prior to HP-UX 11i v3.
This tunable notifies the tape driver whether it should allow access to device special files without the no-rewind-on-close option. When
this tunable is on, the tape driver will fail any open on a tape device special file that does not have the no-rewind-on-close option (that
is, or with a status of
The tunable allows the safe sharing of tape devices in SAN tape backup solution configurations. The disabling of device special files
without no-rewind-on-close in a SAN tape backup solution configuration prevents the accidental sending of a rewind command on close from
HP-UX systems via standard tape commands like which would corrupt a backup in process.
Who Is Expected to Change This Tunable?
Anyone.
Restrictions on Changing
Changes to this tunable take effect immediately.
When Should the Tunable Be Turned On?
This tunable should be turned on if the system is going to be used in a SAN tape backup solution configuration.
What Are the Side Effects of Turning the Tunable On?
The tape driver will fail any open to a tape device special file that does not have the no-rewind-on-close option with a status of This
behavior prevents the usage of any tape device special file without the no-rewind-on-close option.
When Should the Tunable Be Turned Off?
This tunable should be turned off if the system is not part of a SAN tape backup solution configuration or the system utilizes will not
function unless it has access to device special files without the no-rewind-on-close option.
What Are the Side Effects of Turning the Tunable Off?
A rewind may be issued accidentally from this system on close, possibly corrupting a backup being issued from another system on the SAN.
What Other Tunables Should Be Changed at the Same Time?
None.
EXAMPLES
Query the current value of the tunable:
Set the value of the tunable to
To save the value of the tunable across reboots:
WARNINGS
All HP-UX kernel tunable parameters are release specific. This parameter may be removed or have its meaning changed in future releases of
HP-UX.
Installation of optional kernel software, from HP or other vendors, may cause changes to tunable parameter values. After installation,
some tunable parameters may no longer be at the default or recommended values. For information about the effects of installation on tun-
able values, consult the documentation for the kernel software being installed. For information about optional kernel software that was
factory installed on your system, see at
AUTHOR
was developed by Hewlett-Packard.
SEE ALSO
scsi_tape(7), scsimgr_estape(7).
Tunable Kernel Parameters norewind_close_disabled(5)