System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

How to identify LUN disk for volume group creation

 
amreek bansal
Frequent Advisor

How to identify LUN disk for volume group creation


hi guys, can someone help me, maybe basic question but need some advice.

I've add some new LUN's from SAN storage to my HP-UX server. ANd have ran the ioscan commands to show them on the server which is ok. Howver From the LUN - there are 4 disks for exmaple c6t2d6, c4t2d6, c8t2d6 and c2t2d6.

My question is which of these do i use to firstly pvcreate and then to add to the voiume group, I know they are linked, but which one do i need to use ?

Hope the question makes sense, please offer any advice.

thanks
6 REPLIES
Steven E. Protter
Exalted Contributor

Re: How to identify LUN disk for volume group creation

Shalom,

insf -C disk
# If there has been no reboot.
ioscan -fnC disk
# Identifies the disk
pvcreate based on the information in ioscan. The 4 new disks should be the last 4 listed.

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

Re: How to identify LUN disk for volume group creation

... c6t2d6, c4t2d6, c8t2d6 and c2t2d6 ...

are most likely device files for the same LUN (need to see the hardware path for this), so you can use any of them to create your PV - keep in mind to not use the same path (controller) as primary for all LUNS.

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!   
amreek bansal
Frequent Advisor

Re: How to identify LUN disk for volume group creation



Ok,So i can use any of the device files for that LUN, I raised this issue as I heard there was a primary one and alternate device and so I need to slect the correct one, but you defianetly say use any of the device files?

I'll keep in mind not to use the same controller for the other LUNS.
SoorajCleris
Honored Contributor

Re: How to identify LUN disk for volume group creation

Hi,

Can you please send the output of ioscan?

Regards,
Sooraj
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity" - Dennis Ritchie
Lijeesh N G_1
Respected Contributor

Re: How to identify LUN disk for volume group creation

Hi,

I think all 4 device files belongs to a same LUN(LUN number is same,again also need to check HW path).

You can use any one to create PV,but note the above point from Torsten.Later you can add the other paths as alternate.

Regards,
LIJEESH N G



amreek bansal
Frequent Advisor

Re: How to identify LUN disk for volume group creation


Here is the complete ioscan output.

