Operating System - HP-UX
1834711 Members
2735 Online
110069 Solutions
New Discussion

Re: identifying the new disk.

 
Indrajit Bhagat
Regular Advisor

identifying the new disk.

whenever a new disk is been attached to system, how can we get to know which one is an new disk.
9 REPLIES 9
Robert-Jan Goossens
Honored Contributor

Re: identifying the new disk.

Hi,

Run ioscan before you attach a disk and after you atteched the disk.

# ioscan -fnCdisk > /tmp/ioscan.001

Instert the new disk

# ioscan -fnCdisk > /tmp/ioscan.002

# diff /tmp/ioscan.001 /tmp/ioscan.002

Regards,
Robert-Jan
Pete Randall
Outstanding Contributor

Re: identifying the new disk.

Compare the output of "ioscan -kfnCdisk" from before and after.


Pete

Pete
Torsten.
Acclaimed Contributor

Re: identifying the new disk.

the easy method:

- compare ioscan -fn before and after


the smart and clever method:

- calculate the hardware path!

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!   
Torsten.
Acclaimed Contributor

Re: identifying the new disk.

BTW,

if you assign a disk to a running system, you will most likely see **NO** device file for this disk - only the path.

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!   
yulianto piyut
Valued Contributor

Re: identifying the new disk.

hi,

run ioscan -nfCdisk. output for the new disk is without path disk. to see the new path disk, run "insf -H hardware_path".

-yut-
Torsten.
Acclaimed Contributor

Re: identifying the new disk.

>> "new disk is without path disk"

No, you will see the hardware path, but no device file if you attach the disk to a running system (device file will be created if you reboot the box or if you run insf).

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!   
Hasan  Atasoy
Honored Contributor

Re: identifying the new disk.

after ioscan and insf
ls -lrt /dev/dsk/

newly created address are your new disks ..
be careful in any case.
Hasan.
whiteknight
Honored Contributor

Re: identifying the new disk.



hi,

using ioscan -kfC disk (this will be your original device) ioscan is read from kernel

now ioscan -fnC disk (this will detect a new device/scanning)

hope this help

WK
Problem never ends, you must know how to fix it
Kapil Jha
Honored Contributor

Re: identifying the new disk.

ioscan and insf
ls -lrt /dev/dsk/

New disk would be listed in last.

Hope this would help !!!
BR,
Kapil
I am in this small bowl, I wane see the real world......