Operating System - HP-UX
1834118 Members
2491 Online
110064 Solutions
New Discussion

To check single disked system in HP-UX

 
Arun Kumar Rajamari
Frequent Advisor

To check single disked system in HP-UX

Hi,
We have a configuration in our environment to check if the disk volumes are mirrored and to send an alarm using OVO monitor template for those which are not mirrored.
But few of of our new HP-Unix servers are single disk system(for which we are unnecessarily getting alarms), in this case we dont have to check for the mirror copies as I guess single disk system can't be mirrored.
If this is the case how to check through command line if a system contains a single disk.
So we have to include the command which checks if the system is single disked or not so that it may not reach the loop to check for mirrors.
Can you suggest how to check for the same?
Thanks,
Arun
2 REPLIES 2
Steven E. Protter
Exalted Contributor

Re: To check single disked system in HP-UX

Shalom,

ioscan -fnC disk

use grep -v to filter out the cd/dvd-rom drive.

count the lines of output with wc -l.

Once you are sure its single disk you can remove the OVO monitor.

Seeing that a system is single disk would seem to be a manual process that needs to be performed by a sysadmin or a script written by a sysadmin.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Torsten.
Acclaimed Contributor

Re: To check single disked system in HP-UX

This is not so easy.

First you must know the system model. From this you can decide if there is only 1 internal disk installed (by hw-path).

An ioscan can give you the total number of connected disks, internal + external.

But now the smart array controllers come into play. You will only see 1 (virtual) disk device, even there is a RAID1 or 5 mirror behind.

So there is no single command to find if there is a hardware or software mirror - more investigation is needed.

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!