Unix Technical Forum

Does a simple open on SCSi disk RESERVES it

This is a discussion on Does a simple open on SCSi disk RESERVES it within the AIX Operating System forums, part of the Unix Operating Systems category; --> Hi All, I am a bit new to AIX and not aware of the internal details of AIX. I ...


Go Back   Unix Technical Forum > Unix Operating Systems > AIX Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-05-2008, 12:16 PM
rohitganda@gmail.com
 
Posts: n/a
Default Does a simple open on SCSi disk RESERVES it

Hi All,

I am a bit new to AIX and not aware of the internal details of AIX.
I am using a the following lines of code:

fd = open("/dev/hdisk0", O_RDONLY, NULL);
...
...
...
...
ioctl(disk_fd, IOCINFO, &dev_info);
...
...

//End

Can anybody tell me whether these steps reserves the disks for other
systems in the machine. Somehow the user of this machine tell sme that
he gets an SCSI_RESERVATION error when my program containing the above
specified code runs.
If possible can anybody tell me that this is not my fault.

Thanks & regards,
Rohit

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-05-2008, 12:17 PM
sjm
 
Posts: n/a
Default Re: Does a simple open on SCSi disk RESERVES it

On Feb 13, 11:30 am, rohitga...@gmail.com wrote:
>
> I am a bit new to AIX and not aware of the internal details of AIX.
> I am using a the following lines of code:
>
> fd = open("/dev/hdisk0", O_RDONLY, NULL);
>
> Can anybody tell me whether these steps reserves the disks for other
> systems in the machine. Somehow the user of this machine tell sme that
> he gets an SCSI_RESERVATION error when my program containing the above
> specified code runs.
> If possible can anybody tell me that this is not my fault.


Check this web page:

http://publib.boulder.ibm.com/infoce...rf2/scdisk.htm

Thsi depends on the type of device that the hddisk is but if hdisk0 is
an internal SCSI disk, your call to open the hdisk runs the open
routine of an scdisk.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-05-2008, 12:20 PM
rohitganda@gmail.com
 
Posts: n/a
Default Re: Does a simple open on SCSi disk RESERVES it

On Feb 16, 1:47 am, "sjm" <sjm_n...@yahoo.co.uk> wrote:
> On Feb 13, 11:30 am, rohitga...@gmail.com wrote:
>
>
>
> > I am a bit new to AIX and not aware of the internal details of AIX.
> > I am using a the following lines of code:

>
> > fd = open("/dev/hdisk0", O_RDONLY, NULL);

>
> > Can anybody tell me whether these steps reserves the disks for other
> > systems in the machine. Somehow the user of this machine tell sme that
> > he gets an SCSI_RESERVATION error when my program containing the above
> > specified code runs.
> > If possible can anybody tell me that this is not my fault.

>
> Check this web page:
>
> http://publib.boulder.ibm.com/infoce...opic/com.ibm.a...
>
> Thsi depends on the type of device that the hddisk is but if hdisk0 is
> an internal SCSI disk, your call to open the hdisk runs the open
> routine of an scdisk.


Thanks SJM.
Alas its my fault :-( . This has really been a great help to me.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:51 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com