1832857 Members
3172 Online
110047 Solutions
New Discussion

Re: network settings

 
SOLVED
Go to solution
frank espinosa
New Member

network settings

Hi,
I know enough Unix to be dangerous but not enough to be useful. I use my machine for finite element analysis, just need the box to work right and really know very little about sys admin. So I'm needing some help here.

Background:
I was in the midst of changing my IP/gateway/subnet information on my J2240 via SAM when the system crashed because root and /var were full. I do not know to what extent any information was changed, but I cannot bring the machine back up. When I try to bring the machine back up, it stalls out on the "NFS server" status line and just sits there blinking at me saying, "busy, wait"

So what I need to know is how can I reboot the machine so that I can reset all the network settings.

On boot up I have managed to get into single-user mode by typing at the IPL prompt: hpux -is (;0)/stand/vmunix

So I can get the machine into single-user mode.

Any help on bringing my machine back to life and onto the network would greatly appreciated!

5 REPLIES 5
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: network settings

Hi Frank:

Since you are in single-user, your first step will be to mount /var.

mount /var
You may first have to fsck the filesystem.

The root filesystem should never fill up. If it does, you sized it too small (unlikely) or you copied things in that should not be there.
e.g. wouthout mounting /usr you copied to the /usr directory. You need to clean both those filesystems up. You also need to mount /tmp. You can then go to /etc/rc.config.d/nfsconf and set the server/client to 0. Then umount /usr, /tmp, & /var and reboot.

Clay

If it ain't broke, I can fix that.
Kevin Wright
Honored Contributor

Re: network settings

get into /etc/rc.config.d and make your IP/subnet changes in the file netconf..(If you r changing your IP, then change it in /etc/hosts too) this file is pretty self explanatory so you should not have problems doing so. Go to the part that says interface name and make your changes. then set your default route at the part that says route_destination..then like Clay says set the nfsconf options to 0 so you don't try to contact your NFS server and reboot. When you get back in, type netstat -nr to see if your default route and IP are set correctly.
Shahul
Esteemed Contributor

Re: network settings

Hi

U follow these.. Go to single user mode..
If U have unwanted data in root please cross check and delete. Or if U have contiguos free space after root lvol, then extend the root file system by using lvextend and then extendfs commands.

Then /var, Here U can trim some log files and save the space, like /var/adm/syslog/syslog.log, /var/adm/syslog/OLDsyslog.log, /var/adm/wtmp, /var/adm/btmp...etc. Or if U have free space in VG, then extend /var by using lvextend and then extendfs.

I hope ur networking changes has not been done, that's why NFS error is coming. So From single user mode U run #set_parms ip_address and #set_parms addl_netwrk for changing the settings and then reboot the system.

Best of luck

Shahul
Sachin Patel
Honored Contributor

Re: network settings

Hi Frank,
If you are single user. fsck /usr and /var whereever they are mounted /dev/vg00/lvol?.
#fsck -y /dev/vg00/lvlol3 (check /etc/fstab for this information)
#mount /var and
#mount /usr
trip some log file from /var. free as much as space you can.
check /etc/hosts file for IP address if it is not changed and run
#set_parms ip_address
#set_parms networks

If you want to do it manually you have to change /etc/hosts, /etc/rc.config.d/netconf files.

Sachin
Is photography a hobby or another way to spend $
frank espinosa
New Member

Re: network settings

Thanks for your advice and help with my networking issues. I'm now back in, running and have freed up some space on root and var. I'm sure I'll return to the ITRC for more assistance in the future.