[indiana-discuss] beadm destroy snapshots failing maybe wrong syntax

Harry Putnam reader at newsguy.com
Tue Mar 3 13:20:11 PST 2009


Harry wrote:
>> Further, trying to destroy them fails:
>>
>>   root # beadm destroy rpool/ROOT/opensolaris-1 at w_emacs_smbs_smbskr
>>   The BE name provided is invalid.
>>   Please check it and try again.
>>
>> My attempt looks like others I've seen searching google. But maybe it
>> wants a plainer BE name.
>>
>>   root # beadm destroy opensolaris-1 at w_emacs_smbs_smbskr
>>   The BE name provided is invalid.
>>   Please check it and try again.
>>   

Ethan wrote:
> This is the right syntax, though it looks like you're running into a
> new bug here, bug 7071.

Appears to be the case... I can say too that the workaround offered
here:
  http://defect.opensolaris.org/bz/show_bug.cgi?id=7071

orkaround
   replace "if lb.beVerifyBEName(be.trgtBeNameOrSnapshot[0]) != 0:" with
   somethings like:
   if be.trgtBeNameOrSnapshot[0].find("@") != -1:
                beName, snapName = be.trgtBeNameOrSnapshot[0].split("@")
                if lb.beVerifyBEName(beName) != 0:
                        msg.printMsg(msg.Msgs.BEADM_ERR_BENAME, None, -1)
                        return 1
   else:
                 if lb.beVerifyBEName(be.trgtBeNameOrSnapshot[0]) != 0:
   Additional configuration information
   updated to latest developer packages (from 20.02.2009)

Does not work in my case (assuming I installed the workaround
correctly)which is on 208.

Can you tell in the above snippet (which is complete) from the website
if the poster meant that the `else' part was to remain unchanged.  I
ask because the line above after else is identical to whats in the
actual script, but there are 2 other lines after that one:

          msg.printMsg(msg.Msgs.BEADM_ERR_BENAME, None, -1)
          return 1

I assumed it meant to leave the `else' part alone. 

Thanks for clearing up about the syntax.




More information about the indiana-discuss mailing list