H/W Path Class Description
==================================================================
root
0 ioa System Bus Adapter (4030)
0/0 ba Local PCI-X Bus Adapter (122e)
0/0/1/0 tty PCI class(255,0) (103c1303)
0/0/1/1 tty PCI SimpleComm (103c1302)
0/0/1/2 tty PCI Serial (103c1048)
0/0/2/0 OO USB OHCI Interface
0/0/2/1 OO USB OHCI Interface
0/0/2/1.0 OO USB Composite Device
0/0/2/1.0.0 OO USB Bulk Only
0/0/2/1.0.16 ext_bus USB SCSI Stack Adaptor
0/0/2/1.0.16.0 target
0/0/2/1.0.16.0.0 disk TEAC DV-28E-V
0/0/2/1.0.16.7 target
0/0/2/1.0.16.7.0 ctl Initiator
0/0/2/2 OO USB EHCI Interface
0/1 ba Local PCI-X Bus Adapter (122e)
0/1/2/0 fc HP AB379-60101 4Gb Dual Port PCI/PCI-X Fibre Channel Adapter (FC Port 1)
0/1/2/0.1 fcp FCP Domain
0/1/2/0.1.7.0.0 ext_bus FCP Array Interface
0/1/2/0.1.7.0.0.0 target
0/1/2/0.1.7.0.0.0.0 disk DGC CX3-20cWDR5
0/1/2/0.1.7.0.0.0.1 disk DGC CX3-20cWDR5
0/1/2/0.1.7.0.0.0.2 disk DGC CX3-20cWDR5
0/1/2/0.1.7.0.0.0.3 disk DGC CX3-20cWDR5
0/1/2/0.1.7.0.0.0.4 disk DGC CX3-20cWDR5
0/1/2/0.1.7.0.0.0.5 disk DGC CX3-20cWDR5
0/1/2/0.1.7.0.0.0.6 disk DGC CX3-20cWDR5
0/1/2/0.1.7.0.0.0.7 disk DGC CX3-20cWDR5
0/1/2/0.1.7.0.0.1 target
0/1/2/0.1.7.0.0.1.0 disk DGC CX3-20cWDR5
0/1/2/0.1.7.0.0.1.1 disk DGC CX3-20cWDR5
0/1/2/0.1.7.0.0.1.2 disk DGC CX3-20cWDR5
0/1/2/0.1.7.0.0.1.3 disk DGC CX3-20cWDR5
0/1/2/0.1.7.0.0.1.4 disk DGC CX3-20cWDR5
0/1/2/0.1.7.0.0.1.5 disk DGC CX3-20cWDR5
0/1/2/0.1.7.0.0.1.6 disk DGC CX3-20cWDR5
0/1/2/0.1.7.0.0.1.7 disk DGC CX3-20cWDR5
0/1/2/0.1.7.0.0.2 target
0/1/2/0.1.7.0.0.2.0 disk DGC CX3-20cWDR5
0/1/2/0.1.7.0.0.2.1 disk DGC CX3-20cWDR5
0/1/2/0.1.7.0.0.2.2 disk DGC CX3-20cWDR5
0/1/2/0.1.7.0.0.2.3 disk DGC CX3-20cWDR5
0/1/2/0.1.7.0.0.2.4 disk DGC CX3-20cWDR5
0/1/2/0.1.7.0.0.2.5 disk DGC CX3-20cWDR5
0/1/2/0.1.7.0.0.2.6 disk DGC CX3-20cWDR5
0/1/2/0.1.7.0.0.2.7 disk DGC CX3-20cWDR5
0/1/2/0.1.7.0.0.3 target
0/1/2/0.1.7.0.0.3.0 disk DGC CX3-20cWDR5
0/1/2/0.1.7.0.0.3.1 disk DGC CX3-20cWDR5
0/1/2/0.1.7.0.0.3.2 disk DGC CX3-20cWDR5
0/1/2/0.1.7.255.0 ext_bus FCP Device Interface
0/1/2/0.1.7.255.0.0 target
0/1/2/0.1.7.255.0.0.0 ctl DGC CX3-20c
0/1/2/0.1.11.0.0 ext_bus FCP Array Interface
0/1/2/0.1.11.0.0.0 target
0/1/2/0.1.11.0.0.0.0 disk DGC CX3-20cWDR5
0/1/2/0.1.11.0.0.0.1 disk DGC CX3-20cWDR5
0/1/2/0.1.11.0.0.0.2 disk DGC CX3-20cWDR5
0/1/2/0.1.11.0.0.0.3 disk DGC CX3-20cWDR5
0/1/2/0.1.11.0.0.0.4 disk DGC CX3-20cWDR5
0/1/2/0.1.11.0.0.0.5 disk DGC CX3-20cWDR5
0/1/2/0.1.11.0.0.0.6 disk DGC CX3-20cWDR5
0/1/2/0.1.11.0.0.0.7 disk DGC CX3-20cWDR5
0/1/2/0.1.11.0.0.1 target
0/1/2/0.1.11.0.0.1.0 disk DGC CX3-20cWDR5
0/1/2/0.1.11.0.0.1.1 disk DGC CX3-20cWDR5
0/1/2/0.1.11.0.0.1.2 disk DGC CX3-20cWDR5
0/1/2/0.1.11.0.0.1.3 disk DGC CX3-20cWDR5
0/1/2/0.1.11.0.0.1.4 disk DGC CX3-20cWDR5
0/1/2/0.1.11.0.0.1.5 disk DGC CX3-20cWDR5
0/1/2/0.1.11.0.0.1.6 disk DGC CX3-20cWDR5
0/1/2/0.1.11.0.0.1.7 disk DGC CX3-20cWDR5
0/1/2/0.1.11.0.0.2 target
0/1/2/0.1.11.0.0.2.0 disk DGC CX3-20cWDR5
0/1/2/0.1.11.0.0.2.1 disk DGC CX3-20cWDR5
0/1/2/0.1.11.0.0.2.2 disk DGC CX3-20cWDR5
0/1/2/0.1.11.0.0.2.3 disk DGC CX3-20cWDR5
0/1/2/0.1.11.0.0.2.4 disk DGC CX3-20cWDR5
0/1/2/0.1.11.0.0.2.5 disk DGC CX3-20cWDR5
0/1/2/0.1.11.0.0.2.6 disk DGC CX3-20cWDR5
0/1/2/0.1.11.0.0.2.7 disk DGC CX3-20cWDR5
0/1/2/0.1.11.0.0.3 target
0/1/2/0.1.11.0.0.3.0 disk DGC CX3-20cWDR5
0/1/2/0.1.11.0.0.3.1 disk DGC CX3-20cWDR5
0/1/2/0.1.11.0.0.3.2 disk DGC CX3-20cWDR5
0/1/2/0.1.11.255.0 ext_bus FCP Device Interface
0/1/2/0.1.11.255.0.0 target
0/1/2/0.1.11.255.0.0.0 ctl DGC CX3-20c
0/1/2/1 fc HP AB379-60101 4Gb Dual Port PCI/PCI-X Fibre Channel Adapter (FC Port 2)
0/1/2/1.1 fcp FCP Domain
0/1/2/1.1.3.0.0 ext_bus FCP Array Interface
0/1/2/1.1.3.0.0.0 target
0/1/2/1.1.3.0.0.0.0 disk DGC CX3-20cWDR5
0/1/2/1.1.3.0.0.0.1 disk DGC CX3-20cWDR5
0/1/2/1.1.3.0.0.0.2 disk DGC CX3-20cWDR5
0/1/2/1.1.3.0.0.0.3 disk DGC CX3-20cWDR5
0/1/2/1.1.3.0.0.0.4 disk DGC CX3-20cWDR5
0/1/2/1.1.3.0.0.0.5 disk DGC CX3-20cWDR5
0/1/2/1.1.3.0.0.0.6 disk DGC CX3-20cWDR5
0/1/2/1.1.3.0.0.0.7 disk DGC CX3-20cWDR5
0/1/2/1.1.3.0.0.1 target
0/1/2/1.1.3.0.0.1.0 disk DGC CX3-20cWDR5
0/1/2/1.1.3.0.0.1.1 disk DGC CX3-20cWDR5
0/1/2/1.1.3.0.0.1.2 disk DGC CX3-20cWDR5
0/1/2/1.1.3.0.0.1.3 disk DGC CX3-20cWDR5
0/1/2/1.1.3.0.0.1.4 disk DGC CX3-20cWDR5
0/1/2/1.1.3.0.0.1.5 disk DGC CX3-20cWDR5
0/1/2/1.1.3.0.0.1.6 disk DGC CX3-20cWDR5
0/1/2/1.1.3.0.0.1.7 disk DGC CX3-20cWDR5
0/1/2/1.1.3.0.0.2 target
0/1/2/1.1.3.0.0.2.0 disk DGC CX3-20cWDR5
0/1/2/1.1.3.0.0.2.1 disk DGC CX3-20cWDR5
0/1/2/1.1.3.0.0.2.2 disk DGC CX3-20cWDR5
0/1/2/1.1.3.0.0.2.3 disk DGC CX3-20cWDR5
0/1/2/1.1.3.0.0.2.4 disk DGC CX3-20cWDR5
0/1/2/1.1.3.0.0.2.5 disk DGC CX3-20cWDR5
0/1/2/1.1.3.0.0.2.6 disk DGC CX3-20cWDR5
0/1/2/1.1.3.0.0.2.7 disk DGC CX3-20cWDR5
0/1/2/1.1.3.0.0.3 target
0/1/2/1.1.3.0.0.3.0 disk DGC CX3-20cWDR5
0/1/2/1.1.3.0.0.3.1 disk DGC CX3-20cWDR5
0/1/2/1.1.3.0.0.3.2 disk DGC CX3-20cWDR5
0/1/2/1.1.3.255.0 ext_bus FCP Device Interface
0/1/2/1.1.3.255.0.0 target
0/1/2/1.1.3.255.0.0.0 ctl DGC CX3-20c
0/1/2/1.1.15.0.0 ext_bus FCP Array Interface
0/1/2/1.1.15.0.0.0 target
0/1/2/1.1.15.0.0.0.0 disk DGC CX3-20cWDR5
0/1/2/1.1.15.0.0.0.1 disk DGC CX3-20cWDR5
0/1/2/1.1.15.0.0.0.2 disk DGC CX3-20cWDR5
0/1/2/1.1.15.0.0.0.3 disk DGC CX3-20cWDR5
0/1/2/1.1.15.0.0.0.4 disk DGC CX3-20cWDR5
0/1/2/1.1.15.0.0.0.5 disk DGC CX3-20cWDR5
0/1/2/1.1.15.0.0.0.6 disk DGC CX3-20cWDR5
0/1/2/1.1.15.0.0.0.7 disk DGC CX3-20cWDR5
0/1/2/1.1.15.0.0.1 target
0/1/2/1.1.15.0.0.1.0 disk DGC CX3-20cWDR5
0/1/2/1.1.15.0.0.1.1 disk DGC CX3-20cWDR5
0/1/2/1.1.15.0.0.1.2 disk DGC CX3-20cWDR5
0/1/2/1.1.15.0.0.1.3 disk DGC CX3-20cWDR5
0/1/2/1.1.15.0.0.1.4 disk DGC CX3-20cWDR5
0/1/2/1.1.15.0.0.1.5 disk DGC CX3-20cWDR5
0/1/2/1.1.15.0.0.1.6 disk DGC CX3-20cWDR5
0/1/2/1.1.15.0.0.1.7 disk DGC CX3-20cWDR5
0/1/2/1.1.15.0.0.2 target
0/1/2/1.1.15.0.0.2.0 disk DGC CX3-20cWDR5
0/1/2/1.1.15.0.0.2.1 disk DGC CX3-20cWDR5
0/1/2/1.1.15.0.0.2.2 disk DGC CX3-20cWDR5
0/1/2/1.1.15.0.0.2.3 disk DGC CX3-20cWDR5
0/1/2/1.1.15.0.0.2.4 disk DGC CX3-20cWDR5
0/1/2/1.1.15.0.0.2.5 disk DGC CX3-20cWDR5
0/1/2/1.1.15.0.0.2.6 disk DGC CX3-20cWDR5
0/1/2/1.1.15.0.0.2.7 disk DGC CX3-20cWDR5
0/1/2/1.1.15.0.0.3 target
0/1/2/1.1.15.0.0.3.0 disk DGC CX3-20cWDR5
0/1/2/1.1.15.0.0.3.1 disk DGC CX3-20cWDR5
0/1/2/1.1.15.0.0.3.2 disk DGC CX3-20cWDR5
0/1/2/1.1.15.255.0 ext_bus FCP Device Interface
0/1/2/1.1.15.255.0.0 target
0/1/2/1.1.15.255.0.0.0 ctl DGC CX3-20c
0/2 ba Local PCI-X Bus Adapter (122e)
0/3 ba Local PCI-X Bus Adapter (12ee)
0/4 ba Local PCI-X Bus Adapter (122e)
0/4/1/0 escsi_ctlr HP PCI/PCI-X SAS MPT Adapter
0/4/1/0.0.0 ext_bus SAS Device Interface
0/4/1/0.0.0.0 target
0/4/1/0.0.0.0.0 disk HP DH072ABAA6
0/4/1/0.0.0.1 target
0/4/1/0.0.0.1.0 disk HP DH072ABAA6
0/4/1/0.0.0.2 target
0/4/1/0.0.0.2.0 disk HP DG146ABAB4
0/4/1/0.0.0.3 target
0/4/1/0.0.0.3.0 disk HP DG146BB976
0/4/2/0 lan HP AB352-60003 PCI/PCI-X 1000Base-T Dual-port Core
0/4/2/1 lan HP AB352-60003 PCI/PCI-X 1000Base-T Dual-port Core
0/5 ba Local PCI-X Bus Adapter (122e)
0/6 ba Local PCI-X Bus Adapter (122e)
0/7 ba Local PCI-X Bus Adapter (12ee)
120 processor Processor
121 processor Processor
122 processor Processor
123 processor Processor
250 ba Core I/O Adapter
250/0 ipmi IPMI Controller
250/1 tty Built-in RS232C
250/2 acpi_node Acpi Hardware