Operating System - HP-UX
1850405 Members
2333 Online
104054 Solutions
New Discussion

Re: Disk connection Status Information

 
S N Raju
Advisor

Disk connection Status Information

Is there any System call from which i cna know the status of the disk connectivity to a HPUX machine?
11 REPLIES 11
Torsten.
Acclaimed Contributor

Re: Disk connection Status Information

Run "ioscan -fnCdisk", if the status is CLAIMED, your system is able to access the disk device.

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!   
Arunvijai_4
Honored Contributor

Re: Disk connection Status Information

Hi,

You can use SAM to find out.

# sam --> Disks and File Systems --> Disk Devices

-Arun

"A ship in the harbor is safe, but that is not what ships are built for"
S N Raju
Advisor

Re: Disk connection Status Information


Thanks for ur help,My problem is that:
I have reattachble disk with me,without putting
down the OS.Now When I Pull the disk out, at a point of time,it is still displayed in "iostat"
and is giving some statistical information. Does I need to restart the System even if i use reattachable disk? Please Can Someone help me in this issue?
Torsten.
Acclaimed Contributor

Re: Disk connection Status Information

Please explain "reattachable disk" and what you did exactly on what type of system and what OS.

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!   
S N Raju
Advisor

Re: Disk connection Status Information


Thanks all for ur help,
Reattachable disk in the sense, The Disk can be
connected/disconnected from the machine, by switching on/off as a switch without making the OS Down in contrast with ordinary disks.
The OS is HPUX 11i. When i detach the disk from the HPUX machine, the OS shows the I/O statistics. Should i reboot the machine to refresh the System parameters even for reattachable disk,Or the problem is with the HPUX OS 11i? Thank you.
Sandman!
Honored Contributor

Re: Disk connection Status Information

Sounds like a hot swappable disk...run ioscan without any arguments and the status of the disk will change from "CLAIMED" to "NO_HW" if you're pulling the disk out or vice-versa if you're putting one in.

# ioscan

~cheers
Jaime Bolanos Rojas.
Honored Contributor

Re: Disk connection Status Information

S N,

usually if you are using the K in the ioscan -fnkC disk it will return the information for that drive, even if it's not in the system.

try ioscan -fnC disk to see if it still shows.

If not try just ioscan like recommended to you before.

And if not run an insf -e and then the ioscan and that should do the trick for you.

Regards,

jaime.
Work hard when the need comes out.
Torsten.
Acclaimed Contributor

Re: Disk connection Status Information

In general disk are hotplug or hotswap. This means you are able to swap or add a drive.

It is not allowed to open an active SCSI bus!

In case of removing without replacing a hotplug drive, you should deconfigure it first. (vgexport, rmsf the special file).

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!   
S N Raju
Advisor

Re: Disk connection Status Information

Thanks for all ur help,
The ioscan statistics solved my problem.whenever the disk id dettached the state is changed to "NO_HW".

Thanks once again for all ur help...
S N Raju
Advisor

Re: Disk connection Status Information


Hi all,

Is there any system call through which i get Process id for a process in HPUX.Also,How i can get the same Process id for a process programatially. Can someone help me on this..
waiting for ur reply....
Thank u...
S N Raju
Advisor

Re: Disk connection Status Information

Is there any system call which shows that a particular file system is linked to a particular disk....Can anyone help me on this..
Also,when the hot swappable disk is removed ,is there any way to confirm the file system configured on that swappable disk is not active....Please can anyone help me on this..
Thank u all...