Operating System - HP-UX
1752815 Members
6148 Online
108789 Solutions
New Discussion

Re: HP9000 Containers and NFS mounts

 
SOLVED
Go to solution
Doug_Lamoureux
Advisor

Re: HP9000 Containers and NFS mounts

Check your routing configuration for the container.  If the NFS server is not on the same subnet as your primary interface it may be using the default route which could be set using the secondary interface.   From the global execute:

 

# srp -v -l <container> -s network

 

for example: (see red for default route)

 

srp -v -l hp9ksys -s network

Name: hp9ksys Template: hp9000sys Service: network ID: 1
----------------------------------------------------------------------

Compartment Configuration (/etc/cmpt/hp9ksys.rules):
// owns the IP address
interface 192.1.1.111

Netconf Configuration:
INTERFACE_NAME="lan23:7"
INTERFACE_SKIP="true"
IP_ADDRESS="192.1.1.111"
TYPE="ipv4"
SUBNET_MASK="255.255.255.0"
INTERFACE_STATE="up"
BROADCAST_ADDRESS=""
DHCP_ENABLE="0"
INTERFACE_MODULES=""
CMGR_TAG="compartment="hp9ksys" template="hp9000sys" service="network" id="1""
ROUTE_DESTINATION="default"
ROUTE_SKIP="true"
ROUTE_MASK=""
ROUTE_GATEWAY="192.1.1.1"
ROUTE_COUNT="1"
ROUTE_ARGS=""
ROUTE_SOURCE="192.1.1.111"
ROUTE_PARAMS=""

Name: hp9ksys Template: hp9000sys Service: network ID: 4
----------------------------------------------------------------------

Compartment Configuration (/etc/cmpt/hp9ksys.rules):
// owns the IP address
interface 194.1.1.56

Netconf Configuration:
INTERFACE_NAME="lan1"
INTERFACE_SKIP="true"
IP_ADDRESS="194.1.1.56"
TYPE="ipv4"
SUBNET_MASK="255.255.255.0"
INTERFACE_STATE="up"
BROADCAST_ADDRESS=""
DHCP_ENABLE="0"
INTERFACE_MODULES=""
CMGR_TAG="compartment="hp9ksys" template="hp9000sys" service="network" id="4""

 

 

 

JCI IT Unix
Advisor

Re: HP9000 Containers and NFS mounts

From the container host (global) server I executed the command, here is the output.  IP 10.11.16.138 is the primary container IP.

 

j217u019# srp -v -l hpc1 -s network

Name: hpc1  Template: hp9000sys Service: network ID: 1
----------------------------------------------------------------------

Compartment Configuration (/etc/cmpt/hpc1.rules):
// owns the IP address
interface       10.11.16.138  

Netconf Configuration:
INTERFACE_NAME="lan901:1"
INTERFACE_SKIP="true"
IP_ADDRESS="10.11.16.138"
TYPE="ipv4"
SUBNET_MASK="255.255.255.128"
INTERFACE_STATE="up"
BROADCAST_ADDRESS=""
DHCP_ENABLE="0"
INTERFACE_MODULES=""
CMGR_TAG="compartment="hpc1" template="hp9000sys" service="network" id="1""
ROUTE_DESTINATION="default"
ROUTE_SKIP="true"
ROUTE_MASK=""
ROUTE_GATEWAY="10.11.16.131"
ROUTE_COUNT="1"
ROUTE_ARGS=""
ROUTE_SOURCE="10.11.16.138"
ROUTE_PARAMS=""

Name: hpc1  Template: hp9000sys Service: network ID: 2
----------------------------------------------------------------------

Compartment Configuration (/etc/cmpt/hpc1.rules):
// owns the IP address
interface       10.11.5.63  

Netconf Configuration:
INTERFACE_NAME="lan2:1"
INTERFACE_SKIP="true"
IP_ADDRESS="10.11.5.63"
TYPE="ipv4"
SUBNET_MASK="255.255.255.0"
INTERFACE_STATE="up"
BROADCAST_ADDRESS=""
DHCP_ENABLE="0"
INTERFACE_MODULES=""
CMGR_TAG="compartment="hpc1" template="hp9000sys" service="network" id="2""
ROUTE_DESTINATION="default"
ROUTE_SKIP="true"
ROUTE_MASK=""
ROUTE_GATEWAY="10.11.5.1"
ROUTE_COUNT="1"
ROUTE_ARGS=""
ROUTE_SOURCE="10.11.5.63"
ROUTE_PARAMS=""


Doug_Lamoureux
Advisor

Re: HP9000 Containers and NFS mounts

You have 2 default gateways set for the container, one using each interface.  Try removing the default gateway for the backup network  - I assume that you only want to use that netwrork for 'backups'

JCI IT Unix
Advisor

Re: HP9000 Containers and NFS mounts

On the container host server (global), I found the following in its netconf file for this particular interface:

 

ROUTE_DESTINATION[2]="default"
ROUTE_SKIP[2]="true"
ROUTE_MASK[2]=""
ROUTE_GATEWAY[2]="10.11.5.1"
ROUTE_COUNT[2]=1
ROUTE_ARGS[2]=""
ROUTE_SOURCE[2]="10.11.5.63"
ROUTE_PARAMS[2]=""

 

I will remove the "10.11.5.1" from the ROUTE_GATEWAY, do I leave the ROUTE_SOURCE alone?

Doug_Lamoureux
Advisor

Re: HP9000 Containers and NFS mounts

you should use the srp commands to modify the container network configuration - or use the Container Manager GUI found in SMH.

 

This command should work for your configuration:

 

# srp -b -r hpc1 -s network -id 2 iface=lan2:1 ip_address=10.11.5.63 ip_mask=255.255.255.0

 

then use "srp -v -l hpc1 -s network -id 2" to verify that there is no default route in the container configuration


JCI IT Unix
Advisor
Solution

Re: HP9000 Containers and NFS mounts

Doug,

Thank you for the help.  That was the issue.  I did not even realize that the default gateway was configured for that lan card.  I removed it, modified the container.  Just to be certain, I rebooted the host system, restarted the container and all is well.  This issue is resolved.

 

Thanks to all who contributed.