Operating System - HP-UX
1833873 Members
1897 Online
110063 Solutions
New Discussion

/sbin/rc1.d/S091vxvm-nodes-check[4]: /usr/sbin/lsdev: not found

 
SOLVED
Go to solution
Jerry_109
Super Advisor

/sbin/rc1.d/S091vxvm-nodes-check[4]: /usr/sbin/lsdev: not found

Hello All,

Trying to figure out why after system reboot, the startup files have problems? I first noticed the system hostname was not set.
I ran "set_parms hostname" and it seem to be ok, but after reboot it became "unknown" again. I took a look at the /etc/rc.log and noticed several other files in /sbin/init.d
were having problems also. Is there somewhere
on the system maybe a shell or something is not being set correctly ?

#################################
root@unknown[/sbin/rc1.d]
# uname -a; model
HP-UX unknown B.11.23 U 9000/800/N4000-55
###########################
root@unknown[/sbin/rc1.d]
# ll S*
lrwxr-xr-x 1 root bin 22 Feb 8 16:33 S080crashconf -> /sbin/init.d/crashconf
lrwxr-xr-x 1 root sys 26 Feb 15 16:12 S090sw_clean_vxvm -> /sbin/init.d/sw_clean_vxvm
lrwxr-xr-x 1 bin bin 29 Feb 8 16:42 S091vxvm-nodes-check -> /sbin/init.d/vxvm-nodes-check
lrwxr-xr-x 1 bin bin 25 Feb 8 16:42 S092vxvm-startup -> /sbin/init.d/vxvm-startup
lrwxr-xr-x 1 bin bin 26 Feb 8 16:42 S093vxvm-reconfig -> /sbin/init.d/vxvm-reconfig
lrwxr-xr-x 1 root bin 23 Feb 8 16:33 S100localmount -> /sbin/init.d/localmount
-r-xr-xr-x 1 bin bin 846 May 20 2005 S101vxfs_remount_root
lrwxr-xr-x 1 root bin 21 Feb 8 16:33 S320hostname -> /sbin/init.d/hostname
lrwxr-xr-x 1 root bin 15 Feb 8 16:33 S350kl -> /sbin/init.d/kl
lrwxr-xr-x 1 root bin 23 Feb 8 16:33 S400set_prvgrp -> /sbin/init.d/set_prvgrp
lrwxr-xr-x 1 root bin 21 Feb 8 16:33 S420set_date -> /sbin/init.d/set_date
lrwxr-xr-x 1 bin bin 20 Feb 8 16:49 S430pdcinfo -> /sbin/init.d/pdcinfo
lrwxr-xr-x 1 root bin 22 Feb 8 16:33 S440savecrash -> /sbin/init.d/savecrash
lrwxr-xr-x 1 root bin 21 Feb 8 16:33 S450evp.init -> /sbin/init.d/evp.init
lrwxr-xr-x 1 root bin 23 Feb 8 16:33 S500swap_start -> /sbin/init.d/swap_start
lrwxr-xr-x 1 root bin 19 Feb 8 16:33 S520syncer -> /sbin/init.d/syncer
lrwxr-xr-x 1 root bin 18 Feb 8 16:33 S600utmpd -> /sbin/init.d/utmpd
###############################

Old /etc/rc.log moved to /etc/rc.log.old

**************************************************
HP-UX Start-up in progress
Wed Feb 27 12:57:48 EST 2008
**************************************************

Configure system crash dumps
Output from "/sbin/rc1.d/S080crashconf start":
----------------------------
EXIT CODE: 0

Removing old vxvm files
Output from "/sbin/rc1.d/S090sw_clean_vxvm start":
----------------------------

VxVM INFO V-5-2-3360 VxVM device node check
Output from "/sbin/rc1.d/S091vxvm-nodes-check start":
----------------------------
/sbin/rc1.d/S091vxvm-nodes-check[4]: /usr/sbin/lsdev: not found
/sbin/rc1.d/S091vxvm-nodes-check[4]: head: not found

VxVM INFO V-5-2-3362 VxVM general startup
Output from "/sbin/rc1.d/S092vxvm-startup start":
----------------------------


Output from "/sbin/rc1.d/S093vxvm-reconfig start":
----------------------------
/sbin/rc1.d/S093vxvm-reconfig[45]: /etc/vx/lib/vxcommon: not found
"/sbin/rc1.d/S093vxvm-reconfig start" FAILED

Mount file systems
Output from "/sbin/rc1.d/S100localmount start":
####################################
root@unknown[/sbin/rc1.d]
# ll /sbin/rc1.d/S091vxvm-nodes-check
lrwxr-xr-x 1 bin bin 29 Feb 8 16:42 /sbin/rc1.d/S091vxvm-nodes-check -> /sbin/init.d/vxvm-nodes-check
root@unknown[/sbin/rc1.d]
# ll /sbin/init.d/vxvm-nodes-check
-r-xr-xr-x 1 bin bin 2175 May 24 2005 /sbin/init.d/vxvm-nodes-check

###################################

root@unknown[/sbin/rc1.d]
# ll /usr/sbin/lsdev
lrwxr-xr-x 1 root bin 11 Feb 8 16:33 /usr/sbin/lsdev -> /sbin/lsdev
root@unknown[/sbin/rc1.d]
# ll /sbin/lsdev
-r-xr-xr-x 1 bin bin 323584 Mar 11 2004 /sbin/lsdev
#################################





3 REPLIES 3
Steven Schweda
Honored Contributor
Solution

Re: /sbin/rc1.d/S091vxvm-nodes-check[4]: /usr/sbin/lsdev: not found

I know nothing, but ...

> # ll S*

"ls -lL S*" might be interesting, too. A
link to nowhere won't do much. Comparison
with another, similar system may be helpful
(testdrive.hp.com?).

> [...] /usr/sbin/lsdev: not found
> [...] head: not found

Are these things happening before /usr is
mounted?

> /etc/vx/lib/vxcommon: not found

That looks bad. What happened to it?
Dennis Handly
Acclaimed Contributor

Re: /sbin/rc1.d/S091vxvm-nodes-check[4]: /usr/sbin/lsdev: not found

>Steven: Are these things happening before /usr is mounted?

Yes, that seems like the problem. On my system:
/sbin/rc1.d/S080crashconf@
/sbin/rc1.d/S091vxvm-nodes-check@
/sbin/rc1.d/S092vxvm-startup@
/sbin/rc1.d/S093vxvm-reconfig@
/sbin/rc1.d/S100localmount@
/sbin/rc1.d/S320hostname@

So I can't see how it would ever work in general. Only since everything is in / here, are there no rc.log errors for me.

That script seems all messed up. Instead of /usr/sbin/lsdev it should use /sbin/lsdev.

Perhaps Jerry shouldn't be looking behind the green curtain? :-)
Jerry_109
Super Advisor

Re: /sbin/rc1.d/S091vxvm-nodes-check[4]: /usr/sbin/lsdev: not found

Hello All,

One of my co-workers helped to resolve the problem. We found a new installation of
HP APA ( aupt-port_aggr ). Strange, but we had to debug the /etc/rc.config file, and noticed that the an error was comming from
/etc/rc.config.d/hpbtlanconf ? Very wierd, but seems inside this file "" were missing

ex: HP_BTLAN_INTERFACE_NAME[0]="lan0"

System seem fine now.