lucreate error

Hello,

On solaris 10, trying to run lucreate as below,

 lucreate -c Solaris10 -n Solaris10_lu -m /:/dev/dsk/c0t2d0s0:ufs -m -:/dev/dsk/c0t2d0s1:swap -m /export/home:/dev/dsk/c0t2dufs7

but it's resulting in an error as below,

Discovering physical storage devices
Discovering logical storage devices
Cross referencing storage devices with boot environment configurations
Determining types of file systems supported
Validating file system requests
Preparing logical storage devices
Preparing physical storage devices
Configuring physical storage devices
Configuring logical storage devices
Analyzing system configuration.
Comparing source boot environment <Solaris10> file systems with the file 
system(s) you specified for the new boot environment. Determining which 
file systems should be in the new boot environment.
Updating boot environment description database on all BEs.
reading tag: invalid character <1> (0x31) before start of tag
ERROR: Cannot delete existing filters for new boot environment.

-bash-3.00# lustatus -X

<response success="yes" resultCode="0">
<beStatus name="Solaris10" complete="yes" active="yes" activeOnReboot="yes" busy="no" status="" deletable="no" mounted="yes" mountPoint="/" source="bebasic-GetBootEnvStatusService"/>
<message newlineAtEnd="yes" type="general" message="Boot Environment           Is       Active Active    Can    Copy      "/>
<message newlineAtEnd="yes" type="general" message="Name                       Complete Now    On Reboot Delete Status    "/>
<message newlineAtEnd="yes" type="general" message="-------------------------- -------- ------ --------- ------ ----------"/>
<message newlineAtEnd="yes" type="general" message="Solaris10                  yes      yes    yes       no     -         "/>

uname -a

SunOS hostname 5.10 Generic_139555-08 sun4u sparc SUNW,Sun-Blade-100

-bash-3.00# prtvtoc /dev/dsk/c0t0d0s2

* /dev/dsk/c0t0d0s2 partition map
*
* Dimensions:
*     512 bytes/sector
*      63 sectors/track
*      16 tracks/cylinder
*    1008 sectors/cylinder
*   29651 cylinders
*   29649 accessible cylinders
*
* Flags:
*   1: unmountable
*  10: read-only
*
*                          First     Sector    Last
* Partition  Tag  Flags    Sector     Count    Sector  Mount Directory
       0      2    00    3096576  18398016  21494591   /
       1      3    01          0   3096576   3096575
       2      5    00          0  29886192  29886191
       7      8    00   21494592   8391600  29886191   /export/home

-bash-3.00# prtvtoc /dev/dsk/c0t2d0s2

* /dev/dsk/c0t2d0s2 partition map
*
* Dimensions:
*     512 bytes/sector
*      63 sectors/track
*      16 tracks/cylinder
*    1008 sectors/cylinder
*   29651 cylinders
*   29649 accessible cylinders
*
* Flags:
*   1: unmountable
*  10: read-only
*
*                          First     Sector    Last
* Partition  Tag  Flags    Sector     Count    Sector  Mount Directory
       0      2    00    3096576  18398016  21494591
       1      3    01          0   3096576   3096575
       2      5    00          0  29886192  29886191
       7      8    00   21494592   8391600  29886191

pkginfo -l SUNWlucfg SUNWlur SUNWluu

VERSION:  11.10,REV=2007.03.09.13.13
VERSION:  11.10,REV=2005.01.10.00.03
VERSION:  11.10,REV=2005.01.10.00.03

respectively

Any ideas what's messing up lucreate?

Please help.
Thanks.

---------- Post updated 10-08-09 at 09:33 AM ---------- Previous update was 10-07-09 at 03:46 PM ----------

Ok I managed to redo everything and create a new BE which is copy of active BE and new BE is patched using solaris-10-recommended patch cluster

I am not able to activate it though,

-bash-3.00# luactivate Solaris10_lu

A Live Upgrade Sync operation will be performed on startup of boot environment <Solaris10_lu>.
ERROR: <706> required packages are not installed on boot environment <Solaris10_lu>.
INFORMATION: </var/sadm/system/data/packages_to_be_added> on boot 
environment <Solaris10_lu> contains a list of required packages that are 
not installed. The boot environment is missing required packages. This 
might be the result of an upgrade operation that failed or that is 
incomplete. If the boot environment was upgraded using a multiple media 
distribution, for example the Solaris CD media, you must continue the 
upgrade process until it is fully completed. Failure to complete the 
upgrade process with all media of the software distribution makes the boot 
environment unstable.
ERROR: Unable to activate boot environment <Solaris10_lu>.

lustatus

Boot Environment           Is       Active Active    Can    Copy      
Name                       Complete Now    On Reboot Delete Status    
-------------------------- -------- ------ --------- ------ ----------
c0t0d0s0                   yes      yes    yes       no     -         
Solaris10_lu               yes      no     no        yes    -  

Now, I don't really understand why are there more packages required to be installed in new BE when it is already a copy of currently active BE and also patched with patch cluster?

Any idea?

Thanks.:b:

I'm not sure what caused this error, but the first thing to do to fix it is to look at /var/sadm/system/data/packages_to_be_added and see exactly which package(s) are missing. Then check the BE you copied to see if they are there. If not you have your answer, add them to the BE and do your copy again. If they are there then it's a matter of figuring out why they didn't copy to the new BE correctly.

Hi rhfrommn,

I did check the " /var/sadm/system/data/packages_to_be_added " file but it was a huge list - about 700 packages. In the original BE they are not there. I wonder why luactivate demands those packages.

Now let me tell you what I did next,

last command got executed successfully,

this command now worked and it did activate Solaris10_lu BE. However it did show an error for only 1 package. I did not careto check which package because new BE is active.

Now funny thing is when I wanted to go back to original BE- c0t0d0, I ran

luactivate c0t0d0 and I still see 700 package list and activation failed

then I went to ok prompt and did

it brought up original BE - c0t0d0, so this means that 700 packages which luactivate complains about is a bug and this 700 package requirement should not be mandatory if BE can boot anyways if you do setenv, so I am sure if I had setenv for Solaris10_lu BE then it would have booted just fine..

@upengan78

can you please use "code" tags instead of "quote" tags? code tags are on the # button!

Yes Sir, as you say!:b:

Glad you got it working. I agree, that is pretty suspicious behavior and seems like a bug. If you have Sun support might be worth reporting it as a low priority ticket so they know about it.