I have a machine with two BEs and I am trying to create a third.  Each BE
contains just two partitions: root and swap.

My existing BEs:

tread# lustatus
Boot Environment           Is       Active Active    Can    Copy      
Name                       Complete Now    On Reboot Delete Status    
-------------------------- -------- ------ --------- ------ ----------
nv54                       yes      no     no        yes    -         
nv58                       yes      yes    yes       no     -         

The BE I am trying to clone:

tread# lufslist -n nv58
               boot environment name: nv58
               This boot environment is currently active.
               This boot environment will be active on next system boot.

Filesystem              fstype    device size Mounted on          Mount Options
----------------------- -------- ------------ ------------------- --------------
/dev/dsk/c1t0d0s1       swap       4295835648 -                   -
/dev/dsk/c1t2d0s3       ufs        8590049280 /                   -

Now I try to create the new BE:

tread# lucreate -n current -m /:/dev/dsk/c1t1d0s0:ufs
[...]
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.

The partition lucreate is complaining about:

tread# prtvtoc /dev/dsk/c1t1d0s0
[...]
*                          First     Sector    Last
* Partition  Tag  Flags    Sector     Count    Sector  Mount Directory
       0      2    00         34  16777216  16777249
       8     11    00   71670954     16384  71687337

The / filesystem for this BE:

tread# prtvtoc /dev/dsk/c1t2d0s3
[...]
*                          First     Sector    Last
* Partition  Tag  Flags    Sector     Count    Sector  Mount Directory
       0      0    00       2292  16777440  16779731
       1      3    00   16779732   8388720  25168451
       2      5    00          0  71680008  71680007
       3      2    00   25168452  16777440  41945891   /
       8      1    01          0      2292      2291

As far as I can see, the target partition is almost exactly the same as the
source partition.  It's a few hundred KB smaller, but the source partition
is only half full anyawy.

The error message is just plain useless.  Obviously at some point in the
stack, lucreate knew exactly what was "not applicable" about this
partition.  Why is the specific failure not passed on to the user?  The
lucreate man page doesn't even seem to describe what criteria it uses for
determining whether a partition is 'applicable', so I don't even know where
to start looking.

Searches of docs.sun.com, opensolaris.org, and google don't turn up any
hits for this specific error message (other than from other confused
victims) so the error appears to be undocumented as well as vague.

Any suggestions would be greatly appreciated.  I'm happy to RTFM if
somebody could just point me at the FM.

Thanks,
   Nils
 
 
This message posted from opensolaris.org

Reply via email to