Operating System - HP-UX
1833126 Members
3341 Online
110051 Solutions
New Discussion

Need to retrieve only legacy disk name on HP-UX v3

 
ashkp
Occasional Contributor

Need to retrieve only legacy disk name on HP-UX v3

Hi,
I am using pstat_getdisk system call in my appllication to retrieve the major and minor number of a device. since Agile naming model has been implemented in HP-UX v3 i am getting the same disk name with different major/minor number and different naming convention in different directory entries i.e /dev/dsk/c2t1d0 and /dev/disk/disk3. I want to read only legacy convention as read by pstat_disk on HP-UX v2.
Can you please help in getting only legacy device entries from any of the system call?
Or else do i need to implement my own code to get the legacy device entries.

Thanks and Regards
Ashkp
1 REPLY 1
Matthew Ghofrani
Regular Advisor

Re: Need to retrieve only legacy disk name on HP-UX v3

Would this help you?

# ioscan -m dsf
Persistent DSF Legacy DSF(s)
========================================
/dev/rtape/tape1_BEST /dev/rmt/c3t6d0BEST
/dev/rtape/tape1_BESTn /dev/rmt/c3t6d0BESTn
/dev/rtape/tape1_BESTb /dev/rmt/c3t6d0BESTb
/dev/rtape/tape1_BESTnb /dev/rmt/c3t6d0BESTnb
/dev/pt/pt4 /dev/rscsi/c6t15d0
/dev/rscsi/c4t15d0
/dev/rscsi/c10t15d0
/dev/rscsi/c8t15d0
/dev/rdisk/disk51 /dev/rdsk/c5t0d0
/dev/rdsk/c7t0d0
/dev/rdsk/c9t0d0
/dev/rdsk/c11t0d0
/dev/rdisk/disk52 /dev/rdsk/c5t0d1
/dev/rdsk/c7t0d1
/dev/rdsk/c9t0d1
/dev/rdsk/c11t0d1
/dev/rdisk/disk53 /dev/rdsk/c5t0d2
/dev/rdsk/c7t0d2
/dev/rdsk/c9t0d2
Life is full of bugs