FAILSAFE

From pressy's brainbackup
Jump to: navigation, search

FAILSAFE MODE

The failsafe mode could be very useful for maintenance mode and it's not necessary to boot from an external medium (cd/dvd or net) to repair things on your root filesystem.

Lost root password

XSCF> setdomainmode -y -d 0 -m autoboot=off
Diagnostic Level    :min        -> -
Secure Mode         :on         -> -
Autoboot            :off        -> on
CPU Mode            :auto       -> -
The specified modes will be changed.
Continue? [y|n] :y
configured.
Diagnostic Level    :min
Secure Mode         :on (host watchdog: unavailable  Break-signal:receive)
Autoboot            :off (autoboot:on)
CPU Mode            :auto
XSCF>
XSCF> console -d 0 



OST Sequence 14 STICK Stop
POST Sequence 15 STICK Start
POST Sequence 16 Error CPU Check
POST Sequence 17 System Configuration
POST Sequence 18 System Status Check
POST Sequence 19 System Status Check After Sync
POST Sequence 1A OpenBoot Start...
POST Sequence Complete.
ChassisSerialNumber PXXXXXX026

Sun SPARC Enterprise M3000 Server, using Domain console
Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
Copyright 2009 Sun Microsystems, Inc. and Fujitsu Limited. All rights reserved.
OpenBoot 4.24.12, 16384 MB memory installed, Serial #10XXXX04.
Ethernet address 0:b:5d:x2:2x:x4, Host ID: 80XXXXf4.



Aborting auto-boot sequence.
{0} ok boot -F failsafe
Boot device: /pci@0,600000/pci@0/pci@0/scsi@0/disk@0  File and args: -F failsafe
SunOS Release 5.10 Version Generic_141444-09 64-bit
Copyright 1983-2009 Sun Microsystems, Inc.  All rights reserved.
Use is subject to license terms.
Configuring devices.
Searching for installed OS instances...

ROOT/s10s_u8wos_08a was found on rpool.
Do you wish to have it mounted read-write on /a? [y,n,?] y
mounting rpool on /a

An out of sync boot archive was detected on rpool.
The boot archive is a cache of files used during boot and
should be kept in sync to ensure proper system operation.

Do you wish to automatically update this boot archive? [y,n,?] y
Updating boot archive on rpool.
The boot archive on rpool was updated successfully.

Starting shell.
#
# cd /a/etc
# TERM=vt100
# export TERM
# vi shadow
-> edit 2nd entry to "nothing" :: 
#
# init 6
#
The system is being restarted.
syncing file systems... done
rebooting...
Resetting...
-> root password will be empty