Operating System - HP-UX
1833187 Members
3135 Online
110051 Solutions
New Discussion

Re: Root pathing after ignite restore

 
SOLVED
Go to solution
MarkW_1
Regular Advisor

Root pathing after ignite restore

I made an ignite tape to change the lvols for system filesystems. After a successful reboot I no longer have pathing for program names. What did I loose?
9 REPLIES 9
Rick Garland
Honored Contributor

Re: Root pathing after ignite restore

Check the /etc/PATH file to see if this matches with the changes you did.
MarkW_1
Regular Advisor

Re: Root pathing after ignite restore

# more PATH
/usr/bin:/usr/ccs/bin:/usr/contrib/bin:/opt/hparray/bin:/opt/nettladm/bin:/opt/u
pgrade/bin:/opt/fcms/bin:/opt/pd/bin:/usr/bin/X11:/usr/contrib/bin/X11:/opt/resm
on/bin:/opt/perf/bin:/opt/prm/bin:/opt/mx/bin:/opt/gnome/bin:/opt/mozilla:/opt/p
erl/bin:/opt/wbem/bin:/opt/wbem/sbin:/opt/ignite/bin:/usr/sbin/diag/contrib:/opt
/graphics/common/bin

Not a lot there!
Sundar_7
Honored Contributor

Re: Root pathing after ignite restore

Also it would be a good idea to check that /etc/fstab has been amended with the corresponding changes in the lvol names, if any.
Learn What to do ,How to do and more importantly When to do ?
Rick Garland
Honored Contributor

Re: Root pathing after ignite restore

Check the PATH for the user you logged in as.

This sounds like a definite PATH issue.

Are you able to execute applications if you start them from them local directory using the './'?

MarkW_1
Regular Advisor

Re: Root pathing after ignite restore

fstab is correct. Only the pathing is not there for most commands.
Rick Garland
Honored Contributor

Re: Root pathing after ignite restore

One other thought, are the libraries/config files still in the same place?
Sundar_7
Honored Contributor
Solution

Re: Root pathing after ignite restore

Mark, I do see you are missing /usr/sbin in the /etc/PATH file

add /usr/sbin to the beginning of the /etc/PATH file, logout and login back again

Can you be bit more specific on for what programs you dont have pathing to ?
Learn What to do ,How to do and more importantly When to do ?
MarkW_1
Regular Advisor

Re: Root pathing after ignite restore

/usr/sbin was the problem. I kept looking but could not see it. Thanks!
Sridhar Bhaskarla
Honored Contributor

Re: Root pathing after ignite restore

Hi Mark,

'/usr/sbin' is not a standard PATH to be specified in /etc/PATH. I do believe your /etc/PATH got restored correctly.

The most likely possibility is that the home directory of 'root' got changed so it is not executing the standard profile anymore. If you remember the old home of root, then change the password entry to point to the old home. Or go to current home directory of root and add the statement PATH=$PATH:/usr/sbin:$PATH:/sbin:/usr/local/bin to it.
If you don't have a .profile in there, copy one from /usr/newconfig/.profile into the home directory of root.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try