Operating System - HP-UX
1820076 Members
3325 Online
109608 Solutions
New Discussion юеВ

how to check if the hard disk is mounted from SAN ?

 
SOLVED
Go to solution
DnD_1
Regular Advisor

how to check if the hard disk is mounted from SAN ?

hi,

just wondering, is there anyway we can know if the hard disk is mounted from SAN ?

many thanks !!
8 REPLIES 8
Torsten.
Acclaimed Contributor
Solution

Re: how to check if the hard disk is mounted from SAN ?

Normally you don't mount disks directly, but you activate a VG and mount a LV that may contain disks in SAN.

Check the vgdisplay output for disk devices and compare to "ioscan -fnC" output - the hardware path and device identifier will tell you.

If you have questions, please post an

# ioscan -fn

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!   
Ron Irving
Trusted Contributor

Re: how to check if the hard disk is mounted from SAN ?

Hi!!

If you run # ioscan -fn, and see a fiber channel mass storage adaptor, and note the path, i.e. 0/0/10/1/0, and see hard-drives off of that, i.e. 0/0/10/1/0.5.15.0.0.0.1, that is generally a SAN device. Depending on the type of SAN you have, you will have a description. For example, a clarion will show up as a CX500WDR5.

Hope this helps.
Should have been an astronaut.
Torsten.
Acclaimed Contributor

Re: how to check if the hard disk is mounted from SAN ?

Example:

disk 331 0/0/10/1/0/4/0.11.4.0.0.1.2 sdisk CLAIMED DEVICE HP HSV300
/dev/dsk/c65t1d2 /dev/rdsk/c65t1d2

This is an EVA300, connected to switch with domain id 11, port# 4 LUN 10.

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: how to check if the hard disk is mounted from SAN ?

This is an EVA300 - nonsense, sorry.

HSV300 is an EVA4400.

0 points.

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!   
Shahul
Esteemed Contributor

Re: how to check if the hard disk is mounted from SAN ?


Hi,

ioscan -fnC disk will tell you which model the disk, then you can make out what type of hard disks are connected to system.

ioscan -fnC fc will tell you if there is any fibre channel card is instaled, normally the SAN is connected to host via a fibre channel.

then if you do fcmsutil will tell you if the link is connected and it's details.

As mentioned by others, hard disks are not directly mounted to system, you need to check LVM or VXVM which ever you use to know the device files.

Good Luck
Shahul
Johnson Punniyalingam
Honored Contributor

Re: how to check if the hard disk is mounted from SAN ?

Hi,

Always, you need check with ioscan

ioscan -fnC disk

(will show hard disk is mounted from SAN or External storage device)

Thanks,
johnson
Problems are common to all, but attitude makes the difference
RajuD
Frequent Advisor

Re: how to check if the hard disk is mounted from SAN ?

Hi,

As informed you need to run ioscan -fnC disk

It will display all disk which is attached to the server.

For example
#ioscan -funC disk

IF it is connected to hitachi you will see a output message "HITACHI DISK-SUBSYSTEM "

Take the disk device file name and compare whether it is assigned to vg by checking /etc/lvmtab file.

тАЬEducation is our passport to the future, for tomorrow belongs to those who prepare for it today.тАЭ

Re: how to check if the hard disk is mounted from SAN ?

quick & dirty method to list disks connected on FC ports (if thats your definition of SAN disks)

Tested on 11.31 - not sure what it might produce on 11.11 or 11.23:

ioscan -FuCfc | cut -d: -f 11 | while read hw
do
ioscan -funCdisk -H ${hw}
done

HTH

Duncan

I am an HPE Employee
Accept or Kudo