- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: hpux -is boot
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2001 01:16 PM
11-11-2001 01:16 PM
hpux -is boot
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2001 01:24 PM
11-11-2001 01:24 PM
Re: hpux -is boot
If that is what you are doing, you've got problems elsewhere. If you are just doing 'hpux -is' from a # prompt, that won't work.
If you want to go to single user mode without rebooting the machine, you can do an 'init 1' to go directly to single user mode from multi-user mode.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2001 01:28 PM
11-11-2001 01:28 PM
Re: hpux -is boot
You should do this:
Interupt the normal boot:
BOOT PRIMARY
Interact with ISL? Y
ISL> hpux -is
This should bring you up in single-user mode.
If you are already running unix then you use the init S command. Man init for details.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2001 01:39 PM
11-11-2001 01:39 PM
Re: hpux -is boot
init:4:initdefault:
You can also go from multi-user to single user using the 'shutdown' command with no options.
-Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2001 01:44 PM
11-11-2001 01:44 PM
Re: hpux -is boot
I am sure that I am running this command from ISL. After rebooting the system I am getting
BOOTADMIN>Boot pri isl
ISL>hpux -is boot
--
#who -r
.runlevel 4
This is I am getting .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2001 01:47 PM
11-11-2001 01:47 PM
Re: hpux -is boot
What messages, if any, are coming up between when you do the 'hpux -is' command and when the machine gets to the prompt?
What version of HP-UX is this? What type of machine?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2001 01:54 PM
11-11-2001 01:54 PM
Re: hpux -is boot
From TKB document 5003433680:
Problem Text
who -r (from who man page) states:
Indicates the current run-level of the init process. The last three fields contain the
current state of init, the number of times that state has been previously entered, and the previous state. These fields are updated each time init changes to a different run state.
This is not always the case. For instance if you do an /etc/reboot or shutdown -r then esc to boot to single user mode (hpux -is). "who -r" reports the previous multiuser run level before the reboot was issued instead of the current single-user run level.
*****************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2001 07:25 PM
11-11-2001 07:25 PM
Re: hpux -is boot
ISL>hpux -is boot
#who -r
.runlevel 4 >>>
Hi,
Seems like this is a bug. So, if you
really want to find out the level you have
booted on, check the /etc/rc.log file
and it shows the scripts it has run.
If it has not run anything under /sbin/rc2.d
or /sbin/rc3.d , then you are definitely
booted in single user mode.
HTH
raj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2001 07:27 PM
11-11-2001 07:27 PM
Re: hpux -is boot
However, the man pages ofr init seem to imply that you can get to single user mode with:
init s
But you can't. init will remove any process it owns that is not listed in inittab with an 's' state...but init does not own all processes and certainly doesn't un-mount anything or refresh the kernel.
man shutdown implies that shutdown without any options (like shutdown 0) will take you to single user mode. Well, it used to, but not any more. It still leaves some processes running and /usr is often left mounted.
So the only way to get into single user ins through an interrupted boot sequence as mentioned before.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2001 11:52 PM
11-11-2001 11:52 PM
Re: hpux -is boot
I still see shutdown 0 and init S in some docs.. and have always wondered if it was me or the machine...
Have fun,
Bill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2001 05:35 AM
11-12-2001 05:35 AM
Re: hpux -is boot
As far as I know, that is because for a single-user *boot*, the /etc/utmp file is not yet updated, so "who -r" just reports the last run level that was recorded in /etc/utmp, which is your normal run level.
For a *switch to* single-user mode, i.e. run level 1-6 -> 0 or S, "who -r" should report the correct run level.
You can check the above 'theory' with:
# /sbin/ls -l /etc/utmp
(the timestamp will probably be older than the boot time)
# mount /dev/vg00/lvol? /usr
# /usr/sbin/acct/fwtmp (the text form of /etc/utmp will probably only report the old run level (4))
For the format of the utmp file see the utmp(4) manual page.