HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- /sbin/powerfail
Operating System - HP-UX
1833166
Members
3495
Online
110051
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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-16-2005 06:38 PM
11-16-2005 06:38 PM
Hi!
I have a test machine D370
# uname -srm
HP-UX B.11.11 9000/861
In the /etc/inittab there is a string:
# grep powerwait /etc/inittab
powf::powerwait:/sbin/powerfail >/dev/console 2>&1 # powerfail
At the begining of the /sbin/powerfail I include the string like this:
/bin/echo "In the /sbin/powerfail" >/powerfail.log
Then:
# init q
And switch off the power buttom at the front side of the server
As I think after rebooting the file /powerfail.log should be preset. However it is does not.
The same situation appears on machine rx2620/HP-UX 11.23
The question is: WHY???
I have a test machine D370
# uname -srm
HP-UX B.11.11 9000/861
In the /etc/inittab there is a string:
# grep powerwait /etc/inittab
powf::powerwait:/sbin/powerfail >/dev/console 2>&1 # powerfail
At the begining of the /sbin/powerfail I include the string like this:
/bin/echo "In the /sbin/powerfail" >/powerfail.log
Then:
# init q
And switch off the power buttom at the front side of the server
As I think after rebooting the file /powerfail.log should be preset. However it is does not.
The same situation appears on machine rx2620/HP-UX 11.23
The question is: WHY???
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2005 06:44 PM
11-16-2005 06:44 PM
Re: /sbin/powerfail
powerwait action is saying as,
Execute the process associated with
this entry only when boot init
receives a power-fail signal (SIGPWR)
and wait until it terminates before
continuing any processing of inittab.
After configuration with /etc/inittab, kill init process with PWR (signal 19) as,
# kill -19 1
It will create that file.
hth.
Execute the process associated with
this entry only when boot init
receives a power-fail signal (SIGPWR)
and wait until it terminates before
continuing any processing of inittab.
After configuration with /etc/inittab, kill init process with PWR (signal 19) as,
# kill -19 1
It will create that file.
hth.
Easy to suggest when don't know about the problem!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2005 06:49 PM
11-16-2005 06:49 PM
Solution
http://docs.hp.com/en/935/boot.html
states
"The HP-UX kernel must be correctly configured to support the powerfail operation. You can change the value of the powerfail variable (the default is zero) by using the reconfiguring the kernel section of sam(1M)."
Also check the /etc/powerfail.cfg file.
You should put your commands into /etc/local/powerfail file instead.
hth
states
"The HP-UX kernel must be correctly configured to support the powerfail operation. You can change the value of the powerfail variable (the default is zero) by using the reconfiguring the kernel section of sam(1M)."
Also check the /etc/powerfail.cfg file.
You should put your commands into /etc/local/powerfail file instead.
hth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2005 08:55 PM
11-16-2005 08:55 PM
Re: /sbin/powerfail
#grep -i power /usr/sam/lib/kc/*.tx
/usr/sam/lib/kc/drivers.tx:pfail::Unallowed:0:Power Fail CDIO
/usr/sam/lib/kc/params.tx:hdlpreg_hash_locks:::Pregion::Number (Given As Power of Two) of Spinlocks Allocated to Pregion Hash Table Objects:KCparam.Undocumented.sdl
/usr/sam/lib/kc/params.tx:pfail_enabled:::Miscellaneous::Power Fail Enabled:KCparam.PfailEnabled.sdl
#
# echo "pfail 1" >>/stand/system
# echo "pfail_enabled 1" >>/stand/system
# config
WARNING: No such device, tunable, or cdio pfail.
Ignoring the following line.
pfail 1
WARNING: No such device, tunable, or cdio pfail_enabled.
Ignoring the following line.
pfail_enabled
<..skiped..>
#
So is there any method to shutdown unix properly by pressing the power button on the server's front side, like it happens to proliant servers and windows?
/usr/sam/lib/kc/drivers.tx:pfail::Unallowed:0:Power Fail CDIO
/usr/sam/lib/kc/params.tx:hdlpreg_hash_locks:::Pregion::Number (Given As Power of Two) of Spinlocks Allocated to Pregion Hash Table Objects:KCparam.Undocumented.sdl
/usr/sam/lib/kc/params.tx:pfail_enabled:::Miscellaneous::Power Fail Enabled:KCparam.PfailEnabled.sdl
#
# echo "pfail 1" >>/stand/system
# echo "pfail_enabled 1" >>/stand/system
# config
WARNING: No such device, tunable, or cdio pfail.
Ignoring the following line.
pfail 1
WARNING: No such device, tunable, or cdio pfail_enabled.
Ignoring the following line.
pfail_enabled
<..skiped..>
#
So is there any method to shutdown unix properly by pressing the power button on the server's front side, like it happens to proliant servers and windows?
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP