HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: HPUX mknod
Operating System - HP-UX
1836384
Members
3910
Online
110100
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2003 11:04 AM
09-05-2003 11:04 AM
Need help trying to figure out what the minor number is for my autochanger's picker. Have been told that I need to create a picker device using the sctl driver. Understand part of the document to create the new picker but am confused about the getting the minor number.
This is the output from an ioscan -fn:
ext_bus 1 0/0/8/0/1 c8xx CLAIMED INTERFACE SCSI C1010 Ultra160 Wide LVD
target 1 0/0/8/0/1.0 tgt CLAIMED DEVICE
autoch 0 0/0/8/0/1.0.0 schgr CLAIMED DEVICE HP ThinStor AutoLdr
/dev/rac/c1t0d0
target 2 0/0/8/0/1.5 tgt CLAIMED DEVICE
tape 1 0/0/8/0/1.5.0 stape CLAIMED DEVICE HP Ultrium 1-SCSI
/dev/rmt/1m /dev/rmt/1mn /dev/rmt/c1t5d0BEST /dev/rmt/c1t5d0BESTn
/dev/rmt/1mb /dev/rmt/1mnb /dev/rmt/c1t5d0BESTb /dev/rmt/c1t5d0BESTnb
Not sure how to get the hex number from the LUN number. Is there some tool or table available to help me covert the LUN to minor number?
Thanks
This is the output from an ioscan -fn:
ext_bus 1 0/0/8/0/1 c8xx CLAIMED INTERFACE SCSI C1010 Ultra160 Wide LVD
target 1 0/0/8/0/1.0 tgt CLAIMED DEVICE
autoch 0 0/0/8/0/1.0.0 schgr CLAIMED DEVICE HP ThinStor AutoLdr
/dev/rac/c1t0d0
target 2 0/0/8/0/1.5 tgt CLAIMED DEVICE
tape 1 0/0/8/0/1.5.0 stape CLAIMED DEVICE HP Ultrium 1-SCSI
/dev/rmt/1m /dev/rmt/1mn /dev/rmt/c1t5d0BEST /dev/rmt/c1t5d0BESTn
/dev/rmt/1mb /dev/rmt/1mnb /dev/rmt/c1t5d0BESTb /dev/rmt/c1t5d0BESTnb
Not sure how to get the hex number from the LUN number. Is there some tool or table available to help me covert the LUN to minor number?
Thanks
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2003 11:27 AM
09-05-2003 11:27 AM
Re: HPUX mknod
Search shows:
http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90698/B2355-90698_top.html&con=/hpux/onlinedocs/B2355-90698/00/00/81-con.html&toc=/hpux/onlinedocs/B2355-90698/00/00/81-toc.html&searchterms=minor%7cnumber%7cmajor%7cmknod&queryid=20030905-132533
Major and minor numbers
http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90053/B2355-90053_top.html&con=/hpux/onlinedocs/B2355-90053/00/00/69-con.html&toc=/hpux/onlinedocs/B2355-90053/00/00/69-toc.html&searchterms=minor%7cnumber%7cmajor%7cmknod&queryid=20030905-132533
Second one looks better to me.
regards and good luck and have a nice weekend.
SEP
http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90698/B2355-90698_top.html&con=/hpux/onlinedocs/B2355-90698/00/00/81-con.html&toc=/hpux/onlinedocs/B2355-90698/00/00/81-toc.html&searchterms=minor%7cnumber%7cmajor%7cmknod&queryid=20030905-132533
Major and minor numbers
http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90053/B2355-90053_top.html&con=/hpux/onlinedocs/B2355-90053/00/00/69-con.html&toc=/hpux/onlinedocs/B2355-90053/00/00/69-toc.html&searchterms=minor%7cnumber%7cmajor%7cmknod&queryid=20030905-132533
Second one looks better to me.
regards and good luck and have a nice weekend.
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
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2003 01:18 PM
09-05-2003 01:18 PM
Solution
The use of the sctl driver implies that you will NOT use the autoch (schgr) device driver but rather use the SCSI pass-thru driver.
Note that the hardware path 0/0/8/0/1 refers to ext_bus 1; the '1' is your controller 'instance' number - the 'c' part. c1 in this case.
The listing under autoch for your picker indicates that the SCSI ID (target) is set to
0 - the 't' part and that the LUN is also '0' the 'd' part.
We now know that your device should be c1t0d0 -- although we could call it anything -- the major/minor device number tuples are all that matter.
Do an lsdev and note the major device number associated with the sctl driver. Probably 203.
For the minor device number, the first two hex digits represent the controller instance number (c1 - 01h); the next hex digit is the SCSI ID or target (t0 - 0h); the next hex digit is the LUN (d0 - 0h); the remaining 2 hex digits are driver dependent but 00h will work just fine in the case. Thus your minor device should be
010000h.
Now to make the node:
mkdir -p -m 755 /dev/robot
mknod /dev/robot/c1t0d0 c 203 0x010000
chmod 664 /dev/robot/c1t0d0
You should be good to go.
Note that the hardware path 0/0/8/0/1 refers to ext_bus 1; the '1' is your controller 'instance' number - the 'c' part. c1 in this case.
The listing under autoch for your picker indicates that the SCSI ID (target) is set to
0 - the 't' part and that the LUN is also '0' the 'd' part.
We now know that your device should be c1t0d0 -- although we could call it anything -- the major/minor device number tuples are all that matter.
Do an lsdev and note the major device number associated with the sctl driver. Probably 203.
For the minor device number, the first two hex digits represent the controller instance number (c1 - 01h); the next hex digit is the SCSI ID or target (t0 - 0h); the next hex digit is the LUN (d0 - 0h); the remaining 2 hex digits are driver dependent but 00h will work just fine in the case. Thus your minor device should be
010000h.
Now to make the node:
mkdir -p -m 755 /dev/robot
mknod /dev/robot/c1t0d0 c 203 0x010000
chmod 664 /dev/robot/c1t0d0
You should be good to go.
If it ain't broke, I can fix that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2003 01:54 PM
09-05-2003 01:54 PM
Re: HPUX mknod
Thank you, that worked.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP