The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > SUN Solaris
.
google unix.com



SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
fssnap error :snapshot error: File system could not be write locked aggadtech08 SUN Solaris 2 09-15-2009 11:12 AM
failure in lucreate Hitesh Shah SUN Solaris 5 06-05-2009 09:38 AM
Build Error: error: dereferencing pointer to incomplete type katwala UNIX for Dummies Questions & Answers 8 04-17-2009 10:16 AM
awk Shell Script error : "Syntax Error : `Split' unexpected Herry UNIX for Dummies Questions & Answers 2 03-17-2008 11:16 AM
Error: Internal system error: Unable to initialize standard output file firkus UNIX for Dummies Questions & Answers 2 10-25-2005 04:23 PM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-08-2009
upengan78 upengan78 is offline
Registered User
  
 

Join Date: Jun 2008
Location: Texas
Posts: 142
lucreate error

Hello,

On solaris 10, trying to run lucreate as below,

Code:
 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,
Code:
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
Code:
<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
Code:
SunOS hostname 5.10 Generic_139555-08 sun4u sparc SUNW,Sun-Blade-100

-bash-3.00# prtvtoc /dev/dsk/c0t0d0s2
Code:
* /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
Code:
* /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

Code:
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
Code:
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
Code:
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.

Last edited by upengan78; 10-08-2009 at 05:38 PM..
  #2 (permalink)  
Old 10-08-2009
rhfrommn rhfrommn is offline Forum Advisor  
Registered User
  
 

Join Date: Nov 2003
Location: Minnesota
Posts: 424
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.
  #3 (permalink)  
Old 10-08-2009
upengan78 upengan78 is offline
Registered User
  
 

Join Date: Jun 2008
Location: Texas
Posts: 142
Quote:
Originally Posted by rhfrommn View Post
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,

Quote:
ludelete Solaris10_lu

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

Mount solaris cd /mnt/cdrom

luupgrade -u -n Solaris10_lu -s /mnt/cdrom/
last command got executed successfully,
Quote:
luactivate solaris10_lu
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.

Quote:
init 6 and there you go my new BE came up fine..
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
Quote:
ok setenv boot-device /pci@1f,0/ide@d/disk@0,0:a

boot
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..

Last edited by upengan78; 10-08-2009 at 03:18 PM..
  #4 (permalink)  
Old 10-08-2009
DukeNuke2's Avatar
DukeNuke2 DukeNuke2 is online now Forum Staff  
Soulman
  
 

Join Date: Jul 2006
Location: Germany, Berlin
Posts: 2,979
@upengan78

can you please use "code" tags instead of "quote" tags? code tags are on the # button!
  #5 (permalink)  
Old 10-08-2009
upengan78 upengan78 is offline
Registered User
  
 

Join Date: Jun 2008
Location: Texas
Posts: 142
Quote:
Originally Posted by DukeNuke2 View Post
@upengan78

can you please use "code" tags instead of "quote" tags? code tags are on the # button!
Code:
Yes Sir, as you say!:b:
  #6 (permalink)  
Old 10-08-2009
rhfrommn rhfrommn is offline Forum Advisor  
Registered User
  
 

Join Date: Nov 2003
Location: Minnesota
Posts: 424
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.
Bits Awarded / Charged to rhfrommn for this Post
Date User Comment Amount
10-08-2009 upengan78 thanks for help! 1,000
Reply

Bookmarks

Tags
lucreate, reading tag: invalid character <1>, solaris 10 live upgrade

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 12:52 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0