LU - Reverting to original Boot Enviroment


 
Thread Tools Search this Thread
Operating Systems Solaris LU - Reverting to original Boot Enviroment
# 1  
Old 11-05-2011
LU - Reverting to original Boot Enviroment

Last week, I created a new BE using lucreate which I was able to successfully boot from and has been working fine sinxe.

I now want to revert to the original BE but luactivate gives me these errors:

Code:
 
# luactivate current_be
ERROR: boot environment <current_be> already mounted on </home/oracle>
ERROR: mount point </.alt.current_be> is already in use
ERROR: failed to create mount point </.alt.current_be> for file system </>
ERROR: cannot mount boot environment by name <current_be>
ERROR: Unable to mount the boot environment <current_be>.

They are indeed mounted which I did notice before but having not used lu before thought it was normal but now not sure. The original BE is on mirrored disks. The new BE is on one 50G slice on just one of those disks. Looking at the directory contents the .alt /home/oracle dir is actually being written to as well as the /home/oracle under the new BE.

df shows the following:

Code:
 
Filesystem             size   used  avail capacity  Mounted on
/dev/dsk/c1t1d0s5       49G   8.2G    41G    17%    /
/devices                 0K     0K     0K     0%    /devices
ctfs                     0K     0K     0K     0%    /system/contract
proc                     0K     0K     0K     0%    /proc
mnttab                   0K     0K     0K     0%    /etc/mnttab
swap                    15G   1.6M    15G     1%    /etc/svc/volatile
objfs                    0K     0K     0K     0%    /system/object
/platform/sun4u-us3/lib/libc_psr/libc_psr_hwcap2.so.1
                        49G   8.2G    41G    17%    /platform/sun4u-us3/lib/libc_psr.so.1
/platform/sun4u-us3/lib/sparcv9/libc_psr/libc_psr_hwcap2.so.1
                        49G   8.2G    41G    17%    /platform/sun4u-us3/lib/sparcv9/libc_psr.so.1
fd                       0K     0K     0K     0%    /dev/fd
swap                    16G   685M    15G     5%    /tmp
swap                    15G    72K    15G     1%    /var/run
/dev/md/dsk/d0          49G   8.2G    41G    17%    /home/oracle
/                       49G   8.2G    41G    17%    /.alt.current_be
/export/home/oracle     49G   8.2G    41G    17%    /home/oracle
/home/oracle            49G   8.2G    41G    17%    /.alt.current_be/home/oracle
/dev/md/dsk/d4         9.9G   369M   9.4G     4%    /.alt.current_be/opt
/dev/md/dsk/d3         3.9G   1.2G   2.7G    30%    /.alt.current_be/var
swap                    15G     0K    15G     0%    /.alt.current_be/var/run
swap                    15G     0K    15G     0%    /.alt.current_be/tmp

What have I done wrong?!

Cheers
Paul
# 2  
Old 11-05-2011
Please post output from lustatus.
# 3  
Old 11-06-2011
Code:
 
Boot Environment           Is       Active Active    Can    Copy
Name                       Complete Now    On Reboot Delete Status
-------------------------- -------- ------ --------- ------ ----------
current_be                 yes      no     no        yes    -
Solaris10_910_be           yes      yes    yes       no     -

Thanks
Paul
# 4  
Old 11-06-2011
Post the output of following command.
Code:
 
lufslist current_be

Also try to unmount current_be filesystems and then activate current_be.
Code:
 
luumount current_be
luactivate current_be

Regards,
Vishal

Last edited by vishalaswani; 11-06-2011 at 06:56 PM..
# 5  
Old 11-07-2011
Code:
 
# lufslist current_be
               boot environment name: current_be
Filesystem              fstype    device size Mounted on          Mount Options
----------------------- -------- ------------ ------------------- --------------
/dev/md/dsk/d1          swap      17182949376 -                   -
/dev/md/dsk/d0          ufs       21476081664 /                   -
/dev/md/dsk/d3          ufs        4303552512 /var                -
/dev/md/dsk/d4          ufs       10743250944 /opt                -

 
# lufslist Solaris10_910_be
               boot environment name: Solaris10_910_be
               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/md/dsk/d1          swap      17182949376 -                   -
/dev/dsk/c1t1d0s5       ufs       53695414272 /                   -
/dev/md/dsk/d0          ufs       21476081664 /home/oracle        -

As you can see, I've posted the lufslist output for both BEs. To me, current_be looks ok but I'm concerned that the Solaris10_9_10_be has /home/oracle mounted on it and is pointing /dev/md/dsk/d0 which is the location of root filesystem

The output from luumount:
Code:
# luumount current_be
ERROR: boot environment <current_be> is not mounted

Indeed the 'alt.current_be..' filesystems are not mounted. I guess it mounts these when I do luactivate?

Thanks
Paul

---------- Post updated at 12:47 PM ---------- Previous update was at 12:02 PM ----------

