Resetting root password with zfs mirrored root

  • Follow


The sysadmin responsible for our zfs systems just left. WE don't have
passwords to them, I tried following Sun's documentation here:
http://docs.sun.com/app/docs/doc/817-2271/zfsboot-1?l=en&a=view
and booted to failsafe mode, but was unable to zap out the shadow file
entries, see below:


#boot -F failsafe

ROOT/zfsBE was found on rpool.
Do you wish to have it mounted read-write on /a? [y,n,?] y
mounting rpool on /a
cannot mount '/a/mnt': failed to create mountpoint
Unable to mount rpool/ROOT/zfsBE  as root

Starting shell.


#zfs list

rpool                                /a/rpool
rpool/ROOT                           /a/rpool/ROOT
rpoot/ROOT/zfsBE                     /a/mnt
rpool/ROOT/zfsBE@zfsBE               -
rpool/ROOT/zfsBE0                    /a/rpool/ROOT/zfsBE0
rpool/dump                           -
rpool/export                         /a/export
rpool/export/home                    /a/export/home
rpool/swap                           -

#zpool list
NAME     SIZE       USED    AVAIL  CAP HEALTH  ALTROOT
rpool    34.5G      5.6G    28.9G 20% ONLINE   /a



I'll try booting rom CD next.......please give any suggestions etc.
0
Reply Dariusz 10/30/2010 2:58:09 PM

On Oct 30, 8:58=A0am, Dariusz Dolecki <dariusz.dole...@gmail.com> wrote:
> The sysadmin responsible for our zfs systems just left. WE don't have
> passwords to them, I tried following Sun's documentation here:http://docs=
..sun.com/app/docs/doc/817-2271/zfsboot-1?l=3Den&a=3Dview
> and booted to failsafe mode, but was unable to zap out the shadow file
> entries, see below:
>
> #boot -F failsafe
>
> ROOT/zfsBE was found on rpool.
> Do you wish to have it mounted read-write on /a? [y,n,?] y
> mounting rpool on /a
> cannot mount '/a/mnt': failed to create mountpoint
> Unable to mount rpool/ROOT/zfsBE =A0as root
>
> Starting shell.
>
> #zfs list
>
> rpool =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0/a/r=
pool
> rpool/ROOT =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 /a/rpool/R=
OOT
> rpoot/ROOT/zfsBE =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 /a/mnt
> rpool/ROOT/zfsBE@zfsBE =A0 =A0 =A0 =A0 =A0 =A0 =A0 -
> rpool/ROOT/zfsBE0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0/a/rpool/ROOT/zf=
sBE0
> rpool/dump =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 -
> rpool/export =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 /a/export
> rpool/export/home =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0/a/export/home
> rpool/swap =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 -
>
> #zpool list
> NAME =A0 =A0 SIZE =A0 =A0 =A0 USED =A0 =A0AVAIL =A0CAP HEALTH =A0ALTROOT
> rpool =A0 =A034.5G =A0 =A0 =A05.6G =A0 =A028.9G 20% ONLINE =A0 /a
>
> I'll try booting rom CD next.......please give any suggestions etc.

Dariusz,

I don't know why you have both temporary mount points /a and /mnt.
I can't test this myself but you should try to do a zfs umount -a
and then remount like this:

# zfs umount -a
# zfs set mountpoint=3D/mnt rpool/ROOT/zfsBE
# zfs mount rpool/ROOT/zfsBE

Then, follow the steps here substituting /mnt for /a:

http://www.solarisinternals.com/wiki/index.php/ZFS_Troubleshooting_Guide
Recover from Lost Root Password or Similar Problem

Thanks,

Cindy
0
Reply cindy 10/30/2010 4:48:28 PM


1 Replies
1292 Views

(page loaded in 0.027 seconds)

Similiar Articles:













7/21/2012 7:54:42 PM


Reply: