Solved

nfs mount is not working with mksysb ?

Posted on 2008-10-29
15
2,852 Views
Last Modified: 2013-11-17
we have AIX 5.3 nim server configured with mksysb backup through nfs. We have two NIC cards in NIM server. one card normal Normal. another one is Gigabit Ethernet. Both NICs configured with ip and working fine. from NIM server /export/mksysbs directoy has been hosted to nim clients for taking mksysb backup. From NIM client if we mount /export/mksysb directory through NIC card  one(which is residing on NIM) we could able to write and it is working fine. But if access the same diretory through GIGABIT ethernet adapter ( adapter 2 which is residing on NIM server) the mount is not allowing to write saying that  touch: 0652-046 Cannot create hi. I am able to access the server through NIC adapter 2 from NIM client ? Could any body help please ?
0
Comment
Question by:rammaghenthar
  • 7
  • 7
15 Comments
 

Expert Comment

by:wcsjimmy
Comment Utility
I am assuming that you have a different IP on each NIC.

When you do the NFS mount are you doing it by hostname or IP?

0
 
LVL 2

Author Comment

by:rammaghenthar
Comment Utility
yes We have different IP on each NIC.
yes We are using hostname when do NFS mount on client.
NIC card one  is called with computer name. NIC 2 is called with computer name with -gb extension
example consider hostname is  newnim
NIC 1  XXX.XXX.XXX.XXX   newnim
NIC 2  XXX.XXX.XXX.XXX   newnim-gb ( gigabit ethernet which is not allowing to write)


0
 
LVL 68

Expert Comment

by:woolmilkporc
Comment Utility
Hi again,
perhaps it could help if you forced the nfsd on your NIM box to only use UDP.
This can be accomplished by issuing
 
chgssys -s nfsd -a "-p udp"
 
and then recycle it with
 
stopsrc -g nfs
and
startsrc -g nfs
 
wmp
 
0
 
LVL 68

Expert Comment

by:woolmilkporc
Comment Utility
... sure, just for testing you don't need to modify nfsd.
Issue your mount command at the client with an additional
'-o proto=udp' and see what happens.
wmp
0
 
LVL 2

Author Comment

by:rammaghenthar
Comment Utility
Hi woolmilkporc
         I had removed /export/mksysbs from export list and flush it from export list  then given full permission (777) to /export/mksysbs directory and freshly configured it nfs on nim box. Then tried from client. It is working fine. Now I am waiting for scheduler to run. So that I could see automatic mksysb is working or not.  I also tried to run

# chgssys -s nfsd -a "-p udp"
ksh: chgssys:  not found.
#
and got following output . I could not progress further.
0
 
LVL 68

Expert Comment

by:woolmilkporc
Comment Utility
Hi rammaghenthar,

