Operating System - HP-UX
1825593 Members
3241 Online
109682 Solutions
New Discussion

had anyone ever heard of a chdev command

 
John Jimenez
Super Advisor

had anyone ever heard of a chdev command

Hi,

We have a consultant here trying to to set up RAC on Oracle. He was asking me what the equivelant for AIX command of
chdev -l hdisk1 -a reserve_lock=no
would be in HP UX 11.23?
Does anyone know if there is one? and what tha would be?

Thanks

John
Hustle Makes things happen
3 REPLIES 3
A. Clay Stephenson
Acclaimed Contributor

Re: had anyone ever heard of a chdev command

There is no direct equivalent. Chdev is a utility for directly altering the characteristers of a device (e.g. changing the block size of a tape device). Typically HP-UX uses the insf command to build devices with special characteristers -- especially those with more settings that can be handled by the available bits in the minor device number. If you must do something like this then the typical approach is to write a small C program making use of the ioctl() system call.
If it ain't broke, I can fix that.
inventsekar_1
Respected Contributor

Re: had anyone ever heard of a chdev command

hi john,
for the AIX command:
--------------------------
chdev â l pty0 â anum=256 â P
reboot
--------------------------
HPUX equalent is:
insf â d ptys â n #
insf â d ptym â n #
insf â d pts â s # â e â v
--------------------------
find a attached pdf file for reference...its a nice pdf...
Be Tomorrow, Today.
inventsekar_1
Respected Contributor

Re: had anyone ever heard of a chdev command

also, this refer this links:

http://www.bhami.com/rosetta.html

http://www.unixguide.net

Be Tomorrow, Today.