AIX LPAR FC connection to SAN


 
Thread Tools Search this Thread
Operating Systems AIX AIX LPAR FC connection to SAN
# 1  
Old 02-28-2019
AIX LPAR FC connection to SAN

Hi all,

In my system, I have HMC 7 with Power Machine 6 & 7. On the managed system, we have many lpars.
In some lpars, I can see they are using virtual fiber channel to connect to DS8K storage. In search with google, I understand that it is configured with VIOS server to share the physical FC channel with NPIV method.

But the situation is, in the same managed system, there are other lpars have physical FC, the WWpN not starting with C.
So my concern is, what method these lpars use to connect to SAN? How can they can "share/use" the physical FC without VIOS virtual FC?

lpar has virtual FC channel
Code:
[root@xxxxxx] / > lsdev -Cc adapter | grep fcs
fcs0    Available 02-00    8Gb PCI Express Dual Port FC Adapter (df1000f114108a03)
fcs1    Available 02-01    8Gb PCI Express Dual Port FC Adapter (df1000f114108a03)
fcs2    Available 04-00    8Gb PCI Express Dual Port FC Adapter (df1000f114108a03)
fcs3    Available 04-01    8Gb PCI Express Dual Port FC Adapter (df1000f114108a03)
fcs4    Available 06-00    8Gb PCI Express Dual Port FC Adapter (df1000f114108a03)
fcs5    Available 06-01    8Gb PCI Express Dual Port FC Adapter (df1000f114108a03)

Lpar has "physical" FC channel
Code:
[root@xxxxx] / > lsdev -Cc adapter | grep fcs
fcs0 Available 00-00 8Gb PCI Express Dual Port FC Adapter (df1000f114108a03)
fcs1 Available 00-01 8Gb PCI Express Dual Port FC Adapter (df1000f114108a03)
fcs2 Available 01-00 8Gb PCI Express Dual Port FC Adapter (df1000f114108a03)
fcs3 Available 01-01 8Gb PCI Express Dual Port FC Adapter (df1000f114108a03)
fcs4 Available 05-00 8Gb PCI Express Dual Port FC Adapter (df1000f114108a03)
fcs5 Available 05-01 8Gb PCI Express Dual Port FC Adapter (df1000f114108a03)

Both lpars below belongs to 1 power machine 6.

Please advise me on this situation.

Moderator's Comments:
Mod Comment edit by bakunin: Please use CODE-tags for data and terminal output as well as code. Thank you.

Furthermore i am transferring this thread to the AIX board.

Last edited by bakunin; 02-28-2019 at 01:29 PM..
# 2  
Old 02-28-2019
Quote:
Originally Posted by Phat
In some lpars, I can see they are using virtual fiber channel to connect to DS8K storage. In search with google, I understand that it is configured with VIOS server to share the physical FC channel with NPIV method.

But the situation is, in the same managed system, there are other lpars have physical FC, the WWpN not starting with C.
So my concern is, what method these lpars use to connect to SAN? How can they can "share/use" the physical FC without VIOS virtual FC?
I am not sure if i understand your question correctly. If the folowing answer is not what you expected please clarify what exactly you want to know:

Basically they both use the same way of communicating with the SAN - a "sort-of SCSI"-protocol transported over FC. NPIV basically means that a single (physical) FC port can use several (virtual) IDs - WWPNs - to identify itself. Think of it like an IP-alias for a network interface.

You may want to replace the physical FC-adapters with virtual ones, even if you only configure one LPAR to use it: if you assign physical adapters to an LPAR this partition will never be eligible for LPM (live partition mobility) and hence also not for live update (replace even the kernel without reboot, possible since AIX 7.2). My suggestion is to assign all the physical adapters to the VIOSes and give only virtual adapters to the LPARs. Notice that you will need to change the zoning for this to work.

Every virtual FC adapter (port) has actually TWO WWPNs which should both be zoned. The reason is that for LPM you need one WWPN to hold the connection on the originating side while the other WWPN is configured on the side you migrate to during the transition.

I hope this helps.

bakunin
# 3  
Old 03-01-2019
Hi Bakunin,

Thank for your reply.

Let me clarify again. On the power machine which has physical FCs attached to SAN via SAN switch, as can be seen on my environment, there are 2 LPARs as below:

1. First LPAR with virtual FC (assigned by VIOS) and can use the LUN allocated to it, this point can be understood as it uses NPIV.

