[indiana-discuss] beadm destroy snapshots failing maybe wrong syntax
Ethan Quach
ethan.quach at sun.com
Tue Mar 3 16:53:24 PST 2009
Harry Putnam wrote:
> 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
>
That's more of a suggested fix than a workaround ...
> 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.
>
Yes leave those two lines in the file, but make sure they're tabbed
over to be execution lines of the if clause in the else. python is
tab sensitive.
-ethan
> Thanks for clearing up about the syntax.
>
> _______________________________________________
> indiana-discuss mailing list
> indiana-discuss at opensolaris.org
> http://mail.opensolaris.org/mailman/listinfo/indiana-discuss
>
More information about the indiana-discuss
mailing list