On Thu 03/01/07 at 10:22 AM, James.D.Carlson at Sun.COM wrote:
> Nils Nieuwejaar writes:
> > [...]
> > Searching /dev for possible boot environment filesystem devices
> >                              
> > Template entry /:/dev/dsk/c1t1d0s0:ufs skipped.
> > 
> > luconfig: ERROR: Template filesystem definition failed for /, all devices 
> > are not applicable..
> > ERROR: Configuration of boot environment failed.
> 
> That happens when the choice() function in luconfig/dev_choice.c
> fails.  I believe it means that LU thinks this slice is actually in
> use.

The last time I got this message, it was because the target partition had
'wu' instead of 'wm' flags.  I actually had to trace through the lu source
to figure that one out.

> Check to see if that slice is in use as swap, mounted somewhere, or is
> mentioned in one of the /etc/lu/ICF.* files.

No such luck.

tread# grep c1t1d0s0 `find /etc/ -type f`
/etc/lvm/md.tab:#       d15             -r /dev/dsk/c1t0d0s0 /dev/dsk/c1t1d0s0 \
tread# lumount -n nv54
/.alt.nv54
tread# grep c1t1d0s0 `find /.alt.nv54/etc/ -type f`
/.alt.nv54/etc/lvm/md.tab:#     d15             -r /dev/dsk/c1t0d0s0 
/dev/dsk/c1t1d0s0 \
tread# mount | grep c1t1d0s0
tread# swap -l | grep c1t1d0s0
tread# 

I think the 'in use' case triggers a slightly more specific error message.
You still have to scrounge through /etc/ in each BE to find the offender,
but at least you have a vague notion of what to look for.

Sigh.  I guess I have to go digging through the liveupgrade source again.
Ordinarily I would just start with DTrace, but...

tread# file /usr/lib/lu/luconfig
/usr/lib/lu/luconfig:   ELF 32-bit LSB executable 80386 Version 1 [FPU], 
dynamically linked, stripped
tread# nm /usr/lib/lu/luconfig

tread#

Nils


Reply via email to