2. Second LPAR does not use VIOS and virtual FC, because with the lsdev -Cc adapter | grep fcs as showed, the FC adapter are "physical ones", not virtual as it does not start with C in the WWPN.
Code:
[root@xxxxx] / > lsdev -Cc adapter | grep fcs
fcs0 Available 00-00 8Gb PCI Express Dual Port FC Adapter (df1000f114108a03)
fcs1 Available 00-01 8Gb PCI Express Dual Port FC Adapter (df1000f114108a03)
fcs2 Available 01-00 8Gb PCI Express Dual Port FC Adapter (df1000f114108a03)
fcs3 Available 01-01 8Gb PCI Express Dual Port FC Adapter (df1000f114108a03)
fcs4 Available 05-00 8Gb PCI Express Dual Port FC Adapter (df1000f114108a03)
fcs5 Available 05-01 8Gb PCI Express Dual Port FC Adapter (df1000f114108a03)

My question is, how can it connects and uses the LUN which is allocated to it? As my thought, it is utilizing also the physical FC port of power machine.

if first LPAR uses NPIV, so what technique does second LPAR use? It can use Power Machine physical FC directly and without need the VIOS and virtual FC?

Hope my explanation is clear.
Phat
# 4  
Old 03-01-2019
Quote:
Originally Posted by Phat
Let me clarify again. On the power machine which has physical FCs attached to SAN via SAN switch, as can be seen on my environment, there are 2 LPARs as below:

1. First LPAR with virtual FC (assigned by VIOS) and can use the LUN allocated to it, this point can be understood as it uses NPIV.

2. Second LPAR does not use VIOS and virtual FC, because with the lsdev -Cc adapter | grep fcs as showed, the FC adapter are "physical ones", not virtual as it does not start with C in the WWPN.
hmm.... instead of checking if the WWPN starts with "C" or with something else consult the LPARs profile on the HMC (or IVM, if you have no HMC). You will either see a (or several) physical adapter(s) there (along with the WWPNs) or virtual adapters coming from the VIOS(es). This is a surefire method, checking the WWPNs for starting characters is not.

Quote:
Originally Posted by Phat
My question is, how can it connects and uses the LUN which is allocated to it? As my thought, it is utilizing also the physical FC port of power machine.

if first LPAR uses NPIV, so what technique does second LPAR use?
OK, at least i begin to understand where your confusion comes from: "NPIV" is NOT a type of connection or a protocol at all. NPIV is a way of giving one (physical) adapter several WWPNs at once. A WWPN is a unique identifier and every "initiator" - that is a port of an FC adapter, a FC-switch-port or a LUN - has one. Think of it like a MAC-address for network interfaces. NPIV now allows to give assign several WWPNs to one such port or, respectively, create several virtual (logical) adapters all with different WWPNs which are based on a single physical adapter. So the VIOS gets assigned the physical adapter (which has its own WWPN), then creates several virtual adapters ech with its own WWPN and gives each of these virtual adapters to different LPARs. The LPARs will use the WWPN of the virtual adapter assigned but the traffice is (in reality) routed through the physical adapter. This is why i compared it to an IP-alias: an IP alias is an interface having two or more (instead of one) IP addresses. But this doesn't result in a certain (form of) communication. The communcation will still be "HTTP" or "TCP" or whatever.

Quote:
Originally Posted by Phat
My question is, how can it connects and uses the LUN which is allocated to it?
OK, let us consider a normal TCP/IP network again. A network is a connection of any to any. That means: each station can communicate with every other station. The other might respond or not, there might be authorisation issues, but the basic means of communication are there. The situation in an FC-network is fundamentally different: there is no "authorisation" as such but only certain connections are allowed and all others are forbidden: if you connect via ssh to a system you are asked for, say, a password. That means the network itself doesn't care about your authorisation because the ssh-connection is made. Only the system there cares about that and either allows or denies you access. In an FC-network nobody is asked for any password (or other forms of authorisation) but instead unauthorised (or rather: unwanted) connections are not even possible from the start. You would not want the disks of server A being visible in server B or vice versa.

Basically you need a set of rules that adapter A is allowed to connect to LUN B using FC-switch-port C. Creating and maintaining such a set of rules is called "zoning" and it is done by configuring the FC-switch (or "switches", because this is usually a redundant, load-balancing and high-available system). Basically a "zone" is a rule that allows a certain system (or, to be precise, its FC-adapters identified by its WWPN) to access a certain LUN over a certain way. You may have several zones for a single LUN allowing i.e. two system to access the LUN for instance in case of a cluster. All this is a bit reminiscent of firewall rules.

The process in detail is rather complex with a large margin for making things very complicated and i am not an expert in that sector - not even by a stretch. I suggest you consult specialised pages if you want to understand details like i.e. "port-based zoning", etc.. But at a very fundamental level this is it what it .

I hope this helps.

bakunin