Hello again

I did try luactivate current_be on the off-chance and got slighlty different output:

Code:
 
# luactivate current_be
A Live Upgrade Sync operation will be performed on startup of boot environment <current_be>.
ERROR: boot environment <current_be> is not mounted
ERROR: mount point </.alt.current_be> is already in use
ERROR: failed to create mount point </.alt.current_be> for file system </>
ERROR: cannot mount boot environment by name <current_be>
ERROR: Unable to determine the configuration of the target boot environment <current_be>.

The df command does return the '.alt.current_be...' filesystems but I can't unmount with luumount. I can however unmount with umount.
# 6  
Old 11-07-2011
Is your /home/oracle a valid mountpoint here, I dont see it in your current_be.

If it is not used, then the best is to unmount it and remove it from the /etc/lu/ICF.2 file [which is there for Solaris10_910_be, do takes its backup].

Then you can try luactivate of current_be.

Regards,
Vishal
# 7  
Old 11-07-2011
Hi Vishal

Although it's not in the lufslist for current_be it is present in the /etc/lu/ICF.1 (current_be) file. I'm pretty sure now it's because when I initially created current_be, I logged in on PC as 'oracle' (thus mounting /home/oracle) and then switched user to root. Should I have carried this work out on the console? I didn't see this documented anywhere

Paul
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Question about enviroment variable.

Hi Gurus, I am stuck on below issue. in my .profile. I have two variable: x=abc$123 t=xyz$ when running env command, I got below: x=abc t=xyz$ my OS is SunOS 5.10 sun4v sparc SUNW,SPARC-Enterprise-T5220 I am wondering why t=xyz$ shows exactly value? I try below: (9 Replies)
Discussion started by: ken6503
9 Replies

2. SCO

File permissions reverting back?

After running integrity -e ( may not have done this code thing correctly ) I got the following .io/bootdisk/boot group root should be backup mode 0600 should be 0440 .io/bootdisk/swap group root should be mem ... (3 Replies)
Discussion started by: bigbug
3 Replies

3. Shell Programming and Scripting

Killing all the process of a particular enviroment

Hi Folks, I have the below command that will kill all the process of an environment, lets say if I have reached to the location cont directory under which I want to kill multiple process so the command will be .... kill -9 `ps -ef | grep cont | grep -v grep | awk '{print $2}'` Now please... (4 Replies)
Discussion started by: punpun66
4 Replies

4. Shell Programming and Scripting

Reverting to system Perl - downgrading

Not how I expected my weekend to go. My redhat server previously had perl 5.8.0 installed on it. Downloading a mysql utility, it asked for that and I blindly installed it. Broke a whole bunch of things. Now I'm hearing that I should revert back to my "system perl" because there may be further... (3 Replies)
Discussion started by: dheian
3 Replies

5. UNIX for Dummies Questions & Answers

setting enviroment variables help

Hello everyone, I am currently trying to program in java in unix platform for the first time, so far it is OK as long as I use class libraries which come with java distribution. Unfortunately when I try to use external libraries I have to use -classpath option which I rather not doing all the... (1 Reply)
Discussion started by: run123
1 Replies

6. Solaris

Save enviroment variables

I need to save my enviroment variables,specially the $PATH.When I put it on .cshrc at next reboot I lost the configuration.How can avoid this?Thanks (2 Replies)
Discussion started by: bgf0
2 Replies

7. Shell Programming and Scripting

enviroment settings

What are the environment setting during a cron session? I have HP-UX and I want to send the output/file from a script to several e-mail addresses. I want to create an env-var to store the e-mail addresses in my .profile, but I do not know if it will be visible when a script is executed in a cron. (4 Replies)
Discussion started by: ALTRUNVRSOFLN
4 Replies

8. UNIX for Dummies Questions & Answers

Enviroment variables...

Hi guys, thanks in advance for this easy answer.... :s Ok I am trying to output the enviroment varable for host in Solaris. I have tried $HOST, $HOST_NAME, $HOSTNAME carn't find it anywhere, does someone want to put me out of my misary and tell me what it is??? :confused: :eek: Thanks... (2 Replies)
Discussion started by: B14speedfreak
2 Replies

9. UNIX for Dummies Questions & Answers

Files in work directory reverting to root ownership

Hi, I have a problem with a Unix server we do not adminster but have an application running on. The problem is that overnight, files in the /user4/work directory revert to root ownership. This causes problems as we cannot process the files. 1) What would be causing files to revert to root... (1 Reply)
Discussion started by: canman
1 Replies

10. UNIX for Dummies Questions & Answers

Help! - How do I compile C++ in UNIX Enviroment?

:confused: Hi, does anyone here know how to compile and run C++ in UNIX environment? I am so desperate! Any help is greatly appreciated. Thanks! (3 Replies)
Discussion started by: Kahuashi
3 Replies
Login or Register to Ask a Question