Bug 1685 - libbe: renaming a boot environment sometimes fails
: libbe: renaming a boot environment sometimes fails
Status: CLOSED TRACKEDINBUGSTER
Product: installer
library
: unspecified
: Other Solaris
: P3 minor (vote)
: in-preview
Assigned To: evan.layton
:
:
: BugsterCR=6472202
:
:
:
  Show dependency treegraph
 
Reported: 2008-04-28 14:34 UTC by Ethan Quach
Modified: 2009-11-06 18:48 UTC (History)
8 users (show)

See Also:


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description Ethan Quach 2008-04-28 14:34:00 UTC
Due to a known bug in zfs, renaming a BE can fail if the BE has
a dependent clone that is currently mounted or otherwise busy.

For example, after successfully upgrading the live boot environment,
attempting to rename the upgraded BE that was automatically generated
fails because it is has been activated and the live boot environment
is now its clone.

# 
# beadm list

BE          Active Active on Mountpoint Space 
Name               reboot               Used 
----        ------ --------- ---------- -----
opensolaris yes    yes       legacy     2.29G
# 
# 
# pkg -s http://ipkg.sfbay:80 image-update
DOWNLOAD                                    PKGS       FILES     XFER (MB)
Completed                                    4/4         3/3     1.24/1.24 

PHASE                                        ACTIONS
Update Phase                                   13/13 
A clone of opensolaris exists and has been updated and activated.  On next boot
the Boot Environment opensolaris-1 will be mounted on '/'. Reboot when ready to
switch to this updated BE.

# 
# 
# beadm list

BE            Active Active on Mountpoint Space 
Name                 reboot               Used 
----          ------ --------- ---------- -----
opensolaris-1 no     yes       -          2.29G
opensolaris   yes    no        legacy     0
# 
# 
# beadm rename opensolaris-1 myBE
beadm: rename of BE: opensolaris-1 failed
# 
# 



A workaround to this is to:

1. activate the live BE.
2. rename the upgrade BE.
3. activate the upgraded BE.

# 
# beadm activate opensolaris
# 
# beadm rename opensolaris-1 myBE
# 
# beadm activate myBE
#
Comment 1 Dave Miner 2008-04-28 14:57:30 UTC
The ZFS bug referenced is 6472202
http://bugs.opensolaris.org/view_bug.do?bug_id=6472202
Comment 2 evan.layton 2008-10-07 08:53:19 UTC
*** Bug 3627 has been marked as a duplicate of this bug. ***
Comment 3 Ethan Quach 2009-06-01 04:21:45 UTC
*** Bug 9253 has been marked as a duplicate of this bug. ***
Comment 4 evan.layton 2009-06-05 08:01:36 UTC
*** Bug 9336 has been marked as a duplicate of this bug. ***
Comment 5 Ethan Quach 2009-07-14 14:02:57 UTC
*** Bug 10043 has been marked as a duplicate of this bug. ***
Comment 6 evan.layton 2009-11-06 18:48:35 UTC
*** Bug 12533 has been marked as a duplicate of this bug. ***