Last edited by bakunin; 03-01-2019 at 06:17 AM..
# 5  
Old 03-01-2019
Hi Bakunin,

Take a look on first lpar, we can see the virtual fiber, it comes from VIOS and routed to physical FC of Power machine.
Code:
[root@xxx] / > lsdev -Cc adapter | grep fcs
fcs0 Available 12-T1 Virtual Fibre Channel Client Adapter
fcs1 Available 12-T1 Virtual Fibre Channel Client Adapter
fcs2 Available 12-T1 Virtual Fibre Channel Client Adapter
fcs3 Available 12-T1 Virtual Fibre Channel Client Adapter

Take a look on second lpar, it's not virtual. I wonder if it is actual physical FC from Power Machine assigned directly to lpar.
Code:
[root@zzz] / > lsdev -Cc adapter | grep fcs
fcs0 Available 00-00 8Gb PCI Express Dual Port FC Adapter (df1000f114108a03)
fcs1 Available 00-01 8Gb PCI Express Dual Port FC Adapter (df1000f114108a03)
fcs2 Available 01-00 8Gb PCI Express Dual Port FC Adapter (df1000f114108a03)
fcs3 Available 01-01 8Gb PCI Express Dual Port FC Adapter (df1000f114108a03)
fcs4 Available 05-00 8Gb PCI Express Dual Port FC Adapter (df1000f114108a03)
fcs5 Available 05-01 8Gb PCI Express Dual Port FC Adapter (df1000f114108a03)

--- Post updated at 09:27 AM ---

I wonder where those physical FC come from? As virtual FC comes from VIOS.

Moderator's Comments:
Mod Comment edit by bakunin: see my post below, please use CODE-tags. Thank you.

Last edited by bakunin; 03-01-2019 at 06:13 AM..
# 6  
Old 03-01-2019
Quote:
Originally Posted by Phat
Take a look on first lpar, we can see the virtual fiber, it comes from VIOS and routed to physical FC of Power machine.
Code:
[root@xxx] / > lsdev -Cc adapter | grep fcs
fcs0 Available 12-T1 Virtual Fibre Channel Client Adapter
fcs1 Available 12-T1 Virtual Fibre Channel Client Adapter
fcs2 Available 12-T1 Virtual Fibre Channel Client Adapter
fcs3 Available 12-T1 Virtual Fibre Channel Client Adapter

Yes, correct.

Quote:
Originally Posted by Phat
Take a look on second lpar, it's not virtual. I wonder if it is actual physical FC from Power Machine assigned directly to lpar.
Code:
[root@zzz] / > lsdev -Cc adapter | grep fcs
fcs0 Available 00-00 8Gb PCI Express Dual Port FC Adapter (df1000f114108a03)
fcs1 Available 00-01 8Gb PCI Express Dual Port FC Adapter (df1000f114108a03)
fcs2 Available 01-00 8Gb PCI Express Dual Port FC Adapter (df1000f114108a03)
fcs3 Available 01-01 8Gb PCI Express Dual Port FC Adapter (df1000f114108a03)
fcs4 Available 05-00 8Gb PCI Express Dual Port FC Adapter (df1000f114108a03)
fcs5 Available 05-01 8Gb PCI Express Dual Port FC Adapter (df1000f114108a03)

I wonder where those physical FC come from? As virtual FC comes from VIOS.
I have no idea, but let me repeat:

Quote:
Originally Posted by bakunin
hmm.... instead of checking if the WWPN starts with "C" or with something else consult the LPARs profile on the HMC (or IVM, if you have no HMC). You will either see a (or several) physical adapter(s) there (along with the WWPNs) or virtual adapters coming from the VIOS(es).
What a LPAR consists of (CPUs, memory, physical adapters, virtual adapters, ...) is stated in the LPARs profile. You can view/modify it either via the graphical HMC web-interface or via a commandline login on the HMC using the [icode]lssyscfg[icode] command. Enter help lssyscfg if you are unsure how to do that.

I cannot tell you how these adapters got into the system because i do not administrate your systems. So just look it up at the source (see above), everything else is just conjecture.

Finally: please use CODE-tags for terminal output too. I have edited them in for you now, but please use them yourself. It makes text-based output (file contents, terminal output and code) more readable. Thank you.

I hope this helps.

bakunin
# 7  
Old 03-01-2019
In the HMC profile, I can see there are 3 physical FC assigned to the server as attached.

I also see 6 FC ports which is equivalent from 3x2=6

Code:
[root@zzz] / > lsdev -Cc adapter | grep fcs
fcs0 Available 00-00 8Gb PCI Express Dual Port FC Adapter (df1000f114108a03)
fcs1 Available 00-01 8Gb PCI Express Dual Port FC Adapter (df1000f114108a03)
fcs2 Available 01-00 8Gb PCI Express Dual Port FC Adapter (df1000f114108a03)
fcs3 Available 01-01 8Gb PCI Express Dual Port FC Adapter (df1000f114108a03)
fcs4 Available 05-00 8Gb PCI Express Dual Port FC Adapter (df1000f114108a03)
fcs5 Available 05-01 8Gb PCI Express Dual Port FC Adapter (df1000f114108a03)

Can we say the "physical" FC adapter here are actually the real physical FC adapter from Power Machine which are assigned to the lpar not via VIOS (with virtual FC adapter) ?
AIX LPAR FC connection to SAN-aix_fcpng
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

AIX - SAN Mount and Unmount on LPAR

We have 2 LPAR. LPAR #1 have a Application, Database Server process (ctree Server) and SAN+Physical Table. LPAR#2 has only Application. Both Application process are connected to Database via C-tree Server Process (Running on LPAR #1.. We want to keep one Active C-tree Server and one Backup... (1 Reply)
Discussion started by: gabhanes
1 Replies

2. AIX

Will it affect my AIX LPAR security, when i set up email alerts on AIX server.

Hello, I've set up email alerts on AIX Servers. so that i can get email notifications (via mail relay server) when ever there is abnormal behavior. for example 1) my script monitors CPU/disk/memory etc... when it reaches high water ark, it will send an email alert. 2) disk usage alerts 3)... (5 Replies)
Discussion started by: System Admin 77
5 Replies

3. AIX

AIX 5.2.0 on own hardware -> i550 LPAR

We are running into a problem that we thought had solved but no go... We have multiple machine types but 1 AIX and 2 i550 (AS/400) with 4 lpar each. Existing AIX is an old (2004 vintage) machine with 5.2 on it for historical use only. Existing Power6 i550 running code that will used... (6 Replies)
Discussion started by: jackb_guppy
6 Replies

4. AIX

How to check the LPAR in a AIX box ?

I have login into a server, and when i launch this command uname -L. I can see there is a LPAR. But is there anymore commands i can use to get more information on the LPAR ? like it is VIO ? wat the IP address ? etc, etc. please help. Thank you. (7 Replies)
Discussion started by: wingcross
7 Replies

5. AIX

AIX admin - lpar question

Hi Guru, my question is that can I create LPAR in AIX 5.3, 6.0, 6.1 by using smit lpar, rather than using HMC or AIX Commands? Thank you very much. Mir Alihttp://xwww.unix.com/images/icons/icon5.gif (3 Replies)
Discussion started by: Tahniet
3 Replies

6. Solaris

SAN connection - configuring fibre attached hard drive

Hi All, I recently got a connection to the SAN through a fibre channel on my solaris box: #luxadm -e port /devices/pci@1d,700000/SUNW,qlc@1/fp@0,0:devctl CONNECTED #ls -l /dev/cfg lrwxrwxrwx 1 root root 48 Feb 23 12:31 c4 -> ../../devices/pci@1d,700000/SUNW,qlc@1/fp@0,0:fc I then... (2 Replies)
Discussion started by: dede
2 Replies

7. AIX

p595 LPAR no longer sees SAN boot disk

Hello, we have a wierd and urgent problem, with a few of our p595 LPARs running AIX 5.3. The LPARs ran AIX 5.3 TL 7 and booted off EMC SAN disks, using EMC Powerpath. Every boot we run "pprootdev on" and "pprootdev fix". We can issue "bosboot -a" and we can reboot the machines. Now, on two... (2 Replies)
Discussion started by: rwesterik
2 Replies

8. AIX

How to Find if AIX machine is LPar or not

Hi, I want to know if there is any command which will tell me if an AIX machine is a LPar or not. I am using "lparstat -i" but it does not work on all AIX machines. Is there any generic command by whose output I will come to know if it is an LPar or not? Please help. Thanks, Vineet (3 Replies)
Discussion started by: vineetd
3 Replies

9. AIX

VIO SAN STORAGE LPAR ( Dynamically increasing size )

Hi, Is there a way to dynamically increase the size of virtual disk on the LPAR. The virtual disk is coming from my VIO Server. From my SAN I have allocated a disk to VIO Server and from VIO Server to my LPAR....If I increase the space of the logical SAN DISK (DS 4700 using IBM TotalStorage... (0 Replies)
Discussion started by: filosophizer
0 Replies

10. AIX

p6 570 network for AIX LPAR

know how to do it. (3 Replies)
Discussion started by: rainbow_bean
3 Replies
Login or Register to Ask a Question