1753496 Members
4088 Online
108794 Solutions
New Discussion юеВ

finding a device name

 
SOLVED
Go to solution
susee_sundar
Regular Advisor

finding a device name

Hi,

With this Details how can i find
the Hardware device path

ext-bus 4 8/16/5
disk 9 8/16/5.6.0


How can i found the device in /dev directory ?

9 REPLIES 9
Pete Randall
Outstanding Contributor

Re: finding a device name

ioscan -kfnCdisk |grep 8/16/5.6.0


Pete

Pete
Torsten.
Acclaimed Contributor

Re: finding a device name

Why not run "ioscan -fn" or
"ioscan -fnH8/16/5.6.0", this will give you the device file of the disk.

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!   
Delrish
Trusted Contributor

Re: finding a device name

ioscan -fn
insf -e
ioscan -fun
Darrel Louis
Honored Contributor

Re: finding a device name

Susee,

Apart from the other suggestions you can do the following:

# cd /dev/dsk
# lssf c*

GoodLuck

Darrel
Matthew Ghofrani
Regular Advisor

Re: finding a device name

Hi;

All the above will help. Do you have disk failure?

Matthew from Boston
Life is full of bugs
inventsekar_1
Respected Contributor

Re: finding a device name

just to refresh:

1.)in pete's line
ioscan -kfnCdisk |grep 8/16/5.6.0
you should remember a "space" between -KfnC and disk
ioscan -kfnC disk |grep 8/16/5.6.0
(in torsten's line also)
2.) Generally, ioscan requires superuser privileges. A non root user may use the -k option, only to display the kernel hardware tree. Driver binding and actual hardware scanning is restricted to root.
3.)and its good to know (or remember) the meaning of the options:

-K (upper case) Scan kernel I/O system data structures instead of the actual hardware and list the results.Cannot be used with -u. This option does not require superuser privileges.
-f Generate a full listing
-n List device file names in the output.
-C class Restrict the output listing to those devices belonging to the specified class. Cannot be used with -d.
-d driver Restrict the output listing to those devices controlled by the specified driver. Cannot be used with -C.
-H hw_path Restrict the scan and output listing to those devices connected at the specified hardware path.

4.) insf - install special (device) files
lssf - list a special file
insf -e Reinstall the special files for pseudo-drivers and existing devices. This is useful for restoring special files if one or more have been removed.
Be Tomorrow, Today.
Sandman!
Honored Contributor
Solution

Re: finding a device name

Hi Sundar,

From the information provided the device files, for raw and block, should be /dev/[r]dsk/c4t6d0. Verify this with a device tree output of ioscan as follows...

# ioscan -fn -H 8/16/5

...since the cXtYdZ notation evaluates to the following:

X == Bus
Y == Target
Z == LUN

~hope it helps
Nguyen Anh Tien
Honored Contributor

Re: finding a device name

This is a simple way
#ioscan -fnuC disk |grep 8/16/5.6.0
HP is simple
susee_sundar
Regular Advisor

Re: finding a device name

Thanks to Sandman,

My query is cleared.