Hi Sebastien,

This is definitely a bug in beadm. It appears that what's happening is that the snapshot name used is the same as the BE name and is not renamed when the BE is renamed. Due to this if the original name of the BE is used we can run into a name collision which causes the zfs promote to fail.

I've filed bug 12360 to track this issue.

Thanks!

-evan


Sebastien Roy wrote:
Hi folks,

In manipulating new BEs to test project bits, I ran into a strange error
from beadm.

seb:~$ beadm list
BE Active Mountpoint Space Policy Created -- ------ ---------- ----- ------ ------- nwam - - 605.11M static 2009-10-30 10:59 nwam-debug - - 814.92M static 2009-10-29 14:43 opensolaris-118 - - 105.44M static 2009-07-09 20:13 opensolaris-121 - - 151.35M static 2009-08-21 16:55 opensolaris-122 - - 89.11M static 2009-09-03 10:10 opensolaris-123 - - 138.47M static 2009-09-16 11:37 opensolaris-124 - - 154.04M static 2009-09-30 14:17 opensolaris-125 - - 20.12M static 2009-10-15 10:15 opensolaris-126 NR / 41.72G static 2009-10-27 18:31 seb:~$ pfexec beadm activate nwam
Unable to activate nwam.
BE promotion failed.
seb:~$ beadm list
BE Active Mountpoint Space Policy Created -- ------ ---------- ----- ------ ------- nwam R - 2.02G static 2009-10-30 10:59 nwam-debug - - 59.0K static 2009-10-29 14:43 opensolaris-118 - - 105.44M static 2009-07-09 20:13 opensolaris-121 - - 151.35M static 2009-08-21 16:55 opensolaris-122 - - 89.11M static 2009-09-03 10:10 opensolaris-123 - - 138.47M static 2009-09-16 11:37 opensolaris-124 - - 154.04M static 2009-09-30 14:17 opensolaris-125 - - 20.12M static 2009-10-15 10:15 opensolaris-126 N / 41.72G static 2009-10-27 18:31
It appears to have activated "nwam" anyway.  The "nwam" BE was created
from the "nwam-debug" BE using the -e option to beadm create while I was
in "opensolaris-126".

-Seb


_______________________________________________
indiana-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/indiana-discuss

_______________________________________________
indiana-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/indiana-discuss

Reply via email to