sorry, again a typo from my side  :-(
the command is actually 'chssys'!

Try it if your job still doesn't work.

btw, why do you export and mount your directories by hand?
If using NIM, it will do it for you, if your mksysb job (run on the master NIM server) would look like something like this:

'nim -o define -t mksysb -F -a server=master  \
-a location=/export/mksysbs/[your_name_for_this_mksysb] -a mk_image=y  \
-a source=[NIM_name_of_your_machine_to_backup]'


Given your machine to backup was regularly defined as a NIM resource (standalone machine) on your NIM master, this should work fine. You wouldn't need any exports or mounts anymore.

To bind via GE, of course your NIM master must be known to your standalone machine by its GE IP address. (GE == GIGABIT Ethernet). To accomplish this, you might want to re-create your client's niminfo file. Use 'smit niminit' for this (fill in the values). Be sure to use your NIM master's GE name (from /etc/hosts) for 'Host Name of Network Install Master' and delete /etc/niminfo before re-creating.

wmp





0
 
LVL 2

Author Comment

by:rammaghenthar
Comment Utility
tried to run smit niminit on nimclient and it didn't proceed  and stuck with

NFS server warunim001-g not responding still trying
                                   Processing data ...                                  
                                   following info

how to identify   warunim001-g gb ethernet is configured from nim server to nim client ?
0
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
LVL 68

Accepted Solution

by:
woolmilkporc earned 500 total points
Comment Utility
Hi rammaghenthar,

some things you should have a look at:

- are both the address of host warunim001-g and of your nimclient in the same subnet?
- or, because the non-GE address of warunim001 seems to work: are both addresses of warunim001(-g) in the same subnet?
- if they aren't, how are the gateway settings of all those machines?

If you are in doubt, it could be useful to post the following:
- 'netstat -in' of nim master and client
-'ifconfig -a' of both machines
- 'netstat -rn' of the above.

- Is there _any_ nimclient on your site able to communicate with warunim001-g?
- If yes, how is it's IP config?

If all the addresses of your machines were in the same subnet, I'd suspect that your client would send requests to NIM's GE but get answers from NIM's FE.
To avoid this, it would be best to create a new subnet for GE and have some routing between the subnets.
If this were not possible, we could try to create a static route.

But first, please check the above. Let's see!

Norbert (wmp)







0
 
LVL 2

Author Comment

by:rammaghenthar
Comment Utility
Hi Woolmilkporc

NIM server configuration

# netstat -in
Name  Mtu   Network     Address            Ipkts Ierrs    Opkts Oerrs  Coll
en0   1500  link#2      0.9.6b.1b.1d.72   15886777     0  7326769     2     0
en0   1500  10.114.55.3 10.114.55.35      15886777     0  7326769     2     0
en1   1500  link#3      0.9.6b.1b.1d.73   88493932     0 65566891     2     0
en1   1500  192.168.0   192.168.114.7     88493932     0 65566891     2     0
lo0   16896 link#1                          754322     0   755858     0     0
lo0   16896 127         127.0.0.1           754322     0   755858     0     0
lo0   16896 ::1                             754322     0   755858     0     0


# ifconfig -a
en0: flags=5e080863,c0<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST,GROUPRT,64BIT,CHECKSUM_OFFLOAD(ACTIVE),PSEG,LARGESEND,CHAIN>
        inet 10.114.55.35 netmask 0xffffffe0 broadcast 10.114.55.63
en1: flags=5e080863,c0<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST,GROUPRT,64BIT,CHECKSUM_OFFLOAD(INACTIVE),PSEG,LARGESEND,CHAIN>
        inet 192.168.114.7 netmask 0xffff0000 broadcast 192.168.255.255
lo0: flags=e08084b<UP,BROADCAST,LOOPBACK,RUNNING,SIMPLEX,MULTICAST,GROUPRT,64BIT>
        inet 127.0.0.1 netmask 0xff000000 broadcast 127.255.255.255
        inet6 ::1/0
         tcp_sendspace 131072 tcp_recvspace 131072 rfc1323 1

# netstat -rn
Routing tables
Destination        Gateway           Flags   Refs     Use  If   Exp  Groups

Route Tree for Protocol Family 2 (Internet):
default            10.114.55.33      UG        3   6773503 en0      -      -
10.114.55.32       10.114.55.35      UHSb      0         0 en0      -      -   =>
10.114.55.32/27    10.114.55.35      U         4    283158 en0      -      -
10.114.55.35       127.0.0.1         UGHS      0         9 lo0      -      -
10.114.55.63       10.114.55.35      UHSb      0      1276 en0      -      -
10.114.55.69/32    10.114.55.97      UG        0         0 en0      -      -
127/8              127.0.0.1         U        11    698255 lo0      -      -
192.168.0.0        192.168.114.7     UHSb      0         0 en1      -      -   =>
192.168.0/16       192.168.114.7     U         6  68470112 en1      -      -
192.168.114.7      127.0.0.1         UGHS      0       574 lo0      -      -
192.168.255.255    192.168.114.7     UHSb      0         4 en1      -      -

Route Tree for Protocol Family 24 (Internet v6):
::1                ::1               UH        1     55099 lo0      -      -
#









Working NIM client configuration

xxxxxxxxxx:root > netstat -in
Name  Mtu   Network     Address            Ipkts Ierrs    Opkts Oerrs  Coll
en6   1500  link#2      0.14.5e.c5.f0.e8  20412428     0  6314014     3     0
en6   1500  192.168.121 192.168.121.8     20412428     0  6314014     3     0
en4   1500  link#3      0.14.5e.c6.8a.57  44947577     0 28467457     2     0
en4   1500  10.114.55.6 10.114.55.99      44947577     0 28467457     2     0
en5   1500  link#4      0.14.5e.c6.8a.56  28581074     0  8384453     2     0
en5   1500  192.168.116 192.168.116.29    28581074     0  8384453     2     0
lo0   16896 link#1                        1821555734     0 1818443910     0                                                  0
lo0   16896 127         127.0.0.1         1821555734     0 1818443910     0                                                  0
lo0   16896 ::1                           1821555734     0 1818443910     0                                                  0
xxxxxxxxxx:root > ifconfig -a
en6: flags=5e080863,c0<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST,GROUPRT                                             ,64BIT,CHECKSUM_OFFLOAD(ACTIVE),PSEG,LARGESEND,CHAIN>
        inet 192.168.121.8 netmask 0xffffff00 broadcast 192.168.121.255
         tcp_sendspace 131072 tcp_recvspace 65536 rfc1323 0
en4: flags=5e080863,c0<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST,GROUPRT                                             ,64BIT,CHECKSUM_OFFLOAD(ACTIVE),PSEG,LARGESEND,CHAIN>
        inet 10.114.55.99 netmask 0xffffffc0 broadcast 10.114.55.127
         tcp_sendspace 131072 tcp_recvspace 65536 rfc1323 0
en5: flags=5e080863,c0<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST,GROUPRT                                             ,64BIT,CHECKSUM_OFFLOAD(ACTIVE),PSEG,LARGESEND,CHAIN>
        inet 192.168.116.29 netmask 0xffffff00 broadcast 192.168.116.255
         tcp_sendspace 131072 tcp_recvspace 65536 rfc1323 0
lo0: flags=e08084b<UP,BROADCAST,LOOPBACK,RUNNING,SIMPLEX,MULTICAST,GROUPRT,64BIT                                             >
        inet 127.0.0.1 netmask 0xff000000 broadcast 127.255.255.255
        inet6 ::1/0
         tcp_sendspace 131072 tcp_recvspace 131072 rfc1323 1
xxxxxxxxxxxx:root > netstat -rn
Routing tables
Destination        Gateway           Flags   Refs     Use  If   Exp  Groups

Route Tree for Protocol Family 2 (Internet):
default            10.114.55.97      UG       25  28297053 en4      -      -
10.114.55.64       10.114.55.99      UHSb      0         0 en4      -      -   =                                             >
10.114.55.64/26    10.114.55.99      U         1    154091 en4      -      -
10.114.55.99       127.0.0.1         UGHS     82 3714573874 lo0      -      -
10.114.55.127      10.114.55.99      UHSb      0         1 en4      -      -
127/8              127.0.0.1         U        58 2402889015 lo0      -      -
192.168.114/24     192.168.116.1     UG        1   1369204 en5      -      -
192.168.116.0      192.168.116.29    UHSb      0         0 en5      -      -   =                                             >
192.168.116/24     192.168.116.29    U         3      3358 en5      -      -
192.168.116.29     127.0.0.1         UGHS      0         2 lo0      -      -
192.168.116.255    192.168.116.29    UHSb      0         1 en5      -      -
192.168.121.0      192.168.121.8     UHSb      0         0 en6      -      -   =                                             >
192.168.121/24     192.168.121.8     U        72   6294424 en6      -      -
192.168.121.8      127.0.0.1         UGHS      0        31 lo0      -      -
192.168.121.255    192.168.121.8     UHSb      0         1 en6      -      -
192.168.122/24     192.168.116.1     UG        0   7006817 en5      -      -
192.169.0/24       192.168.116.1     UG        0         0 en4      -      -

Route Tree for Protocol Family 24 (Internet v6):
::1                ::1               UH        0      2701 lo0      -      -
xxxxxxxxx:root >









Notworking NIM client configuration

[xxxxxxxxxxxx:root:/home/root:] netstat -in
Name  Mtu   Network     Address            Ipkts Ierrs    Opkts Oerrs  Coll
en0   1500  link#2      0.11.25.7e.16.ce   7587303     0  3203355     2     0
en0   1500  10.114.19.2 10.114.19.248      7587303     0  3203355     2     0
en1   1500  link#3      0.11.25.7e.16.cf     18641     0       17     2     0
en1   1500  10.114.192  10.114.192.165       18641     0       17     2     0
lo0   16896 link#1                            1350     0     1390     0     0
lo0   16896 127         127.0.0.1             1350     0     1390     0     0
lo0   16896 ::1                               1350     0     1390     0     0

[xxxxxxxxxxxx:root:/home/root:] ifconfig -a
en0: flags=5e080863,c0<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST,GROUPRT,64BIT,CHECKSUM_OFFLOAD(ACTIVE),PSEG,LARGESEND,CHAIN>
        inet 10.114.19.248 netmask 0xffffffe0 broadcast 10.114.19.255
en1: flags=5e080863,c0<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST,GROUPRT,64BIT,CHECKSUM_OFFLOAD(ACTIVE),PSEG,LARGESEND,CHAIN>
        inet 10.114.192.165 netmask 0xffffff00 broadcast 10.114.192.255
lo0: flags=e08084b<UP,BROADCAST,LOOPBACK,RUNNING,SIMPLEX,MULTICAST,GROUPRT,64BIT>
        inet 127.0.0.1 netmask 0xff000000 broadcast 127.255.255.255
        inet6 ::1/0
         tcp_sendspace 131072 tcp_recvspace 131072 rfc1323 1
[xxxxxxxxxxxxx:root:/home/root:]

[xxxxxxxxxxxx:root:/home/root:] netstat -rn
Routing tables
Destination        Gateway           Flags   Refs     Use  If   Exp  Groups

Route Tree for Protocol Family 2 (Internet):
default            10.114.19.225     UG        1   2646305 en0      -      -
10.114.19.224      10.114.19.248     UHSb      0         0 en0      -      -   =>
10.114.19.224/27   10.114.19.248     U         2    556026 en0      -      -
10.114.19.248      127.0.0.1         UGHS      2      1340 lo0      -      -
10.114.19.255      10.114.19.248     UHSb      0         0 en0      -      -
10.114.192.0       10.114.192.165    UHSb      0         0 en1      -      -   =>
10.114.192/24      10.114.192.165    U         0         1 en1      -      -
10.114.192.165     127.0.0.1         UGHS      0         1 lo0      -      -
10.114.192.255     10.114.192.165    UHSb      0         0 en1      -      -
127/8              127.0.0.1         U         4        11 lo0      -      -

Route Tree for Protocol Family 24 (Internet v6):
::1                ::1               UH        0         0 lo0      -      -
[xxxxxxxxxxx:root:/home/root:]


How to check NIM server and client  configuration side is it correct or not ?
0
 
LVL 68

Expert Comment

by:woolmilkporc
Comment Utility
Hi,
which of the interfaces are GE?
 
wmp
 
0
 
LVL 2

Author Comment

by:rammaghenthar
Comment Utility
en1   1500  192.168.0   192.168.114.7     88493932     0 65566891     2     0
this one is GE interface on NIM server .
0
 
LVL 68

Assisted Solution

by:woolmilkporc
woolmilkporc earned 500 total points
Comment Utility
Hi again,
thank you for your posts.
Although your network config is confusing me a bit, most things seem at least 'functional'.
At first sight -
Could it be that the not-working nimclient's gateway 10.114.19.225 does not forward traffic to 192.168.114.7/16? Can you ping 192.168.114.7 from the nimclient?
 
Another thing - your netmasks and broadcast addresses. They seem rather inconsistent to me, although there could be some reasons to have them this way.
Can you explain those settings, or do you see a possibility to change them to a more consistent manner?
Why
- ffffffe0 at nimservers 10.114.55.35, ffffffc0 at  first nimclient's 10.114.55.99 ?
- ffff0000 at  nimserver's 192.168.114.7, ffffff00 at fist nimclient's 192.168.x.x?
- so many different subnets?
- broadcast addresses inconsistent with netmasks?
 
wmp
 
 
 
0
 
LVL 2

Author Comment

by:rammaghenthar
Comment Utility
1. Could it be that the not-working nimclient's gateway 10.114.19.225 does not forward traffic to 192.168.114.7/16? Can you ping 192.168.114.7 from the nimclient?
It is not pinging.

2. broadcast addresses inconsistent with netmasks?
                          In our environment NIM server and NIM client (which I am trying to configure as a client ) is not in same  network. Right now these servers is not configured for mksysb and so I am trying configure it. In our environment we have only one nim server I am simply trying to configure as a nim client. originally NIM client which I am trying to configure is not planned setup. I took charge of it working setting up backup environment. Here we are using lot of subnets for administration purpose.
Conclusion:-
From our discussion I understand that due to network setup it is not functioning .
So what I am doing is whereever warunim001-g (192.168.114.7) IP pings there I am configuring GB setup for mksysb. other servers I am using 10.114.55.35 en0 ip , I configure it. It is working fine. Previously I had doupt with NIM configuration and looked at it. I am got clear . Thankyou for your kind support woolmilkporc. Right


0
 
LVL 2

Author Comment

by:rammaghenthar
Comment Utility
Hi woolmilkporc

As per your previous statement  they below steps I had done on NIM server  Then NIM server stopped responding to clients
chssys -s nfsd -a "-p udp"
stopsrc -g nfs
startsrc -g nfs

Then I had done the steps on NIM server
chssys -s nfsd -a "-p tcp"
stopsrc -g nfs
startsrc -g nfs

Then it started working. why you told this step ? and why it was not working ?

               
0
 
LVL 68

Expert Comment

by:woolmilkporc
Comment Utility
Hi rammaghenthar,
sorry that it did'nt work. It proposed it only because nfs/udp is a bit less sensitive in case the host had 2 or more interfaces, and I thought it was worth giving a try.  Your NIM server and clients are on different subnets, which I didn't know when first posting, and NIM seems to rely on TCP when it comes to crossing subnets.
Glad to hear that things are clear now and that I could help you a bit.
Thanks for the points, you are always welcome!
Have fun and success,

Norbert (wmp)




0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now